relocatable: improve documentation
[gnulib.git] / ChangeLog
blobb32b4228a2e5a696f4d97b215df662fd64cfa8ee
1 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
3         relocatable: improve documentation.
4         * doc/relocatable-maint.texi (Supporting Relocation): For
5         substitutions performed by config.status, we need more variables
6         (for instance datarootdir defaults to '${prefix}/share' so we need
7         prefix).
9 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11         backup: update dependencies
12         * modules/backup-rename (Depends-on): It now depends on opendirat
13         instead of opendir.  It also uses stdint, and xalloc-oversized.
14         But no longer dirfd.
15         * modules/backupfile (Depends-on): Add xalloc-oversized.
17 2019-01-13  Bruno Haible  <bruno@clisp.org>
19         getcwd: Fix test failure when building on a Linux 9p file system.
20         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
21         EINVAL from mkdir like ENAMETOOLONG.
22         * tests/test-getcwd.c (test_long_name): Likewise.
24 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
26         Fix typos found by codespell.
27         * lib/*.[hc]: Fix typos in comments.
28         * pygnulib/*.py: Fix typos in error messages and comments.
30 2019-01-12  Bruno Haible  <bruno@clisp.org>
32         doc: Fix documentation about container data types.
33         Reported by Werner Lemberg <wl@gnu.org>.
34         * doc/containers.texi (Container data types): Fix typo.
36 2019-01-10  Bruno Haible  <bruno@clisp.org>
38         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
39         Reported by Reuben Thomas <rrt@sc3d.org>.
40         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
42 2019-01-06  Bruno Haible  <bruno@clisp.org>
44         maintainer-makefile: Make the configure.ac section optional.
45         * top/maint.mk (GREP, SED): Define if not defined.
47 2019-01-06  Bruno Haible  <bruno@clisp.org>
49         localename: Assume setlocale function.
50         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
51         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
53 2019-01-06  Bruno Haible  <bruno@clisp.org>
55         doc: Add documentation about container data types.
56         * doc/containers.texi: New file.
57         * doc/gnulib.texi (Particular Modules): Include it.
59 2019-01-06  Bruno Haible  <bruno@clisp.org>
61         doc: Update documentation about 'progname' module.
62         * doc/progname.texi: Rename from doc/error.texi. Change node name and
63         title. Rewrite.
64         * doc/gnulib.texi (Particular Modules): Update.
66 2019-01-06  Bruno Haible  <bruno@clisp.org>
68         doc: Document the xstdopen and *-safer modules.
69         * doc/xstdopen.texi: New file.
70         * doc/gnulib.texi (Particular Modules): Include it.
72 2019-01-06  Bruno Haible  <bruno@clisp.org>
74         xstdopen: Add tests.
75         * tests/test-xstdopen.c: New file.
76         * tests/test-xstdopen.sh: New file.
77         * modules/xstdopen-tests: New file.
79         xstdopen: New module.
80         * lib/xstdopen.h: New file.
81         * lib/xstdopen.c: New file.
82         * modules/xstdopen: New file.
84 2019-01-06  Bruno Haible  <bruno@clisp.org>
86         stdopen: Fix compilation error with IRIX cc.
87         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
89 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
91         xfreopen need not include stdio--.h
92         * lib/xfreopen.c: Do not include stdio--.h.
94         xfreopen need not depend on freopen-safer
95         * modules/xfreopen (Depends-on):
96         Depend on freopen, not freopen-safer.
98         stdopen: modernize and simplify
99         * lib/stdopen.c: Update copyright date
100         Do not include sys/types.h; no longer needed these days.
101         (stdopen): Use C99-style decl in loop.  Return int errno
102         value, rather than just a bool.  Do not worry about fd mismatches,
103         since the caller cares only if 0, 1, 2 are occupied.
104         * lib/stdopen.h: No need to include <stdbool.h>.
105         * m4/stdopen.m4: Remove.
106         * modules/stdopen: New file.
108         stdopen: copy from last use in coreutils
109         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
110         New files, taken from their last commit in coreutils
111         2007-07-23T12:35:58Z!jim@meyering.net
112         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
114 2019-01-05  Bruno Haible  <bruno@clisp.org>
116         argp: Don't pass an invalid argument to dgettext().
117         Reported by He X <xw897002528@gmail.com>.
118         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
119         dgettext().
121 2019-01-05  Bruno Haible  <bruno@clisp.org>
123         argp: Don't pass an invalid argument to dgettext().
124         Reported by He X <xw897002528@gmail.com>.
125         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
126         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
127         dgettext().
129 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
131         stdioext: port to newer 32-bit Android
132         Problem reported by Tom Yan in:
133         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
134         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
135         (fp_) [__ANDROID__]: Use it.
137 2019-01-04  Bruno Haible  <bruno@clisp.org>
139         lock: Fix link error with --enable-threads=pth.
140         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
141         Mark as weak.
143 2019-01-04  Bruno Haible  <bruno@clisp.org>
145         Fix link errors in unit tests.
146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
147         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
148         * modules/array-map-tests (Makefile.am): Link test-array_map against
149         libintl.
150         * modules/array-set-tests (Makefile.am): Link test-array_set against
151         libintl.
152         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
153         libintl.
154         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
155         libintl.
156         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
157         against libintl.
158         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
159         against libintl.
161 2019-01-04  Bruno Haible  <bruno@clisp.org>
163         Fix incorrect 'Link' sections.
164         * modules/regex (Link): Mention the link requirement of module 'lock'.
165         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
167 2019-01-04  Bruno Haible  <bruno@clisp.org>
169         Fix some 'Link' sections.
170         * modules/c-stack (Link): Add link directive from the 'gettext-h'
171         dependency.
172         * modules/getaddrinfo (Link): Likewise.
174 2019-01-04  Bruno Haible  <bruno@clisp.org>
176         Remove redundant 'Link' sections.
177         * modules/canon-host (Link): Remove section.
178         * modules/timevar (Link): Likewise.
180 2019-01-04  Bruno Haible  <bruno@clisp.org>
182         Remove incorrect 'Link' sections.
183         * modules/acl (Link): Remove section. Use combined 'Link' sections from
184         the dependencies instead.
185         * modules/crypto/md5 (Link): Likewise.
186         * modules/crypto/sha1 (Link): Likewise.
187         * modules/crypto/sha256 (Link): Likewise.
188         * modules/crypto/sha512 (Link): Likewise.
189         * modules/faccessat (Link): Likewise.
190         * modules/fdutimensat (Link): Likewise.
191         * modules/iconv_open-utf (Link): Likewise.
192         * modules/propername (Link): Likewise.
193         * modules/qacl (Link): Likewise.
194         * modules/unicodeio (Link): Likewise.
195         * modules/utimecmp (Link): Likewise.
196         * modules/utimensat (Link): Likewise.
197         * modules/xstriconv (Link): Likewise.
198         * modules/xstriconveh (Link): Likewise.
200 2019-01-04  Bruno Haible  <bruno@clisp.org>
202         gnulib-tool: New option --extract-recursive-link-directive.
203         * gnulib-tool (func_usage): Document the new options
204         --extract-recursive-dependencies, --extract-recursive-link-directive.
205         (func_verify_module): Document output variables.
206         (func_get_dependencies_recursively): New function.
207         (func_get_link_directive_recursively): New function.
208         Use them to implement the new options
209         --extract-recursive-dependencies, --extract-recursive-link-directive.
210         * doc/gnulib-tool.texi (Link-time requirements): New section.
212 2019-01-04  Bruno Haible  <bruno@clisp.org>
214         Clarify meaning of 'Link' section in module description.
215         * doc/gnulib.texi (Module description): Clarify the meaning of the
216         'Link' section versus the one of the dependencies.
217         * NEWS: Mention the change.
219 2019-01-04  Bruno Haible  <bruno@clisp.org>
221         pselect: Fix module description.
222         * modules/pselect (Link): Put one link option per line.
224 2019-01-04  Bruno Haible  <bruno@clisp.org>
226         cosl: Fix module description.
227         * modules/cosl (Link): Fix typo.
228         * modules/mathl (configure.ac): Likewise.
230 2019-01-04  Bruno Haible  <bruno@clisp.org>
232         c-xvasprintf: Fix module dependencies.
233         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
235 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
237         bootstrap: die when some submodules are not initialized
238         * build-aux/bootstrap: Make sure all submodules are initialized.
240 2019-01-04  Bruno Haible  <bruno@clisp.org>
242         bitsetv: Fix module dependencies.
243         * lib/bitsetv.c: Include xalloc.h.
244         * modules/bitsetv (Depends-on): Add 'xalloc'.
246 2019-01-04  Bruno Haible  <bruno@clisp.org>
248         xmemdup0: Remove redundant code.
249         * lib/xmemdup0.h (xalloc_die): Remove declaration.
251 2019-01-04  Bruno Haible  <bruno@clisp.org>
253         backupfile: Fix module dependencies.
254         * modules/backupfile (Depends-on): Add 'xalloc'.
256 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
258         bitset, crypto/gc: fix conflicts with Solaris 11
259         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
260         avoid clash with Solaris 11 <sys/bitset.h>.
261         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
262         with Solaris 11 <xorg/gc.h>.
264 2019-01-04  Bruno Haible  <bruno@clisp.org>
266         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
267         Reported by Andy Fiddaman <andy@omniosce.org>.
268         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
270 2019-01-03  Eric Blake  <eblake@redhat.com>
272         maintainer-makefile: fix typo in previous patch
273         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
274         of Roman's work.
276 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
278         maintainer-makefile: prefer $(GREP) over grep
279         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
280         defined.
281         * top/maint.mk: Use it everywhere.
283         maintainer-makefile: split long argument lines
284         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
285         it would be too long for exec limits on BSD.
287 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
289         mkfifo: bring back HAVE_MKFIFO macro
290         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
291         Problem reported by Andrew Janke in:
292         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
294 2018-12-21  Bruno Haible  <bruno@clisp.org>
296         Assume Autoconf >= 2.63.
297         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
298         versions < 2.60.
300 2018-12-21  Bruno Haible  <bruno@clisp.org>
302         memcmp: Mention the clang bug.
303         * tests/test-memcmp.c: Add comment about a known test failure.
304         * doc/posix-functions/memcmp.texi: Mention the clang bug.
306 2018-12-20  Jim Meyering  <meyering@fb.com>
308         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
309         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
310           echo '123-x'|LC_ALL=C grep -E '.\bx'
311         The goal is to revert the first, but reverting it requires to restore
312         the function deleted in the second. I ran this to restore the deleted
313         function:
314           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
315             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
316             | patch -R -p1
317         * lib/dfa.c (charclass_context): Restore deleted function.
318         Reverting the primary commit removes this change:
319         dfa: Simplify a building state
320         * lib/dfa.c (build_state): Simplify a building state.
322 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
324         version-etc: allow zero authors
325         * lib/version-etc.c (version_etc_arn): If no authors are given,
326         omit authorship info instead of dumping core.
328 2018-12-19  Bruno Haible  <bruno@clisp.org>
330         lchown tests: Be more permissive regarding errno values.
331         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
332         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
333         alternative to ENOSYS.
334         * modules/lchown-tests (Depends-on): Add 'errno'.
335         * modules/fchownat-tests (Depends-on): Likewise.
337 2018-12-18  Bruno Haible  <bruno@clisp.org>
339         duplocale: Avoid test failure on AIX 7.
340         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
341         (configure.ac): Invoke gt_FUNC_USELOCALE.
342         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
343         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
344         works.
346 2018-12-18  Bruno Haible  <bruno@clisp.org>
348         localename: Fix test failure on AIX 7.
349         Reported by Assaf Gordon in
350         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
351         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
352         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
353         instead of ac_cv_func_uselocale.
354         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
355         HAVE_USELOCALE.
356         * lib/localename-table.h: Likewise.
357         * lib/localename-table.c: Likewise.
358         * tests/test-localename.c: Likewise.
359         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
361 2018-12-18  Bruno Haible  <bruno@clisp.org>
363         localename: Update comments regarding Cygwin.
364         * lib/localename.c: Update comment.
365         * doc/posix-functions/uselocale.texi: Update platforms list.
366         * doc/posix-functions/newlocale.texi: Likewise.
367         * doc/posix-functions/duplocale.texi: Likewise.
368         * doc/posix-functions/freelocale.texi: Likewise.
370 2018-12-16  Bruno Haible  <bruno@clisp.org>
372         c-stack: Fix for Linux/sparc.
373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
374         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
376 2018-12-16  Bruno Haible  <bruno@clisp.org>
378         localename: Avoid test failure on some glibc systems.
379         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
380         Unset environment variables that might disturb the first setlocale call,
381         and verify that this setlocale call succeeds.
383 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
385         random: Fix build error on native Windows (regression from 2018-06-21).
386         * lib/random.c (__srandom, __initstate, __setstate, __random,
387         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
388         to the symbols without '__' prefix.
390 2018-12-16  Bruno Haible  <bruno@clisp.org>
392         obstack, libc-config: Support HP-UX cc in C99 mode.
393         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
394         compiler, even when in C99 mode.
395         * lib/cdefs.h (__flexarr): Likewise.
396         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
398 2018-12-16  Bruno Haible  <bruno@clisp.org>
400         localename: Fix test failure on OpenBSD >= 6.2.
401         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
402         locale system. Define HAVE_FAKE_LOCALES in this case.
403         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
404         HAVE_USELOCALE.
405         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
406         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
407         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
408         platforms list.
409         * doc/posix-functions/newlocale.texi: Likewise.
410         * doc/posix-functions/duplocale.texi: Update platforms list.
411         * doc/posix-functions/freelocale.texi: Likewise.
413 2018-12-16  Bruno Haible  <bruno@clisp.org>
415         duplocale tests: Re-enable the test on platforms without <monetary.h>.
416         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
417         of the test, on platforms without <monetary.h>.
419 2018-12-16  Bruno Haible  <bruno@clisp.org>
421         localename: Update comments.
422         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
424 2018-12-15  Jim Meyering  <meyering@fb.com>
426         regex: fix indentation
427         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
429 2018-12-15  Bruno Haible  <bruno@clisp.org>
431         openat-safer tests: Avoid test failure on NetBSD 8.
432         * tests/test-openat-safer.c (main): Execute a Linux specific test only
433         on Linux.
435 2018-12-15  Jim Meyering  <meyering@fb.com>
437         regex: work around a bug in glibc-2.27 and prior
438         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
439         assertion for /0|()0|\1|0/.
440         * tests/test-regex.c (main): Add the same test here.
442 2018-12-15  Bruno Haible  <bruno@clisp.org>
444         localename: Fix use of uninitialized shell variable.
445         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
446         gt_cv_locale_solaris114 always before use. Remove assignment without
447         effect.
449 2018-12-15  Bruno Haible  <bruno@clisp.org>
451         dfa tests: Avoid test failure on Alpine Linux.
452         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
453         command found on Alpine Linux.
455 2018-12-15  Jim Meyering  <meyering@fb.com>
457         dfa: avoid new warnings from gcc
458         These would prevent building with -Werror and a Dec snapshot of gcc.
459         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
460         Rename each inner instance to "p".
461         (charclass_context): Remove unused static function.
463 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
465         mkdir-p: improve diagnostic for FUSE mounts
466         Problem reported by Niklas Hambüchen in:
467         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
468         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
469         errno to mkdir errno if the stat errno is likely more interesting.
471 2018-12-14  Bruno Haible  <bruno@clisp.org>
473         hash-map: Add tests.
474         * tests/test-hash_map.c: New file.
475         * modules/hash-map-tests: New file.
477         linkedhash-map: Add tests.
478         * tests/test-linkedhash_map.c: New file.
479         * modules/linkedhash-map-tests: New file.
481         array-map: Add tests.
482         * tests/test-array_map.c: New file.
483         * modules/array-map-tests: New file.
485         xmap: New module.
486         * lib/gl_xmap.h: New file.
487         * lib/gl_xmap.c: New file.
488         * modules/xmap: New file.
490         hash-map: New module.
491         * lib/gl_hash_map.h: New file.
492         * lib/gl_hash_map.c: New file.
493         * modules/hash-map: New file.
495         linkedhash-map: New module.
496         * lib/gl_linkedhash_map.h: New file.
497         * lib/gl_linkedhash_map.c: New file.
498         * lib/gl_anyhash1.h: Update comments.
499         * lib/gl_anyhash2.h: Likewise.
500         * modules/linkedhash-map: New file.
502         array-map: New module.
503         * lib/gl_array_map.h: New file.
504         * lib/gl_array_map.c: New file.
505         * modules/array-map: New file.
507         map: New module.
508         * lib/gl_map.h: New file.
509         * lib/gl_map.c: New file.
510         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
511         conflict with gl_map.h.
512         * modules/map: New file.
514 2018-12-13  Bruno Haible  <bruno@clisp.org>
516         select tests: Avoid test failure on Cygwin.
517         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
519 2018-12-13  Bruno Haible  <bruno@clisp.org>
521         localtime-buffer: Avoid endless recursion in localtime and gmtime.
522         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
524 2018-12-13  Bruno Haible  <bruno@clisp.org>
526         localeconv tests: Avoid test failure on Cygwin.
527         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
528         'mon_grouping' tests.
530 2018-12-11  Bruno Haible  <bruno@clisp.org>
532         omap: Don't dispose the old value when the function returns it.
533         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
534         here.
535         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
536         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
537         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
538         here.
540         array-omap, avltree-omap, rbtree-omap: Tweak style.
541         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
542         false.
543         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
545         rbtree-omap: Add tests.
546         * tests/test-rbtree_omap.c: New file.
547         * modules/rbtree-omap-tests: New file.
549         avltree-omap: Add tests.
550         * tests/test-avltree_omap.c: New file.
551         * modules/avltree-omap-tests: New file.
553         array-omap: Add tests.
554         * tests/test-array_omap.c: New file.
555         * modules/array-omap-tests: New file.
557         xomap: New module.
558         * lib/gl_xomap.h: New file.
559         * lib/gl_xomap.c: New file.
560         * modules/xomap: New file.
562         rbtree-omap: New module.
563         * lib/gl_rbtree_omap.h: New file.
564         * lib/gl_rbtree_omap.c: New file.
565         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
566         Parameterize.
567         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
568         * modules/rbtree-omap: New file.
569         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
570         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
572         avltree-omap: New module.
573         * lib/gl_avltree_omap.h: New file.
574         * lib/gl_avltree_omap.c: New file.
575         * lib/gl_avltree_ordered.h: Code moved to here from
576         lib/gl_avltree_oset.c. Parameterize.
577         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
578         * lib/gl_anytree_omap.h: New file.
579         * modules/avltree-omap: New file.
580         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
581         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
583         array-omap: New module.
584         * lib/gl_array_omap.h: New file.
585         * lib/gl_array_omap.c: New file.
586         * modules/array-omap: New file.
588         omap: New module.
589         * lib/gl_omap.h: New file.
590         * lib/gl_omap.c: New file.
591         * modules/omap: New file.
593 2018-12-11  Bruno Haible  <bruno@clisp.org>
595         hash-set, linkedhash-set: Reduce code duplication.
596         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
597         lib/gl_anyhash_set1.h.
598         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
599         lib/gl_anyhash_set2.h. Parameterize.
600         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
601         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
602         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
603         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
604         * lib/gl_rbtreehash_list.c: Likewise.
605         * lib/gl_linkedhash_list.c: Likewise.
606         (hash_resize_after_add): Remove function.
607         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
608         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
609         * gl_hash_set.c: Likewise.
610         * modules/avltreehash-list (Files, Makefile.am): Update file list.
611         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
612         * modules/linkedhash-list (Files, Makefile.am): Likewise.
613         * modules/linkedhash-set (Files, Makefile.am): Likewise.
614         * modules/hash-set (Files, Makefile.am): Likewise.
616 2018-12-11  Bruno Haible  <bruno@clisp.org>
618         array-set: Optimize.
619         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
620         outside the loop, not inside the loop.
622 2018-12-11  Bruno Haible  <bruno@clisp.org>
624         times: Fix tests.
625         * tests/test-times.c (doublecmp): Implement a total order.
627 2018-12-11  Bruno Haible  <bruno@clisp.org>
629         array-set, linkedhash-set, hash-set: Fix tests.
630         * tests/test-array_set.c (cmp_objects_in_array): New function.
631         (check_equals): Use it.
632         * tests/test-hash_set.c: Likewise.
633         * tests/test-linkedhash_set.c: Likewise.
635 2018-12-08  Bruno Haible  <bruno@clisp.org>
637         Fix comments.
638         * lib/gl_list.h (gl_list_free): Clarify what it does.
639         * lib/gl_oset.h (gl_oset_free): Likewise.
640         * lib/gl_set.h (gl_set_free): Likewise.
641         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
642         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
643         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
644         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
646 2018-12-03  Bruno Haible  <bruno@clisp.org>
648         hash-set: Add tests.
649         * tests/test-hash_set.c: New file.
650         * modules/hash-set-tests: New file.
652         linkedhash-set: Add tests.
653         * tests/test-linkedhash_set.c: New file.
654         * modules/linkedhash-set-tests: New file.
656         array-set: Add tests.
657         * tests/test-array_set.c: New file.
658         * modules/array-set-tests: New file.
660         xset: New module.
661         * lib/gl_xset.h: New file.
662         * lib/gl_xset.c: New file.
663         * modules/xset: New file.
665         hash-set: New module.
666         * lib/gl_hash_set.h: New file.
667         * lib/gl_hash_set.c: New file.
668         * modules/hash-set: New file.
670         linkedhash-set: New module.
671         * lib/gl_linkedhash_set.h: New file.
672         * lib/gl_linkedhash_set.c: New file.
673         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
674         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
675         * lib/gl_anyhash_primes.h: New file, extracted from
676         lib/gl_anyhash_list2.h.
677         * lib/gl_anyhash_list2.h: Include it.
678         (primes, next_prime): Remove definitions.
679         * modules/linkedhash-set: New file.
680         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
681         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
682         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
683         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
684         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
685         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
687         array-set: New module.
688         * lib/gl_array_set.h: New file.
689         * lib/gl_array_set.c: New file.
690         * modules/array-set: New file.
692         set: New module.
693         * lib/gl_set.h: New file.
694         * lib/gl_set.c: New file.
695         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
696         gl_set.h.
697         * modules/set: New file.
699 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
701         bison: don't force the Yacc mode
702         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
703         errors when Bison features are used in the grammar file.  Some of
704         these features (such as %expect) were flagged non-yacc recently.  Most
705         of the time, -y is actually used to please Automake's ylwrap which
706         expects the output to be y.tab.c.
707         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
709 2018-12-01  Bruno Haible  <bruno@clisp.org>
711         gnupload: Document short options.
712         * build-aux/gnupload (usage): Document the short options.
714 2018-11-28  Ben Elliston  <bje@gnu.org>
716         gnupload: Support option -h as alias of --help.
717         * build-aux/gnupload: Support -h.
719 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
721         memrchr: port better to clang
722         * lib/memrchr.c (__memrchr): Cast to void * instead of to
723         longword *, to pacify clang -Wcast-align (Bug#33544).
725 2018-11-29  Eric Blake  <eblake@redhat.com>
727         docs: mention printf %m considerations
728         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
729         is not portable, and is easy enough to work around.
730         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
731         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
732         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
733         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
734         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
735         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
736         * doc/posix-functions/printf.texi (printf): Likewise.
737         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
738         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
739         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
740         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
741         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
742         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
743         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
744         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
745         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
746         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
747         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
748         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
750 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
752         bitset: rename ebitset/expandable.* as tbitset/table.*
753         See
754         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
755         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
756         * lib/bitset/table.h, lib/bitset/table.c: these.
757         Rename all the ebitset* symbols as tbitset*.
758         Adjust dependencies.
760 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
762         bitset: check the operations
763         * tests/test-bitset.c (bitset_random): New.
764         Use it.
765         * lib/bitset/expandable.c (ebitset_not): Fix typo.
767 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
769         bitset: properly use false/true instead of 0/1 for Booleans
770         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
771         0/1, as Booleans.
773 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
775         bitset: rename BITSET_VARRAY as BITSET_VECTOR
776         For consistency with the name of the file.
777         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
778         * lib/bitset/stats.c, lib/bitset/vector.c
779         (BITSET_VARRAY): Rename as...
780         (BITSET_VECTOR): this.
782 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
784         strerror_r-posix: memmove, not memcpy
785         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
786         since the source and destination might overlap in the call
787         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
788         Simplify.
790 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
792         bitsetv: new module
793         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
795 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
797         bitset: add tests and doc
798         First stabs at providing a documentation and test for the bitset
799         module.
800         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
802 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
804         bitset: new module
805         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
806         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
807         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
808         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
809         * lib/bitset/vector.h, modules/bitset:
810         New.
812 2018-11-23  Bruno Haible  <bruno@clisp.org>
814         localename: Fix gettext test failures on mingw.
815         * lib/localename.c (gl_locale_name_posix): Convert the result of
816         gl_locale_name_environ to XPG syntax.
818 2018-11-23  Karl Berry  <karl@freefriends.org>
820         * config/srclistvars.txt,
821         * config/srclist.txt: remove all gettext references;
822         the gettext maintainers will sync as needed.
824 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
826         mktime: add libc-config dependency
827         I missed this when we synced from glibc.
828         * modules/mktime (Depends-on): Add libc-config.
830 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
832         longlong: fix comment typo
833         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
835 2018-11-11  Bruno Haible  <bruno@clisp.org>
837         havelib: Remove the need to include asm-underscore.m4.
838         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
839         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
840         gl_HOST_CPU_C_ABI.
841         * modules/havelib (Files): Add host-cpu-c-abi.m4.
842         (Depends-on): Remove host-cpu-c-abi.
844 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
846         parse-datetime: simplify test for mktime failure
847         * lib/parse-datetime.y (mktime_ok): Simplify.
848         Remove args TZ and T; no longer needed.  Callers changed.
850         posixtm: simplify test for mktime failure
851         * lib/posixtm.c (posixtime): Simplify.
853         nstrftime: simplify test for mktime failure
854         * lib/nstrftime.c (__strftime_internal): Simplify.
856 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
858         gnulib-common.m4: port _Noreturn to C++
859         Problem reported by Akim Demaille in:
860         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
861         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
862         Merge adjustments from _Noreturn.h and from glibc into the non-C++
863         version.
864         * lib/_Noreturn.h: Match gnulib-common.
866 2018-10-30  Bruno Haible  <bruno@clisp.org>
868         gnu-make: Fix for NetBSD 8 'make'.
869         Reported by Reuben Thomas in
870         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
871         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
872         output, ignoring exit codes.
874 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
876         maintainer-makefile: fix syntax-check rule for "same.h"
877         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
878         for 'same_nameat', too.
880 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
882         havelib: fix nested ‘configure’ chatter
883         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
884         AC_CACHE_CHECK calls, which resulted in confusing output like
885         “checking for the common suffixes of directories in the library
886         search path... checking for 64-bit host... no lib,lib”.
888         backupfile: tweak for better code
889         * lib/backupfile.c: Sort include directives, and remove
890         unnecessary <limits.h> include.
891         (FALLTHROUGH): New macro, copied from other modules.
892         (backupfile_internal): Use it to avoid code duplication.
893         This lets GCC 8.2.1 generate better code by inlining the
894         call to check_extension.
896 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
898         backupfile: new dir_fd args
899         New module opendirat with code taken from fts.
900         Use this module to let backupfile use a directory file descriptor.
901         * NEWS: Document the incompatible change.
902         * lib/backup-find.c (find_backup_file_name):
903         * lib/backup-rename.c (backup_file_rename):
904         New arg DIR_FD.
905         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
906         (SIZE_MAX): Remove.
907         Include opendirat.h rather than dirent--.h.
908         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
909         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
910         (backupfile_internal): New arg DIR_FD.  All callers changed.
911         * lib/fts.c: Include opendirat.h.
912         (opendirat): Move to opendirat.c.
913         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
914         * modules/backupfile (Depends-on): Remove dirfd, opendir.
915         Add opendirat.
916         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
917         Add opendirat.
919 2018-10-23  Bruno Haible  <bruno@clisp.org>
921         localename: Simplify support for per-thread locales on Solaris 11.4.
922         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
923         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
924         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
925         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
926         specific code.
927         * lib/localename-table.h: Update comments.
928         * lib/localename-table.c: Update comments.
929         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
930         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
931         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
932         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
933         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
934         HAVE_NAMELESS_LOCALES here.
935         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
936         m4/intlsolaris.m4.
937         * modules/gettext (Files): Likewise.
939 2018-10-22  Bruno Haible  <bruno@clisp.org>
941         std-gnu11: Support Autoconf versions < 2.64.
942         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
943         when _AC_DO_LIMIT does not exist.
945 2018-10-22  Bruno Haible  <bruno@clisp.org>
947         Assume Autoconf >= 2.63.
948         * DEPENDENCIES: Mention the requirement.
950         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
951         (func_get_filelist): Don't list m4/onceonly.m4 any more.
952         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
953         * m4/onceonly.m4: Remove file.
955         * m4/openmp.m4: Remove file.
956         * modules/openmp (Files): Remove m4/openmp.m4.
958         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
959         htmldir, dvidir, pdfdir, psdir, localedir.
960         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
962         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
963         Autoconf < 2.60.
964         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
965         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
967         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
968         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
969         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
971         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
972         exists.
973         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
975         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
976         Autoconf < 2.61.
978         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
979         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
980         Autoconf >= 2.52.
982         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
983         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
984         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
986 2018-10-22  Bruno Haible  <bruno@clisp.org>
988         Assume Automake >= 1.11.
989         * m4/configmake.m4: Update comments.
990         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
991         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
992         of 'eval'.
993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
994         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
995         requires Automake >= 1.11.
997 2018-10-22  Bruno Haible  <bruno@clisp.org>
999         localename: Fix typo in comment.
1000         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
1002 2018-10-22  Bruno Haible  <bruno@clisp.org>
1004         Fix failure of 'gnulib-tool --create-testdir' with all modules.
1005         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
1007 2018-10-21  Bruno Haible  <bruno@clisp.org>
1009         locale: Ease integration with GNU libintl.
1010         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
1011         GNULIB_defined_freelocale): New macros.
1013 2018-10-21  Bruno Haible  <bruno@clisp.org>
1015         localename: Fine-tune support for per-thread locales on Solaris 11.4.
1016         * lib/localename-table.h: New file, extracted from lib/localename.c.
1017         * lib/localename-table.c: Likewise.
1018         * lib/localename.c: Include localename-table.h.
1019         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
1020         locale_hash_function instead of pointer_hash.
1021         * modules/localename (Files): Add lib/localename-table.h,
1022         lib/localename-table.c.
1023         (lib_SOURCES): Add localename-table.c.
1024         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
1025         for Solaris 11.4 locale system only on Solaris. Test for it
1026         independently whether getlocalename_l exists.
1027         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
1028         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
1029         HAVE_NAMELESS_LOCALES.
1030         * modules/gettext (Files): Add m4/intlsolaris.m4.
1032 2018-10-21  Bruno Haible  <bruno@clisp.org>
1034         Small update from gettext.
1035         * m4/intl.m4: Update from gettext:
1036         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
1037         mode on AIX.
1038         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
1039         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
1041 2018-10-16  Bruno Haible  <bruno@clisp.org>
1043         mountlist: Remove support for Cray with UNICOS 9.
1044         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1045         MOUNTED_LISTMNTENT.
1046         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
1048 2018-10-16  Bruno Haible  <bruno@clisp.org>
1050         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
1051         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
1052         STAT_STATFS2_FS_DATA.
1053         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
1054         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1055         MOUNTED_GETMNT.
1056         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
1057         * lib/getloadavg.c (decstation): Remove definition and case.
1058         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
1059         * lib/getgroups.c: Likewise.
1060         * doc/posix-functions/getgroups.texi: Likewise.
1061         * lib/time.in.h: Update comments.
1063 2018-10-16  Bruno Haible  <bruno@clisp.org>
1065         getloadavg: Remove support for ConvexOS.
1066         * lib/getloadavg.c: Remove convex case.
1068 2018-10-16  Bruno Haible  <bruno@clisp.org>
1070         getloadavg: Remove support for Sony NEWS.
1071         * lib/getloadavg.c: Remove sony_news case.
1073 2018-10-16  Bruno Haible  <bruno@clisp.org>
1075         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
1076         * lib/fsusage.c: Remove _SEQUENT_ case.
1077         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1078         * lib/mountlist.c: Don't test for MNTTABNAME.
1079         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
1080         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
1081         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
1082         * lib/stat-size.h: Don't mention the Sequent bug.
1083         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
1085 2018-10-16  Bruno Haible  <bruno@clisp.org>
1087         fsusage: Remove support for AIX 3.
1088         * lib/fsusage.c: Remove code for AIX 3.
1089         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
1091 2018-10-16  Bruno Haible  <bruno@clisp.org>
1093         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
1094         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
1095         * lib/fsusage.c: Remove code for AIX PS/2.
1096         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
1097         * lib/getloadavg.c: Likewise.
1099 2018-10-16  Bruno Haible  <bruno@clisp.org>
1101         getloadavg: Remove support for HP-UX on m68k.
1102         * lib/getloadavg.c: Remove hp9000s300 case.
1104 2018-10-16  Bruno Haible  <bruno@clisp.org>
1106         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
1107         * lib/fsusage.c: Remove DOLPHIN case.
1108         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1109         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
1111 2018-10-16  Bruno Haible  <bruno@clisp.org>
1113         getloadavg: Remove support for Alliant FX/2800.
1114         * lib/getloadavg.c: Remove alliant case.
1116 2018-10-16  Bruno Haible  <bruno@clisp.org>
1118         getloadavg: Remove support for tek4300.
1119         * lib/getloadavg.c: Remove tek4300 case.
1121 2018-10-16  Bruno Haible  <bruno@clisp.org>
1123         getloadavg: Remove support for Ardent.
1124         * lib/getloadavg.c: Remove ardent case.
1126 2018-10-16  Bruno Haible  <bruno@clisp.org>
1128         mountlist: Remove support for SVR2.
1129         Reported by Andrew Borodin <aborodin@vmail.ru> in
1130         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
1131         * lib/mountlist.c: Remove MOUNTED_FREAD case.
1132         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1133         MOUNTED_FREAD.
1135 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1137         libc-config: merge from glibc
1138         * lib/cdefs.h (__glibc_has_attribute): New macro.
1140         regex: depend on libc-config
1141         * modules/regex (Depends-on): Add libc-config.
1142         This is needed after the recent autoupdate from glibc.
1144 2018-10-14  Bruno Haible  <bruno@clisp.org>
1146         localename: Add support for per-thread locales on Solaris 11.4.
1147         * lib/locale.in.h (newlocale, freelocale): New declarations.
1148         (duplocale): Declare also when the 'localename' module requests it.
1149         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
1150         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
1151         (struniq): Update.
1152         (struct locale_categories_names, struct locale_hash_node): New types.
1153         (LOCALE_HASH_TABLE_SIZE): New constant.
1154         (locale_hash_table, locale_lock): New variables.
1155         (pointer_hash, get_locale_t_name): New functions.
1156         (newlocale, duplocale, freelocale): New overridden functions.
1157         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
1158         * m4/intlsolaris.m4: New file.
1159         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
1160         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
1161         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
1162         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
1163         declared.
1164         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
1165         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1166         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
1167         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1168         * modules/localename (Files): Add intlsolaris.m4.
1169         (Depends-on): Add 'locale'.
1170         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
1171         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
1172         the signatures.
1174 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
1176         timevar: use gethrxtime to get wall clock time
1177         clock_gettime is not portable.  gethrxtime takes the best available
1178         option to get the wall clock time, including clock_gettime (monotonic
1179         clock), and gettime (non monotonic).
1180         Also, using xtime_t instead of float preserves the precision.
1181         Suggested by Bruno Haible.
1182         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
1183         * modules/timevar (Depends-on): We need gethrxtime.
1184         We no longer use times().
1185         (Link): Update.
1186         * lib/timevar.h (timevar_time_def): Use xtime_t.
1187         * lib/timevar.c (set_to_current_time): Use gethrxtime.
1188         (timevar_print): Instead of checking whether the timings themselves
1189         are large enough for the timevar to be printed, check the percentages.
1191 2018-10-14  Bruno Haible  <bruno@clisp.org>
1193         wcsnrtombs: Work around Solaris 11.4 bug.
1194         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
1195         macro.
1196         (gl_FUNC_WCSNRTOMBS): Invoke it.
1197         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
1199 2018-10-14  Bruno Haible  <bruno@clisp.org>
1201         mbsnrtowcs: Work around Solaris 11.4 bug.
1202         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
1203         macro.
1204         (gl_FUNC_MBSNRTOWCS): Invoke it.
1205         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
1207 2018-10-14  Bruno Haible  <bruno@clisp.org>
1209         doc: Update for Solaris 11.4.
1210         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
1211         mention Solaris 11.4.
1212         * m4/printf.m4: Update comments about Solaris.
1213         * m4/log.m4: Likewise.
1214         * m4/log10.m4: Likewise.
1215         * m4/logb.m4: Likewise.
1216         * m4/logbf.m4: Likewise.
1217         * m4/logbl.m4: Likewise.
1218         * m4/rename.m4: Likewise.
1219         * m4/wcrtomb.m4: Likewise.
1220         * m4/hostent.m4: Likewise.
1221         * m4/servent.m4: Likewise.
1223 2018-10-14  Bruno Haible  <bruno@clisp.org>
1225         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
1226         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
1227         pointer.
1228         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
1229         pointer.
1230         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
1231         pointer.
1232         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
1233         pointer.
1234         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
1235         pointer.
1237 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1239         bootstrap: fix wget command for po files.
1240         * build-aux/bootstrap (po_download_command_format): Fix comment,
1241         and adjust callers.
1243 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1245         timevar: improve the output format
1246         Suggested by Bruno Haible.
1247         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
1248         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
1249         wall, since its resolution is much higher.
1251 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1253         timevar: expect that getrusage is available.
1254         Don't keep both times and getrusage as backend: both are guaranteed by
1255         gnulib, a single one suffices.  Using getrusage is open to possibly
1256         tracking other types of resources in the future.
1257         * modules/timevar (Depends-on): Add getrusage.
1258         (configure.ac): Remove gl_TIMEVAR.
1259         (Files): Remove m4/timevar.m4.
1260         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
1261         * lib/timevar.h (timevar_enabled): Clarify documentation.
1262         * lib/timevar.c: Remove all the code about times.
1263         Remove all the CPP guards about getrusage: expect it to be present
1264         (courtesy of gnulib).
1266 2018-10-12  Bruno Haible  <bruno@clisp.org>
1268         mountlist: Improve support for Solaris in 64-bit mode.
1269         Reported by David Wood <David.Wood@deshaw.com> in
1270         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
1271         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
1272         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
1273         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
1275 2018-10-12  Bruno Haible  <bruno@clisp.org>
1277         mountlist: Add support for Minix.
1278         Reported by Assaf Gordon in
1279         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
1280         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
1281         AC_CHECK_FUNCS to check for 'getmntinfo'.
1282         * lib/mountlist.c: Update comments.
1284 2018-10-12  Bruno Haible  <bruno@clisp.org>
1286         Make better use of Autoconf.
1287         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
1288         * m4/manywarnings.m4: Likewise.
1289         * m4/manywarnings-c++.m4: Likewise.
1290         * m4/socklen.m4: Likewise.
1291         * m4/sockpfaf.m4: Likewise.
1292         * m4/stdarg.m4: Likewise.
1293         * m4/visibility.m4: Likewise.
1294         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1295         indentation.
1296         * m4/ls-mntd-fs.m4: Likewise.
1298 2018-10-11  Bruno Haible  <bruno@clisp.org>
1300         mountlist: Modernize platform lists.
1301         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1302         platforms, deemphasizing the obsolete ones.
1303         * lib/mountlist.c: Likewise.
1305 2018-10-11  Bruno Haible  <bruno@clisp.org>
1307         getprogname: Add support for 32-bit programs on HP-UX.
1308         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1309         try the similar functions 32-bit programs on 64-bit HP-UX.
1311 2018-10-11  Bruno Haible  <bruno@clisp.org>
1313         getprogname: Work around program name truncation when possible.
1314         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1315         possibly use pst_cmd instead.
1317 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1319         fts: cleanup after FTS_NOATIME removal
1320         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1321         (FTS_STOP): Shrink to minimal values.  We don’t need to
1322         worry about binary compatibility in Gnulib, and the old way
1323         of doing things had a hole in the user options that caused
1324         FTS_OPTIONMASK to not work as desired.
1326 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1328         fts: remove FTS_NOATIME
1329         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1330         We cannot guarantee that O_NOATIME works: e.g. openat fails
1331         with EPERM if the effective user ID of the caller does not match
1332         the owner of the file and the caller is not privileged.
1333         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1334         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1335         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1336         (FTS_OPTIONMASK): Adjust.
1337         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1338         (fd_ring_check): Likewise.
1340 2018-10-08  Bruno Haible  <bruno@clisp.org>
1342         csharpcomp*, csharpexec*: Remove support for pnet.
1343         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1344         HAVE_CSCC.
1345         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1346         Don't test HAVE_CSCC.
1347         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1348         (compile_csharp_class): Don't invoke it.
1349         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1350         HAVE_ILRUN.
1351         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1352         Don't test HAVE_ILRUN.
1353         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1354         (execute_csharp_program): Don't invoke it.
1355         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1356         any more.
1358 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1360         renameatu: prefer renameat2 to syscall
1361         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1362         Use renameat2 instead of syscall (Bug#32796).
1363         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1365 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1367         bootstrap, gnulib-tool: use https instead of insecure rsync
1368         * build-aux/bootstrap (download_po_files, po_download_command_format):
1369         Don't try using rsync; always use wget over https to fetch PO files.
1370         * gnulib-tool (func_import): Likewise.
1371         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1373 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1375         bootstrap, gnulib-tool: correct the translations wget command
1376         * build-aux/bootstrap (po_download_command_format2): Restrict
1377         recursion to a single level.
1378         * gnulib-tool (func_import): Likewise.
1379         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1381 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1383         doc: the gnulib snapshots are not maintained
1384         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1386 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1388         timevar: add to lib_SOURCES
1389         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1391 2018-10-07  Bruno Haible  <bruno@clisp.org>
1393         dirent: Update documentation.
1394         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1396 2018-10-05  Bruno Haible  <bruno@clisp.org>
1398         strpbrk: Make it possible to namespace the defined symbol.
1399         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1401 2018-10-05  Bruno Haible  <bruno@clisp.org>
1403         strcspn: Make it possible to namespace the defined symbol.
1404         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1406 2018-10-05  Bruno Haible  <bruno@clisp.org>
1408         raise: Make it possible to namespace the defined symbol.
1409         * lib/raise.c (raise): Undefine only after the replacement function has
1410         been defined.
1411         (raise): Renamed from rpl_raise.
1412         (raise_nothrow): Move to the end of the compilation unit.
1414 2018-10-05  Bruno Haible  <bruno@clisp.org>
1416         memcmp: Make it possible to namespace the defined symbol.
1417         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1419 2018-10-05  Bruno Haible  <bruno@clisp.org>
1421         explicit_bzero: Make it possible to namespace the defined symbol.
1422         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1423         glibc.
1425 2018-10-05  Bruno Haible  <bruno@clisp.org>
1427         mkdir-p: Depend on 'mkdir'.
1428         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1430 2018-10-05  Bruno Haible  <bruno@clisp.org>
1432         tempname: Depend on 'mkdir'.
1433         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1434         at <https://savannah.gnu.org/bugs/?33379>.
1435         * modules/tempname (Depends-on): Add 'mkdir'.
1437 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1439         timevar: rely on gnulib modules for time portability.
1440         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1441         * m4/timevar.m4: Don't check for clock_t and struct tms,
1442         guaranteed by gnulib.
1443         * lib/timevar.h: Use extern "C" protection.
1444         Include <stdio.h> for FILE.
1445         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1446         they are guaranteed by gnulib.
1447         Remove uses of clock as (now useless) fallback.
1449 2018-10-04  Bruno Haible  <bruno@clisp.org>
1451         sh-filename: New module.
1452         * m4/sh-filename.m4: New file.
1453         * modules/sh-filename: New file.
1454         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1455         "/bin/sh".
1456         * tests/test-posix_spawn1.c (main): Likewise.
1457         * tests/test-posix_spawn2.c (main): Likewise.
1458         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1459         is_envjavac_gcj43): Likewise.
1460         * lib/javaexec.c (execute_java_class): Likewise.
1461         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1462         * modules/posix_spawnp-tests (Depends-on): Likewise.
1463         * modules/javacomp (Depends-on): Likewise.
1464         * modules/javaexec (Depends-on): Likewise.
1466 2018-10-04  Bruno Haible  <bruno@clisp.org>
1468         spawn-pipe tests: Avoid test failure on native Windows.
1469         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1470         that fd 2 is closed.
1472 2018-10-04  Bruno Haible  <bruno@clisp.org>
1474         fcntl: Make it possible to namespace the defined symbol.
1475         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1476         been defined.
1477         (fcntl): Renamed from rpl_fcntl.
1478         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1479         from fcntl.
1480         (klibc_fcntl): Move to the end of the compilation unit.
1482 2018-10-02  Bruno Haible  <bruno@clisp.org>
1484         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1485         * tests/test-vasnprintf.c (test_function): Change the test added on
1486         2018-09-23 to check only the 18 most significant digits.
1488         vasnprintf tests: Avoid test failure on Cygwin.
1489         * tests/test-vasnprintf.c (test_function): Change the test added on
1490         2018-09-23 to check only the 42 most significant digits.
1492 2018-10-01  Bruno Haible  <bruno@clisp.org>
1494         mkostemp, mkostemps: Update documentation.
1495         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1496         * doc/glibc-functions/mkostemps.texi: Likewise.
1498 2018-10-01  Tom Tromey  <tom@tromey.com>
1500         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1501         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1502         on OS X.
1504 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1506         hmac-*: refactor to remove repetitive code
1507         * lib/hmac.c: A new parameterized single implementation.
1508         * lib/hmac-md5.c: Define parameters and include implementation.
1509         * lib/hmac-sha1.c: Likewise.
1510         * lib/hmac-sha256.c: Likewise.
1511         * lib/hmac-sha512.c: Likewise.
1512         * modules/crypto/hmac-md5: Reference the new implementation file.
1513         * modules/crypto/hmac-sha1: Likewise.
1514         * modules/crypto/hmac-sha256: Likewise.
1515         * modules/crypto/hmac-sha512: Likewise.
1516         * tests/test-hmac-md5.c: Refactor common code to a single function.
1517         * tests/test-hmac-sha1.c: Likewise.
1518         * tests/test-hmac-sha256.c: Likewise.
1519         * tests/test-hmac-sha512.c: Likewise.
1521 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1523         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1524         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1525         key length to that output by sha512, not the blocksize.
1526         Otherwise uninitialized data from the stack
1527         is used when computing the hash.
1528         * tests/test-hmac-sha512.c: Add a shortened key test case.
1529         Reported at https://github.com/coreutils/gnulib/pull/5
1531 2018-09-30  Bruno Haible  <bruno@clisp.org>
1533         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1534         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1535         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1536         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1537         'unsigned int' before comparison with an unsigned value.
1539 2018-09-30  Bruno Haible  <bruno@clisp.org>
1541         grantpt: Remove unnecessary dependency.
1542         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
1544 2018-09-30  Bruno Haible  <bruno@clisp.org>
1546         timevar: Small tweaks.
1547         * lib/timevar.h: Fix comments. Add parameter names to function
1548         declarations.
1549         * lib/timevar.c: Include timevar.h immediately after config.h.
1550         * lib/timevar.def: Fix comments.
1551         * modules/timevar (Maintainer): List Akim Demaille.
1553 2018-09-30  Bruno Haible  <bruno@clisp.org>
1555         timevar: Include documentation in gnulib manual.
1556         * doc/timevar.texi: Change node and section name to 'Profiling of
1557         program phases'.
1558         In the code snippets, tweak the #includes and use GNU coding style.
1559         * doc/gnulib.texi: Include timevar.texi.
1561 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
1563         timevar: import from Bison.
1564         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
1565         New files.
1566         * lib/timevar.def: New file.
1567         * doc/timevar.texi: New file.
1569 2018-09-26  Bruno Haible  <bruno@clisp.org>
1571         javacomp-script, javacomp: Add preliminary support for Java 12..17.
1572         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
1573         * lib/javacomp.c (default_target_version): Likewise.
1575 2018-09-26  Bruno Haible  <bruno@clisp.org>
1577         javacomp-script, javacomp: Add support for Java 11.
1578         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
1579         target-version 11.
1580         * lib/javaversion.h: Update comments.
1581         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1582         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1583         TARGET_VERSION_BOUND, target_version_index,
1584         corresponding_classfile_version): Accept source_version 11 and
1585         target_version 11.
1586         * lib/javacomp.h: Update comments accordingly.
1588 2018-09-23  Bruno Haible  <bruno@clisp.org>
1590         vasnprintf: Fix heap memory overrun bug.
1591         Reported by Ben Pfaff <blp@cs.stanford.edu> in
1592         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
1593         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
1594         memory.
1595         * tests/test-vasnprintf.c (test_function): Add another test.
1597 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1599         maint: mktime.c now shared with glibc
1600         * config/srclist.txt: intprops.h, timegm.c and mktime.c
1601         are now the same in Gnulib and glibc.
1603         mktime: fix _LIBC typo
1604         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
1606 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1608         dfa: optimization for state merge
1609         * lib/dfa.c (merge2): New function.
1610         (merge_nfa_state): Use it.
1612 2018-09-18  Jim Meyering  <meyering@fb.com>
1614         dfa: trivial comment fix: s/is/if/
1615         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
1617 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1619         dfa: use more-informative function name
1620         * lib/dfa.c (maybe_disable_superset_dfa):
1621         Rename from dfautf8noss.  Use change.
1623         dfa: tweak allocation performance
1624         * lib/dfa.c (merge_nfa_state, dfaoptimize):
1625         Prefer ptrdiff_t for indexes some more.
1626         Use char for flags, as it’s wide enough.
1627         Allocate queue and flags together, with one malloc call.
1628         No need to use xnmalloc since the multiplication and
1629         addition cannot overflow (it’s already been checked by
1630         earlier allocation).  Prefer memset to open-coding.
1632         dfa: prune states as we go
1633         * lib/dfa.c (prune): Remove.
1634         dfa: reorder enum for efficiency
1635         (merge_nfa_state): Prune as we go instead of at the end.
1636         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
1638         * lib/dfa.c (END): Now -1 again.  Reorder other elements
1639         of the enumeration to make it easier for GCC to generate
1640         efficient code by using fewer comparisons to check for
1641         ranges of values.
1642         (atom): Take advantage of the reordering.
1644 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1646         dfa: optimize alternation in NFA
1647         Even when similar states exist in alternation, the DFA treats them
1648         as separate items, which may complicate the transition in NFA and
1649         cause slowdown.  This change assembles the states into one.  For
1650         example, ab|ac is changed into a(b|c).  This change speeds-up
1651         matching for many branched patterns.  For example, grep speeds up
1652         more than 30× in:
1654           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
1655           time -p env LC_ALL=C grep -vf in in
1657         * lib/dfa.c (prune): New function.
1658         (merge_nfa_state): New function.  It merges similar NFA states.
1659         (dfaoptimize): New function.  It seeks merged and removed nodes.
1660         (dfaanalyze): Call new function.
1661         (dfautf8noss): Change name from dfaoptimize because of addition of new
1662         function.
1663         (dfacomp): Update caller.
1665         dfa: simplify initial state
1666         Simplifying the initial state enables easier optimization of the NFA.
1667         * lib/dfa.c (enum token): Add new element BEG.
1668         (prtok): Adjust due to adding element BEG.
1669         (dfaparse): Put BEG at a head of tokens.
1670         (state_index): Adjust due to adding element BEG.
1671         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
1672         build initial state.
1673         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
1675 2018-09-18  Bruno Haible  <bruno@clisp.org>
1677         file-has-acl: Fix test failure on Cygwin 2.9.
1678         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
1679         * lib/acl-internal.h: Likewise.
1680         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
1681         * lib/acl-internal.c: Update comments regarding Cygwin.
1682         * lib/acl_entries.c: Likewise.
1683         * lib/file-has-acl.c: Likewise.
1684         (file_has_acl): For Cygwin, use a different way to determine whether
1685         the "default" ACL of a directory is nontrivial.
1686         * lib/get-permissions.c: Update comments regarding Cygwin.
1687         * lib/set-permissions.c: Likewise.
1689 2018-09-18  Bruno Haible  <bruno@clisp.org>
1691         stat-time tests: Fix test failure on Cygwin.
1692         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
1694 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1696         doc: OS X 10.11 lacked ns time functions
1697         According to <https://github.com/zeromq/libzmq/issues/2175>,
1698         nanosecond-resolution timestamp functions were introduced
1699         in macOS 10.12, so document the last version (OS X 10.11)
1700         where they were absent.
1702         gettime: nanotime never existed
1703         Problem reported by Bruno Haible in:
1704         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
1705         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
1706         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
1708 2018-09-18  Bruno Haible  <bruno@clisp.org>
1710         doc: Update statement about target platforms.
1711         Reported by Simon Sobisch.
1712         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
1713         restrictions on MSVC versions.
1715 2018-09-18  Bruno Haible  <bruno@clisp.org>
1717         posix_spawn tests: Fix link error on 64-bit Cygwin.
1718         * tests/test-posix_spawn1.c (environ): Remove declaration.
1719         * tests/test-posix_spawn2.c (environ): Likewise.
1720         * tests/test-posix_spawn3.c (environ): Likewise.
1721         * tests/test-posix_spawn4.c (environ): Likewise.
1722         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
1723         * modules/posix_spawnp-tests (Depends-on): Likewise.
1725 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1727         timespec: new function current_timespec
1728         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
1729         and don’t worry about it failing on a CLOCK_REALTIME arg.
1730         POSIX requires it to succeed and I don’t know of any
1731         counterexamples where the fallbacks would work.
1732         (current_timespec): New function, taken from Emacs.  It is more
1733         convenient than gettime, and can help register allocation.
1734         * lib/timespec.h: Include arg-nonnull.h.
1735         (current_timespec): New declaration.
1736         (gettime, settime): Declare args to be nonnull.
1737         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
1739 2018-09-16  Bruno Haible  <bruno@clisp.org>
1741         setlocale: Improve locale handling on macOS 10.12 or newer.
1742         * lib/setlocale.c: Include header files for CoreFoundation. Declare
1743         gl_locale_name_canonicalize.
1744         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
1745         and LC_MESSAGES.
1746         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
1748 2018-09-16  Bruno Haible  <bruno@clisp.org>
1750         Update list of locale names with scripts on macOS.
1751         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
1752         match Mac OS X 10.13 and recent glibc.
1754 2018-09-16  Bruno Haible  <bruno@clisp.org>
1756         gettext: Use newer macOS APIs when possible.
1757         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
1758         CFLocaleCopyPreferredLanguages.
1760 2018-09-16  Bruno Haible  <bruno@clisp.org>
1762         localename: Revisit macOS specific code.
1763         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
1764         Fix comments about Mac OS X versions.
1766 2018-09-15  Bruno Haible  <bruno@clisp.org>
1768         setlocale: Improve support for locales not supported by libc.
1769         Reported by Dapeng Gao <peter@dpgao.cc> at
1770         <https://savannah.gnu.org/bugs/?54479>.
1771         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
1772         (libintl_setlocale): Use a more error-tolerant strategy when the locale
1773         to be set is not supported by libc: Emit warnings instead of failing.
1775 2018-09-15  Bruno Haible  <bruno@clisp.org>
1777         strstr, strcasestr: Add workaround against glibc-2.28 bug.
1778         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
1779         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
1780         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
1781         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
1782         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
1783         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
1784         * doc/glibc-functions/strcasestr.texi: Likewise.
1786 2018-09-14  Bruno Haible  <bruno@clisp.org>
1788         doc: Fix bottom of top-level page.
1789         Reported by Akim Demaille <akim.demaille@gmail.com> in
1790         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
1791         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
1792         mode.
1793         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
1794         accordingly.
1796 2018-09-12  Bruno Haible  <bruno@clisp.org>
1798         Add test case from a recent glibc bug.
1799         * tests/test-strstr.c (main): Add test of long needle.
1800         * tests/test-strcasestr.c (main): Likewise.
1801         * tests/test-c-strstr.c (main): Likewise.
1802         * tests/test-c-strcasestr.c (main): Likewise.
1803         * tests/test-memmem.c (main): Likewise.
1805 2018-09-12  Bruno Haible  <bruno@clisp.org>
1807         Apply Eric Blake's improvements from 2011-02-25 to more tests.
1808         * tests/test-c-strstr.c (main): Add the same tests here as well.
1810 2018-09-12  Bruno Haible  <bruno@clisp.org>
1812         Apply Jim Meyering's fix from 2015-01-11 to more tests.
1813         * tests/test-memmem.c (main): Free haystack.
1814         * tests/test-strcasestr.c (main): Likewise.
1815         * tests/test-c-strcasestr.c (main): Likewise.
1817 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
1819         xstrtol: fix missing-TYPE_SIGNED typo
1820         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
1822 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1824         timespec: fix resolution confusion
1825         In normal usage, clock resolution is given in seconds, but the
1826         code was mistakenly using inverse seconds and calling it
1827         “resolution”.  Fix this, partly by renaming two identifiers.
1828         The old names will be kept for a bit, to ease transition.
1829         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
1830         New constants, replacing TIMESPEC_RESOLUTION and
1831         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
1832         All uses changed.
1834 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
1836         mktime: simplify in prep for glibc merge
1837         * lib/mktime.c, lib/timegm.c [_LIBC]:
1838         Include mktime-internal.h (a small file just for glibc)
1839         instead of using a typedef.
1841 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
1843         intprops: minor clarification of code
1844         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
1845         Use _GL_INT_CONVERT rather than reinventing it.
1847 2018-09-07  Bruno Haible  <bruno@clisp.org>
1849         Fix a comment.
1850         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
1852 2018-09-07  Bruno Haible  <bruno@clisp.org>
1854         posix_spawn_file_actions_addchdir: Add tests.
1855         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
1856         * tests/test-posix_spawn4.c: New file.
1857         * modules/posix_spawn_file_actions_addchdir-tests: New file.
1859 2018-09-07  Bruno Haible  <bruno@clisp.org>
1861         posix_spawn_file_actions_addchdir: New module.
1862         Suggested by Eric Blake in
1863         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
1864         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
1865         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
1866         union member 'chdir_action'.
1867         * lib/spawn_faction_addchdir.c: New file.
1868         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
1869         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
1870         HAVE_WORKING_POSIX_SPAWN.
1871         * lib/spawn_faction_adddup2.c: Likewise.
1872         * lib/spawn_faction_addopen.c: Likewise.
1873         * m4/posix_spawn_faction_addchdir.m4: New file.
1874         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
1875         'posix_spawn_file_actions_addchdir' is present and whether
1876         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
1877         instead of HAVE_WORKING_POSIX_SPAWN.
1878         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
1879         posix_spawn_file_actions_addchdir is declared.
1880         (gl_SPAWN_H_DEFAULTS): Initialize
1881         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1882         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1883         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1884         * modules/spawn (Makefile.am): Substitute
1885         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1886         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1887         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1888         * modules/posix_spawn_file_actions_addchdir: New file.
1889         * modules/posix_spawn_file_actions_addclose (Depends-on,
1890         configure.ac): Test also REPLACE_POSIX_SPAWN.
1891         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
1892         configure.ac): Likewise.
1893         * modules/posix_spawn_file_actions_addopen (Depends-on,
1894         configure.ac): Likewise.
1895         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
1896         signature.
1897         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1898         * doc/posix-functions/posix_spawnp.texi: Likewise.
1900 2018-09-06  Bruno Haible  <bruno@clisp.org>
1902         stddef: Override max_align_t on NetBSD 8.0/x86.
1903         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
1904         the value of __alignof__ (max_align_t).
1905         * doc/posix-headers/stddef.texi: Mention the issue.
1907 2018-09-06  Bruno Haible  <bruno@clisp.org>
1909         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
1910         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
1911         system fcntl.
1912         * doc/posix-functions/fcntl.texi: Document the issue.
1914 2018-09-06  Bruno Haible  <bruno@clisp.org>
1916         count-trailing-zeros tests: Rely on limits-h module.
1917         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
1918         definition.
1919         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
1921 2018-09-06  Bruno Haible  <bruno@clisp.org>
1923         count-leading-zeros tests: Rely on limits-h module.
1924         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
1925         definition.
1926         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
1928 2018-09-06  Bruno Haible  <bruno@clisp.org>
1930         count-one-bits tests: Rely on limits-h module.
1931         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
1932         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
1934 2018-09-06  Bruno Haible  <bruno@clisp.org>
1936         xstrtoll: Rely on limits-h module.
1937         * lib/xstrtol.c: Don't include intprops.h.
1938         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1939         * modules/xstrtol (Depends-on): Remove 'intprops'.
1940         * modules/xstrtoll (Depends-on): Add 'limits-h'.
1942 2018-09-06  Bruno Haible  <bruno@clisp.org>
1944         strtoll, strtoull: Rely on limits-h module.
1945         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
1946         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1947         * modules/strtoll (Depends-on): Add limits-h.
1948         * modules/strtoull (Depends-on): Likewise.
1950 2018-09-06  Bruno Haible  <bruno@clisp.org>
1952         intprops tests: Fix compilation error with pre-C99 compiler.
1953         * tests/test-intprops.c (verify_stmt): New macro.
1954         (VERIFY, main): Use it.
1956 2018-09-06  Bruno Haible  <bruno@clisp.org>
1958         limits-h: Provide numerical limits macros.
1959         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
1960         IRIX and for GCC.
1961         (WORD_BIT, LONG_BIT): Define.
1962         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
1963         <limits.h> does not define LLONG_MAX or WORD_BIT.
1964         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
1965         TYPE_MAXIMUM): New macros, from intprops.h.
1966         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
1967         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
1968         provides.
1970 2018-09-05  Bruno Haible  <bruno@clisp.org>
1972         fcntl: Don't access nonexistent optional argument.
1973         Reported by Frank Busse <f.busse@imperial.ac.uk> in
1974         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
1975         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
1976         don't consume an argument. For actions that take an 'int' argument,
1977         consume an 'int' argument.
1979 2018-09-05  Eric Blake  <eblake@redhat.com>
1981         doc: mention environ pitfall
1982         * doc/posix-functions/environ.texi (environ): Assigning NULL to
1983         environ is a glibc extension.
1985 2018-09-03  Bruno Haible  <bruno@clisp.org>
1987         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
1988         Reported by Antoine Luong <antoine.luong@c-s.fr> in
1989         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
1990         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
1991         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
1992         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
1994 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1996         mktime: fix unlikely race+overflow bug
1997         Problem reported by Alexandre Oliva in:
1998         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
1999         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
2000         to avoid an unlikely race if the compiler delays a load and
2001         if this cascades into a signed integer overflow.
2003 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2005         mktime, timegm: simplify glibc time64_t
2006         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
2007         Now long int, not time_t, since long int is the longstanding type
2008         for this in glibc and there is no need to change it even if time_t
2009         becomes 64 bits - even int would do, though this would be a change
2010         to the glibc generated code.  When this change is merged into
2011         glibc, it should simplify the time_t vs time64_t situation.
2013         mktime, timegm: simplify merge to glibc
2014         Move code around to make a merge to glibc easier to audit.
2015         This should not change behavior.
2016         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
2017         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
2018         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
2019         simplify later conditionals; default the others to zero.  In uses
2020         of these conditionals, explicitly spell out how _LIBC affects
2021         things, so it’s easier to review from a glibc viewpoint.
2022         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
2023         compartmentalize tzset issues.  Move system-dependent tzsettish
2024         code here from mktime.
2025         (mktime): Move tzsettish code to my_tzset, and move
2026         localtime_offset to within mktime so that it doesn’t
2027         need a separate ifdef.
2029 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2031         intprops: avoid evaluation of some expressions
2032         This makes EXPR_SIGNED (e) easier to use, as it no longer
2033         evaluates the expression E.  Formerly, E was required to be free
2034         of side effects.
2035         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
2036         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
2037         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
2039 2018-08-23  Bruno Haible  <bruno@clisp.org>
2041         getcwd: Add cross-compilation guesses.
2042         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
2043         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
2044         Based on a patch by Paul Eggert.
2045         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
2046         guesses for all GNU systems.
2048 2018-08-19  Bruno Haible  <bruno@clisp.org>
2050         glob-h: Formalize side effects from other modules.
2051         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
2052         * m4/glob.m4 (gl_GLOB): Invoke it.
2054         fnmatch-h: Formalize side effects from other modules.
2055         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
2056         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
2058         limits-h: Formalize side effects from other modules.
2059         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
2060         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
2062 2018-08-19  Bruno Haible  <bruno@clisp.org>
2064         getpass: Move declaration to <unistd.h>.
2065         * lib/unistd.in.h (getpass): New declaration.
2066         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
2067         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
2068         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
2069         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
2070         On glibc systems, don't set REPLACE_GETPASS to 1.
2071         * modules/getpass (Depends-on): Add 'unistd'.
2072         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
2073         (Include): Specify <unistd.h> instead of "getpass.h".
2074         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
2075         (configure.ac): Sync with the configure.ac section of modules/getpass.
2076         (Include): Specify <unistd.h> instead of "getpass.h".
2077         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
2078         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
2079         REPLACE_GETPASS.
2080         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
2081         REPLACE_GETPASS.
2082         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
2083         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
2084         and musl.
2085         * NEWS: Mention the change.
2087 2018-08-19  Bruno Haible  <bruno@clisp.org>
2089         glob: Fix over-optimization due to attribute __nonnull__.
2090         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
2092 2018-08-19  Bruno Haible  <bruno@clisp.org>
2094         glob: Fix another compilation error when glob.h is not replaced.
2095         Reported by Reuben Thomas <rrt@sc3d.org> in
2096         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
2097         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
2098         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
2100 2018-08-18  Bruno Haible  <bruno@clisp.org>
2102         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
2103         Reported by Reuben Thomas <rrt@sc3d.org> in
2104         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
2105         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
2106         in config.h.
2108 2018-08-18  Bruno Haible  <bruno@clisp.org>
2110         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
2111         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
2112         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
2113         Solution proposed by Eli Zaretskii.
2114         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
2115         * lib/gettimeofday.c (GetProcAddress): Likewise.
2116         * lib/link.c (GetProcAddress): Likewise.
2117         * lib/physmem.c (GetProcAddress): Likewise.
2118         * lib/poll.c (GetProcAddress): Likewise.
2119         * lib/select.c (GetProcAddress): Likewise.
2120         * lib/stat-w32.c (GetProcAddress): Likewise.
2122 2018-08-18  Bruno Haible  <bruno@clisp.org>
2124         glob: Fix another compilation error when glob.h is not replaced.
2125         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
2126         * lib/globfree.c: Include <libc-config.h>.
2128 2018-08-18  Bruno Haible  <bruno@clisp.org>
2130         glob: Fix compilation error when glob.h is not replaced.
2131         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
2132         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
2133         * lib/glob_pattern_p.c: Include <libc-config.h>.
2134         * modules/glob (Depends-on): Add libc-config.
2136 2018-08-18  Bruno Haible  <bruno@clisp.org>
2138         scratch_buffer: Add tests.
2139         * tests/test-scratch-buffer.c: New file.
2140         * modules/scratch_buffer-tests: New file.
2142 2018-08-18  Bruno Haible  <bruno@clisp.org>
2144         scratch_buffer: Fix include file.
2145         Reported by Reuben Thomas <rrt@sc3d.org> in
2146         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
2147         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
2148         double-inclusion guard.
2150 2018-08-18  Bruno Haible  <bruno@clisp.org>
2152         glob-h: Revert Paul Eggert's revert.
2153         * m4/glob_h.m4: Revert to previous state.
2154         * modules/glob-h: Likewise.
2156 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2158         glob-h: always build glob.h
2159         This works around a problem reported by Reuben Thomas in:
2160         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
2161         This workaround always builds glob.h, even on platforms that
2162         do not need it; perhaps this could be improved someday.
2163         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
2164         is always created now.
2165         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
2167 2018-08-13  Bruno Haible  <bruno@clisp.org>
2169         monetary: Simplify m4 code.
2170         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
2171         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
2173 2018-08-13  Bruno Haible  <bruno@clisp.org>
2175         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
2176         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
2177         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
2178         and by Paul J. Lucas <paul@lucasmail.org> in
2179         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
2180         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
2182 2018-08-11  Bruno Haible  <bruno@clisp.org>
2184         setlocale: Trivial simplification.
2185         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
2187 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2189         verify: port 'assume' to traditional tools
2190         * lib/verify.h (assume): Port better to Oracle Studio 12.6
2191         and other tools that use /*NOTREACHED*/ comments.
2193 2018-08-10  Bruno Haible  <bruno@clisp.org>
2195         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
2196         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2197         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
2198         'fnmatch-gnu' is in use.
2200 2018-08-07  Bruno Haible  <bruno@clisp.org>
2202         glob-h: Add tests.
2203         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
2204         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
2205         tests/test-glob-h.c.
2206         * modules/glob-h-tests: New file.
2207         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
2208         conditions.
2209         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
2210         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
2212 2018-08-07  Bruno Haible  <bruno@clisp.org>
2214         glob-h: New module.
2215         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
2216         replacements.
2217         * lib/glob.c: Include <config.h>.
2218         * m4/glob_h.m4: New file.
2219         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
2220         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2221         REPLACE_GLOB_PATTERN_P as appropriate.
2222         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
2223         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
2224         * modules/glob-h: New file.
2225         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
2226         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
2227         lstat, sys_stat. Change conditions.
2228         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2229         REPLACE_GLOB_PATTERN_P. Set module indicator.
2230         (Makefile.am): Remove code that is moved to glob-h.
2231         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
2232         * modules/posixcheck (Depends-on): Add glob-h.
2234 2018-08-06  Bruno Haible  <bruno@clisp.org>
2236         Force generation of substitute .h file when C++ support is enabled.
2237         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
2238         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
2239         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
2240         FNMATCH_H to non-empty.
2241         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
2242         ICONV_H to non-empty.
2243         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
2244         MONETARY_H to non-empty.
2245         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
2246         non-empty.
2248 2018-08-06  Bruno Haible  <bruno@clisp.org>
2250         fnmatch-h: Fix test compilation error on mingw (regression from today).
2251         * lib/fnmatch.in.h: Fix conditions.
2253 2018-08-06  Bruno Haible  <bruno@clisp.org>
2255         sys_resource: Relicense under LGPLv2+.
2256         John Malmberg's approval is in
2257         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
2258         * modules/sys_resource (License): Change to LGPLv2+.
2260 2018-08-06  Bruno Haible  <bruno@clisp.org>
2262         fnmatch-h: Add tests.
2263         * tests/test-fnmatch-h.c: New file.
2264         * modules/fnmatch-h-tests: New file.
2265         * tests/test-fnmatch-h-c++.cc: New file.
2266         * modules/fnmatch-h-c++-tests: New file.
2268 2018-08-06  Bruno Haible  <bruno@clisp.org>
2270         fnmatch-h: New module.
2271         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
2272         replacements.
2273         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
2274         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
2275         'posixcheck' warning.
2276         * m4/fnmatch_h.m4: New file.
2277         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
2278         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
2279         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
2280         as appropriate.
2281         * modules/fnmatch-h: New file.
2282         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
2283         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
2284         conditions.
2285         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
2286         indicator.
2287         (Makefile.am): Remove code that is moved to fnmatch-h.
2288         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
2289         REPLACE_FNMATCH.
2290         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
2291         * modules/posixcheck (Depends-on): Add fnmatch-h.
2293 2018-08-06  Bruno Haible  <bruno@clisp.org>
2295         Enable more C++ tests.
2296         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2297         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2298         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2299         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2300         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2302 2018-08-06  Bruno Haible  <bruno@clisp.org>
2304         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2305         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2306         getopt.h.
2307         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2309 2018-08-05  Bruno Haible  <bruno@clisp.org>
2311         utime-h: Generate header file when module 'posixcheck' is in use.
2312         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2313         UTIME_H to non-empty.
2315 2018-08-05  Bruno Haible  <bruno@clisp.org>
2317         monetary: Generate header file when module 'posixcheck' is in use.
2318         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2319         use, set MONETARY_H to non-empty.
2321 2018-08-05  Bruno Haible  <bruno@clisp.org>
2323         iconv-h: Generate header file when module 'posixcheck' is in use.
2324         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2325         set ICONV_H to non-empty.
2327 2018-08-05  Bruno Haible  <bruno@clisp.org>
2329         Optimize the "checking whether ... is declared without a macro" checks.
2330         Suggested by Paul Eggert in
2331         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2332         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2333         Gnulib module 'posixcheck' is not in use.
2335 2018-08-05  Bruno Haible  <bruno@clisp.org>
2337         iconv-h: Enable 'posixcheck' warnings.
2338         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2339         iconv_open.
2340         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2342 2018-08-05  Bruno Haible  <bruno@clisp.org>
2344         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2345         * m4/extern-inline.m4: Add more comments.
2346         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2347         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2348         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2350 2018-08-04  Bruno Haible  <bruno@clisp.org>
2352         New module 'posixcheck'.
2353         * modules/posixcheck: New file.
2354         * m4/posixcheck.m4: New file.
2355         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2356         (Which modules?): Reference it.
2358 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2360         dfa: fix memory leak
2361         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2363 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2365         ieee754-h: new module
2366         It looks like Emacs can use this for some NaN processing.
2367         Emacs uses it only on double NaNs so it should be safe.
2368         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2369         * config/srclist.txt: Mention ieee754.h in a comment.
2370         * doc/glibc-headers/ieee754.texi (ieee754.h):
2371         Gnulib now has a substitute that should work
2372         except for long double and for non-IEEE platforms.
2373         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2374         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2376 2018-07-27  Bruno Haible  <bruno@clisp.org>
2378         iswcntrl: Mention minor problem on macOS.
2379         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2381 2018-07-26  Colin Watson  <cjwatson@debian.org>
2383         bootstrap, gnulib-tool: fix translations rsync
2384         Previously, we created files such as $pobase/Makefile.in.in and then the
2385         subsequent rsync would immediately delete them.
2386         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2387         non-.po files in target directory when rsyncing translations.
2388         * gnulib-tool (func_import): Likewise.
2389         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2391 2018-07-25  Jim Meyering  <meyering@fb.com>
2393         bootstrap: reinstate definition fo gnulib_mk.
2394         That variable is used at least by cppi.
2395         * build-aux/bootstrap (gnulib_mk): Restore definition.
2396         This reverts the deletion from v0.1-1844-gc66dba9ba.
2398 2018-07-23  Bruno Haible  <bruno@clisp.org>
2400         doc: For module names, use texinfo markup @code{} or @samp{}.
2401         * doc/alloca.texi: Mark gnulib module names with @code.
2402         * doc/alloca-opt.texi: Likewise.
2403         * doc/quote.texi: Likewise.
2404         * doc/posix-functions/freopen.texi: Likewise.
2405         * doc/posix-functions/open.texi: Likewise.
2406         * doc/posix-functions/readlink.texi: Likewise.
2407         * doc/posix-functions/readlinkat.texi: Likewise.
2408         * doc/posix-functions/stdout.texi: Likewise.
2409         * doc/posix-functions/stderr.texi: Likewise.
2410         * doc/posix-functions/unlink.texi: Likewise.
2411         * doc/posix-functions/unlinkat.texi: Likewise.
2412         * doc/posix-functions/utime.texi: Likewise.
2413         * doc/posix-functions/utimensat.texi: Likewise.
2414         * doc/posix-functions/utimes.texi: Likewise.
2415         * doc/posix-headers/stdint.texi: Likewise.
2416         * doc/glibc-functions/futimesat.texi: Likewise.
2417         * doc/glibc-functions/lutimes.texi: Likewise.
2418         * doc/glibc-functions/memmem.texi: Likewise.
2420 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2422         doc: Avoid some overfull lines in the TeX output.
2423         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2424         @example.
2425         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2426         newline before the long URL.
2427         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2428         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2429         Add line breaks in code snippets.
2431 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2433         hard-locale: simplify by removing hard-locale.m4
2434         * m4/hard-locale.m4: Remove.
2435         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2436         (configure.ac): Do not call gl_HARD_LOCALE.
2438         gnulib-tool: limit line length for git send-email
2439         * gnulib-tool (func_import): Break actioncmd log line
2440         into multiple lines.
2442 2018-07-16  Bruno Haible  <bruno@clisp.org>
2444         ffs: Ensure declaration on mingw.
2445         Reported by Daniel P. Berrangé <berrange@redhat.com>
2446         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2447         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2448         also declared.
2450 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2452         regex-tests: add dependency
2453         * modules/regex-tests (Depends-on): Add gettext-h.
2454         This is needed given the recent changes to regex,
2455         which no longer depends on gettext-h.
2457 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2459         regex: now in sync with glibc
2460         * config/srclist.txt: Gnulib and glibc regex code
2461         are synchronized again.
2463 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2465         renameatu: rename from renameat2
2466         It's looking like Glibc will add a renameat2 function
2467         that is incompatible with Gnulib renameat2; see:
2468         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2469         To help avoid future confusion, rename renameat2 to something else.
2470         Use the name 'renameatu', as the Gnulib function is close to the
2471         Glibc function.  Perhaps someday there will also be a renameat2
2472         Gnulib module, which mimicks the future glibc renameat2, but that
2473         can wait as nobody seems to need such a module now.
2474         * NEWS: Mention this.
2475         * lib/renameatu.c: Rename from lib/renameat2.c.
2476         * lib/renameatu.h: Rename from lib/renameat2.h.
2477         * modules/renameatu: Rename from modules/renameat2.
2478         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2479         All uses of "renameat2" in identifiers or file name
2480         changed to "renameatu", except for two instances in
2481         lib/renameatu.c that deal with the Linux kernel's
2482         renameat2 syscall.
2484 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2486         gnulib-tool: minor tweaks for --gnu-make
2487         * gnulib-tool: Do not allow --gnu-make in test modes,
2488         since they all require automake.
2489         (func_emit_lib_Makefile_am): Don’t emit automake comment
2490         if --gnu-make.
2492         regex: work around conditional-dependencies glitch
2493         * modules/regex (Depends-on): Add langinfo.
2494         Without this change, I had problems building an experimental
2495         version of GNU Emacs.  The symptom of the bug was a message
2496         ‘./configure: line 12726: test: =: unary operator expected’.
2497         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2498         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2499         was unset.  Although gl_FUNC_NL_LANGINFO has
2500         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2501         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2502         --conditional-dependencies sometimes arranges for the
2503         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2504         code.  Since the regex code includes <langinfo.h> it should be
2505         depending on the langinfo module anyway, and this happens to work
2506         around the bug, so install that as a workaround for now.  To
2507         reproduce the original problem, run the following shell script on
2508         the version of Gnulib just before this patch was installed.
2509                 rm -fr foo
2510                 mkdir foo
2511                 cat >foo/configure.ac <<'EOF'
2512                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2513                 gl_EARLY
2514                 gl_INIT
2515                 AC_OUTPUT
2516                 EOF
2517                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2518                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2519                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2520                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2521                 cd foo
2522                 aclocal -I m4
2523                 autoconf
2524                 ./configure --with-included-regex
2526 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2528         wchar: fix bug when checking for ‘inline’
2529         I discovered this when looking into using the regex module
2530         with Emacs.
2531         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2532         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2533         conftest1.c and conftest2.c but these files were not created.
2534         As far as I can see, this check never worked and nobody reported
2535         it until now, which is a bit worrisome.
2537 2018-06-30  Jim Meyering  <meyering@fb.com>
2539         bootstrap: s/--option val/--option=val/
2540         * build-aux/bootstrap (gnulib_tool_options): Change the
2541         spelling of "--option val" pairs to "--option=val", for
2542         aesthetics, and also so that this file no longer triggers
2543         a common help2man syntax-check warning when copied into
2544         projects like grep, gzip, etc.
2546 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2548         manywarnings: omit -Wswitch-default
2549         This should make things more consistent, as we already ignore
2550         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
2551         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
2552         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
2553         Add -Wswitch-default.
2554         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2555         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2556         Remove -Wswitch-default.
2558         regex: revert most trimming
2559         Problems reported by Bruno Haible in:
2560         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
2561         * modules/regex (Depends-on): Add lock, memcmp, memmove,
2562         and wctype back in.  lock because regex users shouldn’t
2563         need to know that regex needs locking, and the rest because
2564         gnulib-tool should ordinarily ignore them anyway.
2566 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2568         regex: trim module dependencies
2569         * modules/regex (Depends-on): Remove gettext-h and lock,
2570         since the regex code should work OK without these modules,
2571         and Emacs uses it that way.  Also remove memcmp, memmove,
2572         and wctype, as these modules are obsolete and should not be
2573         needed any more.
2575 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
2577         regex: glibc does not use intprops.h
2578         Maybe we can talk glibc into using intprops.h someday, but
2579         now doesn’t seem to be a good time.
2580         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
2581         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
2582         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
2584 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2586         regex: port to recently proposed glibc regex merge
2587         This patch is inspired by Adhemerval Zanella's recent proposal
2588         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
2589         to merge glibc and Gnulib regex.  It aims to simplify the merge on
2590         the glibc side, without keeping Gnulib portable.
2591         * lib/regex.h: Fix a problem with glibc installed-header checking,
2592         as follows:
2593         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
2594         (_Restrict_arr_): Prefer __restrict_arr if defined,
2595         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
2596         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
2597         (build_wcs_upper_buffer, build_upper_buffer)
2598         (re_string_translate_buffer, re_string_context_at):
2599         Move decls here from lib/regex_internal.h, for glibc internal tests.
2600         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
2601         glibc BZ #18496.
2602         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
2603         -Wunused-value.
2604         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
2605         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2606         (bitset_mask): Now static inline, and without any __attribute__
2607         ((unused)) decoration, for glibc internal tests.
2609 2018-06-25  Bruno Haible  <bruno@clisp.org>
2611         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
2612         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
2613         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
2614         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
2615         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
2616         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
2617         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
2618         / -lthread / -lpth does not get optimized away by a preceding
2619         --as-needed option.
2621 2018-06-25  Bruno Haible  <bruno@clisp.org>
2623         Continue to use spaces for indentation, not tabs.
2624         * MODULES.html.sh: Untabify.
2625         * doc/regex.texi: Likewise.
2626         * lib/acl-internal.c: Likewise.
2627         * lib/dfa.c: Likewise.
2628         * lib/exclude.c: Likewise.
2629         * lib/exclude.h: Likewise.
2630         * lib/get-permissions.c: Likewise.
2631         * lib/gettimeofday.c: Likewise.
2632         * lib/parse-datetime.y: Likewise.
2633         * lib/pselect.c: Likewise.
2634         * lib/set-permissions.c: Likewise.
2635         * lib/time.in.h: Likewise.
2636         * m4/canonicalize.m4: Likewise.
2637         * m4/gc.m4: Likewise.
2638         * m4/gnulib-common.m4: Likewise.
2639         * m4/pthread_sigmask.m4: Likewise.
2640         * m4/vararrays.m4: Likewise.
2641         * tests/test-digest.h: Likewise.
2642         * tests/test-fcntl-h.c: Likewise.
2643         * tests/test-timespec.c: Likewise.
2644         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
2646 2018-06-25  Bruno Haible  <bruno@clisp.org>
2648         manywarnings: Don't enable -Wjump-misses-init warnings by default.
2649         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
2650         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
2651         -Wjump-misses-init.
2653 2018-06-25  Jim Meyering  <meyering@fb.com>
2655         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
2656         * lib/acl-internal.h (free_permission_context): Remove that
2657         attribute directive.  Otherwise, it would provoke this from GCC 9:
2658         lib/acl-internal.h:300:3: error: 'const' attribute on function \
2659           returning 'void' [-Werror=attributes]
2661 2018-06-24  Jim Meyering  <meyering@fb.com>
2663         parse-datetime: accommodate gcc-4.8.5
2664         Bruno Haible reported the build failure in
2665         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
2666         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
2667         on declaration of new local.
2669 2018-06-24  Bruno Haible  <bruno@clisp.org>
2671         af_alg: Fail in continuable manner on Linux/powerpc64le.
2672         Reported by Assaf Gordon <assafgordon@gmail.com>
2673         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
2674         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
2675         byte send() as the first round.
2677 2018-06-24  Bruno Haible  <bruno@clisp.org>
2679         af_alg: Fix state of stream after sendfile() succeeds.
2680         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
2681         the stream is correctly positioned afterwards.
2682         * modules/crypto/af_alg (Depends-on): Add fflush.
2683         * tests/test-digest.h (test_digest_on_files): Verify that after the
2684         operation the stream is positioned at end of file.
2686 2018-06-24  Jim Meyering  <meyering@fb.com>
2688         canon-host: take GCC9's advice rather than ignoring warning
2689         Pádraig Brady suggested not to ignore this GCC9 advice.
2690         * lib/canon-host.c: Undo preceding change.
2691         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
2693         parse-datetime.y: avoid spurious GCC 9 warning
2694         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
2695         a function local prior to the first "goto fail".  The prior use would
2696         evoke this:
2697         parse-datetime.y: In function 'parse_datetime2':
2698         parse-datetime.y:1791:19: error: jump skips variable initialization \
2699           [-Werror=jump-misses-init]
2700         parse-datetime.y:2385:2: note: label 'fail' defined here
2701         parse-datetime.y:188:43: note: '({anonymous})' declared here
2702         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
2704         canon-host.c: avoid spurious GCC 9 warning
2705         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
2707         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
2708         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
2709         * m4/manywarnings.m4: Remove them.
2710         Otherwise, building coreutils, I would see this:
2711         cc1: error: deprecated command line option '-Wchkp' [-Werror]
2712         cc1: error: -Wabi won't warn about anything [-Werror=abi]
2713         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
2714           which is also used by default
2715         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
2717 2018-06-24  Bruno Haible  <bruno@clisp.org>
2719         af_alg tests: Add another test.
2720         * tests/test-digest.h (test_digest_on_files): Also check a large file
2721         with a skipped header.
2722         * tests/test-md5.c: Include macros.h.
2723         * tests/test-sha1.c: Likewise.
2724         * tests/test-sha256.c: Likewise.
2725         * tests/test-sha512.c: Likewise.
2726         * modules/crypto/md5-tests (Files): Add tests/macros.h.
2727         * modules/crypto/sha1-tests (Files): Likewise.
2728         * modules/crypto/sha256-tests (Files): Likewise.
2729         * modules/crypto/sha512-tests (Files): Likewise.
2731 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2733         maint: clarify comments about sticky EOF
2734         * lib/af_alg.c: Be more direct that we can't
2735         assume stickiness of EOF for portability reasons.
2736         * lib/md5.c: Clarify that this isn't just a glibc issue.
2737         * lib/sha1.c: Likewise.
2738         * lib/sha256.c: Likewise.
2739         * lib/sha512.c: Likewise.
2741 2018-06-24  Bruno Haible  <bruno@clisp.org>
2743         af_alg: Comment and style improvements.
2744         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
2745         (afalg_buffer, afalg_stream): Improve comments.
2747 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2749         af_alg: disable kernel hash functions by default
2750         All the kernel routines were seen to be significantly slower
2751         with these relatively recent components on an i3-2310M system:
2752           kernel-4.10.6-200.fc25.x86_64
2753           openssl-1.0.2m-1.fc25.x86_64
2754         sha1 was nearly twice as slow in the kernel for example.
2755         Further considerations why this should not be the default, at:
2756         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
2758         * m4/af_alg.m4: Require --with-linux-crypto to enable.
2759         * m4/gl-openssl.m4: Tweak accordingly.
2761 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2763         af_alg: avoid hangs when reading from streams
2764         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
2765         and thus avoid doing a fread() when feof() is set.
2766         * lib/md5.c: Ensure feof() is called before fread().
2767         * lib/sha1.c: Likewise.
2768         * lib/sha256.c: Likewise.
2769         * lib/sha512.c: Likewise.
2771 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2773         af_alg: fix error handling when hash not returned
2774         * lib/af_alg.c (afalg_stream): Handle the case where we've
2775         successfully written data to the kernel in the read/write loop,
2776         but the kernel doesn't respond with the hash.
2778 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2780         libc-config: merge from glibc
2781         * lib/cdefs.h (__inline, __restrict):
2782         Copy from current glibc.  This fixes glibc bug 17721,
2783         which Gnulib had already fixed in a different way.
2784         (__nonnull): Lessen the distance from glibc by using the
2785         glibc definition inside an ‘#ifndef __nonnull’.
2786         (__attribute_nonstring__): New macro, copied from
2787         current glibc.
2788         * lib/libc-config.h (__attribute_nonstring__): New undef.
2789         (__restrict): Remove; workaround no longer needed.
2790         Keep the __inline workaround, though, as it uses HAVE___INLINE to
2791         support more compilers than the glibc __inline can.
2793 2018-06-24  Bruno Haible  <bruno@clisp.org>
2795         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
2796         * lib/mbrtowc.c (enc_t): New enum type.
2797         (locale_enc, locale_enc_cached): New functions.
2798         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
2799         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
2800         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
2801         instead.
2802         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
2803         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
2804         * modules/wcwidth (configure.ac): Invoke it.
2806 2018-06-24  Bruno Haible  <bruno@clisp.org>
2808         wchar-single: Fix test failure in wcwidth tests.
2809         * tests/test-wcwidth.c (main): If the wchar-single module is present,
2810         skip the tests in the C locale.
2812 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2814         crypto: mention --without-linux-crypto in --with-openssl --help
2815         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
2816         routines take precedence in --with-openssl help output.
2818 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2820         wchar-single: a new module to enable optimizations in wchar replacements
2821         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
2822         GNULIB_WCHAR_SINGLE is enabled.
2823         * lib/wcwidth.c (wcwidth): Likewise.
2825 2018-06-23  Bruno Haible  <bruno@clisp.org>
2827         libc-config: Fix conflict with FreeBSD include files.
2828         * lib/cdefs.h (__nonnull): Remove definition.
2829         * lib/libc-config.h (__nonnull): Remove undefinition.
2831 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2833         random_r: do not crash if state is unaligned
2834         Problem reported by Bruce Korb in:
2835         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
2836         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
2837         with 'cc -O2 -xmemalign=8s'.
2838         * lib/random_r.c: Include string.h, for memcpy.
2839         (get_int32, set_int32): New functions.
2840         (__srandom_r, __initstate_r, __setstate_r, __random_r):
2841         Use them to avoid assumption that state pointer is aligned.
2842         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
2843         * tests/test-random_r.c (test_failed): New function.
2844         (main): Use it, to test for alignment bugs.
2846         random_r: omit unnecessary include
2847         * lib/random_r.c: Do not include limits.h.
2849         random, random_r: merge from glibc
2850         * lib/random.c, lib/random_r.c:
2851         Include libc-config.h if !_LIBC, not config.h unilaterally.
2852         * lib/random.c:
2853         Do not include stdint.h or time.h; not needed.
2854         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
2855         (unsafe_state): Rename from generator.  All uses changed.
2856         Use C99-style initializers.
2857         (__random, __srandom, __initstate, __setstate): Rename from
2858         non-underscored version, but define it to non-underscored version
2859         on Gnulib.  Add a lock.
2860         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
2861         Likewise.
2862         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
2863         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
2864         (__srandom_r): Use int32_t instead of long int where int32_t will do.
2865         (__random_r): Use uint32 to fix glibc bug 17343.
2866         * modules/random, modules/random_r (Depends-on): Add libc-config.
2867         Depend on stdint only if $HAVE_RANDOM = 0.
2869 2018-06-19  Jim Meyering  <meyering@fb.com>
2871         README-release: also run any check-very-expensive tests
2872         * top/README-release: Adjust instructions so they run the
2873         check-very-expensive tests when there is such a target.
2875 2018-06-18  Bruno Haible  <bruno@clisp.org>
2877         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
2878         * m4/pthread_rwlock_rdlock.m4: Add comment.
2879         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
2880         are reader-preferring in glibc.
2881         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
2882         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
2884 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2886         crypto: use byteswap
2887         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2888         * lib/sm3.c: Include <byteswap.h>.
2889         (SWAP): Use its macros rather than reinventing the wheel.
2890         * modules/crypto/md4, modules/crypto/md5-buffer:
2891         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
2892         * modules/crypto/sha512-buffer, modules/crypto/sm3:
2893         (Depends-on): Add byteswap.
2895 2018-06-17  Pádraig Brady  <P@draigBrady.com>
2897         gendocs.sh: fix support for legacy --texi2html
2898         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
2899         to the default makeinfo invocation.
2900         Reported by Bruce Korb
2902 2018-06-17  Bruno Haible  <bruno@clisp.org>
2904         gettext po infrastructure: Update from current gettext git.
2905         Reported by Akim Demaille <akim@lrde.epita.fr>.
2906         * build-aux/po/Makefile.in.in: Update from current gettext git.
2907         * build-aux/po/remove-potcdate.sin: Likewise.
2908         * config/srclist.txt: Temporarily disable sync for these files.
2910 2018-06-17  Bruno Haible  <bruno@clisp.org>
2912         getloadavg: Return 0 on Windows without Cygwin.
2913         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
2915 2018-06-17  Paul Smith  <psmith@gnu.org>
2917         getloadavg: Allow building on Windows without Cygwin
2918         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
2919         * m4/getloadavg.m4: Check for unistd.h.
2921 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
2923         Port crypto/af_alg to GCC 4.8.4
2924         Problem reported by Peter Simons in:
2925         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
2926         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
2928 2018-05-27  Colin Watson  <cjwatson@debian.org>
2930         bootstrap: document source fetching in --help
2931         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
2933 2018-04-09  Colin Watson  <cjwatson@debian.org>
2935         bootstrap: allow non-submodule control of gnulib
2936         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
2937         bootstrap.conf when fetching gnulib using "git clone" or via
2938         GNULIB_SRCDIR.
2940 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2942         crypto: omit stream ops Emacs doesn’t need
2943         * lib/md5.c (md5_stream):
2944         * lib/sha1.c (sha1_stream):
2945         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
2946         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
2947         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
2948         defined.  Emacs needs this, as it does not use the stream
2949         operations and doesn’t need all the af_alg stuff we’ve recently
2950         added.  Perhaps a similar change is needed to the other crypto
2951         modules, but this patch changes only those needed for Emacs.
2952         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
2953         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
2954         New modules, used by Emacs.
2955         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2956         * modules/crypto/sha512: Rewrite to depend on the new modules.
2958 2018-05-20  Pádraig Brady  <P@draigBrady.com>
2960         fts: avoid a memory leak edge case
2961         * lib/fts.c (fts_open): Set an appropriate fts_level
2962         so that an immediate fts_close() will free the allocation.
2963         * tests/test-fts.c (fts_dealloc): Add a test case which
2964         will trigger under valgrind or address sanitizer.
2965         Fixes https://bugs.gnu.org/31439
2967 2018-05-20  Bruno Haible  <bruno@clisp.org>
2969         wcwidth tests: Fix link error.
2970         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
2971         $(LIBUNISTRING).
2973 2018-05-20  Bruno Haible  <bruno@clisp.org>
2975         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
2976         * modules/regex (Files): Add m4/glibc21.m4.
2978 2018-05-20  Bruno Haible  <bruno@clisp.org>
2980         localcharset: Optimize.
2981         * lib/localcharset.c (alias_table): Comment out no-op mappings for
2982         platforms where these don't matter. This reduces the table size,
2983         which in turn reduces the lookup time.
2985 2018-05-19  Bruno Haible  <bruno@clisp.org>
2987         localcharset: Map the locale encodings found in newer OSes.
2988         * lib/localcharset.c (alias_table): Add mapping for locale encodings
2989         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
2990         IRIX 6.5, Minix 3.3.
2991         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
2993 2018-05-19  Bruno Haible  <bruno@clisp.org>
2995         localcharset: Move mapping tables into the code. Use a binary search.
2996         * lib/localcharset.h: Document the GNU canonical names for character
2997         encodings here.
2998         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
2999         relocatable.h, configmake.h.
3000         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
3001         macros.
3002         (charset_aliases): Remove variable.
3003         (get_charset_aliases): Remove function.
3004         (struct table_entry): New type.
3005         (alias_table, locale_table): New constants.
3006         (locale_charset): Use the alias_table or locale_table to get the
3007         canonicalized encoding name.
3008         * lib/config.charset: Remove file.
3009         * lib/ref-add.sin: Remove file.
3010         * lib/ref-del.sin: Remove file.
3011         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
3012         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
3013         * modules/localcharset (Notice): Remove.
3014         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
3015         glibc21.m4.
3016         (Depends-on): Remove configmake.
3017         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
3018         (Makefile.am): Simplify.
3019         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
3021 2018-05-19  Bruno Haible  <bruno@clisp.org>
3023         localcharset: Add a manual test.
3024         * tests/test-localcharset.c: New file.
3025         * modules/localcharset-tests: New file.
3027 2018-05-19  Bruno Haible  <bruno@clisp.org>
3029         localcharset: Remove support for obsolete platforms.
3030         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
3031         Mac OS X 10.2. Comment out dubious entry for Solaris.
3033 2018-05-19  Jim Meyering  <meyering@fb.com>
3035         gnupload: adjust comment
3036         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
3037         more likely we'll remove the just-added code in a year or two.
3039 2018-05-19  Bruno Haible  <bruno@clisp.org>
3041         gnupload: Fix "gpg-agent is not available in this session" error.
3042         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
3044 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3046         crypto/af_alg: fix --help
3047         * m4/af_alg.m4: Avoid spurious newline in --help output.
3049 2018-05-13  Bruno Haible  <bruno@clisp.org>
3051         nl_langinfo: Fix compilation error on Android.
3052         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
3053         INT_CURR_SYMBOL, etc. only if these items are defined.
3055 2018-05-13  Bruno Haible  <bruno@clisp.org>
3057         truncate: Fix compilation error on Android.
3058         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
3059         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
3060         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
3061         HAVE_TRUNCATE.
3062         * modules/truncate: Likewise.
3063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
3064         not HAVE_TRUNCATE.
3065         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
3066         HAVE_TRUNCATE.
3067         * doc/posix-functions/truncate.texi: Mention the issue.
3069 2018-05-13  Bruno Haible  <bruno@clisp.org>
3071         pthread: Fix compilation error on Android.
3072         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
3073         recursive inclusion of this file.
3075 2018-05-13  Bruno Haible  <bruno@clisp.org>
3077         posix_spawn: Fix compilation error on Android.
3078         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
3079         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
3080         (posix_spawn_file_actions_t): Consider also the case
3081         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
3083 2018-05-13  Bruno Haible  <bruno@clisp.org>
3085         tsearch: Move from K&R C to ANSI C.
3086         * lib/tsearch.c (tfind): Convert definition to ANSI C.
3088 2018-05-13  Bruno Haible  <bruno@clisp.org>
3090         tsearch: Fix compilation error on Android.
3091         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
3092         is 0.
3093         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
3094         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
3095         GNULIB_defined_tsearch is true.
3096         (twalk): Define only if GNULIB_defined_twalk is true.
3097         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
3098         is 0.
3099         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
3100         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
3101         * modules/search (Makefile.am): Substitute HAVE_TWALK.
3103 2018-05-13  Bruno Haible  <bruno@clisp.org>
3105         imaxdiv: Fix compilation error on Android.
3106         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
3107         is not defined.
3108         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
3109         HAVE_DECL_IMAXDIV, is 0.
3110         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
3111         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
3113 2018-05-13  Bruno Haible  <bruno@clisp.org>
3115         Support selective inclusion mechanism of recent mingw.org header files.
3116         Reported by Eli Zaretskii <eliz@gnu.org>.
3117         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
3118         __need_ssize_t, or __need_time_t is defined, just include the system's
3119         <sys/types.h>.
3120         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
3121         include the system's <locale.h>.
3123 2018-05-13  Bruno Haible  <bruno@clisp.org>
3125         Avoid compilation error due to 'mmap' on Android.
3126         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
3127         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
3128         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
3129         Undefine on Android.
3131 2018-05-13  Bruno Haible  <bruno@clisp.org>
3133         Add cross-compilation guesses for Linux systems without glibc.
3134         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
3135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3136         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3137         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3138         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3139         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3140         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3141         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
3142         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3143         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
3144         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3145         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3146         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3147         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3148         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3149         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3150         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3151         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3153 2018-05-13  Bruno Haible  <bruno@clisp.org>
3155         getpagesize: Fix compilation error on Android.
3156         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
3157         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
3158         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
3159         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
3160         HAVE_GETPAGESIZE accordingly.
3161         * modules/getcwd (Files): Add m4/getpagesize.m4.
3163 2018-05-13  Bruno Haible  <bruno@clisp.org>
3165         tcgetsid: Fix compilation error on Android.
3166         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
3167         AC_CHECK_FUNC.
3169 2018-05-13  Bruno Haible  <bruno@clisp.org>
3171         getpass: Fix configure test for Android.
3172         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
3173         AC_CHECK_FUNC.
3175 2018-05-13  Bruno Haible  <bruno@clisp.org>
3177         ffs: Fix compilation error on Android.
3178         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
3180 2018-05-13  Bruno Haible  <bruno@clisp.org>
3182         mkfifo: Fix compilation error on Android.
3183         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
3184         AC_CHECK_FUNC.
3186 2018-05-13  Bruno Haible  <bruno@clisp.org>
3188         c-strtod: Fix configure test for Android.
3189         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
3190         AC_CHECK_FUNC.
3192 2018-05-13  Bruno Haible  <bruno@clisp.org>
3194         random: Fix compilation error on Android.
3195         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
3196         AC_CHECK_FUNC.
3198 2018-05-13  Bruno Haible  <bruno@clisp.org>
3200         grantpt: Fix compilation error on Android.
3201         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
3202         AC_CHECK_FUNC.
3204 2018-05-13  Bruno Haible  <bruno@clisp.org>
3206         stdioext: Fix compilation errors with newer Android headers.
3207         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
3208         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
3209         fallbacks for Android.
3210         * lib/fpending.c: Update comments.
3211         * lib/fpurge.c: Likewise.
3212         * lib/freadable.h: Likewise.
3213         * lib/freadable.c: Likewise.
3214         * lib/freadahead.c: Likewise.
3215         * lib/freading.h: Likewise.
3216         * lib/freadptr.c: Likewise.
3217         * lib/fseterr.c: Likewise.
3218         * lib/fwritable.h: Likewise.
3219         * lib/fwritable.c: Likewise.
3220         * lib/fwriting.h: Likewise.
3221         * lib/fwriting.c: Likewise.
3223 2018-05-13  Bruno Haible  <bruno@clisp.org>
3225         doc: Add info about Android versions 2.0 to 8.1.
3226         * doc/**/*.texi: Add info about functions in all released versions of
3227         Bionic.
3229 2018-05-12  Bruno Haible  <bruno@clisp.org>
3231         fseeko: On mingw, don't use the hidden function _fseeki64.
3232         Reported by Eli Zaretskii <eliz@gnu.org>.
3233         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
3234         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
3236 2018-05-12  Bruno Haible  <bruno@clisp.org>
3238         glob: Choose 'dirent_type' in a way that works better on mingw.
3239         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
3240         * lib/glob.c (dirent_type): Define as uint_fast32_t.
3242 2018-05-12  Bruno Haible  <bruno@clisp.org>
3244         execute, spawn-pipe: Avoid warning about redefining 'close'.
3245         Reported by Eli Zaretskii <eliz@gnu.org>.
3246         * lib/execute.c: Undefine 'close' before redefining it.
3247         * lib/spawn-pipe.c: Likewise.
3249 2018-05-12  Bruno Haible  <bruno@clisp.org>
3251         nanosleep: Avoid test failure on mingw when it has nanosleep.
3252         Reported by Eli Zaretskii <eliz@gnu.org>.
3253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
3254         If it does not exist, use a simpler test program that does not call
3255         alarm().
3257 2018-05-10  Bruno Haible  <bruno@clisp.org>
3259         lock, cond, thread, tls: Use a different symbol as libpthread witness.
3260         Reported by Devin Hussey <husseydevin@gmail.com>.
3261         Based on a patch by Paul Eggert.
3262         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
3263         as witness of libpthread.
3264         * lib/glthread/cond.h (pthread_in_use): Likewise.
3265         * lib/glthread/thread.h (pthread_in_use): Likewise.
3266         * lib/glthread/tls.h (pthread_in_use): Likewise.
3268 2018-05-10  Bruno Haible  <bruno@clisp.org>
3270         cond tests: Fix compilation error on Solaris.
3271         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
3272         macro.
3274 2018-05-10  Bruno Haible  <bruno@clisp.org>
3276         doc: Add partial info about Android 4.3.
3277         * doc/*-functions/*.texi: Add info about functions that were added
3278         to Bionic between Android 4.3 and Android 9.0.
3280 2018-05-10  Bruno Haible  <bruno@clisp.org>
3282         doc: Add info about Android 9.0.
3283         * doc/**/*.texi: Add info about functions and headers in Bionic from
3284         Android 9.0.
3286 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3288         af_alg: fix my typo in afalg_buffer
3289         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
3290         (afalg_stream): Simplify and avoid the need for a runtime test
3291         at the end.
3293         af_alg: recover better from crypto failures
3294         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3295         input stream is seekable, by repositioning the stream back to
3296         where it was, possibly by just calling sendfile with an offset
3297         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3298         cases, which lets our callers try again with user-mode code.
3299         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3300         instead of on fflush and lseek.
3302         af_alg: distiguish I/O errors better
3303         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3304         not -EIO, if it’s OK for the caller to try again with user-mode code.
3305         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3306         some other error number) if fflush fails, as the caller should not
3307         try again that case.
3309         af_alg: avoid gotos
3310         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3311         gotos, as they were a source of unreliability and made the code a
3312         bit harder to follow.
3314         af_alg: don’t leak file descriptors into children
3315         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3316         This code should be compiled only on recent GNU/Linux platforms
3317         so we shouldn’t have to also depend on the accept4 module.
3319         af_alg: coalesce socket creation
3320         * lib/af_alg.c (alg_socket): New function.
3321         (afalg_buffer, afalg_stream): Use it.  This avoids some
3322         code duplication and gotos.
3324         af_alg: fix file descriptor leak
3325         * lib/af_alg.c (afalg_stream): Close leak.
3327         af_alg: Pacify --enable-gcc-warnings on GCC 8
3328         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3329         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3331 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3333         af_alg: Pacify --enable-gcc-warnings
3334         Problem reported by Assaf Gordon in:
3335         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3336         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3337         gcc -Wjump-misses-init.
3338         * lib/sha512.c (shaxxx_stream): Now static.
3340 2018-05-06  Bruno Haible  <bruno@clisp.org>
3342         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3343         * lib/af_alg.h (afalg_buffer): New declaration.
3344         * lib/af_alg.c (afalg_buffer): New function.
3346 2018-05-06  Bruno Haible  <bruno@clisp.org>
3348         af_alg: Avoid warnings.
3349         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3350         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3352 2018-05-06  Bruno Haible  <bruno@clisp.org>
3354         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3355         * tests/bench-digest.h: New file.
3356         * tests/bench-md5.c: New file.
3357         * tests/bench-sha1.c: New file.
3358         * tests/bench-sha224.c: New file.
3359         * tests/bench-sha256.c: New file.
3360         * tests/bench-sha384.c: New file.
3361         * tests/bench-sha512.c: New file.
3362         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3363         tests/bench-digest.h.
3364         (Depends-on): Add getrusage, gettimeofday.
3365         (Makefile.am): Add variables to build bench-md5.
3366         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3367         tests/bench-digest.h.
3368         (Depends-on): Add getrusage, gettimeofday.
3369         (Makefile.am): Add variables to build bench-sha1.
3370         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3371         tests/bench-sha256.c, tests/bench-digest.h.
3372         (Depends-on): Add getrusage, gettimeofday.
3373         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3374         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3375         tests/bench-sha512.c, tests/bench-digest.h.
3376         (Depends-on): Add getrusage, gettimeofday.
3377         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3379 2018-05-06  Bruno Haible  <bruno@clisp.org>
3381         af_alg: Fix a resource leak.
3382         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3383         New local variable 'result'.
3385 2018-05-06  Bruno Haible  <bruno@clisp.org>
3387         af_alg: Fix bug with streams that are not at position 0.
3388         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3389         assume that the stream is positioned at position 0.
3390         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3391         of the stream.
3392         * lib/md5.h (md5_stream): Likewise.
3393         * lib/sha1.h (sha1_stream): Likewise.
3394         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3395         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3396         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3398         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3399         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3400         stream that is not positioned at the beginning.
3402 2018-05-06  Bruno Haible  <bruno@clisp.org>
3404         af_alg: Add configure option to enable/disable use of Linux crypto API.
3405         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3406         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3407         USE_LINUX_CRYPTO_API.
3408         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3409         * lib/af_alg.c: Likewise.
3411 2018-05-06  Bruno Haible  <bruno@clisp.org>
3413         Followup to 'af_alg: New module.'.
3414         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3415         * modules/crypto/sha1 (Depends-on): Likewise.
3416         * modules/crypto/sha256 (Depends-on): Likewise.
3417         * modules/crypto/sha512 (Depends-on): Likewise.
3419 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3421         crypto/{md5,sha1,sha256,sha512}: simplify
3422         * lib/md5.c (md5_stream):
3423         * lib/sha1.c (sha1_stream):
3424         * lib/sha256.c (shaxxx_stream):
3425         Simplify, partly by assuming C99.
3426         * lib/sha256.c (shaxxx_stream):
3427         New function, which implements both sha256 and sha224.
3428         Simplify, partly by assuming C99.
3429         (sha256_stream, sha224_stream):
3430         Use it to avoid code duplication, removing a FIXME.
3431         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3432         Likewise.
3434         af_alg: Improve comments.
3435         * lib/af_alg.h: Use imperatives and tighten up wording.
3437 2018-05-05  Bruno Haible  <bruno@clisp.org>
3439         af_alg: Improve comments.
3440         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3442 2018-05-05  Bruno Haible  <bruno@clisp.org>
3444         af_alg: New module.
3445         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3446         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3447         * lib/md5.c: Include "af_alg.h" unconditionally.
3448         (md5_stream): Invoke afalg_stream unconditionally.
3449         * lib/sha1.c: Include "af_alg.h" unconditionally.
3450         (sha1_stream): Invoke afalg_stream unconditionally.
3451         * lib/sha256.c: Include "af_alg.h" unconditionally.
3452         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3453         * lib/sha512.c: Include "af_alg.h" unconditionally.
3454         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3455         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3456         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3457         * modules/crypto/af_alg: New file.
3458         * modules/crypto/md5 (Files): Remove files that are now in the
3459         'crypto/af_alg' module.
3460         (Depends-on): Add crypto/af_alg.
3461         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3462         (Makefile.am): Don't mention af_alg.c here.
3463         * modules/crypto/sha1 (Files): Remove files that are now in the
3464         'crypto/af_alg' module.
3465         (Depends-on): Add crypto/af_alg.
3466         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3467         (Makefile.am): Don't mention af_alg.c here.
3468         * modules/crypto/sha256 (Files): Remove files that are now in the
3469         'crypto/af_alg' module.
3470         (Depends-on): Add crypto/af_alg.
3471         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3472         (Makefile.am): Don't mention af_alg.c here.
3473         * modules/crypto/sha512 (Files): Remove files that are now in the
3474         'crypto/af_alg' module.
3475         (Depends-on): Add crypto/af_alg.
3476         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3477         (Makefile.am): Don't mention af_alg.c here.
3479 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3481         crypto tests: pacify GCC
3482         * tests/test-digest.h (test_digest_on_files):
3483         Don’t assume digest size fits in int (!).
3485         af_alg: minor style improvements
3486         * lib/af_alg.c (afalg_stream): Prefer C99 style
3487         decl-after-statement, since we’re already assuming C99.  Clarify
3488         by strengthening the bind test and omit unnecessary assignment.
3490 2018-05-05  Bruno Haible  <bruno@clisp.org>
3492         af_alg: Fix bug on empty files.
3493         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3494         stream is empty.
3496 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3498         sys-limits.h: new file for crypto and safe I/O
3499         * lib/af_alg.c: Include sys-limits.h.
3500         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3501         (afalg_stream): Also reject negative sizes for sendfile; they
3502         should not happen and the code is a bit cleaner and faster this way.
3503         * lib/safe-read.c: Include sys-limits.h.
3504         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3505         * lib/sys-limits.h: New file, with values and commentary derived
3506         from the old safe-read.c and from GNU Emacs sysdep.c.
3507         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3508         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3509         Add lib/sys-limits.h to Files section.
3511 2018-05-05  Bruno Haible  <bruno@clisp.org>
3513         af_alg: Improve function signature.
3514         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3515         * lib/af_alg.c (afalg_stream): Likewise.
3516         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3518 2018-05-05  Bruno Haible  <bruno@clisp.org>
3520         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3521         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3522         * modules/crypto/sha1 (Depends-on): Likewise.
3523         * modules/crypto/sha256 (Depends-on): Likewise.
3524         * modules/crypto/sha512 (Depends-on): Likewise.
3526 2018-05-05  Bruno Haible  <bruno@clisp.org>
3528         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3529         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3530         * modules/crypto/sha1 (Depends-on): Likewise.
3531         * modules/crypto/sha256 (Depends-on): Likewise.
3532         * modules/crypto/sha512 (Depends-on): Likewise.
3534 2018-05-05  Bruno Haible  <bruno@clisp.org>
3536         af_alg: Add documentation.
3537         * lib/af_alg.h: Add comments.
3539 2018-05-05  Bruno Haible  <bruno@clisp.org>
3541         sha512: Add tests.
3542         * tests/test-sha512.c: New file.
3543         * modules/crypto/sha512-tests: New file.
3545 2018-05-05  Bruno Haible  <bruno@clisp.org>
3547         sha256: Add tests.
3548         * tests/test-sha256.c: New file.
3549         * modules/crypto/sha256-tests: New file.
3551 2018-05-05  Bruno Haible  <bruno@clisp.org>
3553         sha1 tests: Add test for sha1_stream.
3554         * tests/test-sha1.c: Include test-digest.h.
3555         (main): Invoke test_digest_on_files on 'sha1_stream'.
3556         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
3558 2018-05-05  Bruno Haible  <bruno@clisp.org>
3560         md5 tests: Add test for md5_stream.
3561         * tests/test-digest.h: New file.
3562         * tests/test-md5.c: Include test-digest.h.
3563         (main): Invoke test_digest_on_files on 'md5_stream'.
3564         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
3566 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3568         md5sum: Use AF_ALG when available.
3569         * lib/md5.c: Include af_alg.h.
3570         (md5_stream): Use afalg_stream when available.
3571         * modules/crypto/md5 (Files): Add the af_alg files.
3572         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3573         (Makefile.am): Add af_alg.c.
3575 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3577         sha512sum: Use AF_ALG when available.
3578         * lib/sha512.c: Include af_alg.h.
3579         (sha512_stream, sha384_stream): Use afalg_stream when available.
3580         * modules/crypto/sha512 (Files): Add the af_alg files.
3581         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3582         (Makefile.am): Add af_alg.c.
3584 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3586         sha256sum: Use AF_ALG when available.
3587         * lib/sha256.c: Include af_alg.h.
3588         (sha256_stream, sha224_stream): Use afalg_stream when available.
3589         * modules/crypto/sha256 (Files): Add the af_alg files.
3590         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3591         (Makefile.am): Add af_alg.c.
3593 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3595         sha1sum: Use AF_ALG when available.
3596         * lib/af_alg.h: New file.
3597         * lib/af_alg.c: New file.
3598         * lib/sha1.c: Include af_alg.h.
3599         (sha1_stream): Use afalg_stream when available.
3600         * m4/linux-if-alg.m4: New file.
3601         * modules/crypto/sha1 (Files): Add the new files.
3602         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3603         (Makefile.am): Add af_alg.c.
3605 2018-05-05  Bruno Haible  <bruno@clisp.org>
3607         all: Replace more http URLs by https URLs.
3608         * lib/localename.c: Use https: URL.
3609         * lib/timespec.h: Likewise.
3611 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3613         maint: port more modules to GCC 8
3614         * lib/dirname.h (base_name):
3615         * lib/exclude.h (new_exclude):
3616         * lib/xstrndup.h (xstrndup):
3617         Add malloc attribute.
3618         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
3619         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
3620         This pacifies GCC 8.
3621         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3622         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
3624 2018-05-03  Bruno Haible  <bruno@clisp.org>
3626         Simplify code. Drop support for Borland C++ on Windows.
3627         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
3628         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
3629         'defined _WIN32'.
3630         * lib/canonicalize-lgpl.c: Likewise.
3631         * lib/classpath.c: Likewise.
3632         * lib/clean-temp.c: Likewise.
3633         * lib/csharpexec.c: Likewise.
3634         * lib/ctime.c: Likewise.
3635         * lib/dosname.h: Likewise.
3636         * lib/dup2.c: Likewise.
3637         * lib/errno.in.h: Likewise.
3638         * lib/error.c: Likewise.
3639         * lib/euidaccess.c: Likewise.
3640         * lib/execute.c: Likewise.
3641         * lib/fcntl.in.h: Likewise.
3642         * lib/fcntl.c: Likewise.
3643         * lib/filename.h: Likewise.
3644         * lib/findprog.c: Likewise.
3645         * lib/flock.c: Likewise.
3646         * lib/fopen.c: Likewise.
3647         * lib/freopen.c: Likewise.
3648         * lib/fstat.c: Likewise.
3649         * lib/fsync.c: Likewise.
3650         * lib/gc-gnulib.c: Likewise.
3651         * lib/get-rusage-data.c: Likewise.
3652         * lib/getaddrinfo.c: Likewise.
3653         * lib/getdelim.c: Likewise.
3654         * lib/getdtablesize.c: Likewise.
3655         * lib/gethostname.c: Likewise.
3656         * lib/getlogin.c: Likewise.
3657         * lib/getlogin_r.c: Likewise.
3658         * lib/getopt.c: Likewise.
3659         * lib/getpagesize.c: Likewise.
3660         * lib/getpass.c: Likewise.
3661         * lib/getrusage.c: Likewise.
3662         * lib/gettimeofday.c: Likewise.
3663         * lib/glob.c: Likewise.
3664         * lib/inttypes.in.h: Likewise.
3665         * lib/isapipe.c: Likewise.
3666         * lib/javaexec.c: Likewise.
3667         * lib/link.c: Likewise.
3668         * lib/localcharset.c: Likewise.
3669         * lib/localename.h: Likewise.
3670         * lib/localename.c: Likewise.
3671         * lib/localtime.c: Likewise.
3672         * lib/lseek.c: Likewise.
3673         * lib/mbsinit.c: Likewise.
3674         * lib/mkdir.c: Likewise.
3675         * lib/msvc-nothrow.h: Likewise.
3676         * lib/nanosleep.c: Likewise.
3677         * lib/nl_langinfo.c: Likewise.
3678         * lib/nonblocking.c: Likewise.
3679         * lib/nproc.c: Likewise.
3680         * lib/open.c: Likewise.
3681         * lib/openpty.c: Likewise.
3682         * lib/pathmax.h: Likewise.
3683         * lib/pipe-filter-aux.c: Likewise.
3684         * lib/pipe-filter-gi.c: Likewise.
3685         * lib/pipe-filter-ii.c: Likewise.
3686         * lib/pipe.c: Likewise.
3687         * lib/pipe2.c: Likewise.
3688         * lib/poll.c: Likewise.
3689         * lib/popen.c: Likewise.
3690         * lib/posix_openpt.c: Likewise.
3691         * lib/printf-parse.c: Likewise.
3692         * lib/progreloc.c: Likewise.
3693         * lib/putenv.c: Likewise.
3694         * lib/read.c: Likewise.
3695         * lib/relocatable.c: Likewise.
3696         * lib/rename.c: Likewise.
3697         * lib/same-inode.h: Likewise.
3698         * lib/secure_getenv.c: Likewise.
3699         * lib/select.c: Likewise.
3700         * lib/sethostname.c: Likewise.
3701         * lib/setlocale.c: Likewise.
3702         * lib/sigaction.c: Likewise.
3703         * lib/sigprocmask.c: Likewise.
3704         * lib/sleep.c: Likewise.
3705         * lib/spawn-pipe.h: Likewise.
3706         * lib/spawn-pipe.c: Likewise.
3707         * lib/spawni.c: Likewise.
3708         * lib/stat-time.h: Likewise.
3709         * lib/stat-w32.c: Likewise.
3710         * lib/stat.c: Likewise.
3711         * lib/stdio.in.h: Likewise.
3712         * lib/stdio-impl.h: Likewise.
3713         * lib/stdio-read.c: Likewise.
3714         * lib/stdio-write.c: Likewise.
3715         * lib/stdlib.in.h: Likewise.
3716         * lib/strerror_r.c: Likewise.
3717         * lib/strftime-fixes.c: Likewise.
3718         * lib/sys_stat.in.h: Likewise.
3719         * lib/sys_types.in.h: Likewise.
3720         * lib/sys_wait.in.h : Likewise.
3721         * lib/system-quote.h: Likewise.
3722         * lib/system-quote.c: Likewise.
3723         * lib/tmpdir.c: Likewise.
3724         * lib/tzset.c: Likewise.
3725         * lib/uname.c: Likewise.
3726         * lib/unistd.in.h: Likewise.
3727         * lib/utime.in.h: Likewise.
3728         * lib/utime.c: Likewise.
3729         * lib/utimecmp.c: Likewise.
3730         * lib/utimens.c: Likewise.
3731         * lib/vasnprintf.c: Likewise.
3732         * lib/vma-iter.h: Likewise.
3733         * lib/vma-iter.c: Likewise.
3734         * lib/wait-process.c: Likewise.
3735         * lib/wcsftime.c: Likewise.
3736         * lib/wctype.in.h: Likewise.
3737         * lib/write.c: Likewise.
3738         * tests/nap.h: Likewise.
3739         * tests/test-cloexec.c: Likewise.
3740         * tests/test-dup-safer.c: Likewise.
3741         * tests/test-dup2.c: Likewise.
3742         * tests/test-dup3.c: Likewise.
3743         * tests/test-fcntl.c: Likewise.
3744         * tests/test-get-rusage-data.c: Likewise.
3745         * tests/test-getaddrinfo.c: Likewise.
3746         * tests/test-getlogin.h: Likewise.
3747         * tests/test-isatty.c: Likewise.
3748         * tests/test-localename.c: Likewise.
3749         * tests/test-mbrtowc-w32.c: Likewise.
3750         * tests/test-nonblocking.c: Likewise.
3751         * tests/test-nonblocking-pipe-main.c: Likewise.
3752         * tests/test-nonblocking-socket-main.c: Likewise.
3753         * tests/test-nonblocking-socket.h: Likewise.
3754         * tests/test-pipe.c: Likewise.
3755         * tests/test-pipe2.c: Likewise.
3756         * tests/test-poll.c: Likewise.
3757         * tests/test-pthread_sigmask1.c: Likewise.
3758         * tests/test-select.h: Likewise.
3759         * tests/test-sethostname2.c: Likewise.
3760         * tests/test-sigprocmask.c: Likewise.
3761         * tests/test-spawn-pipe-child.c: Likewise.
3762         * tests/test-stat-time.c: Likewise.
3763         * tests/test-system-quote-main.c: Likewise.
3764         * tests/test-utimens-common.h: Likewise.
3765         * tests/test-wcrtomb-w32.c: Likewise.
3766         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3767         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3768         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3769         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3770         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
3771         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3772         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3773         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3774         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3775         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3776         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
3777         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
3778         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3779         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3780         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
3781         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3783 2018-05-02  Bruno Haible  <bruno@clisp.org>
3785         localename: Fix test failures on mingw.
3786         * lib/localename.c (gl_locale_name_thread): Remove code specific to
3787         native Windows.
3788         (gl_locale_name_posix): Move code specific to native Windows here.
3789         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
3790         Accept result without charset suffix, as it appears on mingw.
3792 2018-04-28  Paul Smith  <psmith@gnu.org>
3794         bootstrap: Avoid gnulib operations if not needed
3795         * build-aux/bootstrap: Remove unused variable gnulib_mk.
3796         Set $gnulib_extra_files early so it can be overridden in .conf.
3797         Remove redundant --import flag from $gnulib_tool_options.
3798         Set $use_gnulib to false if no gnulib modules or files are needed.
3799         If $use_gnulib is false, don't do anything related to gnulib.
3800         A lot of this is just whitespace (indentation) changes.
3802 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
3804         manywarnings: port to GCC 8.0
3805         * build-aux/gcc-warning.spec: Add -Wcatch-value,
3806         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
3807         fact that the GCC help message now mentions operands for
3808         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
3809         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
3810         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
3811         and -Wunused-const-variable.
3812         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
3813         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
3814         -Wmissing-attributes, -Wmultistatement-macros,
3815         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
3816         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
3818 2018-04-24  Bruno Haible  <bruno@clisp.org>
3820         sys_socket: Make SO_REUSEPORT available across platforms.
3821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3822         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
3823         * doc/posix-headers/sys_socket.texi: Mention the issue.
3824         * tests/test-poll.c (SO_REUSEPORT): Remove.
3825         * tests/test-select.h: Include <sys/socket.h>.
3826         (SO_REUSEPORT): Remove.
3827         * modules/select-tests (Depends-on): Add 'sys_socket'.
3829 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3831         localcharset: short-circuit the search for an alias on a Mac
3832         * lib/localcharset.c (get_charset_aliases): Add a tautological
3833         UTF-8 entry to speed up the search for this case.
3834         Most machines default to a UTF-8 locale nowadays, so begin the
3835         list of aliases with a dummy UTF-8 entry so it will be found
3836         immediately and a time-consuming search through the rest of
3837         the list is avoided.
3839 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3841         fts: add comment
3842         * lib/fts.c (fts_build): Explain why ==, not >.
3843         See remark by Bernhard Voelker in:
3844         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
3846         fts: fix bug in find across filesystems
3847         This fixes a bug I introduced last summer.
3848         Problem reported by Kamil Dudka in:
3849         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
3850         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
3851         (leaf_optimization):
3852         New arg for file descriptor.  All callers changed.
3853         (fts_build): Check for whether inodes should be sorted
3854         before closing the directory.
3856 2018-04-07  Bruno Haible  <bruno@clisp.org>
3858         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
3859         Reported by Genki Sky <sky@genki.is>.
3860         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
3861         version 0.9.10 or newer.
3862         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
3863         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
3864         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
3865         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
3866         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
3868 2018-04-07  Bruno Haible  <bruno@clisp.org>
3870         execute: Update comment.
3871         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
3873 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3875         fts: treat CIFS like NFS
3876         Problem reported by Kamil Dudka in:
3877         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
3878         * lib/fts.c (S_MAGIC_CIFS): New macro.
3879         (dirent_inode_sort_may_be_useful, leaf_optimization):
3880         Treat CIFS like NFS.
3882 2018-03-28  Bruno Haible  <bruno@clisp.org>
3884         c-stack: Fix possible build failure on some platforms.
3885         * lib/c-stack.c (die): Define whenever this function is referenced.
3887 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
3889         time_rz: fix workaround for Mac OS X 10.6 infloop
3890         Problems reported by Charles A. Roelli (Bug#27736#117).
3891         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
3892         Also, discard output, which clutters the 'configure' log.
3894 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
3896         havelib: port to Solaris 10 /bin/sh
3897         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
3898         instead of '! test EXPR'.
3900 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
3902         time_rz: work around Mac OS X 10.6 infloop
3903         * doc/posix-functions/localtime.texi:
3904         * doc/posix-functions/localtime_r.texi: Mention the bug.
3905         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
3906         better to fix localtime and localtime_r instead, but that would be
3907         more work and is not needed to fix the Emacs problem.
3908         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
3910 2018-03-24  Jim Meyering  <meyering@fb.com>
3912         test-version-etc.sh: don't use diff directly: use init.sh's compare
3913         We'd rather not sacrifice readable "diff -u" output even for
3914         "diff -c" output (not supported by busybox) or for even less
3915         readable ed-style "diff" output.  So use init.sh's compare function
3916         * tests/test-version-etc.sh: Source init.sh and add "." to path.
3917         Remove "./" from invocation of test-version-etc, so we use path.
3918         And s/diff/compare/.
3919         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
3920         to get init.sh.
3921         Prompted by Eric Blake's comments in
3922         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
3924 2018-03-24  Bruno Haible  <bruno@clisp.org>
3926         javacomp-script, javacomp: Add support for Java 10.
3927         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
3928         target-version 10.
3929         * lib/javaversion.h: Update comments.
3930         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3931         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3932         TARGET_VERSION_BOUND, target_version_index,
3933         corresponding_classfile_version): Accept source_version 10 and
3934         target_version 10.
3935         * lib/javacomp.h: Update comments accordingly.
3937 2018-03-24  Bruno Haible  <bruno@clisp.org>
3939         javacomp-script, javacomp: Update comments.
3940         * m4/javacomp.m4: Update comments regarding gcj.
3941         * lib/javacomp.h: Likewise.
3943 2018-03-24  Bruno Haible  <bruno@clisp.org>
3945         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
3946         * lib/javaversion.h: Update comments.
3947         * lib/javacomp.h: Likewise.
3948         * lib/javacomp.c (default_target_version, source_version_index,
3949         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
3950         "1.9".
3951         (TARGET_VERSION_BOUND): Bump to 9.
3952         (target_version_index, corresponding_classfile_version): Recognize "9"
3953         instead of "1.9".
3954         (get_source_version_for_javac): New function.
3955         (is_envjavac_nongcj_usable, is_javac_usable): Add
3956         source_version_for_javac argument.
3957         (compile_java_class): Determine and pass source_version_for_javac.
3958         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
3959         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
3960         appropriate.
3962 2018-03-23  Jim Meyering  <meyering@fb.com>
3964         test-version-etc.sh: port to diff without -c
3965         * tests/test-version-etc.sh: Don't use diff's -c option.
3966         This caused spurious test failure on Alpine Linux, which
3967         uses busybox's diff. Reported by Assaf Gordon in
3968         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
3970 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3972         c-stack: port to recent GCC build
3973         Problem reported by The Fireplace (Bug#30913).
3974         * lib/c-stack.c (die): Define only if used.
3976 2018-03-20  Bruno Haible  <bruno@clisp.org>
3978         euidaccess: Port to native Windows.
3979         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
3980         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
3982 2018-03-19  Bruno Haible  <bruno@clisp.org>
3984         javacomp: Add support for Java 7, 8, 9.
3985         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3986         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3987         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
3988         and target_version 1,7, 1.8, 1.9.
3989         * lib/javacomp.h: Update comments accordingly.
3991 2018-03-19  Bruno Haible  <bruno@clisp.org>
3993         javacomp-script: Add support for Java 9.
3994         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
3995         target-version 1.9.
3997 2018-03-16  Bruno Haible  <bruno@clisp.org>
3999         glob: Don't compile replacements on recent glibc systems.
4000         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
4001         REPLACE_GLOB is 0, include the system's <glob.h> and use
4002         _GL_CXXALIAS_SYS.
4003         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
4004         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
4005         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
4006         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
4007         Remove snippet/warn-on-use.
4008         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
4009         (Makefile.am): Create glob.h always. Update list of substitutions in
4010         glob.h. Don't depend on $(WARN_ON_USE_H).
4012 2018-03-16  Bruno Haible  <bruno@clisp.org>
4014         glob: Fix link error on native Windows.
4015         * modules/glob (Depends-on): Add 'lstat'.
4017 2018-03-15  Bruno Haible  <bruno@clisp.org>
4019         glob: Fix compilation error in C++ mode.
4020         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
4022 2018-03-15  Bruno Haible  <bruno@clisp.org>
4024         host-cpu-c-abi: Support for RISC-V CPU.
4025         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
4026         riscv32 and riscv64 ABIs.
4027         References:
4028         https://github.com/riscv/riscv-toolchain-conventions
4029         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
4030         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
4032 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4034         fflush: be more paranoid about libio.h change
4035         Suggested by Eli Zaretskii in:
4036         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
4037         * lib/fbufmode.c (fbufmode):
4038         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4039         (disable_seek_optimization, rpl_fflush):
4040         * lib/fpending.c (__fpending):
4041         * lib/fpurge.c (fpurge):
4042         * lib/freadable.c (freadable):
4043         * lib/freadahead.c (freadahead):
4044         * lib/freading.c (freading):
4045         * lib/freadptr.c (freadptr):
4046         * lib/freadseek.c (freadptrinc):
4047         * lib/fseeko.c (fseeko):
4048         * lib/fseterr.c (fseterr):
4049         * lib/fwritable.c (fwritable):
4050         * lib/fwriting.c (fwriting):
4051         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
4053 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4055         maint: write-file-hooks -> before-save-hook
4056         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
4057         it's time to use the recommended replacement.
4058         Problem reported by Glenn Morris in:
4059         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
4060         * build-aux/announce-gen, build-aux/bootstrap:
4061         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
4062         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
4063         * build-aux/gnu-web-doc-update, build-aux/gnupload:
4064         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
4065         * build-aux/update-copyright, build-aux/useless-if-before-free:
4066         * build-aux/vc-list-files:
4067         Update hook usage for files where Gnulib is the canonical source.
4069 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4071         binary-io: pacify gcc -Wunused-parameter
4072         Problem reported by Reuben Thomas in:
4073         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
4074         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
4075         Use _GL_UNUSED where appropriate.
4077         fflush: adjust to glibc 2.28 libio.h removal
4078         Problem reported by Daniel P. Berrangé in:
4079         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
4080         * lib/fbufmode.c (fbufmode):
4081         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4082         (disable_seek_optimization, rpl_fflush):
4083         * lib/fpending.c (__fpending):
4084         * lib/fpurge.c (fpurge):
4085         * lib/freadable.c (freadable):
4086         * lib/freadahead.c (freadahead):
4087         * lib/freading.c (freading):
4088         * lib/freadptr.c (freadptr):
4089         * lib/freadseek.c (freadptrinc):
4090         * lib/fseeko.c (fseeko):
4091         * lib/fseterr.c (fseterr):
4092         * lib/fwritable.c (fwritable):
4093         * lib/fwriting.c (fwriting):
4094         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
4095         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
4096         Define if not already defined.
4098 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
4100         environ: fix link error on 32-bit Cygwin
4101         Problem reported for GNU Emacs by Ken Brown in:
4102         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
4103         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
4105 2018-02-24  Bruno Haible  <bruno@clisp.org>
4107         mbrtowc tests: Fix regression on glibc.
4108         Reported by Bernhard Voelker.
4109         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4111 2018-02-24  Bruno Haible  <bruno@clisp.org>
4113         striconveha, uniconv/*: Avoid test failures on musl libc.
4114         * tests/iconvsupport.c: New file.
4115         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
4116         does not support the ISO-2022-JP-2 encoding.
4117         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4118         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4119         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4120         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4121         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4122         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4123         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
4124         (Makefile.am): Link test-striconveha with iconvsupport.o.
4125         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
4126         tests/iconvsupport.c.
4127         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
4128         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
4129         tests/iconvsupport.c.
4130         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
4131         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
4132         tests/iconvsupport.c.
4133         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
4134         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
4135         tests/iconvsupport.c.
4136         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
4137         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
4138         tests/iconvsupport.c.
4139         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
4140         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
4141         tests/iconvsupport.c.
4142         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
4144 2018-02-24  Bruno Haible  <bruno@clisp.org>
4146         localename: Add support for musl libc.
4147         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
4148         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
4149         on Linux platforms which define NL_LOCALE_NAME.
4151 2018-02-24  Bruno Haible  <bruno@clisp.org>
4153         mbrtowc tests: Don't make assumptions about the charset the C locale.
4154         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
4155         particular mapping in the C locale.
4157 2018-02-24  Bruno Haible  <bruno@clisp.org>
4159         ptsname_r: Don't expect that this function sets errno.
4160         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
4161         from ptsname_r().
4162         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
4164 2018-02-23  Bruno Haible  <bruno@clisp.org>
4166         xmalloca: pacify gcc -Wbad-function-cast
4167         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
4169 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4171         nl_langinfo: pacify gcc -Wunused-function
4172         * lib/nl_langinfo.c (ctype_codeset): Do not define if
4173         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
4174         this case.  Without this change, I got a diagnostic when building
4175         coreutils on Fedora 27 with gcc 7.3.1 20180130.
4177         same: pacify gcc -Wunused-variable
4178         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
4179         Omit unused variable.
4181         malloca: pacify gcc -Wbad-function-cast
4182         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
4183         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
4184         To pacify GCC, I had to cast alloca’s result to some type other
4185         than void * before casting that to uintptr_t.
4187 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4189         utimecmp: new function utimecmpat
4190         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
4191         Do not include utimens.h.
4192         (utimecmpat): New function, generalizing utimecmp.
4193         (utimecmp): Now a thin layer around utimecmpat.
4194         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
4195         utimensat instead of on lstat and utimens.
4197         same: new function same_nameat
4198         * lib/same.c: Include fcntl.h.
4199         * lib/same.c (same_nameat): New function, generalizing same_name.
4200         (same_name): Now a thin layer around same_nameat.
4201         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
4202         * modules/same (Depends-on): Depend on fstatat, openat.
4204 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
4206         warnings: Add support for Objective C.
4207         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
4208         macro.
4210 2018-02-17  Bruno Haible  <bruno@clisp.org>
4212         lock: Fix test-once1 crash on FreeBSD11.
4213         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
4214         'pthread_create', not 'pthread_cancel'.
4216 2018-02-17  Bruno Haible  <bruno@clisp.org>
4218         lock: Add test of gl_once.
4219         * tests/test-once.c: New file.
4220         * modules/lock-tests (Files): Add it.
4221         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
4223 2018-02-17  Bruno Haible  <bruno@clisp.org>
4225         thread: Fix compilation error on IRIX.
4226         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
4227         needed; include it outside the C++ extern "C" {} block.
4228         * doc/posix-headers/pthread.texi: Mention the problem with
4229         pthread_atfork on IRIX.
4231 2018-02-04  Bruno Haible  <bruno@clisp.org>
4233         nl_langinfo: Override the system's nl_langinfo() when needed.
4234         Reported by Jim Meyering.
4235         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
4236         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
4238 2018-02-04  Bruno Haible  <bruno@clisp.org>
4240         signal-h, monetary, strings: Fix build failure in some cases.
4241         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4242         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
4243         as delimiter in sed command, not '|'.
4244         * modules/monetary (Makefile.am): Likewise.
4245         * modules/strings (Makefile.am): Likewise.
4247 2018-02-03  Jim Meyering  <meyering@fb.com>
4249         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
4250         * top/maint.mk (sc_file_system): Don't complain about
4251         "/proc/filesystems".
4253 2018-02-03  Bruno Haible  <bruno@clisp.org>
4255         stdlib: Fix compilation error on OpenIndiana.
4256         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
4257         <sys/time.h>.
4258         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4259         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4261 2018-02-03  Bruno Haible  <bruno@clisp.org>
4263         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
4264         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
4265         and use $EGREP instead of 'grep -E'.
4266         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
4267         'grep -E'.
4269 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4271         malloca: Add a compile-time verification.
4272         * lib/malloca.c (small_t): Verify that it is wide enough.
4273         * modules/malloca (Depends-on): Add verify.
4275 2018-02-02  Bruno Haible  <bruno@clisp.org>
4277         malloca: Add an argument check.
4278         Suggested by Paul Eggert.
4279         * lib/malloca.c (freea): Check against an invalid argument.
4281 2018-02-02  Bruno Haible  <bruno@clisp.org>
4283         localename: Add support for OpenIndiana.
4284         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
4285         Solaris 11 variants with uselocale() but without getlocalename_l().
4287 2018-02-02  Bruno Haible  <bruno@clisp.org>
4289         malloca, xmalloca: Make multithread-safe.
4290         Reported by Florian Weimer <fweimer@redhat.com>.
4291         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
4292         * lib/malloca.h (malloca): In the stack allocation case, return a
4293         pointer that is a multiple of 2 * sa_alignment_max.
4294         (sa_increment): Remove enum item.
4295         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4296         a pointer that is a multiple of 2 * sa_alignment_max.
4297         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4298         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4299         HASH_TABLE_SIZE, mmalloca_results): Remove.
4300         (small_t): New type.
4301         (mmalloca, free): Rewritten.
4302         * lib/malloca.valgrind: Remove file.
4303         * modules/malloca (Files): Remove it.
4304         (Depends-on): Remove verify.
4306 2018-01-31  Bruno Haible  <bruno@clisp.org>
4308         environ: Fix link error on 64-bit Cygwin.
4309         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4310         __declspec(dllimport) attribute.
4311         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4313 2018-01-30  Bruno Haible  <bruno@clisp.org>
4315         get-rusage-data: Add support for Minix 3.
4316         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4318 2018-01-30  Bruno Haible  <bruno@clisp.org>
4320         vma-iter: Add support for Minix 3.
4321         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4322         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4324 2018-01-27  Bruno Haible  <bruno@clisp.org>
4326         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4327         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4328         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4329         _HPUX_ALT_XOPEN_SOCKET_API.
4330         * modules/accept (Depends-on): Add 'extensions'.
4331         * modules/getpeername (Depends-on): Likewise.
4332         * modules/getsockname (Depends-on): Likewise.
4333         * modules/getsockopt (Depends-on): Likewise.
4334         * modules/recvfrom (Depends-on): Likewise.
4335         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4336         * doc/posix-functions/getpeername.texi: Likewise.
4337         * doc/posix-functions/getsockname.texi: Likewise.
4338         * doc/posix-functions/getsockopt.texi: Likewise.
4339         * doc/posix-functions/recvfrom.texi: Likewise.
4341 2018-01-27  Bruno Haible  <bruno@clisp.org>
4343         getsockname tests: More tests.
4344         * tests/test-getsockname.c (open_server_socket): New function, mostly
4345         copied from test-poll.c.
4346         (main): Check that getsockname fills in addr.
4347         * modules/getsockname-tests (Depends-on): Add the necessary
4348         dependencies.
4349         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4351 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4353         manywarnings: fix maintainer comment
4354         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4355         it does not mistakenly think that ‘-1)’ is an option.
4357 2018-01-26  Bruno Haible  <bruno@clisp.org>
4359         langinfo: Fix last commit.
4360         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4361         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4363 2018-01-24  Bruno Haible  <bruno@clisp.org>
4365         langinfo, nl_langinfo: Add support for alternative month names.
4366         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4367         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4368         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4369         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4370         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4371         * doc/posix-functions/nl_langinfo.texi: Likewise.
4373 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4375         Merge strftime.c changes from glibc
4376         This incorporates:
4377         2017-11-14 [BZ #10871] Implement alternative month names
4378         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4379         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4380         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4381         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4382         Use locale_t, not __locale_t.
4383         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4384         (__strftime_internal): Add support for alternate months.
4386 2018-01-23  Bruno Haible  <bruno@clisp.org>
4388         doc: Mention another prerequisite for using Gnulib.
4389         Reported at <https://stackoverflow.com/questions/48378214/>.
4390         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4391         AC_CONFIG_HEADERS.
4393 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4395         build: GuixSD doesn't have /bin/bash
4396         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4398 2018-01-21  Bruno Haible  <bruno@clisp.org>
4400         Avoid test failures on Microsoft Windows Subsystem for Linux.
4401         * tests/test-fcntl.c (main): Allow a different errno.
4402         * tests/test-rename.h (test_rename): Likewise.
4403         * tests/test-renameat.c (main): Likewise.
4404         * tests/test-renameat2.c (main): Likewise.
4406 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4408         filenamecat: make base a suffix of result
4409         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4410         (mfile_name_concat): Always make BASE a suffix of the result, as
4411         cp expects this.  To implement this, separate with '.' instead of
4412         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4413         * tests/test-filenamecat.c (main): Adjust tests to match
4414         current behavior.  Check that BASE_IN_RESULT points to
4415         a copy of BASE and is a suffix of the resultk, and that DIR
4416         is a prefix of the result that is no longer than the prefix
4417         indicated by BASE_IN_RESULT.
4419 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4421         update-copyright: Handle use of ©
4422         * build-aux/update-copyright ($circle_c_re): Update regex to
4423         handle use of © in headers.
4425 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4427         Fix -Wundef warning in user-included header lib/cdefs.h.
4428         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4430 2018-01-04  Bruno Haible  <bruno@clisp.org>
4432         pthread_sigmask: Avoid compilation error on mingw.
4433         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4434         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4435         macro.
4437 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4439         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4440         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4441         Suggested by Bob Proulx (Bug#29968).
4442         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4444 2018-01-02  Eric Blake  <eblake@redhat.com>
4446         stat-time: silence -Wunused-parameter regression
4447         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4448         Prefer attribute over cast-to-void.
4449         (stat_time_normalize): Mark st as potentially unused.
4451 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4453         test-framework-sh: avoid netstat
4454         Problem reported by Kristýna Streitová (Bug#29947).
4455         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4456         deprecated on SuSE and it's not that important anyway.
4458 2018-01-01  Jim Meyering  <meyering@fb.com>
4460         update-copyright: add code to handle more special cases
4461         After running "make update-copyright" this year, five files
4462         required additional manual changes.  Automate those adjustments
4463         for next year.
4464         * Makefile (_year_and_prev): Define.
4465         (update-copyright): Add perl commands to induce this year's post-
4466         update-copyright adjustments.
4468 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4470         version-etc: new year
4471         * build-aux/gendocs.sh (version):
4472         * doc/gendocs_template:
4473         * doc/gendocs_template_min:
4474         * doc/gnulib.texi:
4475         * lib/version-etc.c (COPYRIGHT_YEAR):
4476         Update copyright dates by hand in templates and the like.
4478         maint: fix 'make update-copyright'
4479         * Makefile (update-copyright): Adjust to 2016-11-23 change
4480         to config/srclist-update, which changed the format of srclist.txt.
4482 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4484         chdir-safer: remove this module
4485         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4486         * NEWS: Document removal.
4487         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4488         * modules/chdir-safer: Remove these files.
4490 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4492         Add cross-compilation results for GNU/Hurd.
4493         * m4/calloc.m4: Add GNU/Hurd guess.
4494         * m4/cbrtl.m4: Likewise.
4495         * m4/ceil.m4: Likewise.
4496         * m4/ceilf.m4: Likewise.
4497         * m4/ceill.m4: Likewise.
4498         * m4/chown.m4: Likewise.
4499         * m4/duplocale.m4: Likewise.
4500         * m4/exp2l.m4: Likewise.
4501         * m4/expm1.m4: Likewise.
4502         * m4/fchdir.m4: Likewise.
4503         * m4/floor.m4: Likewise.
4504         * m4/floorf.m4: Likewise.
4505         * m4/fmod.m4: Likewise.
4506         * m4/fmodf.m4: Likewise.
4507         * m4/fmodl.m4: Likewise.
4508         * m4/getcwd.m4: Likewise.
4509         * m4/getgroups.m4: Likewise.
4510         * m4/gettimeofday.m4: Likewise.
4511         * m4/hypot.m4: Likewise.
4512         * m4/hypotf.m4: Likewise.
4513         * m4/hypotl.m4: Likewise.
4514         * m4/link-follow.m4: Likewise.
4515         * m4/link.m4: Likewise.
4516         * m4/linkat.m4: Likewise.
4517         * m4/log.m4: Likewise.
4518         * m4/log10.m4: Likewise.
4519         * m4/log10f.m4: Likewise.
4520         * m4/log1p.m4: Likewise.
4521         * m4/log1pf.m4: Likewise.
4522         * m4/log1pl.m4: Likewise.
4523         * m4/log2.m4: Likewise.
4524         * m4/log2f.m4: Likewise.
4525         * m4/logf.m4: Likewise.
4526         * m4/lstat.m4: Likewise.
4527         * m4/malloc.m4: Likewise.
4528         * m4/mbrlen.m4: Likewise.
4529         * m4/mbrtowc.m4: Likewise.
4530         * m4/mkdir.m4: Likewise.
4531         * m4/mkfifo.m4: Likewise.
4532         * m4/mknod.m4: Likewise.
4533         * m4/mkstemp.m4: Likewise.
4534         * m4/modf.m4: Likewise.
4535         * m4/modff.m4: Likewise.
4536         * m4/modfl.m4: Likewise.
4537         * m4/printf.m4: Likewise.
4538         * m4/pselect.m4: Likewise.
4539         * m4/ptsname.m4: Likewise.
4540         * m4/putenv.m4: Likewise.
4541         * m4/readlink.m4: Likewise.
4542         * m4/realloc.m4: Likewise.
4543         * m4/remainder.m4: Likewise.
4544         * m4/remainderf.m4: Likewise.
4545         * m4/remainderl.m4: Likewise.
4546         * m4/rmdir.m4: Likewise.
4547         * m4/round.m4: Likewise.
4548         * m4/roundf.m4: Likewise.
4549         * m4/roundl.m4: Likewise.
4550         * m4/select.m4: Likewise.
4551         * m4/setenv.m4: Likewise.
4552         * m4/signbit.m4: Likewise.
4553         * m4/sleep.m4: Likewise.
4554         * m4/stat.m4: Likewise.
4555         * m4/strerror.m4: Likewise.
4556         * m4/strtok_r.m4: Likewise.
4557         * m4/symlink.m4: Likewise.
4558         * m4/symlinkat.m4: Likewise.
4559         * m4/trunc.m4: Likewise.
4560         * m4/truncf.m4: Likewise.
4561         * m4/truncl.m4: Likewise.
4562         * m4/tzset.m4: Likewise.
4563         * m4/ungetc.m4: Likewise.
4564         * m4/usleep.m4: Likewise.
4565         * m4/wcwidth.m4: Likewise.
4567 2017-12-28  Bruno Haible  <bruno@clisp.org>
4569         gnulib-tool: Make --conditional-dependencies work better.
4570         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
4571         * gnulib-tool (Options): Don't reject the combination of
4572         --conditional-dependencies with --with-tests.
4573         (func_emit_autoconf_snippets): Add argument referenceable_modules.
4574         Don't reference $modules.
4575         (func_import, func_create_testdir): Pass it.
4577 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4579         regex: use re_malloc etc. consistently
4580         Problem and original patch reported by Arnold Robbins in:
4581         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
4582         * lib/regcomp.c (re_comp):
4583         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
4584         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
4586 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
4587             Paul Eggert  <eggert@cs.ucla.edu>
4589         glob: Silence warning about void pointer arithmetic.
4590         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4591         arithmetic.
4593 2017-12-15  Bruno Haible  <bruno@clisp.org>
4595         spawn-pipe: Silence a clang warning.
4596         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4597         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
4598         in this file.
4600 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4602         explicit_bzero: port to macOS + Clang 9.0.0
4603         Problem reported by Marcus Johnson (Bug#29658).
4604         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
4605         Don’t use asm.
4607 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4609         doc: Improve explanation of supporting relocatable libraries.
4610         * doc/relocatable-maint.texi (Supporting Relocation): Explain
4611         properly how to build the relocatable module for
4612         libraries. (Method and example code from Bruno Haible.)
4614 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4616         doc: Use better texinfo tags in a few cases.
4617         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
4618         instead of @samp in a few places.
4620 2017-12-11  Bruno Haible  <bruno@clisp.org>
4622         unistr/base: Update comment.
4623         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
4625 2017-12-10  Pádraig Brady  <P@draigBrady.com>
4627         test-faccessat.c: unlink temp file to avoid subsequent test failure
4628         * tests/test-faccessat.c: Remove the file to avoid failure
4629         to open the file on subsequent runs due to being created
4630         with no permissions.
4632 2017-12-10  Bruno Haible  <bruno@clisp.org>
4634         doc: New sect. "Modifying the build rules of a Gnulib import directory".
4635         * doc/gnulib-tool.texi (Modified build rules): New node.
4637 2017-12-10  Bruno Haible  <bruno@clisp.org>
4639         doc: Tweak wording.
4640         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
4641         "binaries".
4643 2017-12-05  Sam Steingold  <sds@gnu.org>
4644             Bruno Haible  <bruno@clisp.org>
4646         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
4647         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
4648         AC_EGREP_CPP pattern.
4650 2017-12-03  Bruno Haible  <bruno@clisp.org>
4652         all: Replace more http URLs by https URLs.
4653         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
4654         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
4655         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
4656         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
4658 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4660         Port better to CentOS 5
4661         Problems reported by Tom G. Christensen in:
4662         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
4663         * doc/glibc-functions/strverscmp.texi (strverscmp):
4664         Document strverscmp bug with glibc 2.9 and earlier.
4665         * doc/posix-functions/tzset.texi (tzset):
4666         Document that TZ with angle brackets is POSIX-2001 and later.
4667         * tests/test-nstrftime.c: Include unistd.h.
4668         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
4669         (TZ): Use it to skip tests with angle brackets in TZ,
4670         for older systems.
4672         stat: add missing module dependencies
4673         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
4674         Add stat-time.
4676 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
4678         stat: fix compilation failure on macOS Sierra
4679         Reported by Marius Schamschula <mschamschula@gmail.com> in:
4680         https://savannah.gnu.org/bugs/?52546
4681         * lib/stat.c: Add missing include of stat-time.h.
4683 2017-11-28  Jim Meyering  <meyering@fb.com>
4685         test-faccessat.c: correct BASE definition to avoid parallel test failure
4686         * tests/test-faccessat.c (BASE): Define using this file's name, not
4687         that of test-lstat.c.  Using the latter caused this test to fail
4688         sometimes when run concurrently with test-lstat.
4690 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4692         unicase: fix VPATH build
4693         * modules/unicase/special-casing (Makefile.am): Ensure that the
4694         base directory is created when generating
4695         unicase/special-casing.h.
4697 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4699         libunistring: update to Unicode 9.0.0
4700         * lib/gen-uni-tables.c (fill_properties): Recognize
4701         Sentence_Terminal and Prepended_Concatenation_Mark.
4702         (is_property_default_ignorable_code_point): Exclude U+08E2.
4703         (fill_arabicshaping): Allow missing whitespace when parsing;
4704         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
4705         (output_blocks): Increase the element size of the level1 table to
4706         accommodate more blocks.
4707         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
4708         Update each class according to the standard.
4709         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
4710         E_Base_GAZ characters.
4711         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
4712         Glue_After_Zwj, and E_Base_GAZ characters.
4713         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
4714         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
4715         enum value.
4716         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
4717         value.
4718         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
4719         LBP_ZWJ, LBP_EB, and LBP_EM.
4720         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
4721         enum value.
4722         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
4723         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
4724         declaration.
4725         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
4726         (uniwbrk_table): Implement WB14.
4727         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
4728         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
4729         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
4730         uc-is-grapheme-break.
4731         * modules/unigbrk/uc-grapheme-breaks: New module.
4732         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
4733         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
4734         enum value.
4735         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
4736         * lib/unigbrk/u-grapheme-breaks.h: New file.
4737         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
4738         u-grapheme-breaks.h instead of uc_is_grapheme_break.
4739         * lib/unigbrk/uc-grapheme-breaks.c: New file.
4740         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
4741         29.
4742         * tests/unigbrk/test-uc-gbrk-prop.c
4743         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4744         GBP_GAZ, and GBP_EBG.
4745         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
4746         * tests/unigbrk/test-uc-is-grapheme-break.c
4747         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4748         GBP_GAZ, and GBP_EBG.
4749         (main): Skip unsupported rules involving 3 or more characters,
4750         namely GB10, GB12, and GB13.
4751         * lib/uniwidth/width.c (nonspacing_table_data): Update.
4752         * all generated files under lib/uni* and tests/uni*: Regenerate.
4753         * all the affected modules: Bump version.
4755 2017-11-26  Bruno Haible  <bruno@clisp.org>
4757         strfmon_l: Fix compilation error with glibc 2.5.
4758         Reported by Tom G. Christensen <tgc@jupiterrise.com>
4759         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
4760         * lib/monetary.in.h: Include also <locale.h>.
4762 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4764         posixtm: remove PDS_LEADING_YEAR
4765         This changes the API slightly, in a hopefully-innocuous way.
4766         Without this change the code had undefined behavior when a
4767         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
4768         Problem reported by Pádraig Brady in:
4769         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
4770         * NEWS: Mention this.
4771         * lib/posixtm.c (posix_time_parse): Treat the absence of
4772         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
4773         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
4774         present, but define it as zero, for compatibility with existing
4775         source code).  All other PDS_* values moved up.
4776         * tests/test-posixtm.c (LY): New macro.
4777         (T): Use it.  Do not expect a particular numeric encoding
4778         for PDS_CENTURY etc.
4780 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4782         stat: work around Solaris bug with tv_nsec < 0
4783         * doc/posix-functions/fstat.texi (fstat):
4784         * doc/posix-functions/fstatat.texi (fstatat):
4785         * doc/posix-functions/lstat.texi (lstat):
4786         * doc/posix-functions/stat.texi (stat):
4787         Mention Solaris 11 bug.
4788         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
4789         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
4790         * lib/lstat.c (rpl_lstat):
4791         * lib/stat.c (rpl_stat):
4792         Normalize resulting timestamps.
4793         * lib/fstatat.c (normal_fstatat): New function.
4794         (rpl_fstatat): Use it.
4795         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
4796         (stat_time_normalize): New function.
4797         * m4/fstat.m4 (gl_FUNC_FSTAT):
4798         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
4799         * m4/lstat.m4 (gl_FUNC_LSTAT):
4800         * m4/stat.m4 (gl_FUNC_STAT):
4801         Replace on Solaris.
4802         * modules/fstat (Depends-on):
4803         * modules/fstatat (Depends-on):
4804         Add stat-time.
4805         * modules/stat-time (Depends-on): Add errno, intprops.
4807 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
4809         regex: merge from glibc
4810         * lib/regcomp.c (init_word_char): Add comments.
4812 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4814         regex: merge from glibc
4815         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
4816         * lib/regex_internal.h (internal_function): Remove.
4817         All uses removed.
4819 2017-11-20  Bruno Haible  <bruno@clisp.org>
4821         crypto/gc-sm3: Fix buffer overrun.
4822         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
4823         Reported by Coverity.
4825 2017-11-12  Jim Meyering  <meyering@fb.com>
4827         maint: shorten https://lists.gnu.org/archive/html/... links
4828         Each /archive/html/ part can be replace with /r/.
4829         Run this to induce the change:
4830         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
4831         * ChangeLog: Perform that substitution.
4832         * Makefile: Likewise.
4833         * STATUS-libposix: Likewise.
4834         * build-aux/bootstrap: Likewise.
4835         * doc/maintain.texi: Likewise.
4836         * gnulib-tool: Likewise.
4837         * lib/allocator.h: Likewise.
4838         * lib/argp-ba.c: Likewise.
4839         * lib/argp-pv.c: Likewise.
4840         * lib/canon-host.c: Likewise.
4841         * lib/canonicalize-lgpl.c: Likewise.
4842         * lib/float.in.h: Likewise.
4843         * lib/fstat.c: Likewise.
4844         * lib/getdelim.c: Likewise.
4845         * lib/getprogname.c: Likewise.
4846         * lib/glthread/thread.h: Likewise.
4847         * lib/intprops.h: Likewise.
4848         * lib/mbsrtowcs-state.c: Likewise.
4849         * lib/safe-read.c: Likewise.
4850         * lib/signal.in.h: Likewise.
4851         * lib/stat.c: Likewise.
4852         * lib/stdbool.in.h: Likewise.
4853         * lib/stdio-impl.h: Likewise.
4854         * lib/stdio.in.h: Likewise.
4855         * lib/sysexits.in.h: Likewise.
4856         * lib/timespec.h: Likewise.
4857         * lib/wcsrtombs-state.c: Likewise.
4858         * m4/alloca.m4: Likewise.
4859         * m4/extern-inline.m4: Likewise.
4860         * m4/fstatat.m4: Likewise.
4861         * m4/gnulib-common.m4: Likewise.
4862         * m4/lib-ignore.m4: Likewise.
4863         * m4/printf.m4: Likewise.
4864         * m4/regex.m4: Likewise.
4865         * m4/stat-size.m4: Likewise.
4866         * m4/std-gnu11.m4: Likewise.
4867         * m4/stdbool.m4: Likewise.
4868         * m4/sys_types_h.m4: Likewise.
4869         * m4/threadlib.m4: Likewise.
4870         * m4/vararrays.m4: Likewise.
4871         * pygnulib/GLImport.py: Likewise.
4872         * tests/test-exp.h: Likewise.
4873         * tests/test-exp2.h: Likewise.
4874         * tests/test-expm1.h: Likewise.
4875         * tests/test-fflush2.c: Likewise.
4876         * tests/test-getopt_long.h: Likewise.
4877         * tests/test-intprops.c: Likewise.
4878         * tests/test-log.h: Likewise.
4879         * tests/test-log10.h: Likewise.
4880         * tests/test-log1p.h: Likewise.
4881         * tests/test-log2.h: Likewise.
4882         * tests/test-printf-posix.h: Likewise.
4883         * tests/test-regex.c: Likewise.
4884         * tests/test-snprintf-posix.h: Likewise.
4885         * tests/test-sprintf-posix.h: Likewise.
4886         * tests/test-stdalign.c: Likewise.
4887         * tests/test-stdbool.c: Likewise.
4888         * tests/test-vasnprintf-posix.c: Likewise.
4889         * tests/test-vasprintf-posix.c: Likewise.
4890         * top/maint.mk: Likewise.
4892 2017-11-12  Bruno Haible  <bruno@clisp.org>
4894         faccessat: Make the last change more robust.
4895         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
4896         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
4898 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4900         faccessat: port to macOS (Bug#29231)
4901         macOS faccessat has the same bug that lstat does: if the file
4902         name ends in '/' it ignores the trailing slash.
4903         Problem reported for Emacs by Vincent Zhang.
4904         * doc/posix-functions/faccessat.texi (faccessat): Document this.
4905         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
4906         around the initial includes.  Include errno.h, string.h, sys/stat.h.
4907         (orig_faccessat) [HAVE_FACCESSAT]: New function.
4908         Include "unistd.h" after defining it.
4909         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
4910         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
4911         Handle in the usual way.
4912         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
4913         lstat dereferences symlinks, since faccessat is likely to
4914         have the same problem.
4915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
4916         * modules/faccessat (Depends-on): Add fstatat.
4917         Depend if REPLACE_FACCESSAT is 1, too.
4918         (configure.ac): Link if REPLACE_FACCESSAT is 1.
4919         * modules/faccessat-tests (Depends-on): Add symlink.
4920         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
4921         * tests/test-faccessat.c (main): Test for the bug.
4923 2017-11-11  Bruno Haible  <bruno@clisp.org>
4925         getprogname: Fix compilation error on IRIX.
4926         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
4927         'namesize'.
4929 2017-11-11  Bruno Haible  <bruno@clisp.org>
4931         year2038: Tweak last patch.
4932         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
4934 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4936         year2038: be more insistent about 64-bit time_t
4937         Applications requiring access to arbitrary files should not be
4938         built with 32-bit time_t on hosts that have 64-bit timestamps,
4939         as this can lead to real trouble at runtime.
4940         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
4941         Check on all systems, not just MinGW.  Use a heuristic involving
4942         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
4943         output a failure or just a warning, to make it more likely that
4944         builders will select 64-bit time_t.
4946 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
4948         havelib: fix typo in previous change
4949         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
4951         Don’t use AC_EGREP_CPP if affected by CFLAGS
4952         * m4/float_h.m4 (gl_FLOAT_H):
4953         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
4954         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
4955         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
4956         * m4/year2038.m4 (gl_YEAR2038):
4957         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
4958         likely to be affected by the choice of CFLAGS, since CFLAGS are
4959         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
4960         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
4962         fstatat: pacify GCC on unusual platform
4963         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
4964         Omit, as it’s unused in this case.
4966 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
4968         timespec: prefer ‘assume’ to ‘assure’
4969         This avoids some runtime tests.  The rest of the module makes
4970         similar assumptions and there is little point to testing here.
4971         * lib/timespec.h: Include verify.h instead of assure.h.
4972         (timespec_cmp): Use ‘assume’, not ‘assure’.
4973         Also, remove an unnecessary cast to ‘int’, as lots of other
4974         code in this module now causes -Wconversion to complain, and
4975         this is a problem with -Wconversion not with the code.
4977         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
4979         Port recent gnulib-tool change to Dash
4980         * gnulib-tool (func_create_testdir): Don't assume that the shell
4981         retokenizes after expanding "$@" inside the call to
4982         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
4984 2017-10-27  Jim Meyering  <meyering@fb.com>
4986         timespec.h: use "assure" to avoid a spurious warning
4987         * lib/timespec.h: Include "assure.h" and use it to help
4988         gcc7's -Wstrict-overflow avoid a false positive warning
4989         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
4990         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
4991         * modules/timespec (Depends-on): Add assure.
4993 2017-10-29  Bruno Haible  <bruno@clisp.org>
4995         Avoid several test failures with traditional locales on Haiku.
4996         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
4997         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
4998         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
4999         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
5000         LOCALE_ZH_CN=none.
5002 2017-10-29  Bruno Haible  <bruno@clisp.org>
5004         strerror_r-posix: Fix behaviour and test failure on Haiku.
5005         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
5006         are positive. Work around return value 0 instead of ERANGE on Haiku.
5007         For unknown error numbers, use a format string consistent with perror().
5008         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
5009         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
5010         are positive.
5012 2017-10-29  Bruno Haible  <bruno@clisp.org>
5014         get-rusage-data: Avoid crash on Haiku.
5015         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
5017 2017-10-29  Bruno Haible  <bruno@clisp.org>
5019         get-rusage-as: Avoid crash on Haiku.
5020         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
5022 2017-10-29  Bruno Haible  <bruno@clisp.org>
5024         ilogbl: Ensure replacement on Haiku.
5025         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
5026         REPLACE_ILOGBL if ilogbl does not work.
5027         (gl_FUNC_ILOGBL_WORKS): New macro.
5028         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
5029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
5030         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
5031         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
5032         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
5034 2017-10-29  Bruno Haible  <bruno@clisp.org>
5036         expl: Ensure replacement on Haiku.
5037         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
5038         zero.
5039         * doc/posix-functions/expl.texi: Mention the Haiku problem.
5041 2017-10-29  Bruno Haible  <bruno@clisp.org>
5043         math: Fix test failure on Haiku.
5044         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
5045         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
5046         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5047         * doc/posix-headers/math.texi: Mention the Haiku problem.
5049 2017-10-29  Bruno Haible  <bruno@clisp.org>
5051         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
5052         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
5053         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
5055 2017-10-29  Bruno Haible  <bruno@clisp.org>
5057         crypto/*: Verify that the header file is self-contained.
5058         * tests/test-gc-*.c: Include the module's header file immediately after
5059         <config.h>.
5060         * tests/test-hmac-*.c: Likewise.
5061         * tests/test-arcfour.c: Likewise.
5062         * tests/test-arctwo.c: Likewise.
5063         * tests/test-des.c: Likewise.
5064         * tests/test-md2.c: Likewise.
5065         * tests/test-md4.c: Likewise.
5066         * tests/test-md5.c: Likewise.
5067         * tests/test-rijndael.c: Likewise.
5068         * tests/test-sha1.c: Likewise.
5069         * tests/test-sm3.c: Likewise.
5071 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5072             Bruno Haible  <bruno@clisp.org>
5074         crypto/gc: fix build failure with -Werror=suggest-attribute=const
5075         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
5077 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5079         New module: crypto/gc-sm3
5080         * lib/gc.h: Declare SM3-related stuffs.
5081         * lib/gc-gnulib.c: Support sm3 in internal functions.
5082         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
5083         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
5084         * modules/crypto/gc-sm3: Define gc-sm3 module.
5085         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
5086         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
5087         * MODULES.html.sh: List gc-sm3 module.
5089 2017-10-29  Bruno Haible  <bruno@clisp.org>
5091         random, random_r: Mention different prototypes on Haiku.
5092         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
5093         * doc/glibc-functions/random_r.texi: Likewise.
5094         * doc/glibc-functions/initstate_r.texi: Likewise.
5095         * doc/glibc-functions/setstate_r.texi: Likewise.
5097 2017-10-28  Bruno Haible  <bruno@clisp.org>
5099         posix_spawn: Avoid spurious message in configure output.
5100         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
5101         'cmp' command.
5103 2017-10-28  Bruno Haible  <bruno@clisp.org>
5105         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
5106         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
5107         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5109 2017-10-28  Bruno Haible  <bruno@clisp.org>
5111         ioctl: Override non-POSIX declaration on Haiku.
5112         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
5113         * lib/sys_ioctl.in.h: Add comment about Haiku.
5114         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
5115         * doc/glibc-headers/sys_ioctl.texi: Likewise.
5117 2017-10-28  Bruno Haible  <bruno@clisp.org>
5119         crypto/sm3: Add overview documentation to the .h file.
5120         * lib/sm3.h: Add comments.
5122 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5124         New module: crypto/sm3
5125         This new module can be used to compute SM3 message digest of files or
5126         memory blocks according to the specification GM/T 004-2012
5127         Cryptographic Hash Algorithm SM3, published by State Cryptography
5128         Administration, China.
5129         The official SM3 cryptographic hash algorithm specification is
5130         available at
5131         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
5132         * lib/sm3.h: Declare the APIs of sm3 module.
5133         * lib/sm3.c: Implement SM3 hash algorithm.
5134         * m4/sm3.m4: m4 file for sm3 module.
5135         * modules/crypto/sm3: Define sm3 module.
5136         * tests/test-sm3.c: Implement SM3 test case.
5137         * modules/crypto/sm3-tests: Define sm3 test module.
5138         * MODULES.html.sh: List sm3 module.
5140 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5142         gc-libgcrypt: fix undefined enum type in switch statement
5143         Resolve the following build failure:
5144         lib/gc-libgcrypt.c: In function 'gc_hash_open':
5145         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
5146         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
5147              case 0:
5148              ^~~~
5149         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
5150         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
5152 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5154         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
5155         Resolve the following build failure:
5156         lib/gc-libgcrypt.c: In function 'gc_hash_read':
5157         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
5158         in signedness [-Werror=pointer-sign]
5159             digest = gcry_md_read (ctx->gch, 0);
5160                    ^
5161         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
5163 2017-10-26  Bruno Haible  <bruno@clisp.org>
5165         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
5166         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
5167         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
5169 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
5171         glob: fix another heap buffer overflow
5172         Problem reported by Tim Rühsen in:
5173         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
5174         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
5176 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5178         quotearg: pacify compiler re unsigned
5179         * lib/quotearg.c (quotearg_n_options):
5180         Rewrite to avoid diagnostic from overly-picky compiler.
5181         Problem reported by Sami Kerola in:
5182         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
5184         glob: fix heap buffer overflow
5185         * lib/glob.c (glob): Fix off-by-one error introduced into
5186         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
5187         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
5188         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
5189         Fix suggested by Bruno Haible.
5191 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5193         glob: pacify fuzzer for mempcpy
5194         Problem reported by Tim Rühsen in:
5195         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
5196         * lib/glob.c (glob): Do not pass NULL to mempcpy.
5198 2017-10-12  Bruno Haible  <bruno@clisp.org>
5200         doc: Fix syntax error (regression from 2017-10-03).
5201         * doc/posix-functions/strncpy.texi: Fix syntax error.
5203 2017-10-12  Bruno Haible  <bruno@clisp.org>
5205         doc: Update for Solaris 11.3.
5206         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
5207         mention Solaris 11.3.
5208         * m4/log2.m4: Fix comments.
5209         * m4/log2f.m4: Likewise.
5210         * m4/printf.m4: Update comments.
5211         * m4/rename.m4: Likewise.
5212         * m4/strncat.m4: Likewise.
5214         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
5216 2017-10-10  Bruno Haible  <bruno@clisp.org>
5218         doc: Improve doc about ioctl.
5219         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
5220         prototype.
5222 2017-10-09  Bruno Haible  <bruno@clisp.org>
5224         wcwidth: Don't use obsolete syntax of 'test'.
5225         Reported by Eric Blake.
5226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
5227         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
5229 2017-10-09  Bruno Haible  <bruno@clisp.org>
5231         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
5232         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
5233         and Daniel P. Berrange <berrange@redhat.com>.
5234         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
5235         on glibc systems. The getopt-pfx-core.h file declares exactly what
5236         unistd.h needs, nothing more.
5238 2017-10-08  Bruno Haible  <bruno@clisp.org>
5240         vma-iter: Improve support for FreeBSD.
5241         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
5242         vma_iterate.
5243         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
5245 2017-10-08  Bruno Haible  <bruno@clisp.org>
5247         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
5248         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
5250 2017-10-07  KO Myung-Hun  <komh@chollian.net>
5252         test-framework-sh: Fix 'invalid path dir' error.
5253         On OS/2, a path separator is ';' not ':'. And ':' is used as a
5254         separator between a drive letter and directory parts.
5255         As a result, an absolute path such as x:/path/to/dir on OS/2 is
5256         treated as an invalid path dir.
5257         * tests/init.sh (PATH_SEPARATOR): Set at startup.
5258         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
5259         instead of hard coded ':'.
5261 2017-10-07  Bruno Haible  <bruno@clisp.org>
5263         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
5264         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
5265         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
5266         (rof_open): On Linux, do multiple read() calls and make sure
5267         MIN_LEFTOVER bytes are left when read() returns.
5269 2017-10-07  Bruno Haible  <bruno@clisp.org>
5271         vma-iter: Improve support for GNU/Hurd.
5272         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
5273         API, not the /proc file system.
5275 2017-10-07  Bruno Haible  <bruno@clisp.org>
5277         test-framework-sh: Don't require bash on Windows and OS/2.
5278         Reported by KO Myung-Hun.
5279         * tests/test-init.sh: Use 'shopt' only when running in bash.
5281 2017-10-06  KO Myung-Hun  <komh@chollian.net>
5283         wcwidth: check a macro version of wcwidth () as well
5284         * lib/wchar.in.h: Revert commit from 2016-01-14.
5285         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
5287 2017-10-06  Bruno Haible  <bruno@clisp.org>
5289         getopt-posix: Clarify copyright header.
5290         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
5291         * lib/getopt-pfx-core.h: Likewise.
5292         * lib/getopt-pfx-ext.h: Likewise.
5293         * lib/getopt-cdefs.in.h: Likewise.
5295 2017-10-03  Bruno Haible  <bruno@clisp.org>
5297         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5298         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5299         gl_HOST_CPU_C_ABI.
5301 2017-10-03  Bruno Haible  <bruno@clisp.org>
5303         doc: warn about misuse of strncpy and wcsncpy.
5304         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5305         memory allocation.
5306         * doc/posix-functions/wcscpy.texi: Likewise.
5307         * doc/posix-functions/strncpy.texi: Describe what this function is not
5308         useful for.
5309         * doc/posix-functions/wcsncpy.texi: Likewise.
5311 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5313         fsuage: fix typo in previous change
5314         * lib/fsusage.c: Remove stray include of full-read.h.
5315         Problem reported by Sam Steingold for macOS (Bug#28669).
5317 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5319         fsusage: remove SVR2 support
5320         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5321         and its code was getting in the way of use of this module by
5322         Emacs, which has its own ‘read’ function anyway.
5323         * lib/fsusage.c: Do not include sys/filsys.h.
5324         (get_fs_usage): Remove SVR2-specific code.
5325         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5326         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5327         * modules/fsusage (Depends-on): Do not depend on full-read.
5329         Simplify autoupdate of licenses
5330         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5331         place.
5333 2017-10-01  Bruno Haible  <bruno@clisp.org>
5335         vma-iter: Add support for GNU/Hurd.
5336         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5337         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5339 2017-09-30  Bruno Haible  <bruno@clisp.org>
5341         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5342         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5343         fail when module 'largefile' is in use.
5344         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5345         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5346         Don't test HAVE_SYS_PROCFS_H.
5348 2017-09-30  Bruno Haible  <bruno@clisp.org>
5350         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5351         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5352         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5353         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5355 2017-09-30  Bruno Haible  <bruno@clisp.org>
5357         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5358         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5359         scope of local variables.
5361 2017-09-28  Bruno Haible  <bruno@clisp.org>
5363         string: code style
5364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5365         substitutable variables.
5366         * modules/string (Makefile.am): Likewise.
5368 2017-09-26  Bruno Haible  <bruno@clisp.org>
5370         uniname/uniname-tests: Tighten code.
5371         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5372         local variables into one.
5374 2017-09-26  Bruno Haible  <bruno@clisp.org>
5376         vma-iter: Improvements for Linux and BSD platforms.
5377         - Add support for DragonFly BSD.
5378         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5379         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5380         Read the entire file into memory in a single system call.
5381         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5382         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5384 2017-09-26  Bruno Haible  <bruno@clisp.org>
5386         vma-iter: Provide the protection flags on FreeBSD.
5387         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5388         skip three fields between the addresses and the protection flags.
5390 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5392         glob: remove bogus extern decl
5393         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5394         extern declaration.  Problem reported by Adhemerval Zanella in:
5395         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5397 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5399         uniname/uniname-tests: integer overflow fix
5400         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5401         Check for integer overflow.
5403         duplocale-tests: fix unlikely crash
5404         * tests/test-duplocale.c (get_locale_dependent_values):
5405         Don’t crash with absurdly long month names.
5407         maint: fix overflow checking in nap.h
5408         * modules/chown-tests:
5409         * modules/fchownat-tests, modules/fdutimensat-tests:
5410         * modules/futimens-tests, modules/lchown-tests:
5411         * modules/stat-time-tests, modules/utime-tests:
5412         * modules/utimens-tests, modules/utimensat-tests:
5413         Depend on intprops.
5414         * tests/nap.h: Include intprops.h.
5415         (diff_timespec): Handle overflow properly.
5417         sys_types: update URL
5418         * m4/sys_types_h.m4: Use https: URL.
5420         parse-datetime: fix dependency
5421         * modules/parse-datetime (Depends-on): Depend
5422         on nstrftime, not strftime.
5424         parse-datetime, posixtm: avoid uninit access
5425         * lib/parse-datetime.y (parse_datetime2):
5426         * lib/posixtm.c (posixtime):
5427         Do not access uninitialized storage, even though the resulting
5428         value is never used.
5430 2017-09-25  Bruno Haible  <bruno@clisp.org>
5432         vma-iter: Improvements for BSD platforms.
5433         - Add support for GNU/kFreeBSD.
5434         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5435         - Speed up on OpenBSD.
5436         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5437         (vma_iterate_bsd): New function.
5438         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5439         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5440         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5441         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5443 2017-09-23  Bruno Haible  <bruno@clisp.org>
5445         strfmon_l: New module.
5446         * modules/strfmon_l: New file.
5447         * lib/strfmon_l.c: New file.
5448         * m4/strfmon_l.m4: New file.
5449         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5450         * modules/strfmon_l-tests: New file.
5451         * tests/test-strfmon_l.c: New file.
5453         monetary: New module.
5454         * modules/monetary: New file.
5455         * lib/monetary.in.h: New file.
5456         * m4/monetary_h.m4: New file.
5457         * doc/posix-headers/monetary.texi: Mention the new module.
5458         * modules/monetary-tests: New file.
5459         * tests/test-monetary.c: New file.
5460         * modules/monetary-c++-tests: New file.
5461         * tests/test-monetary-c++.cc: New file.
5462         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5464 2017-09-23  Bruno Haible  <bruno@clisp.org>
5466         duplocale tests: Fix test crash on Linux/x86.
5467         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5468         locale from the current thread before freeing it.
5470 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5472         mktime: port to OpenVMS
5473         Problem reported by John E. Malmberg in:
5474         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5475         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5477 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5479         manywarnings: port to GCC on 64-bit MS-Windows
5480         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5481         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5482         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5484 2017-09-13  Bruno Haible  <bruno@clisp.org>
5486         all: Replace many more http URLs by https URLs. Update stale URLs.
5487         * users.txt: Remove mention of 'newts'.
5488         * lib/localename.c: Update comment about LANG_SOTHO.
5490 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5492         all: Replace many http URLs by https URLs.
5494 2017-09-12  Bruno Haible  <bruno@clisp.org>
5496         doc: Prefer https URLs where possible.
5497         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5498         * doc/ld-output-def.texi: Remove unavailable URL.
5500 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5502         maintainer-makefile: FTP -> HTTPS
5503         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5504         of FTP, which is planned to be decommissioned on 2017-11-01.
5506 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5508         libc-config: Fix __GNUC_PREREQ macro.
5509         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5510         __GNUC_MINOR.
5512 2017-09-09  Bruno Haible  <bruno@clisp.org>
5514         gnulib-tool: Simplify commit from 2015-08-20.
5515         * gnulib-tool (func_add_or_update): Remove local variable
5516         is_binary_file.
5518 2017-09-08  Bruno Haible  <bruno@clisp.org>
5520         stddef: Avoid conflict with system-defined max_align_t.
5521         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5522         Reported by Werner Lemberg <wl@gnu.org> in
5523         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5524         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5525         (max_align_t): Define as a macro.
5526         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5527         definitions of rpl_max_align_t in different copies of gnulib-generated
5528         <stddef.h>.
5530 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5532         libc-config: port to MSVC
5533         Problems reported by Gisle Vanem in:
5534         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5535         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5536         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5537         * m4/__inline.m4: New file.
5538         * modules/libc-config (Files): Add it.
5539         (Depends-on): Use it.
5541         glob: Use enum for __glob_pattern_type result
5542         From a patch proposed by Adhemerval Zanella in:
5543         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
5544         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5545         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5546         * lib/glob_internal.h (__glob_pattern_type):
5547         * lib/glob.c (glob):
5548         * lib/glob_pattern_p.c (__glob_pattern_p):
5549         Use them.
5551         glob: fix for use in glibc
5552         Problem reported by Adhemerval Zanella in:
5553         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
5554         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
5555         Do not redefine if _LIBC.
5557 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5559         glob: fix bugs with long login names
5560         Problem reported by Adhemerval Zanella in:
5561         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
5562         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
5563         (glob): Use the same scratch buffer for both getlogin_r and
5564         getpwnam_r.  Don’t require preallocation of the login name.  This
5565         simplifies storage allocation, and corrects the handling of
5566         long login names.
5568 2017-09-02  Bruno Haible  <bruno@clisp.org>
5570         dirent: Update doc.
5571         * doc/posix-headers/dirent.texi: More concrete list of platforms.
5573 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5575         glob: fix getpwnam_r errno typo
5576         * lib/glob.c (glob): Fix longstanding misuse of errno after
5577         getpwnam_r, which returns an error number rather than setting
5578         errno.
5580         glob: fix typo in recent change
5581         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
5582         Fix recently-introduced typo.
5584 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5586         glob: don't save and restore errno unnecessarily
5587         * lib/glob.c (glob): Don't save and restore errno
5588         merely because we have getpwnam_r.
5590         glob: don't assume getpwnam_r
5591         * lib/glob.c (glob): Port recent patches to platforms
5592         lacking getpwnam_r.
5594         scratch_buffer: don’t use private glibc API
5595         Suggested by Florian Weimer in:
5596         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
5597         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
5598         * lib/scratch_buffer_grow.c: Rename to
5599         lib/malloc/scratch_buffer_grow.c.
5600         * lib/scratch_buffer_grow_preserve.c: Rename to
5601         lib/malloc/scratch_buffer_grow_preserve.c.
5602         * lib/scratch_buffer_set_array_size.c: Rename to
5603         lib/malloc/scratch_buffer_set_array_size.c.
5604         * lib/scratch_buffer.h: New file.
5605         * modules/scratch_buffer (Files, Makefile.am):
5606         Adjust to source-file renaming.
5608 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5610         glob: use scratch_buffer instead of extend_alloca
5611         Much of the lib/glob.c part of this patch comes from a glibc patch
5612         proposed by Adhemerval Zanella in:
5613         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
5614         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
5615         included via glob.h, does this for us now.
5616         (__set_errno): Remove, as libc-config does this for us now.
5617         Include <scratch_buffer.h>.
5618         (GETPW_R_SIZE_MAX): Remove.
5619         (glob): Use struct scratch_buffer instead of extend_alloca.
5620         * lib/glob.in.h: Include libc-config.h rather than
5621         including <sys/cdefs.h> conditionally.
5622         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
5623         (__glibc_unlikely, __restrict, weak_alias):
5624         Remove, as libc-config does this for us now.
5625         * m4/glob.m4 (gl_PREREQ_GLOB):
5626         Remove sys/cdefs.h tests; no longer needed.
5627         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
5628         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
5630         scratch_buffer: new module
5631         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
5632         * lib/scratch_buffer_grow_preserve.c:
5633         * lib/scratch_buffer_set_array_size.c:
5634         New files, copied from glibc with very minor changes that can be
5635         copied back.
5636         * modules/scratch_buffer: New file.
5638         libc-config: new module
5639         * MODULES.html.sh: Add libc-config.
5640         * lib/cdefs.h: New file, copied from the GNU C Library with very
5641         minor changes that can be copied back.
5642         * lib/libc-config.h, modules/libc-config: New files.
5644 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5646         glob: match dangling symlinks
5647         This fixes a bug I inadvertently introduced to Gnulib when I
5648         merged glibc glob back into gnulib on 2007-10-16.  This fix is
5649         inspired by a patch proposed for glibc by Adhemerval Zanella in:
5650         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
5651         * doc/posix-functions/glob.texi: Update list of affected platforms.
5652         * lib/glob.c (__lstat64): New macro.
5653         (is_dir): New function.
5654         (glob, glob_in_dir): Match symlinks even if they are dangling.
5655         (link_stat, link_exists_p): Remove.  All uses removed.
5656         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
5657         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
5658         * modules/glob-tests (Depends-on): Add symlink.
5659         * tests/test-glob.c: Include errno.h, unistd.h.
5660         (BASE): New macro.
5661         (main): Test dangling symlinks, if symlinks are supported.
5663         glob, backupfile: inode 0 is a valid inode number
5664         * doc/posix-functions/readdir.texi (readdir):
5665         * doc/posix-headers/dirent.texi (dirent.h):
5666         Document more readdir portability issues.
5667         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
5668         (numbered_backup): Don’t treat inode 0 any differently from
5669         other inode values.
5670         * lib/glob.c (struct readdir_result): Remove skip_entry member.
5671         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5672         All uses removed.
5673         * modules/glob (Depends-on): Remove d-ino.
5675         glob: simplify symlink detection
5676         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
5677         uint8_t, as C99 does not require uint8_t.
5678         (struct readdir_result): Use it.  Do not define skip_entry unless
5679         it is needed; this saves a byte on platforms lacking d_ino.
5680         (readdir_result_type, readdir_result_skip_entry):
5681         New functions, replacing ...
5682         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5683         ... these functions, which were removed.  This makes the callers
5684         easier to read.  All callers changed.
5685         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5687 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5689         fts-tests: tag as a longrunning-test so not included by default
5690         * modules/fts-tests: This test takes about 20s on current systems,
5691         and uses about 285M of space on ext4.
5693 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5695         renameat2: fix compilation on alpine linux
5696         * m4/renameat.m4: Check for <linux/fs.h> presence.
5697         * lib/renameat2.h: Only include <linux/fs.h> if present.
5698         Reported by Assaf Gordon on Alpine Linux.
5700 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5702         glob: try to port recent changes to MS-Windows
5703         Problem reported by Bruno Haible in:
5704         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
5705         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
5706         * lib/glob.in.h (__glob_pattern_p): ... to here.
5708 2017-08-24  Eric Blake  <eblake@redhat.com>
5710         warnings: fix compilation with old autoconf
5711         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
5712         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
5713         AC_DEFUN.
5714         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
5715         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
5717 2017-08-24  Bruno Haible  <bruno@clisp.org>
5719         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
5720         * modules/glob (Depends-on): Add c99.
5722 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5724         glob: fix typo that broke platforms lacking d_ino
5725         This typo also hurt performance on GNU/Linux and similar hosts.
5726         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
5727         in previous change.
5729 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5731         glob: merge from glibc with Zanella glob changes
5732         Merge glob from glibc, with changes for glob proposed
5733         by Adhemerval Zanella in the thread starting here:
5734         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
5735         plus some fixes for this merge.
5736         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
5737         New files, ported from glibc.
5738         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
5739         with __restrict.
5740         (__size_t): Remove.  All uses replaced by size_t.
5741         (size_t): Define by defining __need_size_t and including <stddef.h>.
5742         This should work even in non-glibc platforms, where any name
5743         pollution is OK.
5744         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
5745         (struct stat64): Don’t worry about __GLOB_GNULIB.
5746         (glob, globfree, glob_pattern_p): Remove macros for
5747         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
5748         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
5749         but set errno.
5750         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
5751         removed since the glibc behavior works on null pointers.
5752         Do not include stdio.h; old SunOS is irrelevant now.
5753         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
5754         Include glob_internal.h.
5755         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
5756         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
5757         worked only coincidentally.
5758         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
5759         Remove macros; now done in glob.in.h.
5760         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
5761         (glob): Properly initialize glob structure with
5762         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
5763         Remove old code using SHELL since Bash no longer
5764         uses this.
5765         (glob, prefix_array): Separate MS code better.
5766         (glob, glob_in_dir): Use C99 decls before statements when glibc
5767         does.
5768         (glob_in_dir): Remove old Amiga and VMS code.
5769         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5770         separate files.
5771         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
5772         (__glibc_unlikely):
5773         Move here from glob.c.
5774         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
5775         (weak_alias): New macro.
5776         (__size_t): Remove.  All uses replaced by size_t.
5777         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
5778         * modules/glob (Files): Add +lib/glob_internal.h,
5779         lib/glob_pattern_p.c, lib/globfree.c.
5780         (Depends-on): Remove snippet/arg-nonnull.
5782 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5784         glob: port to clang's Undefined Sanitizer
5785         Problem reported by Tim Rühsen in:
5786         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
5787         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
5788         (glob_in_dir): Do not rely on undefined behavior in accessing
5789         struct members beyond their bounds.  Use a flexible array member
5790         instead.
5792 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5794         vc-list-files: port to Solaris 10
5795         * build-aux/vc-list-files: Don't assume test -e works.
5797 2017-08-21  Karl Berry  <karl@freefriends.org>
5799         * doc/posix-functions/srandom.texi (srandom): typo }.
5801 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5803         git-version-gen: port to Solaris 10
5804         Problem reported by Dagobert Michelsen in:
5805         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
5806         * build-aux/git-version-gen (v_from_git):
5807         Use expr instead of shell substitution.
5809 2017-08-19  Bruno Haible  <bruno@clisp.org>
5811         host-cpu-c-abi: Improve detection of MIPS ABI.
5812         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
5813         _MIPS_SIM.
5815 2017-08-17  Bruno Haible  <bruno@clisp.org>
5817         hypot tests: Fix test failure on FreeBSD 11.0/x86.
5818         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
5820 2017-08-17  Bruno Haible  <bruno@clisp.org>
5822         float: Fix LDBL_MIN value on FreeBSD/x86.
5823         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
5825 2017-08-17  Bruno Haible  <bruno@clisp.org>
5827         random: Fix test compilation failure on Cygwin 1.5.25.
5828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
5829         HAVE_DECL_SETSTATE.
5830         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
5831         declared.
5832         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
5833         HAVE_DECL_SETSTATE.
5834         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
5835         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
5836         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
5837         * doc/posix-functions/random.texi: Likewise.
5838         * doc/posix-functions/setstate.texi: Likewise.
5839         * doc/posix-functions/srandom.texi: Likewise.
5841 2017-08-16  Bruno Haible  <bruno@clisp.org>
5843         stdnoreturn: Fix test compilation failure on Cygwin.
5844         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
5845         <stdnoreturn.h> replacement.
5846         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
5847         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
5849 2017-08-16  Bruno Haible  <bruno@clisp.org>
5851         thread: Fix conflict with pthread_sigmask module.
5852         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
5853         it's defined as a macro.
5854         * modules/thread (Depends-on): Add pthread_sigmask.
5856 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5858         rename: port better to NetBSD
5859         * doc/posix-functions/rename.texi (rename): NetBSD 7
5860         does not have the link-count bug.
5861         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
5862         broken merely because rename ("a", "b") removes "a" when the two
5863         names are hard links to the same file.
5865 2017-08-16  Bruno Haible  <bruno@clisp.org>
5867         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
5868         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
5869         the target file names with '$(srcdir)/'.
5870         * modules/unicase/locale-language (Makefile.am): Likewise.
5871         * modules/unicase/special-casing (Makefile.am): Likewise.
5872         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
5873         * modules/unictype/category-byname (Makefile.am): Likewise.
5874         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
5875         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
5876         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
5877         * modules/unictype/property-byname (Makefile.am): Likewise.
5878         * modules/unictype/scripts (Makefile.am): Likewise.
5879         * modules/uninorm/composition (Makefile.am): Likewise.
5881 2017-08-16  Bruno Haible  <bruno@clisp.org>
5883         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
5884         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
5885         value for OpenBSD.
5887 2017-08-16  Bruno Haible  <bruno@clisp.org>
5889         rename, renameat: Update doc regarding NetBSD.
5890         * doc/posix-functions/rename.texi: Clarify that when using
5891         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
5892         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
5893         version.
5895 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5897         renameat2: port better to macOS
5898         * lib/renameat2.c (renameat2): Use renameatx_np if available.
5900         futimens: don’t assume struct timespec layout
5901         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
5902         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
5903         * tests/test-fdutimensat.c (main):
5904         * tests/test-futimens.h (test_futimens):
5905         * tests/test-lutimens.h (test_lutimens):
5906         * tests/test-utimens.h (test_utimens):
5907         * tests/test-utimensat.c (main):
5908         Don’t assume that struct timespec is a two-member structure in
5909         tv_sec, tv_nsec order.  Although this is true on all platforms we
5910         know about, POSIX does not guarantee it.
5912         rename: document+test NetBSD rename
5913         Test failure reported by Bruno Haible in:
5914         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
5915         This is an area where NetBSD is better-behaved than POSIX,
5916         so allow the NetBSD behavior in tests.
5917         * doc/posix-functions/rename.texi:
5918         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
5919         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
5921 2017-08-15  Bruno Haible  <bruno@clisp.org>
5923         renameat: Ensure declaration in <stdio.h> on NetBSD.
5924         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
5925         * doc/posix-functions/renameat.texi: Mention this problem.
5927 2017-08-15  Bruno Haible  <bruno@clisp.org>
5929         duplocale: Work around NetBSD 7.0 bug.
5930         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
5931         * lib/duplocale.c: Add comment about NetBSD problem.
5932         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
5934 2017-08-15  Bruno Haible  <bruno@clisp.org>
5936         duplocale tests: Verify use with *_l functions.
5937         * modules/duplocale-tests (configure.ac): Test for uselocale and
5938         some *_l functions.
5939         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
5940         from main.
5941         (get_locale_dependent_values_from, test_with_locale_parameter): New
5942         functions.
5943         (main): Test both test_with_uselocale and test_with_locale_parameter.
5945 2017-08-15  Bruno Haible  <bruno@clisp.org>
5947         extensions: Enable NetBSD specific extensions.
5948         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
5950 2017-08-14  Bruno Haible  <bruno@clisp.org>
5952         open, openat: Update doc about O_CLOEXEC.
5953         * doc/posix-functions/open.texi: More concrete list of platforms.
5954         * doc/posix-functions/openat.texi: Likewise.
5956 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5958         open: support O_CLOEXEC
5959         * NEWS, doc/posix-functions/open.texi:
5960         * doc/posix-functions/openat.texi: Document this.
5961         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
5962         (GNULIB_defined_O_CLOEXEC): New symbol.
5963         * lib/open.c: Include cloexec.h.
5964         (open): Support O_CLOEXEC.
5965         * lib/openat.c: Include cloexec.h.
5966         (rpl_openat): Support O_CLOEXEC.
5967         * lib/popen-safer.c: Do not include cloexec.h.
5968         (open_noinherit): Remove.
5969         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
5970         * lib/save-cwd.c: Do not include cloexec.h.
5971         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
5972         * m4/open-cloexec.m4: New file.
5973         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
5974         Replace 'open' if O_CLOEXEC is not present.
5975         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
5976         Replace 'openat' if O_CLOEXEC is not present.
5977         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
5978         * modules/open (Files): Add m4/open-cloexec.m4.
5979         (Depends-on): Depend on cloexec if replacing 'open'.
5980         * modules/openat (Files): Add m4/open-cloexec.m4.
5981         (Depends-on): Depend on cloexec if replacing openat.
5982         * modules/popen-safer (Depends-on): Remove cloexec.
5983         * modules/save-cwd (Depends-on): Remove cloexec, and add
5984         fd-safer-flag and 'open'.
5986 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
5988         reallocarray: minor fixes
5989         * doc/glibc-functions/reallocarray.texi: Update version numbers.
5990         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
5991         * modules/reallocarray (License): Change from GPL to LGPL.
5992         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
5993         Indent properly and don't use tabs.
5995 2017-08-13  Darshit Shah  <darnir@gnu.org>
5997         reallocarray: New module
5998         reallocarray is a new function in glibc 2.26 to safely allocate an array
5999         of memory locations with integer overflow protection.
6000         * MODULES.html.sh: Add reallocarray.
6001         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
6002         * lib/reallocarray.c: New file to implement module reallocarray.
6003         * lib/stdlib.in.h: Add function declarations for reallocarray.
6004         * m4/reallocarray.m4: New file.
6005         * m4/stdlib_h.m4: Declare reallocarray.
6006         * modules/reallocarray: New file.
6007         * modules/reallocarray-test: New file.
6008         * modules/stdlib: Coerce stdlib.h to export reallocarray.
6009         * tests/test-reallocarray.c: New test.
6011 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6013         dirent-safer: fix cloexec race
6014         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
6015         (opendir_safer): Use F_DUPFD_CLOEXEC.
6016         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
6017         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
6018         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
6019         instead of dup_safer.
6021         fts: fix cloexec races
6022         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
6023         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
6024         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
6025         (fd_ring_check): Set cloexec flag on new file descriptors.
6026         (fts_build, fd_ring_check): While we’re at it, make sure the
6027         resulting file descriptor is not 0, 1, or 2, since that is easy.
6029 2017-08-11  Bruno Haible  <bruno@clisp.org>
6031         fts tests: Fix link error.
6032         Reported by Tom G. Christensen in
6033         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
6034         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
6036 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6038         fts: port recent changes to CentOS 6
6039         Problem reported by Tom G. Christensen in:
6040         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
6041         * lib/fts.c (fsword): New type.
6042         (struct dev_type, filesystem_type): Use it.
6043         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
6044         Also, check for f_type only if fstatfs and sys/vfs.h work.
6046 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6048         tempname: do not depend on secure_getenv
6049         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
6050         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
6051         * modules/tempname (Depends-on): Remove secure_getenv.
6053 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
6055         extensions: add _OPENBSD_SOURCE
6056         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
6058 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
6059             Bruno Haible  <bruno@clisp.org>
6061         manywarnings: Add support for C++.
6062         * build-aux/g++-warning.spec: New file.
6063         * m4/manywarnings-c++.m4: New file.
6064         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
6065         redirects to manywarnings-c++.m4.
6066         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
6068 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6070         git-version-gen: another fix for tags with "-"
6071         * build-aux/git-version-gen: Improve fix for tags containing "-".
6072         Suggested by Markus Armbruster in:
6073         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
6075 2017-08-06  Bruno Haible  <bruno@clisp.org>
6077         warnings, manywarnings: Add support for multiple languages, not just C.
6078         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
6079         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
6080         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
6081         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
6082         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
6083         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
6084         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
6085         of the current language. If C++ is the current language, modify
6086         WARN_CXXFLAGS instead of WARN_CFLAGS.
6087         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
6088         gl_MANYWARN_ALL_GCC.
6089         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
6091 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
6093         git-version-gen: Fix for tags containing '-'
6095         Really old versions of git-describe (before v1.5.0, Feb 2007)
6096         don't have the number of commits in their long format output,
6097         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
6098         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
6099         recognizes both patterns, and normalizes the old format to the new one.
6101         Unfortunately, this normalization code gets confused when the tag
6102         contains '-'.  Reproducer:
6104             $ git-tag -m test v0.2-rc1
6105             $ build-aux/git-version-gen .tarball-version; echo
6106             build-aux/git-version-gen: WARNING: git rev-list failed
6107             UNKNOWN
6109         We take exact tag "v0.2-rc1" for the old format, extract the presumed
6110         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
6111         commits since tha tag.  Fails, because tag "v0.2" does not exist.
6113         * git-version-gen: We could perhaps drop support for versions from
6114         more than a decade ago.  But tightening the pattern match is easy
6115         enough, so do that.  Still breaks when you use version tags ending in
6116         something matching -g????, but you arguably get what you deserve then.
6118 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
6120         valgrind-tests: use ls, and cache
6121         * m4/valgrind-tests.m4: Test ls, not bash.
6122         Problem reported by Reuben Thomas.
6123         Also, cache the result so that it can be overridden.
6125 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
6127         manywarnings: port to 64-bit GCC builds of Emacs
6128         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
6129         object size rather than hardwiring 2147483647.  This is needed to
6130         build GNU Emacs, which has one conditional (and used
6131         only-in-theory) call to malloc with a literal greater than
6132         2147483647.
6134 2017-08-04  Bruno Haible  <bruno@clisp.org>
6136         Relax the license of some modules with no runtime code.
6137         * modules/std-gnu11 (License): Set to 'unlimited'.
6138         * modules/c99 (License): Likewise.
6139         Reported by Reuben Thomas <rrt@sc3d.org>.
6140         * modules/d-ino (License): Set to 'LGPL'.
6141         * modules/host-os (License): Likewise.
6142         * modules/longlong (License): Likewise.
6144 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6146         renameat2: port to RHEL 7 + NFS
6147         * lib/renameat2.c (renameat2) [SYS_renameat2]:
6148         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
6149         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
6151 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
6153         renameat2: port to non-renameat platforms
6154         Problem reported for MSVC-2015 by Gisle Vanem in:
6155         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
6156         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
6157         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
6159 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
6161         manywarnings: port to 32-bit GCC bug
6162         Problem reported by Pino Toscano in:
6163         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
6164         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
6165         not 2**63 - 1, to work around the following GCC bug:
6166         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
6168 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
6170         backupfile: new function to validate backup suffix
6171         * lib/backupfile.c (set_simple_backup_suffix): New function.
6172         (backupfile_internal): Use it.
6174         canonicalize: fix EOVERFLOW commentary
6175         Problem reported by Bruno Haible in:
6176         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
6177         * lib/canonicalize.c (canonicalize_filename_mode):
6178         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
6180         Don't interpret EOVERFLOW to mean nonexistence
6181         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
6182         may be EOVERFLOW; this is likely more useful than reporting the
6183         stat errno.
6184         * lib/glob.c (link_stat): Rename from link_exists2_p and
6185         return -1/0 instead of 0/1.  Caller changed.
6186         * lib/glob.c (link_exists_p):
6187         * lib/renameat2.c (rename_noreplace, renameat2):
6188         * lib/tempname.c (try_nocreate):
6189         If errno == EOVERFLOW then the directory entry exists, so do not
6190         act as if it does not exist.
6192         backup-rename: new module
6193         It is like backupfile, except it avoids some race conditions,
6194         and it does not output to stderr or exit.
6195         * MODULES.html.sh: Add backup-rename.
6196         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
6197         * modules/backup-rename: New files.
6198         * lib/backupfile.c: Turn this into an internals file, which
6199         contains code common to backupfile and backup_rename.  Include
6200         backupfile-internal.h instead of backupfile.h.  Do not include
6201         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
6202         renameat2.h and fcntl.h.
6203         (BACKUP_NOMEM): New constant.
6204         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
6205         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
6206         (backupfile_internal): Rename from find_backup_file_name.
6207         Support new arg RENAME.
6208         (backup_args, backup_types, get_version, xget_version):
6209         Move to lib/backup-find.c.
6210         * lib/backupfile.h (backup_file_rename): New decl.
6211         * modules/backupfile (Files): Add lib/backup-internal.h,
6212         lib/backup-find.c.
6213         (Depends-on): Add dirfd, fcntl, renameat2.
6214         (lib_SOURCES): Add backup-find.c.
6216         renameat2: port better to older Solaris
6217         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
6218         Add goto to use a label, to silence picky compilers.
6220         fts-tests: port to gcc -Wwrite-strings
6221         * tests/test-fts.c (base, base_d): New static vars.
6222         (argv, remove_tree, main): Use them.
6224 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6226         relocatable-lib{,-lgpl}: improve documentation
6227         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
6228         Various other updates.
6230 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
6231             Bruno Haible  <bruno@clisp.org>
6233         relocatable-lib{,-lgpl}: add Valgrind suppressions
6234         * lib/relocatable.valgrind: New file.
6235         * modules/relocatable-lib (Files): Add relocatable.valgrind.
6236         * modules/relocatable-lib-lgpl: Likewise.
6238 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6240         relocatable: Make the license on the sources the GPL.
6241         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
6242         LGPL, which was a special case so that the relocatable source files
6243         could be used without gnulib-tool, to GPL. They can still be used under
6244         the LGPL, using the --lgpl option to gnulib-tool.
6246 2017-07-30  Bruno Haible  <bruno@clisp.org>
6248         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
6249         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
6250         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
6251         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
6252         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
6254 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6256         faccessat: document AT_SYMLINK_NOFOLLOW issue
6257         * doc/posix-functions/faccessat.texi: Modernize platform list.
6258         Document AT_SYMLINK_NOFOLLOW limitation.
6260         renameat2: port to Solaris 10
6261         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
6262         with AT_SYMLINK_NOFOLLOW (which is not portable).
6263         (renameat): Undef before using, to avoid endless recursion when
6264         the replacement renameat calls renameat2 which calls the
6265         replacement renameat.
6266         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
6267         * modules/renameat2 (Depends-on): Remove faccessat.
6268         * modules/renameat-tests (test_renameat_LDADD):
6269         * modules/renameat2-tests (test_renameat2_LDADD):
6270         Remove $(LIB_EACCESS).
6272         renameat2: new module
6273         Although the Linux syscall renameat2 is not in glibc (yet?), it is
6274         useful to have access to its RENAME_NOREPLACE flag.
6275         * MODULES.html.sh (func_all_modules): Add renameat2.
6276         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
6277         * modules/renameat2-tests, tests/test-renameat2.c: New files.
6278         * lib/renameat.c (renameat): Move most of the implementation
6279         to renameat2, and just call renameat2.
6280         * modules/renameat (Files): Remove lib/at-func2.c.
6281         (Depends-on): Depend only on renameat2.
6282         (Include): Remove <fcntl.h>.
6283         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
6284         since renameat (via renameat2) might use faccessat.
6286 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
6288         vc-list-files: Adjust the script to support git worktrees
6289         * build-aux/vc-list-files: Require existence, not directory.
6291 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6293         doc: bring MODULES.html.sh up to date
6294         Somehow a few months ago we stopped updating MODULES.html.sh.
6295         I don’t recall explicitly deciding this, so I updated it now.
6296         Alternatively I suppose we could remove it.
6297         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6298         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6299         truncate, utime, utime-h, windows-stat-inodes,
6300         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6302 2017-07-26  Jim Meyering  <meyering@fb.com>
6304         fprintftime: fix build-break caused by recent renaming
6305         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6306         "strftime.c".
6307         * modules/fprintftime: Depend directly on nstrftime.
6309 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6311         regex: work with GCC7's -Werror=implicit-fallthrough=
6312         * lib/regex_internal.h (FALLTHROUGH): New macro.
6313         * lib/regcomp.c (peek_token_bracket, parse_expression):
6314         * lib/regexec.c (check_node_accept): Use it.
6316 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6318         fts: simplify fts_build
6319         * lib/fts.c (fts_build): Simplify, and be lazier about
6320         calling leaf_optimization.
6322         fts: three levels of leaf optimization
6323         * lib/fts.c (enum leaf_optimization): New type with three values.
6324         (S_MAGIC_AFS): New macro.  Sort them.
6325         (leaf_optimization): Rename from leaf_optimization_applies, and
6326         return enum leaf_optimization instead of bool.  All uses changed.
6327         Add cases for unknown type and for AFS.
6328         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6330         fts: cache dirent_inode_sort_may_be_useful too
6331         * lib/fts.c (struct dev_type): New struct.
6332         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6333         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6334         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6335         Now takes FTSENT const *, not int.  All uses changed.  Use
6336         filesystem_type to cache.
6337         (link_count_optimize_ok): Remove.  Caller changed to use
6338         leaf_optimization_applies, which now uses shared cache.
6340         fts: introduce MIN_DIR_NLINK
6341         * lib/fts.c (MIN_DIR_NLINK): New constant.
6342         Use it instead of 2, whenever we are talking about link counts.
6344         fts: nlink_t signedness fixups
6345         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6346         so that root need not be a special case later.
6347         (fts_read): Remove now-redundant test for fts_level.
6348         Do not assume that nlink_t is signed.
6349         (fts_build): Remove useless decrement of nlinks.
6350         (fts_stat): Avoid unlikely signed integer overflow later, if
6351         nlink_t is signed.
6353         fts-tests: new module
6354         * modules/fts-tests, tests/test-fts.c: New files.
6356 2017-07-23  Bruno Haible  <bruno@clisp.org>
6358         Rename module 'strftime' to 'nstrftime'.
6359         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6360         * lib/nstrftime.c: Renamed from lib/strftime.c.
6361         * modules/nstrftime: Renamed from modules/strftime.
6362         (Files, Makefile.am): Update.
6363         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6364         Fix comment.
6365         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6366         (Files, Makefile.am): Update.
6367         * modules/strftime: New file, an obsolete indirection.
6368         * doc/posix-functions/strftime.texi: Update reference.
6369         * config/srclist.txt: Update info.
6370         * NEWS: Mention the change.
6372 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6374         malloca: Silence a warning from clang's memory sanitizer.
6375         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6376         (freea): Use it.
6378 2017-07-18  Bruno Haible  <bruno@clisp.org>
6380         host-cpu-c-abi: Fix detection of MIPS ABI.
6381         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6382         ABI, not the CPU instruction set.
6384 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6386         explicit_bzero: new module
6387         The explicit_bzero function has been added to glibc.
6388         This module is intended to supports its use in GNU programs.
6389         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6390         * m4/explicit_bzero.m4, modules/explicit_bzero:
6391         New files.
6392         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6393         * lib/string.in.h (explicit_bzero): Declare.
6394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6395         * modules/string (string.h): Substitute its vars.
6397 2017-07-16  Bruno Haible  <bruno@clisp.org>
6399         threadlib: Support static linking.
6400         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6401         set gl_cv_have_weak to 'no'.
6403 2017-07-16  Bruno Haible  <bruno@clisp.org>
6405         unicase/locale-language: Fix link dependencies.
6406         * modules/unicase/locale-language (Link): New section.
6407         * modules/unicase/locale-language-tests (Makefile.am): Link
6408         test-locale-language program with $(LIBTHREAD).
6410 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6412         sys_socket: Add support for OpenVMS.
6413         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6414         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6416 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6418         sys_resource: Add support for OpenVMS.
6419         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6420         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6422 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6423             Bruno Haible  <bruno@clisp.org>
6425         math: Add support for OpenVMS.
6426         * lib/math.in.h [__VMS]: Include <fp.h>.
6427         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6429 2017-07-15  Bruno Haible  <bruno@clisp.org>
6431         getdtablesize: Add minimal support for OpenVMS.
6432         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6433         * modules/getdtablesize (Description): Fix.
6434         * lib/getdtablesize.c: Fix comment.
6435         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6436         getdtablesize() function, even though the test fails.
6437         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6438         limitation on OpenVMS.
6440 2017-07-13  Bruno Haible  <bruno@clisp.org>
6442         Revisit cross-compilation guesses.
6443         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6445 2017-07-13  Bruno Haible  <bruno@clisp.org>
6447         Improve cross-compilation guesses for native Windows.
6448         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6449         Windows.
6450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6451         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6452         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6453         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6454         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6455         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6456         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6457         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6458         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6459         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6460         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6461         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6462         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6463         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6464         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6465         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6466         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6468         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6469         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6470         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6471         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6472         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6473         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6474         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6475         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6476         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6477         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6478         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6479         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6480         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6481         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6482         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6483         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6484         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6485         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6486         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6487         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6488         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6489         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6490         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6491         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6492         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6493         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6494         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6495         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6496         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6497         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6498         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6499         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6500         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6501         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6502         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6503         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6504         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6505         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6506         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6507         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6508         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6509         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6511         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6512         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6513         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6514         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6516         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6517         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6518         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6519         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6520         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6521         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6522         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6523         * m4/regex.m4 (gl_REGEX): Likewise.
6524         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6525         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6526         gl_FUNC_REMAINDERF_WORKS): Likewise.
6527         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6528         gl_FUNC_REMAINDERL_WORKS): Likewise.
6529         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6530         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6531         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6532         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6533         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6534         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6535         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6536         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6537         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6538         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6539         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6540         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6541         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6542         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6543         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6544         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6545         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6546         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6547         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6548         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6549         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6550         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6551         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6552         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6553         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6554         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6555         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6556         Likewise.
6557         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6558         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
6559         Windows. Enable also on Autoconf 2.70.
6560         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6561         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6562         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6563         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
6564         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6565         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
6566         for native Windows.
6567         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6568         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
6570 2017-07-13  Bruno Haible  <bruno@clisp.org>
6572         Improve cross-compilation guesses for native Windows.
6573         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
6574         Windows.
6575         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
6576         memchr.m4.
6577         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6579 2017-07-13  Bruno Haible  <bruno@clisp.org>
6581         Improve cross-compilation guesses for native Windows.
6582         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
6583         native Windows.
6584         (gl_FUNC_FFLUSH): Update accordingly.
6585         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
6586         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6588 2017-07-11  Bruno Haible  <bruno@clisp.org>
6590         More systematic m4 quoting and indentation.
6591         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
6592         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6593         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6594         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6595         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6596         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
6597         gl_WINSIZE_IN_PTEM): Likewise.
6598         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
6599         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6600         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6601         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
6602         Correct indentation.
6603         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6604         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6605         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
6606         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6607         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6608         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6610 2017-07-10  Bruno Haible  <bruno@clisp.org>
6612         round, roundf: Avoid compiler warning in configure test.
6613         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
6614         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6616 2017-07-10  Bruno Haible  <bruno@clisp.org>
6618         getlogin tests: Avoid #ifdefs when sharing code between modules.
6619         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
6620         * modules/getlogin-tests (Files): Likewise. Remove
6621         tests/test-getlogin_r.c.
6622         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
6623         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
6624         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
6625         getlogin().
6627 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6629         getlogin: don’t assume one name per uid
6630         Problem reported by Wolfgang F. Muthmann (Bug#27640).
6631         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
6632         (ttyname): Remove test.
6633         * modules/getlogin_r-tests (ttyname): Remove test.
6634         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
6635         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
6636         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
6637         getlogin rather than getlogin_r.  This avoids code duplication.
6638         (main): Use isatty and fstat rather than ttyname and stat.
6639         Use getpwnam instead of getpwuid, to be portable to test platforms
6640         that have multiple login names for the same uid.
6642 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
6643             Bruno Haible  <bruno@clisp.org>
6645         glob: Fix more memory leaks.
6646         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
6647         returning.
6648         Reported by Tim Rühsen.
6650 2017-07-10  Bruno Haible  <bruno@clisp.org>
6652         Make sure $host and $host_os are defined when used.
6653         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
6654         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
6655         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
6656         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6657         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6658         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6659         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6660         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6661         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6662         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6663         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6664         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
6665         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
6666         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
6667         m4_ifdef block.
6669 2017-07-09  Bruno Haible  <bruno@clisp.org>
6671         *printf: Fix cross-compilation guess for Solaris.
6672         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
6673         2010-12-21.
6675 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6676             Bruno Haible  <bruno@clisp.org>
6678         vasnprintf: port to macOS 10.13
6679         Problem reported by comex in:
6680         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
6681         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
6683 2017-07-06  Bruno Haible  <bruno@clisp.org>
6685         imaxdiv tests: Fix logic.
6686         * tests/test-imaxdiv.c (main): Use == instead of =.
6687         Reported by Coverity.
6689 2017-07-06  Bruno Haible  <bruno@clisp.org>
6691         uninorm/filter: Fix use-after-free bug.
6692         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
6693         sortbuf == filter->sortbuf invariant.
6694         Reported by Coverity.
6696 2017-07-06  Bruno Haible  <bruno@clisp.org>
6698         glob: Fix more memory leaks.
6699         * lib/glob.c (glob): Free dirname before returning.
6700         Reported by Coverity and Tim Rühsen.
6702 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6704         parse-datetime: fix uninit var bug
6705         Reported by Bruno Haible in:
6706         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
6707         * lib/parse-datetime.y (parse_datetime2): Do not use
6708         uninitialized.
6710 2017-07-05  Bruno Haible  <bruno@clisp.org>
6712         doc: Update for MSVC 14.
6713         * doc/posix-headers/*.texi: Add info about MSVC 14.
6714         * doc/posix-functions/*.texi: Likewise.
6715         * doc/pastposix-functions/*.texi: Likewise.
6716         * doc/glibc-headers/*.texi: Likewise.
6717         * doc/glibc-functions/*.texi: Likewise.
6719 2017-07-05  Bruno Haible  <bruno@clisp.org>
6721         sched: Fix build failure on native Windows (regression from 2017-06-19).
6722         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
6724 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
6726         stdioext: Port to OpenVMS.
6727         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
6728         * lib/fpending.c (fpending): Remove non-working VMS specific code.
6729         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
6730         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
6731         * lib/fpurge.c (fpurge): Likewise.
6732         * lib/freadable.c (freadable): Likewise.
6733         * lib/freadahead.c (freadahead): Likewise.
6734         * lib/freading.c (freading): Likewise.
6735         * lib/freadptr.c (freadptr): Likewise.
6736         * lib/freadseek.c (freadseek): Likewise.
6737         * lib/fseeko.c (fseeko): Likewise.
6738         * lib/fseterr.c (fseterr): Likewise.
6739         * lib/fwritable.c (fwriteable): Likewise.
6740         * lib/fwriting.c (fwriting): Likewise.
6742 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
6744         glob: Declare variables at the very start of their scope.
6745         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
6746         its separate scope, so the functions will compile on Haiku.
6748 2017-07-01  Bruno Haible  <bruno@clisp.org>
6750         logbl: Work around a glibc bug on PowerPC64LE.
6751         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
6752         numbers.
6753         * doc/posix-functions/logbl.texi: Update.
6755 2017-06-29  Bruno Haible  <bruno@clisp.org>
6757         stat, fstat: Compile stat-w32.c only on platforms that need it.
6758         Suggested by Paul Eggert.
6759         * modules/stat (configure.ac): Request stat-w32.o only on native
6760         Windows.
6761         * modules/fstat (configure.ac): Likewise.
6763 2017-06-25  Bruno Haible  <bruno@clisp.org>
6765         stat: Improve last change.
6766         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
6768 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6770         stat: port to xlc 12.01
6771         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
6772         12.01 complains "Compilation unit is empty."
6774 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6776         xalloc-oversized: port to icc
6777         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
6778         __builtin_mul_overflow if ICC is defined, as this results in
6779         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
6780         20170213.
6782 2017-06-19  Bruno Haible  <bruno@clisp.org>
6784         classpath: Avoid including config.h twice, as it produces warnings.
6785         Reported by John E. Malmberg <wb8tyw@gmail.com>.
6786         * lib/classpath.h: Conditionalize the include of config.h.
6788 2017-06-19  Bruno Haible  <bruno@clisp.org>
6789             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
6791         sched: Fix compilation failure on OpenVMS.
6792         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
6793         test whether <pthread.h> exists and defines struct sched_param.
6794         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
6796 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
6798         diffseq: port to GCC 7 with --enable-gcc-warnings
6799         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
6800         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
6801         not complain about big_snake being defined but not used.
6803 2017-06-15  Bruno Haible  <bruno@clisp.org>
6805         gettext-h: Update theoretical condition for use of variable size arrays.
6806         Reported by Paul Eggert.
6807         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
6808         to include the theoretical condition for availability of variable size
6809         arrays, if we could trust the value of __STDC_VERSION__.
6811 2017-06-12  Bruno Haible  <bruno@clisp.org>
6813         Relicense some modules under LGPLv2+.
6814         Daiki Ueno's approval is in
6815         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
6816         * modules/uniwidth/base (License): Change to LGPLv2+.
6817         * modules/uniwidth/width (License): Likewise.
6819 2017-06-11  Bruno Haible  <bruno@clisp.org>
6821         localename: Fix test failure on DragonFly BSD.
6822         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
6823         like FreeBSD.
6825 2017-06-11  Bruno Haible  <bruno@clisp.org>
6827         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
6828         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
6829         * lib/float.in.h: Likewise.
6830         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
6832 2017-06-11  Bruno Haible  <bruno@clisp.org>
6834         gnulib-tool: Clean up after autotools.
6835         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
6836         useless directory left over by the Autotools.
6838 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6840         getopt-posix: port to glibc 2.25.90
6841         Problem reported by Daniel P. Berrange in:
6842         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
6843         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
6844         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
6845         #undef if __GETOPT_PREFIX is defined.
6847 2017-06-11  Bruno Haible  <bruno@clisp.org>
6849         strtod-obsolete: Fix license.
6850         * modules/strtod-obsolete (License): Change to LGPL.
6852 2017-06-10  Jim Meyering  <meyering@fb.com>
6854         maint: update to work with GCC7's -Werror=implicit-fallthrough=
6855         * lib/savewd.c (FALLTHROUGH): Define.
6856         (savewd_save, savewd_restore): Use this, rather than a comment,
6857         whenever one switch case falls through into the next.
6859 2017-06-08  Bruno Haible  <bruno@clisp.org>
6861         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
6862         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
6863         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
6864         case.
6866 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
6868         doc: remove robots, add prereqs
6869         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
6870         builds.  Simon's robot site does not seem to be up, so remove
6871         mentions of it for now.
6873 2017-06-08  Bruno Haible  <bruno@clisp.org>
6875         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
6876         * gnulib-tool (func_symlink_target): New function, extracted from
6877         func_symlink.
6878         (func_symlink, func_symlink_if_changed): Use it.
6880 2017-06-08  Bruno Haible  <bruno@clisp.org>
6882         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
6883         * gnulib-tool (func_ln_s): Determine cp_src correctly.
6885 2017-06-07  Bruno Haible  <bruno@clisp.org>
6887         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
6888         Reported by John E. Malmberg <wb8tyw@gmail.com> in
6889         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
6890         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
6891         override, pass 2 arguments to getcwd, not 3.
6893 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6895         same-inode: port better to VMS 8.2 and later
6896         Problem reported by John E. Malmberg in:
6897         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
6898         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
6899         Use the usual POSIX definition.
6900         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
6902 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6904         error: fix POSIX violation for va_end
6905         Problem reported by Bruno Haible in:
6906         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
6907         * lib/error.c (error_tail): Do not call va_end here.
6908         (error, error_at_line): Call it here instead.
6910 2017-05-28  Bruno Haible  <bruno@clisp.org>
6912         c-strtod: Make it usable in C++ mode.
6913         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
6915 2017-05-25  Jim Meyering  <meyering@fb.com>
6917         quotearg: fix compilation failure due to FALLTHROUGH misuse
6918         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
6919         macro back to /* fall through */ comment.  The macro can apply only
6920         to a following case statement.  Reported by Assaf Gordon.
6922 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6924         intprops: port to recent icc
6925         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
6926         but does not support __builtin_add_overflow etc.
6927         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
6928         Define to 0.
6930 2017-05-23  Karl Berry  <karl@freefriends.org>
6932         * config/srclist.txt (iconv.m4): sync broken, comment out
6933         until (hopefully) the next gettext release.
6935 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6937         Remove repeated words in comments.
6939 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
6941         fallthrough: reinstate a FALLTHROUGH instance in quotearg
6942         quotearg.c: Reinstate this instance which is significant
6943         when the if branch is not taken.
6945 2017-05-21  Bruno Haible  <bruno@clisp.org>
6947         gnulib-tool: Add options to create hard links.
6948         * gnulib-tool (func_usage): Document options --hardlink,
6949         --local-hardlink, --more-hardlinks.
6950         (func_symlink): Renamed from func_ln.
6951         (func_symlink_if_changed): Renamed from func_ln_if_changed.
6952         (func_hardlink): New function.
6953         (copymode, lcopymode): New variables.
6954         (symbolic, lsymbolic): Remove variables.
6955         (Options): Implement options --hardlink, --local-hardlink,
6956         --more-hardlinks.
6957         (func_should_link): Renamed from func_should_symlink. Set copyaction.
6958         (func_add_file, func_update_file): Update invocation of
6959         func_should_link. Invoke func_hardlink when appropriate.
6960         (func_import): Update comments.
6961         (func_create_testdir): Update invocation of func_should_link. Invoke
6962         func_hardlink when appropriate.
6963         Finally, invoke 'git update-index --refresh' to mitigate the effects of
6964         the hard links on git.
6966 2017-05-20  Bruno Haible  <bruno@clisp.org>
6968         argp: Simplify bit manipulation.
6969         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
6970         on a signed integer type.
6972 2017-05-20  Bruno Haible  <bruno@clisp.org>
6974         Avoid wrong configure results with gcc -fsanitize=address.
6975         This completes the work done on 2016-02-06 on this topic.
6976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
6977         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6978         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6979         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6980         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
6981         returning.
6982         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6983         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
6984         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6985         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6986         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6987         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6988         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
6989         free allocated memory before returning.
6990         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6991         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
6992         objects before returning.
6993         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
6994         returning.
6996 2017-05-20  Bruno Haible  <bruno@clisp.org>
6998         gnulib-tool: Don't create hard links between gnulib and its testdirs.
6999         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
7001 2017-05-20  Bruno Haible  <bruno@clisp.org>
7003         argp, tsearch tests: Fix file list.
7004         * modules/argp-tests (Files): Add tests/macros.h.
7005         * modules/tsearch-tests (Files): Likewise.
7007 2017-05-20  Bruno Haible  <bruno@clisp.org>
7009         getopt-posix tests: Remove redundant include.
7010         * tests/test-getopt.h: Don't include "macros.h". It's already included
7011         by tests/test-getopt-main.h.
7013 2017-05-19  Jim Meyering  <meyering@fb.com>
7015         dfa: two small simplifications
7016         * lib/dfa.c (build_state): Avoid repeating longer expressions.
7018 2017-05-18  Jim Meyering  <meyering@fb.com>
7020         fallthrough: update for GCC 7/8
7021         * lib/quotearg.c (FALLTHROUGH): New macro.
7022         Use it whenever one switch case falls through into the next,
7023         replacing "/* Fall through */" comments.  This exposed one
7024         instance of an unwarranted "fall through" comment: unwarranted
7025         because it preceded a "goto" label not a case statement.
7026         * lib/freopen-safer.c (freopen_safer): Likewise.
7027         * lib/fts.c (leaf_optimization_applies): Likewise.
7028         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7029         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
7030         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
7031         tests/macros.h for the definition.
7032         * tests/test-argp.c (group1_parser): Likewise.
7033         * tests/test-getopt.h (getopt_loop): Likewise.
7035 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7037         argp: fix shift bug
7038         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
7039         behavior on shift overflow, caught by gcc -fsanitize=undefined.
7041         argp: fix pointer-subtraction bug
7042         * lib/argp-help.c (hol_append): Don’t subtract pointers to
7043         different arrays, as this can run afoul of -fcheck-pointer-bounds.
7044         See the thread containing Bruno Haible’s report in:
7045         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
7047 2017-05-19  Bruno Haible  <bruno@clisp.org>
7049         printf-posix tests: Avoid test failure with "gcc --coverage".
7050         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7051         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
7052         than 5000000.
7053         * tests/test-fprintf-posix2.c (main): Likewise.
7055 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7057         closeout: don’t close stderr when sanitizing
7058         * NEWS: Document this.
7059         * lib/closeout.c (__has_feature): New macro, if not already defined.
7060         (SANITIZE_ADDRESS): New constant.
7061         (close_stdout): Don’t close stderr if sanitizing addresses.
7063 2017-05-19  Bruno Haible  <bruno@clisp.org>
7065         get-rusage-data tests: Avoid failure on Linux/glibc.
7066         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
7067         on glibc systems.
7069 2017-05-18  Bruno Haible  <bruno@clisp.org>
7071         localename: Include necessary header files on Cygwin.
7072         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
7073         where NL_LOCALE_NAME is defined.
7075 2017-05-18  Bruno Haible  <bruno@clisp.org>
7077         gettext: Update macros from gettext git.
7078         * m4/intldir.m4: Require Autoconf >= 2.60.
7079         * m4/progtest.m4: Fix typos in copyright notice.
7081 2017-05-18  Bruno Haible  <bruno@clisp.org>
7083         copy-file tests: Fix link error (regression from 2017-05-01).
7084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7085         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
7086         $(LIB_CLOCK_GETTIME).
7088 2017-05-18  Bruno Haible  <bruno@clisp.org>
7090         unicase/special-casing: Fix incompatibility with gperf-3.0.4
7091         (regression from 2017-02-13).
7092         * lib/unicase/special-casing.in.h: Renamed from
7093         lib/unicase/special-casing.h.
7094         * modules/unicase/special-casing (Files): Add
7095         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
7096         (Makefile.am): Add rule for generating unicase/special-casing.h.
7097         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
7098         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
7099         not "special-casing.h".
7100         * lib/unicase/u*.c: Likewise.
7102 2017-05-17  Bruno Haible  <bruno@clisp.org>
7104         README: Don't ask people to read a TeXinfo file.
7105         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7106         * README: Tell people how to read the HTML formatted manual.
7108 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7110         parse-datetime: Fix memleak
7111         * lib/parse-datetime.y (parse_datetime2): Cleanup on
7112         localtime_rz() failure.
7114 2017-05-16  Bruno Haible  <bruno@clisp.org>
7116         javacomp: Fix handle leak.
7117         Found by Coverity.
7118         * lib/javacomp.c (get_classfile_version): Close fd before returning.
7120 2017-05-16  Bruno Haible  <bruno@clisp.org>
7122         relocate: Make it easier to reclaim allocated memory.
7123         * lib/relocatable.h (relocate2): New declaration/macro.
7124         * lib/relocatable.c (relocate2): New function.
7125         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
7126         relocate2 function.
7127         * lib/localcharset.c (relocate2): Define fallback.
7128         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
7129         allocated memory.
7130         * lib/javaversion.c (relocate2): Define fallback.
7131         (javaexec_version): Invoke relocate2 instead of relocate. Free the
7132         allocated memory.
7134 2017-05-16  Bruno Haible  <bruno@clisp.org>
7136         relocate: Simplify EMX specific code.
7137         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
7138         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
7140 2017-05-16  Bruno Haible  <bruno@clisp.org>
7142         sigpipe tests: Fix file list.
7143         * modules/sigpipe-tests (Files): Add tests/macros.h.
7145 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7147         manywarnings: update for GCC 7
7148         * build-aux/gcc-warning.spec:
7149         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7150         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
7151         requires a non-comment fallthrough attribute.  This is a bit
7152         cleaner than the comment versions.
7153         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
7154         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
7155         Use it whenever one switch case falls through into the next.
7156         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
7157         Use FALLTHROUGH macro.
7159 2017-05-15  Bruno Haible  <bruno@clisp.org>
7161         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
7162         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
7163         @ALLOCA@, not @LTALLOCA@.
7165 2017-05-15  Bruno Haible  <bruno@clisp.org>
7167         sys_select: Avoid "was expanded before it was required" warning.
7168         * modules/sys_select (configure.ac): Require, not invoke,
7169         gl_HEADER_SYS_SELECT.
7171 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7173         gnulib-tool: improve GNU Make debugging
7174         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
7175         Report autoconf diagnostics when it fails, in the output makefile.
7177 2017-05-14  Bruno Haible  <bruno@clisp.org>
7179         stat-time tests: Improve comment.
7180         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
7182 2017-05-14  Bruno Haible  <bruno@clisp.org>
7184         same-inode: Adapt for windows-stat-inodes.
7185         * lib/same-inode.h: Include <sys/types.h>.
7186         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
7187         * modules/same-inode (Depends-on): Add sys_types.
7189 2017-05-14  Bruno Haible  <bruno@clisp.org>
7191         windows-stat-inodes: New module.
7192         * m4/windows-stat-inodes.m4: New file.
7193         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
7194         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
7195         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
7196         (_GL_WINDOWS_STAT_INODES): New macro.
7197         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
7198         (GetFileInformationByHandleExFunc): New variable.
7199         (initialize): Initialize it.
7200         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
7201         st_ino appropriately.
7202         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
7203         a fallback, because it does not provide st_dev and st_ino values.
7204         * modules/fstat (Depends-on): Add 'verify'.
7205         * modules/windows-stat-inodes: New file.
7206         * doc/windows-stat-inodes.texi: New file.
7207         * doc/gnulib.texi: Include it.
7208         * doc/posix-headers/sys_stat.texi: Mention the new module.
7210 2017-05-14  Bruno Haible  <bruno@clisp.org>
7212         stat-time tests: Workaround for native Windows.
7213         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
7214         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
7215         New variables.
7216         (initialize_filenames): New function.
7217         (main): Invoke it.
7218         (cleanup, prepare_test): Update.
7220 2017-05-14  Bruno Haible  <bruno@clisp.org>
7222         stat-time: Adapt for windows-stat-timespec.
7223         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
7224         entire st_ctim field.
7226 2017-05-13  Jim Meyering  <meyering@fb.com>
7228         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
7229         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
7230         file that uses the assume macro, claiming that verify.h is unused.
7232 2017-05-13  Bruno Haible  <bruno@clisp.org>
7234         Use symbolic values for _WIN32_WINNT.
7235         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
7236         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7238 2017-05-13  Bruno Haible  <bruno@clisp.org>
7240         year2038: New module.
7241         * m4/year2038.m4: New file.
7242         * modules/year2038: New file.
7243         * doc/year2038.texi: New file.
7244         * doc/gnulib.texi: Include it.
7246 2017-05-13  Bruno Haible  <bruno@clisp.org>
7248         largefile: Simplify.
7249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
7250         of _GL_WINDOWS_64_BIT_ST_SIZE.
7252 2017-05-13  Bruno Haible  <bruno@clisp.org>
7254         largefile: Improve and document.
7255         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
7256         the mingw headers already define 'stat' appropriately.
7257         * modules/largefile (Description): Clarify.
7258         * doc/largefile.texi: New file.
7259         * doc/gnulib.texi: Include it.
7260         * doc/posix-headers/sys_types.texi: Update.
7262 2017-05-13  Bruno Haible  <bruno@clisp.org>
7264         truncate: New module.
7265         * lib/unistd.in.h (truncate): New declaration.
7266         * lib/truncate.c: New file.
7267         * m4/truncate.m4: New file.
7268         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
7269         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
7270         REPLACE_TRUNCATE.
7271         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
7272         HAVE_TRUNCATE, REPLACE_TRUNCATE.
7273         * modules/truncate: New file.
7274         * tests/test-unistd-c++.cc (truncate): Test signature.
7275         * doc/posix-functions/truncate.texi: Mention the new module.
7277         * tests/test-truncate.c: New file.
7278         * modules/truncate-tests: New file.
7280 2017-05-13  Bruno Haible  <bruno@clisp.org>
7282         windows-stat-timespec: New module.
7283         * modules/windows-stat-timespec: New file.
7284         * m4/windows-stat-timespec.m4: New file.
7285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
7286         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
7287         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
7288         fields st_atim, st_mtim, st_ctim.
7289         (st_atime, st_mtime, st_ctime): Define as macros.
7290         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
7291         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
7292         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7293         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7294         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7295         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7296         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7297         FILETIME to 'struct timespec', not 'time_t'.
7298         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7299         FILETIME to 'struct timespec', not 'time_t'.
7300         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7301         _GL_WINDOWS_STAT_TIMESPEC.
7302         * doc/windows-stat-timespec.texi: New file.
7303         * doc/gnulib.texi: Include it.
7305 2017-05-13  Bruno Haible  <bruno@clisp.org>
7307         windows-stat-override: New module.
7308         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7309         definition. Define GNULIB_defined_struct_stat.
7310         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7311         link error if this symbol is used and the corresponding module is not
7312         in use.
7313         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7314         GNULIB_OVERRIDES_STRUCT_STAT.
7315         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7316         GNULIB_OVERRIDES_STRUCT_STAT.
7317         * modules/sys_stat (Makefile.am): Substitute
7318         GNULIB_OVERRIDES_STRUCT_STAT.
7319         * modules/windows-stat-override: New file.
7321 2017-05-13  Bruno Haible  <bruno@clisp.org>
7323         fstat: Fix module dependency conditions.
7324         * modules/fstat (Depends-on): Fix typo.
7326 2017-05-13  Bruno Haible  <bruno@clisp.org>
7328         stat, fstat: Complete removal of old native Windows code.
7329         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7330         * lib/fstat.c: Likewise.
7331         * lib/stat-w32.c: Likewise.
7333 2017-05-13  Bruno Haible  <bruno@clisp.org>
7335         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7336         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7338 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7340         getopt-posix: port to mingw
7341         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7342         Problem reported by Daniel P. Berrage in:
7343         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7345 2017-05-11  Bruno Haible  <bruno@clisp.org>
7347         gettimeofday: Increase precision on mingw.
7348         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7349         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7350         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7351         GetSystemTimePreciseAsFileTime based implementation always.
7352         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7353         mingw.
7355 2017-05-11  Bruno Haible  <bruno@clisp.org>
7357         poll: Fix confusion between SOCKETs and FDs on native Windows.
7358         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7359         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7361 2017-05-11  Bruno Haible  <bruno@clisp.org>
7363         doc: Clarify doc about socket functions on native Windows.
7364         This reworks doc that was added on 2008-09-29.
7365         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7366         clearer wording.
7367         * doc/posix-functions/accept.texi: Use clearer wording.
7368         * doc/posix-functions/bind.texi: Likewise.
7369         * doc/posix-functions/connect.texi: Likewise.
7370         * doc/posix-functions/getpeername.texi: Likewise.
7371         * doc/posix-functions/getsockname.texi: Likewise.
7372         * doc/posix-functions/getsockopt.texi: Likewise.
7373         * doc/posix-functions/ioctl.texi: Likewise.
7374         * doc/posix-functions/listen.texi: Likewise.
7375         * doc/posix-functions/recv.texi: Likewise.
7376         * doc/posix-functions/recvfrom.texi: Likewise.
7377         * doc/posix-functions/send.texi: Likewise.
7378         * doc/posix-functions/sendto.texi: Likewise.
7379         * doc/posix-functions/setsockopt.texi: Likewise.
7380         * doc/posix-functions/shutdown.texi: Likewise.
7381         * doc/posix-functions/socket.texi: Likewise.
7383 2017-05-10  Bruno Haible  <bruno@clisp.org>
7385         poll: Fix link error on native Windows.
7386         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7388 2017-05-10  Bruno Haible  <bruno@clisp.org>
7390         time: Fix missing initialization of HAVE_TIMEZONE_T.
7391         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7392         here...
7393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7394         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7395         gl_HEADER_SYS_TIME_H_DEFAULTS.
7396         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7397         (configure.ac): Remove useless quoting.
7399 2017-05-10  Bruno Haible  <bruno@clisp.org>
7401         Implement a way to opt out from MSVC support, part 2.
7402         * modules/msvc-inval (Include): Document recommended idiom.
7403         * modules/msvc-nothrow (Include): Likewise.
7405         Implement a way to opt out from MSVC support.
7406         This is useful for Emacs.
7407         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7408         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7409         * lib/error.c: Likewise.
7410         * lib/fcntl.c: Likewise.
7411         * lib/flock.c: Likewise.
7412         * lib/fstat.c: Likewise.
7413         * lib/fsync.c: Likewise.
7414         * lib/ioctl.c: Likewise.
7415         * lib/isapipe.c: Likewise.
7416         * lib/lseek.c: Likewise.
7417         * lib/nonblocking.c: Likewise.
7418         * lib/poll.c: Likewise.
7419         * lib/select.c: Likewise.
7420         * lib/sockets.h: Likewise.
7421         * lib/sockets.c: Likewise.
7422         * lib/stdio-read.c: Likewise.
7423         * lib/stdio-write.c: Likewise.
7424         * lib/utimens.c: Likewise.
7425         * lib/w32sock.h: Likewise.
7426         * lib/w32spawn.h: Likewise.
7427         * tests/test-cloexec.c: Likewise.
7428         * tests/test-dup-safer.c: Likewise.
7429         * tests/test-dup2.c: Likewise.
7430         * tests/test-dup3.c: Likewise.
7431         * tests/test-fcntl.c: Likewise.
7432         * tests/test-pipe.c: Likewise.
7433         * tests/test-pipe2.c: Likewise.
7434         * lib/ftruncate.c: Likewise.
7435         (chsize_nothrow): Renamed from chsize.
7436         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7437         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7438         * lib/close.c: Likewise.
7439         * lib/dup.c: Likewise.
7440         * lib/fclose.c: Likewise.
7441         * lib/raise.c: Likewise.
7442         * tests/test-fgetc.c: Likewise.
7443         * tests/test-fputc.c: Likewise.
7444         * tests/test-fread.c: Likewise.
7445         * tests/test-fwrite.c: Likewise.
7446         * lib/getdtablesize.c: Likewise.
7447         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7448         * lib/isatty.c: Don't include msvc-inval.h if
7449         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7450         Include <io.h> as an alternative to msvc-nothrow.h.
7451         * lib/read.c: Likewise.
7452         * lib/write.c: Likewise.
7453         * lib/dup2.c: Likewise.
7454         (dup2_nothrow): New function.
7455         (ms_windows_dup2): Use it.
7456         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7457         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7458         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7459         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7460         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7461         * m4/read.m4 (gl_FUNC_READ): Likewise.
7462         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7463         * doc/windows-without-msvc.texi: New file.
7464         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7465         section.
7467 2017-05-10  Bruno Haible  <bruno@clisp.org>
7469         wait-process: Adjust native Windows support.
7470         * lib/wait-process.c: Use the usual condition for recognizing a native
7471         Windows platform.
7473 2017-05-10  Bruno Haible  <bruno@clisp.org>
7475         doc: New chapter "Native Windows Support".
7476         * doc/gnulib.texi (Native Windows Support): New chapter.
7477         * doc/windows-libtool.texi: Small wording changes.
7478         * doc/windows-sockets.texi: Small wording and formatting changes.
7480 2017-05-10  Bruno Haible  <bruno@clisp.org>
7482         doc: Move section "Library version handling".
7483         * doc/gnulib.texi: Move section "Library version handling"
7484         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7486 2017-05-10  Bruno Haible  <bruno@clisp.org>
7488         doc: Move section "Running self-tests under valgrind".
7489         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7490         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7492 2017-05-10  Bruno Haible  <bruno@clisp.org>
7494         doc: New chapter "Build Infrastructure Modules".
7495         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7497 2017-05-10  Bruno Haible  <bruno@clisp.org>
7499         Prepare for reordering sections in the manual.
7500         * doc/gnulib.texi: Move several sections to separate files. Include
7501         these files.
7502         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7503         * doc/obsolete.texi: Likewise.
7504         * doc/extra-tests.texi: Likewise.
7505         * doc/transversal.texi: Likewise.
7506         * doc/namespace.texi: Likewise.
7507         * doc/check-version.texi: Likewise.
7508         * doc/windows-sockets.texi: Likewise.
7509         * doc/windows-libtool.texi: Likewise.
7510         * doc/licenses-texi.texi: Likewise.
7511         * doc/build-automation.texi: Likewise.
7512         * doc/c-locale.texi: Likewise.
7514 2017-05-10  Bruno Haible  <bruno@clisp.org>
7516         Fix instructions how to update manual on www.gnu.org.
7517         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7519 2017-05-09  Bruno Haible  <bruno@clisp.org>
7521         tzset: Expand comment about TZ problem on native Windows.
7522         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7523         Paul Eggert.
7524         * lib/ctime.c (rpl_ctime): Likewise.
7525         * lib/localtime.c (rpl_localtime): Likewise.
7526         * lib/mktime.c (mktime): Likewise.
7527         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7528         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7530 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7532         intprops: don’t depend on ‘verify’
7533         Problem reported by Ævar Arnfjörð Bjarmason in:
7534         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7535         * lib/intprops.h: Do not include verify.h, and move compile-time
7536         checks from here ...
7537         * tests/test-intprops.c (main): ... to here, if they’re not here
7538         already.  Check widths of other standard integer types.
7539         * modules/intprops (Depends-on): Remove ‘verify’.
7541 2017-05-07  Bruno Haible  <bruno@clisp.org>
7543         utimens: On native Windows, support 100ns resolution also if fd < 0.
7544         * lib/utime.in.h: Include <time.h>.
7545         (_gl_utimens_windows): New declaration.
7546         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
7547         (utime): Invoke it.
7548         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
7549         instead of utime.
7550         * modules/utime (Depends-on): Add 'time'.
7552 2017-05-07  Bruno Haible  <bruno@clisp.org>
7554         utimens: Improve error code on native Windows.
7555         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
7556         error code EACCES, not EINVAL.
7558 2017-05-07  Bruno Haible  <bruno@clisp.org>
7560         utime: Handle more Windows error codes.
7561         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
7562         Based on explanations by Billy O'Neal.
7564 2017-05-05  Bruno Haible  <bruno@clisp.org>
7566         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
7567         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
7568         union.
7569         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
7570         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
7571         value of cipher->IV.
7573 2017-05-05  Bruno Haible  <bruno@clisp.org>
7575         wctype-h-c++-tests: Update.
7576         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
7578 2017-05-05  Bruno Haible  <bruno@clisp.org>
7580         wchar-c++-tests: Update.
7581         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
7583 2017-05-05  Bruno Haible  <bruno@clisp.org>
7585         utime-h-c++-tests: New module.
7586         * tests/test-utime-h-c++.cc: New file.
7587         (utime): Declare, missing since 2017-04-30.
7588         * modules/utime-h-c++-tests: New file.
7590 2017-05-05  Bruno Haible  <bruno@clisp.org>
7592         unistd-c++-tests: Update.
7593         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
7594         (read): Declare, missing since 2011-04-15.
7595         (sethostname): Declare, missing since 2011-12-03.
7597 2017-05-05  Bruno Haible  <bruno@clisp.org>
7599         time-c++-tests: Update.
7600         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
7601         (localtime, gmtime): Declare, missing since 2017-04-30.
7602         (ctime): Declare, missing since 2017-04-30.
7603         (strftime): Declare, missing since 2017-04-30.
7604         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
7605         2015-07-24.
7607 2017-05-05  Bruno Haible  <bruno@clisp.org>
7609         sys_resource-c++-tests: New module.
7610         * tests/test-sys_resource-c++.cc: New file.
7611         (getrusage): Declare, missing since 2012-04-13.
7612         * modules/sys_resource-c++-tests: New file.
7614 2017-05-05  Bruno Haible  <bruno@clisp.org>
7616         strings-c++-tests: New module.
7617         * tests/test-strings-c++.cc: New file.
7618         (ffs): Declare, missing since 2011-07-12.
7619         * modules/strings-c++-tests: New file.
7621 2017-05-05  Bruno Haible  <bruno@clisp.org>
7623         string-c++-tests: Update.
7624         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
7625         (ffsll): Declare, missing since 2011-07-15.
7627 2017-05-05  Bruno Haible  <bruno@clisp.org>
7629         stdlib-c++-tests: Update.
7630         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
7631         2011-10-18.
7632         (ptsname_r): Declare, missing since 2011-11-07.
7633         (qsort_r): Declare, missing since 2014-08-29.
7634         (random, srandom, initstate, setstate): Declare, missing since
7635         2012-01-14.
7636         (secure_getenv): Declare, missing since 2013-02-05.
7638 2017-05-05  Bruno Haible  <bruno@clisp.org>
7640         stdio-c++-tests: Update.
7641         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
7643 2017-05-05  Bruno Haible  <bruno@clisp.org>
7645         signal-h-c++-tests: Update.
7646         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
7648 2017-05-05  Bruno Haible  <bruno@clisp.org>
7650         math-c++-tests: Update.
7651         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
7652         (fma): Declare, missing since 2011-10-17.
7653         (fmal): Declare, missing since 2011-10-17.
7655 2017-05-05  Bruno Haible  <bruno@clisp.org>
7657         locale-c++-tests: Update.
7658         * tests/test-locale-c++.cc (localeconv): Declare, missing since
7659         2012-03-25.
7661 2017-05-05  Bruno Haible  <bruno@clisp.org>
7663         inttypes-c++-tests: New module.
7664         * tests/test-inttypes-c++.cc: New file.
7665         (strtoimax): Declare, missing since 2012-01-05.
7666         (strtoumax): Declare, missing since 2012-01-05.
7667         * modules/inttypes-c++-tests: New file.
7669 2017-05-05  Bruno Haible  <bruno@clisp.org>
7671         dirent-c++-tests: Update.
7672         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
7673         (rewinddir): Declare, missing since 2011-09-13.
7674         (dirfd): Declare, missing since 2010-03-08.
7676 2017-05-04  Bruno Haible  <bruno@clisp.org>
7678         argp: Fix mistake in 2017-04-23 commit.
7679         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
7680         assume that strerror_r returns 'int', not 'char *'.
7682 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
7684         argp: Fix typo.
7685         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
7687 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7689         utimens: port to Emacs + MS-Windows
7690         Skip the new MS-Windows-specific code if Emacs.
7691         * lib/utimens.c [EMACS_CONFIGUATION]:
7692         Avoid new MS-Windows-specific code.
7693         (USE_SETFILETIME): New macro.
7694         (fdutimens): Use it.
7696 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7698         tzset: update doc for TZ problems on MS-Windows
7699         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
7700         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
7701         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
7702         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
7703         * doc/posix-functions/wcsftime.texi:
7704         Mention some issues with TZ under MS-Windows.
7706 2017-05-01  Bruno Haible  <bruno@clisp.org>
7708         copy-file: Fix build error on mingw.
7709         * modules/copy-file (Depends-on): Add 'close'.
7711 2017-05-01  Bruno Haible  <bruno@clisp.org>
7713         tzset: Work around TZ problem on native Windows.
7714         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
7715         Windows, set REPLACE_TZSET to 1.
7716         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
7717         invoke '_tzset' instead of 'tzset'.
7718         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
7720         * modules/time_rz (Depends-on): Add tzset.
7721         * lib/time_rz.c (tzset): Remove fallback definition.
7722         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
7724 2017-05-01  Bruno Haible  <bruno@clisp.org>
7726         mktime: Fix dependencies.
7727         * modules/mktime (Depends-on): Add 'time'.
7729 2017-05-01  Bruno Haible  <bruno@clisp.org>
7731         New module 'localtime-buffer', split off from module 'gettimeofday'.
7732         * lib/localtime-buffer.h: New file.
7733         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
7734         * lib/time.in.h (tzset): New declaration.
7735         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
7736         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
7737         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
7738         moved to lib/localtime-buffer.c or lib/tzset.c.
7739         * m4/localtime-buffer.m4: New file.
7740         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
7741         HAVE_TZSET, REPLACE_TZSET.
7742         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
7743         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
7744         gl_LOCALTIME_BUFFER_NEEDED.
7745         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
7746         since 2007-01-18.
7747         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
7748         tzset.
7749         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
7750         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
7751         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
7752         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
7753         * modules/localtime-buffer: New file.
7754         * modules/time (Depends-on): Remove 'gettimeofday'.
7755         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
7756         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
7757         * modules/tzset (Description): Enable hyperlink to POSIX spec.
7758         (Files): Add lib/tzset.c.
7759         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
7760         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
7761         gl_TIME_MODULE_INDICATOR.
7762         * modules/gettimeofday (Depends-on): Add localtime-buffer.
7764 2017-05-01  Bruno Haible  <bruno@clisp.org>
7766         copy-file: Preserve sub-second time stamps.
7767         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
7768         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
7769         transport the time stamps from the original file to the destination
7770         file.
7771         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
7772         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
7773         utime-h.
7775 2017-05-01  Bruno Haible  <bruno@clisp.org>
7777         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
7778         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
7779         also on MSVC.
7780         Reported by Eli Zaretskii <eliz@gnu.org>.
7782 2017-05-01  Bruno Haible  <bruno@clisp.org>
7784         wchar: Fix compilation error with the original mingw.org mingw.
7785         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7786         <stddef.h> instead.
7787         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
7788         gl_WCTYPE_H.
7789         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
7790         gl_TYPE_WINT_T_PREREQ instead.
7791         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
7792         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
7793         Reported by Eli Zaretskii <eliz@gnu.org>.
7795 2017-04-30  Bruno Haible  <bruno@clisp.org>
7797         utimecmp: Add support for native Windows.
7798         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
7800 2017-04-30  Bruno Haible  <bruno@clisp.org>
7802         utimens: Add support for native Windows.
7803         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
7804         (fdutimens): Provide a native Windows implementation, like utime.c with
7805         added tv_nsec support.
7806         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
7807         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
7809 2017-04-30  Bruno Haible  <bruno@clisp.org>
7811         wcsftime: New module.
7812         * lib/wchar.in.h (wcsftime): New declaration.
7813         * lib/wcsftime.c: New file.
7814         * m4/wcsftime.m4: New file.
7815         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
7816         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
7817         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
7819         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7820         * modules/wcsftime: New file.
7821         * doc/posix-functions/wcsftime.texi: Mention the new module.
7823 2017-04-30  Bruno Haible  <bruno@clisp.org>
7825         strftime-fixes: New module.
7826         * lib/time.in.h (strftime): New declaration.
7827         * lib/strftime-fixes.c: New file.
7828         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
7829         (gl_FUNC_STRFTIME): Remove macro.
7830         * m4/strftime-fixes.m4: New file.
7831         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
7832         REPLACE_STRFTIME.
7833         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
7834         REPLACE_STRFTIME.
7835         * modules/strftime-fixes: New file.
7836         * doc/posix-functions/strftime.texi: Mention the new module.
7838 2017-04-30  Bruno Haible  <bruno@clisp.org>
7840         mktime: Work around TZ problem on native Windows.
7841         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
7842         from the native Windows workaround.
7843         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
7844         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
7845         'guessing no'.
7846         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
7847         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
7848         NEED_MKTIME_WINDOWS.
7849         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
7850         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
7851         NEED_MKTIME_INTERNAL.
7852         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
7853         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
7854         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
7855         not REPLACE_MKTIME.
7856         * doc/posix-functions/mktime.texi: Mention the native Windows
7857         workaround.
7859 2017-04-30  Bruno Haible  <bruno@clisp.org>
7861         localtime: New module.
7862         * lib/time.in.h (localtime): Declare also if requested by module
7863         'localtime'.
7864         * lib/localtime.c: New file.
7865         * m4/localtime.m4: New file.
7866         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
7867         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
7868         * modules/localtime: New file.
7869         * doc/posix-functions/localtime.texi: Mention the new module.
7871 2017-04-30  Bruno Haible  <bruno@clisp.org>
7873         ctime: New module.
7874         * lib/time.in.h (ctime): New declaration.
7875         * lib/ctime.c: New file.
7876         * m4/ctime.m4: New file.
7877         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
7878         REPLACE_CTIME.
7879         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
7880         * modules/ctime: New file.
7881         * doc/posix-functions/ctime.texi: Mention the new module.
7883 2017-04-30  Bruno Haible  <bruno@clisp.org>
7885         gettimeofday: Provide higher resolution on native Windows.
7886         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
7887         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
7888         (initialize): Initialize it.
7889         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
7890         'struct timeval'. Don't use _ftime().
7891         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
7892         <sys/timeb.h> and _ftime.
7894 2017-04-30  Bruno Haible  <bruno@clisp.org>
7896         Document the problem with the Cygwin environment variable TZ.
7897         * doc/posix-functions/tzset.texi: Add note about TZ.
7898         * doc/posix-functions/ctime.texi: Likewise.
7899         * doc/posix-functions/localtime.texi: Likewise.
7900         * doc/posix-functions/mktime.texi: Likewise.
7901         * doc/posix-functions/strftime.texi: Likewise.
7902         * doc/posix-functions/wcsftime.texi: Likewise.
7903         * doc/pastposix-functions/ftime.texi: Likewise.
7905 2017-04-30  Bruno Haible  <bruno@clisp.org>
7907         utime-tests: New module.
7908         * tests/test-utime.c: New file, based on tests/test-utimens.h.
7909         * tests/test-utimens-common.h: Include <sys/stat.h>.
7910         * modules/utime-tests: New file.
7912 2017-04-29  Bruno Haible  <bruno@clisp.org>
7914         utime: New module.
7915         * lib/utime.in.h: Add comment for snippets.
7916         (utime): New declaration.
7917         * lib/utime.c: New file.
7918         * m4/utime.m4: New file.
7919         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
7920         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
7921         REPLACE_UTIME.
7922         * modules/utime-h (Depends-on): Add snippets.
7923         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
7924         Insert snippets.
7925         * modules/utime: New file.
7926         * doc/posix-functions/utime.texi: Mention the new module.
7928 2017-04-29  Bruno Haible  <bruno@clisp.org>
7930         utime-h: Modernize handling of 'struct utimbuf'.
7931         * lib/utime.in.h: Include next <utime.h> if it exists.
7932         (utimbuf): Define to _utimbuf on native Windows.
7933         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
7934         Set UTIME_H on native Windows.
7935         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
7936         * modules/utime-h (Depends-on): Add include_next.
7937         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
7938         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
7940         * lib/utimens.c (utimbuf): Remove fallback definition.
7941         * m4/utimens.m4 (gl_UTIMENS): Don't require
7942         gl_CHECK_TYPE_STRUCT_UTIMBUF.
7943         * m4/utimbuf.m4: Remove file.
7944         * modules/utimens (Files): Remove m4/utimbuf.m4.
7946 2017-04-29  Bruno Haible  <bruno@clisp.org>
7948         Make use of module 'utime-h'.
7949         * modules/copy-file (Depends-on): Add utime-h.
7950         * lib/copy-file.c: Assume that <utime.h> exists.
7951         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
7953         * modules/utimens (Depends-on): Add utime-h.
7954         * lib/utimens.c: Assume that <utime.h> exists.
7956 2017-04-29  Bruno Haible  <bruno@clisp.org>
7958         utime-h: New module.
7959         * m4/utime_h.m4: New file.
7960         * lib/utime.in.h: New file.
7961         * modules/utime-h: New file.
7962         * doc/posix-headers/utime.texi: Mention the new module.
7964         * tests/test-utime-h.c: New file.
7965         * modules/utime-h-tests: New file.
7967 2017-04-30  Bruno Haible  <bruno@clisp.org>
7969         Fix a few typos.
7970         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
7971         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
7972         * doc/posix-functions/fstat.texi: Fix a plural typo.
7973         * doc/posix-functions/stat.texi: Likewise.
7974         * m4/include_next.m4: Update comments.
7976 2017-04-29  Bruno Haible  <bruno@clisp.org>
7978         error: Fix mistake in 2017-04-23 commit.
7979         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
7980         assume that strerror_r returns 'int', not 'char *'.
7982 2017-04-29  Bruno Haible  <bruno@clisp.org>
7984         stat: Fix time_t values and other problems on native Windows platforms.
7985         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
7986         implementations of stat().
7987         * lib/stat.c: Include filename.h instead of dosname.h. Include
7988         malloca.h, stat-w32.h.
7989         (is_unc_root): New function.
7990         (rpl_stat): New implementation for native Windows. Remove
7991         REPLACE_FUNC_STAT_DIR code.
7992         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
7993         Don't define REPLACE_FUNC_STAT_DIR.
7994         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
7995         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
7996         (Depends-on): Remove dosname. Add filename, malloca.
7997         (configure.ac): Also compile lib/stat-w32.c.
7999 2017-04-29  Bruno Haible  <bruno@clisp.org>
8001         fstat: Fix time_t values on native Windows platforms.
8002         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
8003         * lib/stat-w32.h: New file.
8004         * lib/stat-w32.c: New file.
8005         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
8006         stat-w32.h instead.
8007         (fstat_nothrow): Remove function.
8008         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
8009         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
8010         always.
8011         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
8012         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8013         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
8014         (configure.ac): Also compile lib/stat-w32.c.
8016 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8018         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
8019         Problem reported by Assaf Gordon and Gavin Smith in:
8020         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
8021         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
8022         #define this, too.
8024 2017-04-29  Bruno Haible  <bruno@clisp.org>
8026         strerror_r-posix: Fixes for MSVC 14.
8027         * lib/strerror_r.c: Include <stdarg.h>.
8028         (strerror_r): Provide error messages for errno values 100...140.
8029         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
8031 2017-04-28  Bruno Haible  <bruno@clisp.org>
8033         noreturn: New module.
8034         * lib/noreturn.h: New file.
8035         * modules/noreturn: New file.
8036         * tests/test-noreturn.c: New file.
8037         * modules/noreturn-tests: New file.
8038         * tests/test-noreturn-c++.cc: New file.
8039         * modules/noreturn-c++-tests: New file.
8041 2017-04-27  Bruno Haible  <bruno@clisp.org>
8043         wctype-h: Fix compilation error with the original mingw.org mingw.
8044         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
8045         HAVE_CRTDEFS_H.
8046         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
8047         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8048         <stddef.h> instead.
8049         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
8051 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8053         nap.h: Fix compilation on non windows platforms
8054         * tests/nap.h: Move misplaced endif.
8056 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8057         and Paul Eggert  <eggert@cs.ucla.edu>
8059         time_rz: fix heap buffer overflow vulnerability
8060         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
8061         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
8062         whether there is enough buffer space available, thus avoiding
8063         the problematic promotion of signed to unsigned causing an invalid
8064         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
8065         the start of the buffer.
8066         * tests/test-parse-datetime.c (main): Add a test case written by
8067         Paul Eggert, which overwrites enough of the heap so that
8068         standard glibc will fail with "free(): invalid pointer"
8069         without the patch applied.
8071 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8073         xalloc: add missing integer overflow check
8074         * lib/xalloc.h (x2nrealloc): Also check for multiplication
8075         overflow when P is null.
8077 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8079         parse-datetime: make it standalone
8080         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
8081         (_GL_ATTRIBUTE_FORMAT): New macro.
8082         These are needed to get './gnulib-tool --test parse-datetime' to work.
8084 2017-04-23  Bruno Haible  <bruno@clisp.org>
8086         nap.h: Port to native Windows.
8087         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
8088         use nap_fd instead. On native Windows, close and reopen nap_fd.
8089         (nap_works): Don't compare the ctimes, because on native Windows, these
8090         are the creation times.
8091         (nap): Update.
8093 2017-04-23  Bruno Haible  <bruno@clisp.org>
8095         nap.h: Fix logic.
8096         * tests/nap.h (nap): Avoid signed integer overflow in loop.
8098 2017-04-23  Bruno Haible  <bruno@clisp.org>
8100         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8101         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
8102         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
8103         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
8104         * lib/argp-help.c (__argp_failure): Likewise.
8106 2017-04-23  Bruno Haible  <bruno@clisp.org>
8108         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
8109         * m4/strerror_r.m4: Revert changes since 2016-10-16.
8110         * lib/strerror_r.c: Likewise.
8112 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8114         Target a C99 subset, not a C89 subset
8115         For many years Gnulib has targeted C89 and has resisted using C99
8116         features, as some Gnulib-using programs still wanted to target
8117         C89.  As this no longer seems to be the case, relax the porting
8118         requirements to allow some C99 features.  This is merely a change
8119         to the documentation, to give other Gnulib developers a chance to
8120         weigh in on the topic.
8121         * doc/extern-inline.texi (extern inline):
8122         * doc/gnulib-readme.texi (Portability guidelines):
8123         * doc/gnulib-tool.texi (Initial import):
8124         * doc/gnulib.texi (Header files):
8125         Modernize to talk about C99 and C11 instead of C89 and C99.
8126         * doc/gnulib-readme.texi (Portability guidelines):
8127         Now a section, not merely a subsection, so that it
8128         can be split up.  Modernize a bit.
8129         (C language versions, C99 features assumed)
8130         (C99 features avoided):
8131         New sections.
8133 2017-04-23  Bruno Haible  <bruno@clisp.org>
8135         doc: New section "Modules that modify the way other modules work".
8136         * doc/gnulib.texi (Modules that modify the way other modules work): New
8137         section.
8139 2017-04-23  Bruno Haible  <bruno@clisp.org>
8141         stat-time: Update comments.
8142         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
8143         * tests/test-utimens-common.h: Add reference regarding st_ctime on
8144         Windows.
8146 2017-04-01  Bruno Haible  <bruno@clisp.org>
8148         glob: Fix more memory leaks.
8149         * lib/glob.c (glob): Free allocated memory before returning.
8150         Reported by Coverity via Tim Rühsen.
8152 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8154         poll: improve fast check for out-of-range NFD
8155         * lib/poll.c: Do not include intprops.h.
8156         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
8157         * modules/poll (Depends-on): Remove intprops.
8159         ftoastr: cite a newer paper
8160         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
8161         instead of Loitsch 2010.
8163 2017-04-22  Bruno Haible  <bruno@clisp.org>
8165         poll: Enable argument check also in the Windows implementation.
8166         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
8167         Reported by Paul Eggert.
8169 2017-04-22  Bruno Haible  <bruno@clisp.org>
8171         getlogin_r: Work around bug in Mac OS X 10.12.
8172         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
8173         bug.
8174         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
8175         given size minus 1, call getlogin_r a second time, on a larger buffer.
8176         * modules/getlogin_r (Depends-on): Add malloca.
8177         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
8179 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8181         parse-datetime: fix %z and prefer signed int
8182         %z problem reported by Pádraig Brady in:
8183         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
8184         While fixing it, I decided to prefer signed ints to size_t, as
8185         they are less error-prone (e.g., ubsan catches overflow).
8186         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
8187         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
8188         counts, since signed integers make for better debugging.
8189         (date): Don’t assume %z works in printf formats.
8190         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
8191         sizes of buffers known to be small, e.g., because we’re using snprintf.
8192         (parse_datetime2): Simplify call to debug_mktime_not_ok.
8194 2017-04-22  Bruno Haible  <bruno@clisp.org>
8196         *printf: Work around rounding bug on Mac OS X.
8197         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
8198         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
8199         Mac OS X and FreeBSD.
8200         * doc/glibc-functions/*printf.texi: Likewise.
8202 2017-04-22  Bruno Haible  <bruno@clisp.org>
8204         vasnprintf tests: Avoid warnings.
8205         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
8206         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
8207         test.
8209 2017-04-22  Bruno Haible  <bruno@clisp.org>
8211         sys_file tests: Avoid warning.
8212         * tests/test-sys_file.c (main): Add a default clause to the switch
8213         statement.
8215 2017-04-22  Bruno Haible  <bruno@clisp.org>
8217         sethostname: Update doc.
8218         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
8219         Mac OS X.
8221 2017-04-22  Bruno Haible  <bruno@clisp.org>
8223         quotearg tests: Avoid warnings.
8224         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
8225         false.
8227 2017-04-22  Bruno Haible  <bruno@clisp.org>
8229         poll: Enable argument check.
8230         * lib/poll.c: Include intprops.h.
8231         (poll): Check value of nfd correctly.
8232         * modules/poll (Depends-on): Add intprops.
8234 2017-04-22  Bruno Haible  <bruno@clisp.org>
8236         get-rusage-data: Avoid warnings on Mac OS X.
8237         * lib/get-rusage-data.c: On Mac OS X, don't define
8238         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
8239         (get_rusage_data) [Mac OS X]: Just return 0.
8241 2017-04-22  Bruno Haible  <bruno@clisp.org>
8243         xbinary-io: Fix build error.
8244         * modules/xbinary-io (Depends-on): Add gettext-h.
8245         * lib/xbinary-io.c: Include gettext.h and define _().
8246         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8247         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
8249 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8251         parse-datetime: overflow and debug cleanups
8252         This long patch was triggered by this bug report from Ruediger Meier:
8253         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
8254         I fixed the bug he noted, then found some others nearby, and then
8255         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
8256         up some of the code to follow GNU standards while I was at it.
8257         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
8258         use c_isdigit.
8259         (EPOCH_YEAR): Remove; unused.
8260         (TM_YEAR_BASE): Now an enum rather than a macro.
8261         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
8262         time zone offset, since timezones now are in terms of seconds and
8263         not minutes.
8264         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
8265         appropriate.  Verify that intmax_t is wide enough.
8266         (time_overflow, time_zone_str): New functions, used to deal
8267         more reliably with overflow.
8268         (dbg_printf): Add printf attribute, to help catch integer width errors.
8269         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
8270         (%union, to_hour, yylex, parse_datetime2):
8271         Use intmax_t instead of long int and/or long_time_t.
8272         All uses changed.
8273         (DBGBUFSIZE): Move earlier.
8274         (relative_time, set_hhmmss, parser_control):
8275         Just use int for nanoseconds and for time zones; that’s wide enough.
8276         (parser_control): Use bool for members like year_seen that can
8277         be booleans instead of counters.  All uses changed.
8278         Remove debug_default_input_timezone; no longer needed.
8279         All uses removed.
8280         (apply_relative_time): Return a bool overflow flag.
8281         All uses changed to check for overflow.
8282         (apply_relative_time, zone, date, relunit, relunit_snumber)
8283         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
8284         Check for integer overflow portably.
8285         (str_days): Use just int for N, as it’s wide enough.
8286         Prefer 2D char arrays to arrays of char * when it looks like
8287         2D is a win on typical platforms.
8288         Prefer snprintf to strncpy/strncat, for simplicity;
8289         all buffers are smaller than INT_MAX so this is safe.
8290         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
8291         (debug_print_current_time): Don’t assume tv_nsec is of type long,
8292         as this is not true on x32.  Output "." before any nanoseconds.
8293         (debug_print_current_time, parse_datetime2):
8294         Output local zones using a more-consistent format.
8295         (debug_print_current_time, date, parse_datetime2):
8296         (main) [TEST]:
8297         Don’t assume time_t is the same width as long.
8298         (print_rel_part): New function, replacing ...
8299         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8300         (debug_print_relative_time): Use bool for boolean.
8301         (local_zone): dsts_seen now counts only tDST instances.
8302         (date): Fix printf of size_t to use %z.  Do not assume numeric
8303         tokens have negative values merely because the context suggests
8304         a syntax with "-" separating tokens.
8305         (time_zone_hhmm): Return bool success indicator, which checks for
8306         overflow.  Store result into PC->time_zone instead.  All callers
8307         changed.
8308         (tm_year_str): New function.  Return a bool success indicator and
8309         store the result into a buffer.  All callers changed.  Output the
8310         numerically correct string even if adding 1900 to the year would
8311         overflow.
8312         (to_tm_year): New function, replacing the old to_year.  All
8313         callers changed.
8314         (tm_diff): Sync with glibc.
8315         (lookup_word): Use to_uchar instead of doing it by hand.
8316         (TZBUFSIZE): Now local to the only function that needs it.
8317         (debug_strfdatetime): Simplify now that time zones are int seconds.
8318         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8319         (get_effective_timezone): Remove.  All uses removed.
8320         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8321         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8322         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8323         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8324         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8325         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8326         * modules/parse-datetime (Depends-on): Add inttypes.
8328 2017-04-21  Bruno Haible  <bruno@clisp.org>
8330         gettext-h: Avoid -Wundef warning.
8331         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8332         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8333         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8335 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8337         error: Avoid "function declaration isn't a prototype" warning.
8338         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8340 2017-04-21  Bruno Haible  <bruno@clisp.org>
8342         vasnprintf: Fix for MSVC 14.
8343         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8344         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8345         of !HAVE_SNPRINTF_RETVAL_C99.
8347 2017-04-21  Bruno Haible  <bruno@clisp.org>
8349         mbrtowc tests: Fix test failures on MSVC 14.
8350         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8351         behaviour for invalid input.
8353 2017-04-21  Bruno Haible  <bruno@clisp.org>
8355         mbsinit: Fix for MSVC 14.
8356         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8357         implementation that is in sync with mbrtowc.c. On other platforms, use
8358         an adequate ad-hoc implementation.
8360 2017-04-21  Bruno Haible  <bruno@clisp.org>
8362         Fix test-mbrtowc5.sh failure on native Windows.
8363         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8364         "C".
8366 2017-04-21  Bruno Haible  <bruno@clisp.org>
8368         Avoid accidental use of native Windows APIs on Cygwin.
8369         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8370         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8371         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8373 2017-04-20  Bruno Haible  <bruno@clisp.org>
8375         Remove red warnings from the generated MODULES.html.
8376         * modules/fcntl (Description): Disambiguate function references.
8377         * modules/getcwd-lgpl (Description): Likewise.
8378         * modules/hostent (Description): Likewise.
8379         * modules/servent (Description): Likewise.
8380         * modules/tempname (Description): Likewise.
8382 2017-04-20  Bruno Haible  <bruno@clisp.org>
8384         verify tests: Fix spurious failure with parallel make.
8385         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8386         EXTRA_PROGRAMS.
8387         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8388         * tests/test-verify-try.c: New file.
8389         * modules/verify-tests (Files): Add it.
8390         (EXTRA_PROGRAMS): Add test-verify-try.
8391         (MOSTLYCLEANFILES): Update accordingly.
8392         Reported by Adam James Stewart <ajstewart@anl.gov>.
8394 2017-04-18  Bruno Haible  <bruno@clisp.org>
8396         vma-iter: Fix compilation error on Solaris 7.
8397         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8398         like on IRIX, OSF/1.
8399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8401 2017-04-18  Bruno Haible  <bruno@clisp.org>
8403         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8404         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8405         included.
8406         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8407         <sys/procfs.h>.
8408         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8409         <sys/procfs.h> cannot be included.
8410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8412 2017-04-18  Bruno Haible  <bruno@clisp.org>
8414         getopt-gnu: Add comments.
8415         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8416         * modules/getopt-gnu (configure.ac): Likewise.
8418 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8420         regex: port better to Solaris 10
8421         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8422         gettext, and this causes a double #define.
8423         Problem reported by Gavin Smith in:
8424         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8425         * lib/regex_internal.h (gettext): #undef before #defining.
8427 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8429         intprops: improve comments
8430         * lib/intprops.h: Improve and shorten commentary.
8431         For the record, if we ever run into a pedantic compiler that
8432         behaves differently from GCC when converting an out-of-range value
8433         to a signed integer, we can work around the problem with something
8434         like the following code, where UCT is the signed counterpart of T
8435         (UCT is sometimes narrower than UT) and all callers are changed
8436         accordingly:
8437         #if __SUNPRO_C <= 0x5120
8438         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8439            ((t) ((ut) (a) op (ut) (b)))
8440         #else
8441         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8442            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8443             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8444                + TYPE_MINIMUM (t)) \
8445             : (t) (uct) ((ut) (a) op (ut) (b)))
8446         #endif
8448 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8450         intprops: try to avoid tickling similar bugs
8451         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8452         needs to be the same width as T; it can be wider.
8453         Change callers so that UT is at least as wide as unsigned int,
8454         as I suspect that this is less likely to run into compiler bugs.
8456         intprops: port to Oracle Studio 12.3 x86
8457         Problem reported by Gavin Smith in:
8458         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8459         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8460         Convert unsigned to signed via the usual rather than the standard way,
8461         to avoid a compiler bug in Oracle Studio 12.3 x86.
8463 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8465         getopt: prefer - to _ in new file names
8466         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8467         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8468         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8469         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8470         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8471         All uses changed.
8473         getopt: port recent getopt changes to macOS
8474         Problem reported by Harald Maier (Bug#26398).
8475         The macOS C compiler uses __nonnull for its own purposes and that
8476         clashes with glibc's __nonnull.
8477         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8478         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8479         * lib/getopt_core.h (getopt):
8480         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8481         Use _GL_ARG_NONNULL, not __nonnull.
8482         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8483         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8484         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8485         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8487 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8489         getopt-gnu: omit some duplicate code
8490         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8491         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8492         gnulib-tool already does this.
8493         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8494         getopt-posix, which we depend on.
8496         getopt-posix: use angle-bracket include
8497         * lib/getopt1.c: Include <config.h>, not "config.h".
8499 2017-04-06  Zack Weinberg  <zackw@panix.com>
8501         getopt: annotate files with relationship to glibc
8503         As the final act in this patchset, adjust the message at the top of
8504         each file to indicate which files are synced with glibc.  (This has
8505         already been done for most of the headers.)
8507         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8508         Mention in top-of-file boilerplate that these files are shared
8509         between glibc and gnulib.
8512         getopt: split up getopt.in.h and eliminate __need_getopt
8514         Over in glibc, all of the __need macros are being phased out in favor
8515         of small headers that declare only the necessary components, as this
8516         is much simpler and less prone to bugs.  As getopt is shared with
8517         glibc, gnulib needs to do the same for __need_getopt.
8519         __need_getopt is misnamed; what it really means is "we want only the
8520         getopt features specified in POSIX, not the GNU extensions".  glibc
8521         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8522         these files can be shared verbatim with gnulib.  The portability
8523         wrapper, on the other hand, they have renounced altogether; glibc's
8524         getopt.h will no longer be shared with gnulib at all.  In exchange,
8525         certain glibc-specific quirks (having to do with __posix_getopt) no
8526         longer need appear in gnulib's headers at all.
8528         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8529         splits up the current gnulib-side portability wrapper into three
8530         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8531         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8532         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8533         unistd.in.h just use them.  All new files are clearly marked with
8534         whether they are shared with glibc.
8536         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8537         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8538         with glibc, and ...
8539         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8540         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8541         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8542         instead of defining __need_getopt and including the full getopt.h.
8544         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
8545         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
8546         * modules/getopt-posix (Files): Add new headers and sort list.
8547         (Depends-on): No longer need snippet/arg-nonnull.
8548         (Makefile.am): Generate getopt_cdefs.h.
8551         getopt: better handling of ambiguous options
8553         glibc's getopt uses alloca to construct a linked list of possibilities
8554         for an "ambiguous" long option.  In gnulib, malloc should be used
8555         instead.  Providing for both cases complicates things a fair bit.
8557         This patch rewrites ambiguous-option handling to use a boolean vector
8558         instead of a linked list.  There is then only one allocation that
8559         might need freeing; in glibc it can honor __libc_use_alloca as usual,
8560         and in gnulib we define __libc_use_alloca to always be false, so we
8561         don't need ifdefs in the middle of the function.  This should also be
8562         slightly more efficient in the normal case of long options being fully
8563         spelled out -- I think most people aren't even aware they _can_
8564         sometimes abbreviate long options.
8566         One interesting consequence is that the list of possibilities is now
8567         printed in exactly the order they appear in the list of long options,
8568         instead of the first possibility being shuffled to the end.
8570         (The patch looks bigger than it really is because there's a fair bit
8571         of reindentation and code rearrangement.)
8573         * lib/getopt.c: When used standalone, define __libc_use_alloca
8574         as always false and alloca to abort if called.
8575         (process_long_option): Rewrite handling of ambiguous long options
8576         to use a single boolean vector, not a linked list; use
8577         __libc_use_alloca to decide whether to allocate this using alloca.
8580         getopt: refactor long-option handling
8582         There were two copies of the bulk of the code to handle long options.
8583         Now there is only one.
8585         This change temporarily removes the logic to avoid using alloca when
8586         standalone; the next patch in the series will restore it.
8588         * lib/getopt.c (process_long_option): New function split out
8589         from _getopt_internal_r.
8590         (_getopt_internal_r): Replace both copies of the long-option
8591         processing code with calls to process_long_option.
8594         getopt: tidy up _getopt_initialize a bit
8596         _getopt_data.__posixly_correct is completely redundant to
8597         _getopt_data.__ordering, and some work that logically belongs in
8598         _getopt_initialize was being done by _getopt_internal_r, making the
8599         code harder to understand.
8601         As a side effect, getenv will no longer be called if the first
8602         character of the options string is '+' or '-', which is probably a
8603         Good Thing.  (Perhaps we should have a flag character that
8604         specifically asks for the permutation behavior?)
8606         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
8607         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
8608         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
8611         getopt: merge from glibc: repetition reduction
8613         The definitions of the entry point functions 'getopt' and
8614         '__posix_getopt' can be made substantially less repetitive with a
8615         helper macro.
8617         While I was merging the const-correctness changes from gnulib into
8618         glibc I noticed there are still some unnecessary casts in
8619         _getopt_internal_r.
8621         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
8622         a macro.  Consistently cast 'argv' to 'char **' when calling
8623         _getopt_internal.
8624         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
8627         getopt: clean up error reporting
8629         getopt can print a whole bunch of error messages, and when used
8630         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
8631         cancellation point and getopt isn't, and also applying fprintf to a
8632         stream in wide-character mode is not allowed.  So every single error
8633         reporting case has an #ifdef _LIBC block in which it calls internal
8634         libc functions instead.  The counterpart patch series in glibc makes
8635         it possible to simplify all of that down to a set of #defines at the
8636         top of the file; core code is written as if it is safe to just call
8637         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
8638         call any *other* stdio functions.)
8640         * lib/getopt.c: When _LIBC is defined, define fprintf to
8641         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
8642         to _IO_funlockfile.  When neither _LIBC nor
8643         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
8644         funlockfile as no-ops.
8645         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
8646         standalone error-printing code can now be used for libc as well.
8647         Add an flockfile/funlockfile pair around one case where the error
8648         message is printed in several chunks.  Don't use fputc.
8651         getopt: fix fencepost error in ambiguous-W-option handling
8653         getopt_long contains an undocumented (AFAICT) feature in which, if you
8654         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
8655         treated as equivalent to '--foo'.  This is implemented with a partial
8656         second copy of the code for handling long options, and that code
8657         increments optind one too many times when recovering from an ambiguous
8658         abbreviated option, which can cause the main loop to walk past the end
8659         of argv and crash.
8661         I discovered this while writing a test case that tries to exercise all
8662         of getopt's error reporting paths; I wouldn't be surprised to learn
8663         that this feature is never used by real applications.
8665         * lib/getopt.c (_getopt_internal_r): Don't increment
8666         d->optind a second time when reporting ambiguous -W options.
8669         getopt: clean up getopt.c and getopt1.c file headers
8671         In getopt.c, there is no need to include wchar.h at all, and it is
8672         safe nowadays to assume that stdlib.h does declare getenv (several
8673         other gnulib modules make this assumption).
8675         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
8676         by using "" inclusions consistently, and there is no actual need to
8677         include stdlib.h (except in the #ifdef TEST block, where it should be
8678         unconditional), nor to provide a backup definition of NULL at all.
8680         * lib/getopt1.c: Simplify #ifdeffage at top of file.
8681         Move inclusion of stdlib.h to #ifdef TEST block and make
8682         unconditional.  Do not define NULL.
8683         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
8684         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
8685         * modules/getopt-gnu, modules/getopt-posix: Don't call
8686         gl_PREREQ_GETENV.
8689         getopt: harmonize comments with glibc
8691         The comments explaining how the behavior of 'getopt' varies depending
8692         on whether it's the standalone version and whether there are special
8693         characters at the beginning of the options string were inconsistent
8694         between gnulib and glibc, and also out of sync with the code.
8696         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
8699         getopt: remove USE_NONOPTION_FLAGS
8701         getopt includes code to parse an environment variable named
8702         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
8703         in decimal); but all of it has been #ifdefed out since 2001, with no
8704         official way to turn it back on.
8706         According to commentary in glibc's config.h.in, bash version 2.0
8707         set this environment variable to indicate argv elements that were
8708         the result of glob expansion and therefore should not be treated
8709         as options, but the feature was "disabled later" because "it
8710         caused problems".  According to bash's CHANGES file, "later" was
8711         release 2.01; it gives no more detail about what the problems
8712         were.
8714         Version 2.0 of bash was released on the last day of 1996, and version
8715         2.01 in June of 1997.  Twenty years later, I think it is safe to
8716         assume that this environment variable isn't coming back.
8718         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
8719         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
8720         __libc_argc and __libc_argv externs, which were only used by
8721         #ifdef USE_NONOPTION_FLAGS blocks.
8724         getopt: tabify, in preparation for merge with glibc
8726         glibc sticks to the GNU default of indenting with a mix of
8727         8-column tabs and spaces; make the gnulib copy match.
8729         getopt.h is not included because it is *not* going to be merged in its
8730         present form.
8732         * getopt.c, getopt1.c, getopt_int.h: Tabify.
8734 2017-04-02  Bruno Haible  <bruno@clisp.org>
8736         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
8737         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
8738         like it was done in modules/relocatable-lib on 2011-05-21 and in
8739         modules/relocatable-prog on 2011-08-15.
8740         Reported by Reuben Thomas <rrt@sc3d.org>.
8742 2017-03-31  Bruno Haible  <bruno@clisp.org>
8744         glob: Fix invalid free() call.
8745         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
8746         static storage to home_dir.
8747         Reported by Coverity via Tim Rühsen.
8749 2017-03-31  Bruno Haible  <bruno@clisp.org>
8751         glob: Fix memory leaks.
8752         * lib/glob.c (glob): Free allocated memory before returning.
8753         Reported by Coverity via Tim Rühsen.
8755 2017-03-31  Bruno Haible  <bruno@clisp.org>
8757         md5, sha1, sha256, sha512: Add comments regarding correctness.
8758         * lib/md5.h (buflen): Add comments regarding range.
8759         * lib/sha1.h (buflen): Likewise.
8760         * lib/sha256.h (buflen): Likewise.
8761         * lib/sha512.h (buflen): Likewise.
8762         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
8763         * lib/sha1.c (sha1_process_bytes): Likewise.
8764         * lib/sha256.c (sha256_process_bytes): Likewise.
8765         * lib/sha512.c (sha512_process_bytes): Likewise.
8766         Reported by Coverity via Tim Rühsen.
8768 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8770         getopt: merge from glibc
8771         This does not change anything substantial; it merely simplifies
8772         hypothetical merges back to glibc.
8773         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
8774         Change copyright notice to match what is in glibc.
8775         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
8776         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
8777         __open_memstream rather than open_memstream and __glibc_likely
8778         instead of __builtin_expect.
8779         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
8781 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8783         dfa: make [0-9] faster in non-C locales
8784         Problem reported by John P. Linderman (Bug#26193).
8785         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
8786         If both ends of the range are ASCII digits, do not worry about
8787         multi-character collating sequences and the like.  Be consistent
8788         about using isalpha as a precondition for setbit_case_fold_c.
8790 2017-03-19  Bruno Haible  <bruno@clisp.org>
8792         lock: Fix compilation error with HP-UX IA64 cc.
8793         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
8794         weak on non-glibc platforms.
8796 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8798         stdalign: tweak version# and test for HP-UX IA64
8799         Problems reported by Bruno Haible in:
8800         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
8801         * lib/stdalign.in.h (_Alignas):
8802         * m4/stdalign.m4 (gl_STDALIGN_H):
8803         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
8804         used octal (as that is how they document it), but it is decimal in
8805         practice now and the ancient implementations no longer matter.
8806         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
8808 2017-03-19  Bruno Haible  <bruno@clisp.org>
8810         vma-iter: Add support for Solaris.
8811         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
8812         approach.
8813         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
8814         * lib/get-rusage-as.c: Update comment about Solaris.
8815         * lib/get-rusage-data.c: Likewise.
8817 2017-03-19  Bruno Haible  <bruno@clisp.org>
8819         vma-iter: Prefer HP-UX specific API on HP-UX.
8820         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
8821         * lib/vma-iter.h: Update.
8822         Just in case HP-UX ever implements mquery().
8824 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
8826         stdalign: restore previous behavior for HP-UX IA64
8827         See Bruno Haible's email in:
8828         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8829         which cites p 150 of a manual saying that 'aligned' works on Itanium.
8830         * lib/stdalign.in.h (_Alignas):
8831         Assume the '061200' applies to Itanium, not to PA-RISC.
8832         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
8834 2017-03-17  Bruno Haible  <bruno@clisp.org>
8836         stat-time, timespec: Support use of the header files in C++ mode.
8837         * lib/stat-time.h: Add "C" linkage declaration.
8838         * lib/timespec.h: Likewise.
8840 2017-03-17  Bruno Haible  <bruno@clisp.org>
8842         stdalign: Make it work with HP-UX cc.
8843         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
8844         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
8845         for HP-UX cc.
8847 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
8849         flexmember: try to detect HP-UX 11.31 cc bug
8850         Problem reported by Bruno Haible in:
8851         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8852         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8853         Attempt to detect bug in HP-UX 11.31 cc.
8855 2017-03-16  Bruno Haible  <bruno@clisp.org>
8857         stdint: Fix test compilation failure with HP-UX 11 cc.
8858         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
8859         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
8860         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
8861         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
8863 2017-03-14  Bruno Haible  <bruno@clisp.org>
8865         gnulib-tool: Don't produce a tests directory with only snippet .h files.
8866         * gnulib-tool (func_modules_transitive_closure_separately): If
8867         testsrelated_modules ends up with no "real" modules, aside from
8868         modules with applicability 'all', set it to empty.
8870 2017-03-14  Bruno Haible  <bruno@clisp.org>
8872         vma-iter: Add support for HP-UX.
8873         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
8874         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
8875         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
8876         * lib/get-rusage-as.c: Update comment about HP-UX.
8877         * lib/get-rusage-data.c: Likewise.
8878         (get_rusage_data): Use get_rusage_data_via_setrlimit.
8880 2017-03-14  Bruno Haible  <bruno@clisp.org>
8882         limits-h: Make it work with HP-UX cc.
8883         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
8884         defined.
8886 2017-03-14  Bruno Haible  <bruno@clisp.org>
8888         Fix test failures on DragonFlyBSD.
8889         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
8890         * tests/test-select.h (test_bad_fd): Likewise.
8891         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
8893 2017-03-14  Bruno Haible  <bruno@clisp.org>
8895         freadahead: Silence warning on DragonFlyBSD.
8896         * lib/freadahead.c (__sreadahead): Declare ourselves.
8898 2017-03-14  Bruno Haible  <bruno@clisp.org>
8900         vma-iter: Add comment about AIX.
8901         * lib/vma-iter.c: Add comment about why this module is not implemented
8902         on AIX.
8904 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8906         snippets: move unadjusted snippet sources to lib
8907         Problem reported by Michal Privoznik in:
8908         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
8909         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
8910         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
8911         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
8912         * lib/unused-parameter.h: Rename from
8913         build-aux/snippet/unused-parameter.h.
8914         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
8915         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
8916         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
8917         * modules/snippet/c++defs (Files:, CXXDEFS_H):
8918         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
8919         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
8920         Adjust to file renamings.
8922 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
8924         gnulib-tool: don't automatically distribute files from top/
8925         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
8926         not distribute top/README-release by default, don't distribute files
8927         from top/ unconditionally.
8928         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
8929         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
8931 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8933         gnulib-tool: fix typo in comment output
8934         * gnulib-tool (func_import): Fix typo with previous change.
8936         snippets: work around GNU Make 3.82 VPATH
8937         When using 'gnulib-tool --gnu-make' on Emacs, and building
8938         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
8939         an out-of-source (VPATH) build failed because the sans-copyright
8940         snippet file was not built before the file that used it.
8941         Presumably this is some sort of VPATH thing.  Work around the
8942         problem by using the original snippet, i.e., don’t bother to
8943         remove its copyright notice.
8944         * modules/snippet/_Noreturn, modules/snippet/link-warning:
8945         Don’t assume Automake in comments.  Omit long-incorrect comment.
8946         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
8947         (MOSTLYCLEANFILES):
8948         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
8949         (MOSTLYCLEANFILES):
8950         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
8951         (MOSTLYCLEANFILES):
8952         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
8953         (MOSTLYCLEANFILES):
8954         Remove.
8955         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
8956         * modules/snippet/c++defs (CXXDEFS_H):
8957         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
8958         * modules/snippet/warn-on-use (WARN_ON_USE_H):
8959         Don’t bother to remove the copyright notice; just use the
8960         original snippet as-is.
8962 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
8964         gnulib-tool: minor --gnu-make fixups
8965         * gnulib-tool (func_emit_lib_Makefile_am):
8966         Remove useless code that was a blind alley during implementation.
8967         Problem reported by Thien-Thi Nguyen in:
8968         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
8969         (func_import): Note the "--gnu-make" option in the output comment.
8971 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
8973         gnulib-tool: new option --gnu-make
8974         This is for applications like GNU Emacs that use GNU Make
8975         features instead of Automake.
8976         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
8977         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
8978         Do not assume Automake.
8979         * gnulib-tool (func_determine_path_separator)
8980         (func_modules_transitive_closure, func_update_file)
8981         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
8982         (func_import): Add support for --gnu-make.
8984 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8986         gnulib-common.m4: avoid aclocal.m4 bloat
8987         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
8988         Hide AM_PROG_AR from aclocal, so that aclocal does not
8989         install irrelevant macro definitions into aclocal.m4.
8991 2017-03-10  Bruno Haible  <bruno@clisp.org>
8993         vma-iter: Let callers know about error.
8994         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
8995         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
8997 2017-03-05  Bruno Haible  <bruno@clisp.org>
8999         Fix value of LD for 64-bit compilers on AIX.
9000         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
9001         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
9003 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
9005         dtotimespec: simplify
9006         * lib/dtotimespec.c (dtotimespec): Simplify.
9008 2017-03-04  Bruno Haible  <bruno@clisp.org>
9010         test-calloc-gnu: Reenable test also for GCC 7.
9011         * tests/test-calloc-gnu.c (eight): New function.
9012         (main): Don't skip test; use eight() instead.
9014 2017-03-04  Jim Meyering  <meyering@fb.com>
9016         test-calloc-gnu: port to GCC7
9017         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
9018         that attempts to calloc more than SIZE_MAX bytes, because GCC7
9019         and newer would detect that at compilation time.
9021 2017-03-04  Bruno Haible  <bruno@clisp.org>
9023         tests: Avoid compiler warning about uses of null_ptr.
9024         * tests/null-ptr.h: New file.
9025         * tests/test-canonicalize.c: Include null-ptr.h.
9026         (null_ptr): Remove function.
9027         * tests/test-canonicalize-lgpl.c: Likewise.
9028         * tests/test-memmem.c: Likewise.
9029         * tests/test-ptsname_r.c: Likewise.
9030         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
9031         * modules/canonicalize-lgpl-tests: Likewise.
9032         * modules/memmem-tests: Likewise.
9033         * modules/ptsname_r-tests: Likewise.
9034         Reported by Jim Meyering.
9036 2017-03-03  Bruno Haible  <bruno@clisp.org>
9038         doc: Mention Mac OS X deficiencies regarding semaphores.
9039         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
9040         * doc/posix-functions/sem_destroy.texi: Likewise.
9041         * doc/posix-functions/sem_getvalue.texi: Likewise.
9043 2017-03-03  Bruno Haible  <bruno@clisp.org>
9045         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
9046         Reported by Assaf Gordon <assafgordon@gmail.com> via
9047         Pádraig Brady <P@draigBrady.com>.
9048         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
9049         semaphores.
9050         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
9051         (atomic_int_semaphore): New macro.
9053 2017-02-28  Bruno Haible  <bruno@clisp.org>
9055         perror tests: Tweak for z/OS.
9056         Reported by Daniel Richard G. <skunk@iskunk.org>.
9057         * tests/test-perror.sh: Don't fail z/OS style perror output.
9059 2017-02-26  Bruno Haible  <bruno@clisp.org>
9061         nproc: Refactor large function.
9062         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
9063         from num_processors.
9064         (num_processors): In this function, only deal with OMP.
9066 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9068         nproc: adjust handling of OpenMP environment variables
9069         to match the return value from omp_get_num_threads(), i.e.:
9070          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
9071          - Treat 0 as an invalid value and ignore
9072         Also remove the call to omp_get_num_threads() because
9073         it's ineffective without the omp pragmas in place.
9074         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
9075         so that it can be ignored.
9076         (num_processors): Honor OMP_THREAD_LIMIT even without
9077         OMP_NUM_THREADS being set.  Also fix a typo in the environment
9078         variable being checked, from the previous recent commit.
9080 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9082         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
9083         * lib/nproc.c (parse_omp_threads): A new function refactored
9084         from num_processors() to support parsing both of the
9085         above environment variables.
9086         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
9087         to accurately reflect the current OpenMP nesting level.
9088         Also support the OMP_THREAD_LIMIT environment variable
9089         to limit the max value determined from OMP_NUM_THREADS.
9090         * modules/nproc: Depend on minmax header.
9091         Suggested by Oliver Heimlich.
9093 2017-02-25  Bruno Haible  <bruno@clisp.org>
9095         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
9096         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
9098 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9100         ftoastr: port to -Wdouble-promotion
9101         Work around -Wdouble-promotion false alarm in recent GCCs.
9102         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
9103         (ftoastr_snprintf, FTOASTR): Use it.
9105 2017-02-21  Bruno Haible  <bruno@clisp.org>
9107         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
9108         Reported by Rene Saavedra <rennes@openmailbox.org> in
9109         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
9110         * lib/glthread/lock.h: On glibc systems without
9111         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
9112         implementation of rwlocks.
9113         * lib/glthread/lock.c: Likewise.
9115 2017-02-20  Bruno Haible  <bruno@clisp.org>
9117         lock tests: Fix build failure on z/OS.
9118         Reported by Daniel Richard G. <skunk@iskunk.org>.
9119         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
9120         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
9121         exist.
9123 2017-02-19  Bruno Haible  <bruno@clisp.org>
9125         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
9126         This helps when CC=clang.
9127         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
9128         of /usr/bin/gcc.
9130         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
9131         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
9133 2017-02-19  Bruno Haible  <bruno@clisp.org>
9135         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
9136         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
9137         --with-tests --single-configure is specified.
9139 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
9141         users.txt: Update links, use HTTPS where possible
9142         * users.txt: Updated to HTTPS where possible,
9143         fixed some links to new locations.
9145 2017-02-16  Bruno Haible  <bruno@clisp.org>
9147         xbinary-io: Fix inlining.
9148         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
9150 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9152         xbinary-io: rename from xsetmode
9153         This patch is taken from suggestions by Bruno Haible in:
9154         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
9155         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
9156         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
9157         not ENOTTY, when it is an inappropriate device.
9158         * lib/binary-io.h (SET_BINARY): Resurrect.
9159         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
9160         (xset_binary_mode_error): Rename from xsetmode_error.
9161         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
9162         (xset_binary_mode): Rename from xsetmode.
9163         All uses changed.
9164         * modules/xbinary-io: Rename from modules/xsetmode.
9165         Update file names.
9166         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
9167         * NEWS: Update to match revised behavior.
9169 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9171         tests: Adjust to recent SET_BINARY change
9172         * tests/test-binary-io.c (main):
9173         * tests/test-binary-io.sh: Remove test for SET_BINARY.
9174         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
9175         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
9176         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
9178         xsetmode: new module
9179         This is to fix a problem noted by Eric Blake.
9180         Code was using xfreopen to change files to binary mode, but this
9181         fails for stdout when in append mode.  Such code should use
9182         xsetmode instead.
9183         * NEWS: Document incompatible changes to binary-io module.
9184         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
9185         New function.
9186         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
9187         (set_binary_mode): New function, which also checks for tty.
9188         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
9190 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9192         headers: fix begin-end typos
9193         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
9194         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
9196         selinux-h: port to PGI 16.10
9197         * lib/se-selinux.in.h: Don't assume that include_next skips over
9198         duplicate -I DIR options.
9200         argp: port to PGI 16.10
9201         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
9203 2017-02-13  Darshit Shah  <darnir@gnu.org>
9205         unicase: Update function protoype to match definition.
9206         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
9207         uses 'size_t' as the datatype for the 'len' parameter in the functions
9208         it generates. Update the prototype specified here to match the newly
9209         generated function.
9211 2017-02-12  Bruno Haible  <bruno@clisp.org>
9213         times test: Avoid gcc warnings on Linux/x32.
9214         * tests/test-times.c (main): Really cast printf arguments from clock_t
9215         to 'long int'.
9217 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9219         glob: port better to emscripten
9220         Problem reported by Bruno Haible in:
9221         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
9222         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
9224 2017-02-11  Bruno Haible  <bruno@clisp.org>
9226         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
9227         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
9228         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
9229         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
9230         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
9231         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
9232         Distinguish hppa64 from hppa.
9234 2017-02-10  Bruno Haible  <bruno@clisp.org>
9236         search: Don't assume that tsearch() exists if 'VISIT' is defined.
9237         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
9238         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
9239         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
9241 2017-02-09  Bruno Haible  <bruno@clisp.org>
9243         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
9244         * doc/gnulib.texi (Libtool and Windows): Recommend
9245         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
9246         Reported by Reuben Thomas <rrt@sc3d.org>.
9248 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9250         stddef-tests: port to SIZE_MAX <= INT_MAX
9251         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
9252         Do not assume that INT_MAX < SIZE_MAX.
9254 2017-02-01  Bruno Haible  <bruno@clisp.org>
9256         lock tests: Fix link error.
9257         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
9258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9260 2017-01-31  Bruno Haible  <bruno@clisp.org>
9262         lock: Fix link error (regression from 2017-01-05).
9263         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
9264         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
9265         pthread_rwlockattr_destroy weak.
9266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9268 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9270         Port to PGI 16.10 x86-64
9271         This patch fixes one real bug in gl_anylinked_list2.h, along with
9272         some minor glitches that are not bugs.  It does not silence PGI’s
9273         thousands of bogus warnings when compiling test-intprops.c.
9274         Fortunately, the warnings do not cause a failure.
9275         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
9276         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
9277         My goodness, PGI goes back a long ways - this predates C89!
9278         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
9279         For example, ASYNCSAFE (const void *) should expand to
9280         ‘const void *volatile’, not to ‘volatile const void *’.
9281         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
9282         * lib/verify.h (verify) [!__GNUC__]:
9283         Use shorter albeit meaningless string to bypass silly compiler limits.
9284         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
9285         * tests/nan.h (NaNf, NaNd, NaNl):
9286         Use static functions to avoid misguided compiler diagnostics.
9287         Is there some reason we don’t use static functions on all platforms?
9289 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9291         parse-datetime: handle timezones reentrantly
9292         This API change was prompted by a report by Pádraig Brady in:
9293         https://bug.debian.org/851934#10
9294         To help fix the bug, make parse_datetime2 more reentrant.
9295         * NEWS: Document this incompatible change.
9296         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9297         Add two arguments, the timezone and the timezone name.
9298         All callers changed.  If TZ="..." is specified, use it for
9299         calculating defaults.
9300         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9301         this code should be usable in a library.
9302         (mktime_ok, get_effective_timezone):
9303         Accept timezone arg too.  All callers changed.
9304         (get_tz): Remove.
9305         (get_effective_timezone): Check for failures.
9307 2017-01-20  Eric Blake  <eblake@redhat.com>
9309         localename: port to cygwin 2.6
9310         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9311         Cygwin.
9312         * modules/localename (Depends-on): Add extensions, since
9313         NL_LOCALE_NAME() is not visible without it.
9315 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9317         parse-datetime: fix dependence on AC_PROG_SED
9318         * modules/parse-datetime: Use `sed` directly like all other modules.
9319         Reported by J William Piggott
9321 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9323         intprops: update doc URLs
9324         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9326 2017-01-16  Bruno Haible  <bruno@clisp.org>
9328         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9329         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9330         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9331         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9332         distinguish s390 and s390x.
9333         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9334         * NEWS: Mention the change regarding 'armel'.
9336 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9338         localeinfo: case_folded_counterparts and WEOF
9339         * NEWS: Document this.
9340         * lib/localeinfo.c (case_folded_counterparts):
9341         First arg is now wint_t, not wchar_t.  This generalizes the
9342         function to also work on WEOF, where it returns 0.
9344         dfa: port to gcc -fsanitize=undefined
9345         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9346         as this runs afoul of gcc -fsanitize=undefined.
9348 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9350         strftime: %z is -00 if unknown
9351         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9352         the caller's responsibility to set 'negative_number'.  All uses changed.
9353         (__strftime_internal): Put '-' before a zero UTC offset if the time
9354         zone abbreviation starts with "-", which is the recently-introduced
9355         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9356         * tests/test-strftime.c: Test for this.
9358 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9360         dfa: port to older GCC
9361         Problem reported by Assaf Gordon in:
9362         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9363         * modules/c99: New module.  This merely attempts to use the latest
9364         C version, which should be enough to solve this particular problem.
9365         The idea is to document which Gnulib modules assume C99 or later.
9366         * modules/dfa (Depends-on): Add it.
9368 2017-01-10  Bruno Haible  <bruno@clisp.org>
9370         Update DEPENDENCIES.
9371         * DEPENDENCIES: List only https URLs. Update recommended version for
9372         autoconf, automake, gperf.
9374 2017-01-10  Jim Meyering  <meyering@fb.com>
9376         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9377         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9378         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9380 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9382         dfa: minor simplification with emptyset
9383         * lib/dfa.c (build_state): Simplify by using emptyset.
9385 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9387         dfa: shrink constraints from 4 bits to 3
9388         * lib/dfa.c (newline_constraint, letter_constraint)
9389         (other_constraint, prev_newline_dependent)
9390         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9391         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9392         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9393         Constraints need only 3 bits, not 4.  Using smaller integers
9394         shrinks the code a bit and makes grep a tad faster on x86-64.
9396         dfa: omit unnecessary ptrdiff_t check
9397         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9398         overflow, since xnmalloc does that now.
9400         dfa: omit unnecessary allocation
9401         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9402         an all-zero follow set works just fine.
9404         dfa: omit unused local
9405         * lib/dfa.c (build_state): Fix up recent change.
9407         maint: remove stray .texi files
9408         Although these were superseded by other files like
9409         doc/posix-functions/ctime.texi, the old files were not removed.
9410         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9412 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9414         getprogname: fix port to IRIX
9415         * lib/getprogname.c (getprogname) [__sgi]:
9416         Don't dump core if malloc returns NULL.
9418         dfa: fix reallocation bug when matching newlines
9419         Problem reported for sed by S. Gilles (Bug#25390).
9420         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9421         (dfastate): Reallocate before moving any newline transition ...
9422         (build_state): ... instead of reallocating here, where it is too late.
9424 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9426         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9427         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9429 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9431         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9432         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9434 2017-01-07  Bruno Haible  <bruno@clisp.org>
9436         stdioext: Port to Minix 3.2 and newer.
9437         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9438         * lib/fseeko.c (fseeko): Likewise.
9439         Reported by Nelson Beebe via Paul Eggert.
9441 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9443         getprogname: port to IRIX
9444         * lib/getprogname.c (getprogname): Port to IRIX.
9445         Based on an idea by Bastien Roucariès at:
9446         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9447         via code from Bruno Haible at:
9448         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9450         localename-tests: port to NetBSD 7
9451         Problem reported by Nelson H. F. Beebe.
9452         * tests/test-localename.c:
9453         Test newlocale and uselocale only if both exist.
9455         glob, intprops, xalloc: work around Clang bug
9456         Work around LLVM bug 16404, which is still not fixed.
9457         https://llvm.org/bugs/show_bug.cgi?id=16404
9458         Problem reported by Nelson H. F. Beebe.
9459         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9460         Remove.
9461         * lib/glob.c (size_add_wrapv):
9462         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9463         * lib/xalloc-oversized.h (xalloc_oversized):
9464         Do not use overflow builtins if Clang.
9466         dfa: fix 'return' typo
9467         Problem reported by Nelson H. F. Beebe.
9468         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9470 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9472         parse-datetime: fix generated paths for coverage files
9473         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9474         within parse-datetime.c, so that gcc generates appropriate .gcno
9475         files, allowing lcov to proceed without error.  Previously it
9476         would error trying to find "lib/lib/parse-datetime.y".
9478 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9480         maint.mk: support parallel execution of coverage
9481         * top/maint.mk (coverage): Run dependencies serially,
9482         thus supporting parallel processing of each one,
9483         particularly build-coverage, which builds and runs tests.
9485 2017-01-05  Bruno Haible  <bruno@clisp.org>
9487         lock tests: Prefer semaphore over mutex.
9488         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9489         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9490         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9491         Suggested by Torvald Riegel <triegel@redhat.com>.
9493 2017-01-05  Bruno Haible  <bruno@clisp.org>
9495         lock: Provide guarantee to avoid writer starvation for rwlocks.
9496         The rationale is: 1) Read-preferring read-write locks are prone to
9497         writer starvation if the number of reader threads multiplied by the
9498         percentage of time they have the lock held is too high. 2) Write-
9499         preferring read-write locks are the only reliable way to avoid this.
9500         3) There have been reports of 'test-lock' hanging on glibc systems
9501         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9502         and glibc indeed implements read-preferring rwlocks by default, see
9503         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9504         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9505         * m4/pthread_rwlock_rdlock.m4: New file.
9506         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9507         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9508         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9509         of rwlock initialization on glibc systems without
9510         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9511         of rwlocks altogether on non-glibc systems without
9512         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9513         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9514         * lib/glthread/lock.c [USE_POSIX_THREADS]
9515         (glthread_rwlock_init_for_glibc): New function.
9516         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9517         comment.
9518         [USE_PTH_THREADS]: New implementation of rwlocks.
9519         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9520         readers.
9521         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9522         (Depends-on): Add 'extensions'.
9523         * tests/test-rwlock1.c: New file.
9524         * lock-tests (Files): Add it.
9525         (Depends-on): Add usleep.
9526         (Makefile.am): Add test-rwlock1 to the tests.
9528 2017-01-05  Bruno Haible  <bruno@clisp.org>
9530         thread: Fix pth port.
9531         * lib/glthread/thread.h (pth_init): Declare weak.
9532         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9533         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9534         function.
9536 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9538         parse-datetime: fix debug message on lone year number
9539         Input dates such as
9540           date -d "Apr 11 22:59:00 2011"
9541         are parsed as date (Apr 11, with default year 2016), then time, then a
9542         number (2011). Based on the combination of previously seen tokens,
9543         'digits_to_date_time' determines 2011 to be a year value.
9544         This fixes the debug messages to correctly show the updated year.
9545         Before:
9546             $ date --debug -d 'Apr 11 22:59:00 2011'
9547             date: parsed date part: (Y-M-D) 2016-04-11
9548             date: parsed time part: 22:59:00
9549             date: parsed number part: today/this/now
9550         After:
9551             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
9552             date: parsed date part: (Y-M-D) 2016-04-11
9553             date: parsed time part: 22:59:00
9554             date: parsed number part: year: 2011
9555         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
9556         'debug_year_seen' member fields.
9557         (digits_to_date_time): Update 'year_seen' as needed.
9558         (debug_print_current_time): Inform about year updates.
9559         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
9561         parse-datetime: fix local timezone debug messages
9562         "Local timezones" are strings that affect only DST relative to the
9563         default timezone. The debug messages in parse-datetime.y printed
9564         wrong information when encountering local timezones.
9565         Examples:
9566         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
9567              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
9568              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
9569         When the default timezone relates to the zone strings, EET/EEST are
9570         parsed as local timezones (tLOCAL_ZONE), and only change the DST
9571         value (0/1, respectively):
9572              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
9573              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
9574         * lib/parse-datetime.y (debug_print_current_time): If local timezone
9575         was seen, inform about DST change, don't print actual timezone.
9576         (debug_strfdatetime): If local timezone was seen, use default timezone
9577         (and adjust as needed) instead of using incorrect timezone.
9578         (parse_datetime2): Use correct time-zone source string, and adjust
9579         default timezone as needed.
9581         parse-datetime: add debug warning about DST changes
9582         Incorrect date arithmetic due to daylight saving time (DST) are a
9583         common (false) bug report in coreutils.
9584         Detect two such cases and print a warning:
9585         1. year/month/day adjustments (performed on 'struct tm'),
9586            where 'mktime' returns a different isdst value.
9587         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
9588            where the result of 'localtime(3)' on the value will return a
9589            different isdst value.
9590         Note: DST changes could be harmless or unnoticeable.
9591         Examples (with 'TZ=America/New_York'):
9592         Unnoticeable: result is 2016-Dec-14
9593            $ date -d '2016-06-15 EDT + 6 months' +%b
9594            Dec
9595         Unnoticeable: result is 2016-Dec-15 11:00:00
9596            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
9597            2016-12-15
9598         This is unexpected:
9599            $ date -d '2016-06-01 EDT + 6 months' +%F
9600            2016-11-30
9601         The new debug warnings will show:
9602            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
9603            ...
9604            date: warning: daylight saving time changed after date adjustment
9605            ...
9606         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
9607         print an appropriate warning message.
9609         parse-datetime: add debug warning about date arithmetic
9610         Date arithmetic are done directly on the fields of 'struct tm',
9611         which can result in invalid dates. Normalization with 'mktime(3)'
9612         will then produce a different date - which might cause unexpected
9613         results.
9614         Examples:
9615           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
9616           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
9617         Note that date normalization is not inherently wrong and not rejected,
9618         as it has legitimate uses:
9619           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
9620         If the user asked to adjust months but 'mday' changed,
9621         or user asked to adjust years but 'month' changed - warn about it.
9622             $ ./src/date --debug -d '2016-10-31 - 1 month'
9623             ...
9624             date: warning: when adding relative months/years, \
9625                            it is recommended to specify the 15th of the month
9626             ...
9627             date: warning: month/year adjustment resulted in shifted dates:
9628             date:      adjusted Y M D: 2016 09 31
9629             date:    normalized Y M D: 2010 10 01
9630             ...
9631         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
9632         a warning message. Improve recommendation of when to use 15 of the
9633         month or noon for date arithmetic.
9635         parse-datetime: fix debug message of relative part after timezone
9636         Relative part (e.g '+8 days') after a timezone string was not
9637         reported (was only reported after a timezone number). Due to the
9638         parser's structure, timezone strings with numbers were handled
9639         separately.
9640         before:
9641              # Timezone number + relative part: OK
9642              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
9643              ...
9644              date: parsed relative part: -8 day(s)
9645              # Timezone string + relative part: missing
9646              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
9647              [ missing message ]
9648         After: messages are printed in both cases.
9649         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
9651         parse-datetime: fix incorrect debug message on lone number
9652         A lone number is an absolute value, not a relative time part.
9653         before:
9654            $ date --debug -d '20130101'
9655            date: parsed number part: today/this/now
9656         After:
9657            $ ./src/date --debug -d '20130101'
9658            date: parsed number part: (Y-M-D) 2013-01-01
9659         * lib/parse-datetime.y ('item'/'number' tokens): Call
9660         'debug_print_current_time' instead of 'debug_print_relative_time'.
9662 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9664         doc: modernize for C11 etc.
9665         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
9666         for C11, MinGW, etc.  This responds to Paul Smith's question in:
9667         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
9669         dfa: prefer functions to FETCH_WC macro
9670         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
9671         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
9672         wint_t result into DFA->lex.wctok instead of to a separate arg.
9673         All callers changed.  Move more local decls closer to where
9674         they're used.
9676         dfa: narrow more local var scopes
9677         * lib/dfa.c: Move more local decls to be more local.
9679         dfa: remove duplicate assignment
9680         Problem reported by Bruno Haible in:
9681         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
9682         * lib/dfa.c (parse_bracket_exp): Simplify.
9684 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9686         dfa: simplify constraint-dependency checking
9687         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
9688         (prev_other_constraint): Remove.
9689         (prev_newline_dependent, prev_letter_dependent):
9690         Simplify, to avoid an unnecessary bitwise AND operation.
9692         dfa: prefer functions and constants to macros
9693         * lib/dfa.c: Prefer constants to macros where either will do.
9694         (streq, isasciidigit, newline_constraint)
9695         (letter_constraint, other_constraint, succeeds_in_context)
9696         (prev_newline_constraint, prev_letter_constraint)
9697         (prev_other_constraint, prev_newline_dependent)
9698         (prev_letter_dependent, accepting, accepts_in_context):
9699         Now static functions instead of function-like macros.
9700         Use lower-case names accordingly.  All uses changed.
9702         dfa: narrow more local var scopes
9703         * lib/dfa.c: Move some more local decls down to nearer where
9704         they're needed.
9706 2016-12-31  Jim Meyering  <meyering@fb.com>
9708         dfa: narrow the scope of many local variables
9709         * lib/dfa.c: Now that we are no longer constrained to c89, move
9710         declarations of many variables (often indices) "down" into the
9711         scope(s) where used or to the point of definition.  This is a
9712         no-semantic-change diff.
9714 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9716         version-etc: new year
9717         * build-aux/gendocs.sh (version):
9718         * doc/gendocs_template:
9719         * doc/gendocs_template_min:
9720         * doc/gnulib.texi:
9721         * lib/version-etc.c (COPYRIGHT_YEAR):
9722         Update copyright dates by hand in templates and the like.
9723         * all files: Run 'make update-copyright'.
9725 2016-12-31  Eric Blake  <eblake@redhat.com>
9727         do-release-commit-and-tag: avoid shell syntax error
9728         * build-aux/do-release-commit-and-tag (curr_br): $branch can
9729         contain spaces when rebasing.
9731         maint.mk: hoist gnulib_dir definition earlier
9732         * top/maint.mk (gnulib_dir): Move near top of file.
9734 2016-12-31  Jim Meyering  <meyering@fb.com>
9736         maint.mk: do not always evaluate intprops-related shell
9737         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
9738         using gnulib_dir undefined (gnulib_dir is defined later in the
9739         file, which will be fixed separately), and besides, there is no
9740         need to incur the cost of this shell invocation for every single
9741         use of this .mk file.  Reported by Eric Blake in
9742         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
9744 2016-12-30  Jim Meyering  <meyering@fb.com>
9746         maint.mk: improve sc_prohibit_intprops_without_use
9747         * top/maint.mk (_intprops_names): Don't hard-code the list of
9748         symbol names.  Instead, derive it on the fly.
9750 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9752         dfa: shorten sbit, success
9753         * lib/dfa.c (struct regex_syntax.sbit):
9754         (struct dfa.success): Use char, not int, for array elements, since
9755         they are all in the range 0..7.
9757         dfa: simplify multibyte_prop etc.
9758         This follows up on a change made when dfa.c was in grep, namely grep
9759         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
9760         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
9761         That earlier simplification allows for some more simplification
9762         and trimming down here.
9763         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
9764         (struct lexer_state): New mamber brack.
9765         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
9766         since they must be in the range 0..3 now.
9767         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
9768         the brack member now supersedes them.
9769         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
9770         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
9771         (dfaparse): Remove unnecessary initializations of already-0 storage.
9772         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
9773         (dfassbuild): No need to clear sup->mbcsets.
9775         dfa: minor performance tweak
9776         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
9778         dfa: wrap charclass inside a struct
9779         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
9780         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
9781         about 5% faster, where list.txt is generated by 'aspell dump
9782         master | head -n 100000 >list.txt'.  See Bug#22239.
9783         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
9784         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
9785         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
9786         Adjust to this, e.g., by using charclass * rather than charclass.
9787         All callers changed as needed.
9788         (copyset): Remove.  All uses changed to simple assignment.
9789         (parse_bracket_exp): Use zeroset instead of memset.
9791 2016-12-30  Jim Meyering  <meyering@fb.com>
9793         maint.mk: update list of intprops.h symbol names
9794         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
9795         This avoids a false failure of the sc_prohibit_intprops_without_use
9796         rule in grep.
9798 2016-12-29  Eric Blake  <eblake@redhat.com>
9800         getopt: fix parallel test failure
9801         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
9802         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
9803         * tests/test-getopt-main.h (main): Use different file names
9804         in case test-getopt-gnu and test-getopt-posix run in parallel.
9806 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9808         xalloc: x2nrealloc check for ptrdiff_t overflow
9809         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
9810         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
9812 2016-12-24  Bruno Haible  <bruno@clisp.org>
9814         lock test: Fix performance problem on multi-core machines.
9815         * tests/test-lock.c (USE_VOLATILE): New macro.
9816         (struct atomic_int): New type.
9817         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
9818         functions.
9819         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
9820         as 'struct atomic_int'.
9821         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
9822         reclock_checker_thread, test_recursive_lock): Use the new functions.
9823         Reported by Eric Blake in
9824         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
9825         and by Pádraig Brady in
9826         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
9828 2016-12-19  Bruno Haible  <bruno@clisp.org>
9830         vma-iter: Fix endless loop on 64-bit Windows.
9831         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
9832         'unsigned long'.
9834 2016-12-19  Bruno Haible  <bruno@clisp.org>
9836         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
9837         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
9838         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
9839         Invoke gt_TYPE_WINT_T instead.
9840         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
9841         * modules/stdint (Files): Add m4/wint_t.m4.
9842         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9843         * modules/wctype-h (Makefile.am): Likewise.
9844         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
9845         not only on MSVC.
9846         * lib/wctype.in.h (wint_t): Likewise.
9848 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9850         getopt-posix-tests: fix Makefile typo
9851         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
9852         Fix typo: the last ‘_’ was missing in the name.
9853         I suspect that the typo explains this build failure:
9854         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
9855         although I can’t reproduce the problem on Solaris 10 sparc.
9857 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9859         dfa: improve worst-case 'replace' performance
9860         See my note in Bug#22357#71.
9861         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
9862         (merge_constrained): New function, which is like
9863         the old 'merge' function, except with a new argument C2.
9864         Simplify the body by avoiding the need for different sections
9865         of code depending on whether one input is exhausted.
9866         (merge): Use the new function.
9867         (delete): Return the constraint of the deleted position,
9868         not the entire position.  Caller changed.
9869         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
9871 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9873         dfa: performance improvement for removal of epsilon closure
9874         See Bug#22357#32.
9875         * lib/dfa.c (delete): Use binary search to find deleted index.
9876         (replace): New function.  It replaces a position with the followed set.
9877         (epsclosure): Replace it with a new algorithm.  Update caller.
9879 2016-12-18  Bruno Haible  <bruno@clisp.org>
9881         Split tests for getopt-posix and getopt-gnu.
9882         * tests/test-getopt-posix.c: New file.
9883         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
9884         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
9885         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
9886         GNULIB_TEST_GETOPT_GNU.
9887         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
9888         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
9889         (Makefile.am): Test test-getopt-posix instead of test-getopt.
9890         * modules/getopt-gnu-tests: New file.
9891         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
9893 2016-12-18  Bruno Haible  <bruno@clisp.org>
9895         posix-modules: Add options for specific platforms.
9896         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
9897         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
9898         Invoke func_tmpdir. Filter out the excludes.
9900 2016-12-18  Bruno Haible  <bruno@clisp.org>
9902         getopt: Fix link error for users of getopt() in <unistd.h>.
9903         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
9904         __need_getopt is defined. Undefine all macros before defining them.
9905         * modules/getopt (Include): Clarify that including <unistd.h> is also
9906         OK.
9907         * tests/test-getopt.c: Add comment.
9909 2016-12-17  Bruno Haible  <bruno@clisp.org>
9911         getaddrinfo tests: Avoid compilation error on MSVC.
9912         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
9913         getaddrinfo on native Windows.
9915 2016-12-17  Bruno Haible  <bruno@clisp.org>
9917         getlogin, getlogin_r: Fix link errors on MSVC.
9918         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
9919         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
9920         (Link): New section.
9921         * modules/getlogin_r (Files): Add m4/getlogin.m4.
9922         (configure.ac): Require gl_LIB_GETLOGIN.
9923         (Link): New section.
9924         * NEWS: Mention the new link requirements.
9925         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
9926         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
9928 2016-12-17  Bruno Haible  <bruno@clisp.org>
9930         Un-deprecate the 'progname' module.
9931         * NEWS: Describe the appropriate use-cases of 'progname' versus
9932         'getprogname'. Based on discussion summary at
9933         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
9935 2016-12-17  Bruno Haible  <bruno@clisp.org>
9937         Reorganize NEWS a bit.
9938         * NEWS: Move some not so important changes away from section
9939         "Important Notes".
9941 2016-12-17  Bruno Haible  <bruno@clisp.org>
9943         tanhf: Avoid redefinition error on MSVC.
9944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
9945         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
9946         may be defined as an inline function.
9947         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
9948         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
9950 2016-12-17  Bruno Haible  <bruno@clisp.org>
9952         tanf: Avoid redefinition error on MSVC.
9953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
9954         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
9955         may be defined as an inline function.
9956         * modules/math (Makefile.am): Substitute REPLACE_TANF.
9957         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
9959 2016-12-17  Bruno Haible  <bruno@clisp.org>
9961         sqrtf: Avoid redefinition error on MSVC.
9962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
9963         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
9964         may be defined as an inline function.
9965         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
9966         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
9968 2016-12-17  Bruno Haible  <bruno@clisp.org>
9970         sinhf: Avoid redefinition error on MSVC.
9971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
9972         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
9973         may be defined as an inline function.
9974         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
9975         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
9977 2016-12-17  Bruno Haible  <bruno@clisp.org>
9979         sinf: Avoid redefinition error on MSVC.
9980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
9981         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
9982         may be defined as an inline function.
9983         * modules/math (Makefile.am): Substitute REPLACE_SINF.
9984         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
9986 2016-12-17  Bruno Haible  <bruno@clisp.org>
9988         logf: Avoid redefinition error on MSVC.
9989         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
9990         may be defined as an inline function.
9992 2016-12-17  Bruno Haible  <bruno@clisp.org>
9994         log10l: Avoid redefinition error on MSVC.
9995         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
9996         may be defined as an inline function.
9998 2016-12-17  Bruno Haible  <bruno@clisp.org>
10000         log10f: Avoid redefinition error on MSVC.
10001         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
10002         may be defined as an inline function.
10004 2016-12-17  Bruno Haible  <bruno@clisp.org>
10006         hypotl: Avoid redefinition error on MSVC.
10007         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
10008         may be defined as an inline function.
10010 2016-12-17  Bruno Haible  <bruno@clisp.org>
10012         hypotf: Avoid redefinition error on MSVC.
10013         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
10014         may be defined as an inline function.
10016 2016-12-17  Bruno Haible  <bruno@clisp.org>
10018         fmodl: Avoid redefinition error on MSVC.
10019         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
10020         may be defined as an inline function.
10022 2016-12-17  Bruno Haible  <bruno@clisp.org>
10024         fmodf: Avoid redefinition error on MSVC.
10025         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
10026         may be defined as an inline function.
10028 2016-12-17  Bruno Haible  <bruno@clisp.org>
10030         expf: Avoid redefinition error on MSVC.
10031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
10032         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
10033         may be defined as an inline function.
10034         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
10035         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
10037 2016-12-17  Bruno Haible  <bruno@clisp.org>
10039         coshf: Avoid redefinition error on MSVC.
10040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
10041         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
10042         may be defined as an inline function.
10043         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
10044         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
10046 2016-12-17  Bruno Haible  <bruno@clisp.org>
10048         cosf: Avoid redefinition error on MSVC.
10049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
10050         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
10051         may be defined as an inline function.
10052         * modules/math (Makefile.am): Substitute REPLACE_COSF.
10053         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
10055 2016-12-17  Bruno Haible  <bruno@clisp.org>
10057         atan2f: Avoid redefinition error on MSVC.
10058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
10059         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
10060         may be defined as an inline function.
10061         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
10062         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
10064 2016-12-17  Bruno Haible  <bruno@clisp.org>
10066         atanf: Avoid redefinition error on MSVC.
10067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
10068         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
10069         may be defined as an inline function.
10070         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
10071         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
10073 2016-12-17  Bruno Haible  <bruno@clisp.org>
10075         asinf: Avoid redefinition error on MSVC.
10076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
10077         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
10078         may be defined as an inline function.
10079         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
10080         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
10082 2016-12-17  Bruno Haible  <bruno@clisp.org>
10084         acosf: Avoid redefinition error on MSVC.
10085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
10086         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
10087         may be defined as an inline function.
10088         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
10089         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
10091 2016-12-17  Bruno Haible  <bruno@clisp.org>
10093         Avoid redefinition errors on MSVC.
10094         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
10095         the function may be defined as an inline function.
10096         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
10097         the function may be defined as an inline function.
10099 2016-12-17  Bruno Haible  <bruno@clisp.org>
10101         Avoid redefinition errors on MSVC.
10102         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
10103         * lib/unistd.in.h: Include <stdio.h> when necessary.
10105 2016-12-17  Bruno Haible  <bruno@clisp.org>
10107         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
10108         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
10109         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10110         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
10111         WINT_MAX.
10113 2016-12-17  Bruno Haible  <bruno@clisp.org>
10115         Avoid autoconf warning.
10116         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
10117         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
10119 2016-12-17  Bruno Haible  <bruno@clisp.org>
10121         fpending: Revert workaround against Emacs bug.
10122         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
10123         The Emacs bug is fixed by Eli Zaretskii in
10124         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
10126 2016-12-17  Bruno Haible  <bruno@clisp.org>
10128         getlogin_r tests: Port to mingw.
10129         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
10130         regression introduced on 2014-05-19.
10132 2016-12-17  Bruno Haible  <bruno@clisp.org>
10134         getlogin: Port to newer mingw.
10135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
10136         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
10137         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
10138         HAVE_GETLOGIN.
10139         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
10140         HAVE_GETLOGIN.
10141         * doc/posix-functions/getlogin.texi: Mention the issue.
10142         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
10143         regression introduced on 2014-05-14.
10145 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10147         builtin-expect: improve port to IBM XL C
10148         Problem reported for z/OS by Daniel Richard G. in:
10149         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
10150         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10151         Test for <builtins.h> directly.
10153         builtin-expect: port to IBM XL C
10154         Problem reported for z/OS by Daniel Richard G. in:
10155         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
10156         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10157         Also allow __builtin_expect defined via a standard include file.
10159         regex: fix dependency
10160         Problem reported by Bruno Haible in:
10161         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
10162         * modules/regex: Depend on builtin-expect.
10164         builtin-expect: new module
10165         Fix fnmatch to use it.
10166         Problem reported for z/OS by Daniel Richard G.
10167         * lib/fnmatch.c (__builtin_expect):
10168         * lib/glob.c (__builtin_expect):
10169         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
10170         * lib/memmem.c (__builtin_expect) [!_LIBC]:
10171         * lib/scandir.c (__builtin_expect):
10172         * lib/strstr.c (__builtin_expect) [!_LIBC]:
10173         Remove macro; config.h now does this.
10174         * lib/gl_anytreehash_list1.h (add_to_bucket):
10175         * lib/regex_internal.h (BE):
10176         Assume __builtin_expect.
10177         * m4/builtin-expect.m4, modules/builtin-expect: New files.
10178         * modules/avltreehash-list, modules/fnmatch, modules/glob:
10179         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
10180         * modules/scandir, modules/strstr-simple:
10181         Depend on builtin-expect.
10183 2016-12-15  Bruno Haible  <bruno@clisp.org>
10185         init.sh: Add possibility to not delete temporary files.
10186         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
10187         to yes, don't erase the temporary directory.
10189 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10191         regex: fix integer-overflow bug in never-used code
10192         Problem reported by Clément Pit–Claudel in:
10193         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
10194         * lib/regex_internal.h: Include intprops.h.
10195         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
10196         behavior on integer overflow.
10197         * modules/regex (Depends-on): Add intprops.
10199         fpending: fix port to MinGW on Emacs
10200         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
10201         Problem reported by Eli Zaretskii in:
10202         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
10203         Is Plan 9 still a valid porting target, anyway?
10205 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10207         safe-alloc: use xalloc-oversized
10208         * lib/safe-alloc.c: Include xalloc-oversized.h.
10209         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
10210         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
10212         xalloc: do not exceed PTRDIFF_MAX
10213         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
10214         xalloc_oversized check, since objects larger than PTRDIFF_MAX
10215         bytes have pointer-subtraction problems.
10217         malloca: do not exceed PTRDIFF_MAX
10218         * lib/malloca.h: Include xalloc-oversized.
10219         (nmalloca): Use xalloc_oversized instead of rolling our own.
10220         * modules/malloca (Depends-on):
10221         * modules/relocatable-prog-wrapper (Depends-on):
10222         Add xalloc-oversized.
10224         quotearg: pacify GCC better
10225         * modules/quotearg (Depends-on): Add minmax, stdint.
10226         * lib/quotearg.c: Include minmax.h, stdint.h.
10227         (nslots): Now int, as there seems little point to going to extra
10228         work merely to support the INT_MAX slot, which nobody ever uses.
10229         (quotearg_n_options): Redo size-overflow checks to pacify GCC
10230         and to catch (mostly-theoretical) ptrdiff_t problems too.
10231         This can be done via one comparison.
10233 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10235         xalloc-oversized: check for PTRDIFF_MAX too
10236         This avoids undefined behavior when subtracting pointers to
10237         objects containing more than PTRDIFF_MAX bytes.
10238         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
10239         Also return 1 if the result would exceed PTRDIFF_MAX>
10240         * modules/xalloc-oversized (Depends-on):
10241         Add stdint.
10243         dfa: fix glitches in previous commit
10244         Sorry, I don't know how I managed to commit the wrong version.
10245         * lib/dfa.c (MIN): Move up.
10246         (xpalloc): Now static.
10248         dfa: fix some unlikely integer overflows
10249         I found these while reviewing the recent Coverity-related fix.
10250         This patch changes part of dfa.c to prefer ptrdiff_t instead of
10251         size_t for object counts.  Using ptrdiff_t is the style typically
10252         used in Emacs; although it wastes a sign bit as sizes can never be
10253         negative, it makes -fsanitize=undefined more likely to catch
10254         integer overflows in index calculation, and nowadays the upside is
10255         typically more important than the downside.  Although perhaps the
10256         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
10257         of dfa.c already does, since it uses state_num which is signed),
10258         that is a bigger change and is not needed to fix the bugs I found.
10259         * lib/dfa.c: Include stdint.h and intprops.h.
10260         (TOKEN_MAX): New macro.
10261         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
10262         (charclass_index, parse_bracket_exp, addtok, insert, merge)
10263         (realloc_trans_if_necessary, free_mbdata):
10264         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
10265         This is safe because xpalloc checks that the sizes do not exceed
10266         either SIZE_MAX or PTRDIFF_MAX.
10267         (xpalloc): New function, mostly taken from Emacs.
10268         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
10269         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
10270         (charclass_index): Check for integer overflow in computing
10271         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
10272         added to it later.
10273         (alloc_position_set): Check for integer overflow.  On typical
10274         platforms this check has zero overhead, since the constant
10275         expression is false.
10276         (realloc_trans_if_necessary):
10277         Remove assertion, which I hope Coverity no longer needs.
10279         * modules/dfa (Depends-on): Add intprops, stdint.
10281 2016-12-12  Jim Meyering  <meyering@fb.com>
10283         dfa: add an assertion to avoid coverity false positive
10284         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
10285         warned that "newalloc1 - 2" could overflow.
10287 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
10289         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
10290         * dfa.h (DFA_CASE_FOLD): Remove.
10291         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10293 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10295         link: fix test to declare use of rename()
10296         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10297         -Werror=implicit-function-declaration
10299 2016-12-12  Bruno Haible  <bruno@clisp.org>
10301         fpending: Port to native Windows with MSVC.
10302         * lib/fpending.c: Include stdio-impl.h.
10303         (__fpending): Include all known implementations. Err out if it's not
10304         ported.
10305         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10306         * modules/fpending (Files): Add lib/stdio-impl.h.
10307         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10309 2016-12-12  Bruno Haible  <bruno@clisp.org>
10311         stdioext: Port to native Windows with MSVC.
10312         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10313         (struct _gl_real_FILE): New type.
10314         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10315         Windows.
10316         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10317         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10318         other SystemV derived implementations.
10319         * lib/fpurge.c (fpurge): Likewise.
10320         * lib/freadable.c (freadable): Likewise.
10321         * lib/freadahead.c (freadahead): Likewise.
10322         * lib/freading.c (freading): Likewise.
10323         * lib/freadptr.c (freadptr): Likewise.
10324         * lib/freadseek.c (freadptrinc): Likewise.
10325         * lib/fseeko.c (fseeko): Likewise.
10326         * lib/fseterr.c (fseterr): Likewise.
10327         * lib/fwritable.c (fwritable): Likewise.
10328         * lib/fwriting.c (fwriting): Likewise.
10329         Reported by Gisle Vanem <gvanem@yahoo.no>.
10331 2016-12-11  Jim Meyering  <meyering@fb.com>
10333         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10334         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10335         to work with most shells, but not with the one provided by many
10336         Solaris 10 systems, so running configure with such a /bin/sh evokes
10337         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10338         Reported by Assaf Gordon in
10339         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10341 2016-12-10  Bruno Haible  <bruno@clisp.org>
10343         threadlib: Optimize out runtime test on Solaris >= 10.
10344         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10345         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10346         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10348 2016-12-10  Bruno Haible  <bruno@clisp.org>
10350         stdint: Update doc about Solaris 9.
10351         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10353 2016-12-09  Bruno Haible  <bruno@clisp.org>
10355         c-ctype tests: Fix link error on Solaris 9.
10356         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10357         Reported at <https://savannah.gnu.org/bugs/?46827>.
10359 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10361         dfa: fix performance bug that recomputes trans
10362         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10363         25 on-demand changes.  The bug caused build_state to reset all
10364         d->trans elements to -2 even when d->trans was already non-null.
10365         Use C99 style decls after statements in this function.
10367         same-inode: port to MinGW
10368         Here st_ino is always 0, so change the definition of SAME_INODE so
10369         that 1 means the two files are the same, 0 with st_ino != 0 means
10370         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10371         reported by Bruno Haible (Bug#25146).
10372         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10373         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10375 2016-12-04  Bruno Haible  <bruno@clisp.org>
10377         javacomp-script: Support Java 7 and 8.
10378         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10379         target-version 1.7, 1.8.
10381 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10383         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10384         GPLv2" rewriting.
10386 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10388         * gnulib-tool (func_import): Adhere to the license guideline when
10389         rewriting the license text to "LGPLv3+ or GPLv2":
10390         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10392 2016-12-02  Bruno Haible  <bruno@clisp.org>
10394         localcharset: Avoid theoretical buffer overrun.
10395         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10396         return value from setlocale if it would lead to a buffer overrun.
10398 2016-12-01  Bruno Haible  <bruno@clisp.org>
10400         Relicense some modules under LGPLv2+.
10401         Kevin Cernekee's approval is in
10402         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10403         * modules/fseterr (License): Change to LGPLv2+.
10404         * modules/mbchar (License): Likewise.
10405         * modules/mbiter (License): Likewise.
10406         * modules/mbsnlen (License): Likewise.
10407         * modules/wcwidth (License): Likewise.
10409 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10411         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10412         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10413         OS/2 kLIBC.
10415 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10417         alphasort, scandir: Port to OS/2 kLIBC
10418         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10419         declaration.
10420         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10422 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10424         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10425         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10426         with '/@unixroot'.
10428 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10430         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10431         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10432         OS/2 kLIBC unless TCPV40HDRS is defined.
10434 2016-11-29  Jim Meyering  <meyering@fb.com>
10436         dfa: avoid new infinite loop
10437         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10438         * lib/dfa.c (dfastate): When constructing a new state table, we could
10439         initially declare that we had found a match, and later find that
10440         constraints eliminate that possibility, yet continue to use the
10441         now stale "matched" indicator.  That would lead to an infinite loop.
10442         The solution is to update "matched" when necessary.
10443         Introduced by commit v0.1-983-g403adf1.
10445 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10447         dfa: avoid match middle in multibyte character
10448         * lib/dfa.c (transit_state): If fails in matching single byte characters
10449         on a state including period expression in non-UTF8 multibyte locales,
10450         skip trailing bytes.
10451         (dfa_supported): Revert previous change.
10453 2016-11-27  Jim Meyering  <meyering@fb.com>
10455         dfa: avoid false match in non-UTF8 multibyte locales
10456         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10457         as "not supported" so that callers will resort to using regex-based
10458         matcher.  This will surely hurt performance, but correctness trumps
10459         performance here, and the affected locales are less and less relevant,
10460         these days.  See grep's bug report https://bugs.gnu.org/24975.
10462 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10464         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10465         * lib/ptsname_r.c: Include the appropriate headers.
10466         [__sun]: Delete sys/sysmacros.h include.
10467         [_AIX || __osf__]: Likewise.
10468         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10470 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10472         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10473         * lib/md4.c (md4_process_bytes): The existing define is made internal
10474         in recent versions of glibc, so also use this new public define.
10475         * lib/md5.c (md5_process_bytes): Likewise.
10476         * lib/sha1.c (sha1_process_bytes): Likewise.
10477         * lib/sha256.c (sha256_process_bytes): Likewise.
10478         * lib/sha512.c (sha512_process_bytes): Likewise.
10480 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10482         maint: use a more standard return from mbrtowc test
10483         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10484         from the test program as this often indicates an
10485         unhandled case in the test program.
10486         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10487         (gl_MBRTOWC_SANITYCHECK): Likewise.
10488         (gl_MBRTOWC_NULL_ARG2): Likewise.
10489         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10491 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10493         freopen: work around glibc bug with closed fd
10494         Work around glibc bug#15589, where freopen mishandles the case
10495         where stdin etc. are already closed.
10496         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10497         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10498         instead of __need_FILE, as the latter does not work with glibc.
10499         Include <fcntl.h>, for open flags.
10500         (rpl_freopen): Work around glibc bug.
10501         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10502         * modules/freopen (Depends-on): Add fcntl-h.
10503         * tests/test-freopen.c (main): Test for bug.
10505 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10507         fnmatch: fix typo introduced on 2016-08-17
10508         This fixes the port to non-GCC compilers that lack __builtin_expect.
10509         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10511         dfa: simplify with new function fillset
10512         * lib/dfa.c (fillset): New function.
10513         Use it for clarity when applicable.
10515         dfa: fix glitches with on-demand states
10516         Also, adjust commentary to better match new code.
10517         Some of these glitches predate the recent change.
10518         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10519         only non-initial states.
10520         (dfastate): Rename locals to better match new roles.
10521         Move them into nested scopes if this is easy.
10522         Omit unnecessary calls to zeroset.
10523         Simplify test for whether to throw in the positions of state 0.
10524         Omit C99-ism (decl after statement) since Gawk still wants C89.
10525         (build_state): Omit unnecessary test and assignment.
10526         Fix some confusion that counted transition tables inaccurately
10527         and could cause a memory leak.
10528         (dfaexec_main): Redo to make it clearer to the compiler that
10529         -1 and -2 are the only negative state numbers here.
10531 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10533         dfa: addition of new state on demand
10534         * src/dfa.c (dfastate): Add argument UC, the current input character.
10535         Fill only a group including the character in transition table.
10536         (realloc_trans_if_necessary): Add the dummy state which means that a
10537         transition table is assigned but the next state is not assigned.
10538         (build_state): Return the next state.  All callers updated.
10539         (transit_state_singlebyte): If we get the dummy state,
10540         fill the transition table.
10541         (dfaexec_main): Handle the dummy state.
10542         (free_mbdata, dfafree): Consider the dummy state.
10544 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10546         srclist: sync with released gettext
10547         * config/srclist.txt: Set "release" option to the files under
10548         $GETTEXT.
10550 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10552         srclist: add "release" option
10553         * config/srclist.txt: Change the format so that the first column
10554         of each line points to the top-level directory of the source
10555         archive.
10556         * config/srclist-update: Accept "release" option that checks files
10557         from the most recently tagged revision in the source archive.
10559 2016-11-21  Bruno Haible  <bruno@clisp.org>
10561         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
10562         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10563         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
10564         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
10565         Inline and remove member function 'rpl ()' of the wrapper struct.
10567 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10569         dfa: fix logic typo
10570         Problem reported by Stephane Chazelas (Bug#24973).
10571         * lib/dfa.c (using_simple_locale): Fix typo that caused some
10572         non-simple locales like fr_FR to be treated as simple.
10574 2016-11-20  Jim Meyering  <meyering@fb.com>
10576         fix test driver leaks: exclude, malloc, realloc
10577         * tests/test-exclude.c (main): Fix trivial leak.
10578         * tests/test-malloc-gnu.c (main): Likewise.
10579         * tests/test-realloc-gnu.c (main): Likewise.
10580         With these changes, grep's tests are now leak free.
10581         I.e., running them with ASAN elicits no failure:
10582           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
10583             AM_LDFLAGS='-fsanitize=address -static-libasan' check
10585 2016-11-11  Bruno Haible  <bruno@clisp.org>
10587         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
10588         * modules/libunistring: (License): Change from LGPL to
10589         "LGPLv3+ or GPLv2".
10590         * modules/libunistring-optional: Likewise.
10591         * modules/unicase/*: Likewise.
10592         * modules/uniconv/*: Likewise.
10593         * modules/unictype/*: Likewise.
10594         * modules/unigbrk/*: Likewise.
10595         * modules/unilbrk/*: Likewise.
10596         * modules/uniname/*: Likewise.
10597         * modules/uninorm/*: Likewise.
10598         * modules/unistdio/*: Likewise.
10599         * modules/unistr/*: Likewise.
10600         * modules/uniwbrk/*: Likewise.
10601         * modules/uniwidth/*: Likewise.
10603 2016-11-12  Bruno Haible  <bruno@clisp.org>
10605         Relicense some modules under LGPLv2+.
10606         Paul Eggert's approval is in
10607         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
10608         Eric Blake's approval is in
10609         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
10610         Ludovic Courtès's approval is in
10611         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
10612         * modules/isnand-nolibm (License): Change to LGPLv2+.
10613         * modules/isnanf-nolibm (License): Likewise.
10614         * modules/isnanl-nolibm (License): Likewise.
10616 2016-11-19  Bruno Haible  <bruno@clisp.org>
10618         Relicense some modules under LGPLv2+.
10619         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
10620         modules/vasnprintf.
10621         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
10622         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
10623         All other significant changes to the files in lib/ of these modules
10624         are from me.
10625         * modules/memcmp2 (License): Change to LGPLv2+.
10626         * modules/amemxfrm (License): Likewise.
10627         * modules/fpieee (License): Likewise.
10628         * modules/fpucw (License): Likewise.
10629         * modules/frexp-nolibm (License): Likewise.
10630         * modules/frexpl-nolibm (License): Likewise.
10631         * modules/printf-frexp (License): Likewise.
10632         * modules/printf-frexpl (License): Likewise.
10633         * modules/printf-safe (License): Likewise.
10634         * modules/signbit (License): Likewise.
10636 2016-11-17  Bruno Haible  <bruno@clisp.org>
10638         Enable Unicode decoder safety unconditionally.
10639         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
10640         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
10641         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10642         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10643         * lib/unistr/u8-prev.c (u8_prev): Likewise.
10644         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
10645         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
10646         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
10647         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
10648         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
10649         * lib/unistr/u16-prev.c (u16_prev): Likewise.
10650         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
10651         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
10652         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
10653         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
10654         * lib/unistr/u32-prev.c (u32_prev): Likewise.
10655         * lib/unistr/u32-next.c (u32_next): Likewise.
10656         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
10657         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
10658         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10659         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10660         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
10661         CONFIG_UNICODE_SAFETY tests unconditionally.
10662         * tests/unistr/test-u32-mblen.c (main): Likewise.
10663         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
10664         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
10665         * tests/unistr/test-u32-next.c (main): Likewise.
10666         * tests/unistr/test-u32-strmblen.c (main): Likewise.
10667         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
10668         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
10669         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
10670         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
10671         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10672         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
10673         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
10674         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
10675         * lib/unistr/u16-check.c (u16_check): Update comment.
10676         * NEWS: Mention the changes that callers should be aware of.
10678 2016-11-19  Bruno Haible  <bruno@clisp.org>
10680         relocatable-prog-wrapper: Fix breakage on Cygwin.
10681         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
10682         (Depends-on): Remove intprops.
10683         * lib/relocwrapper.c: Update dependency tree.
10684         (strerror): Undefine.
10685         * build-aux/install-reloc (func_create_wrapper): Do not compile
10686         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
10688 2016-11-19  Bruno Haible  <bruno@clisp.org>
10690         strerror: Make it compile in C++ mode.
10691         * lib/strerror.c (strerror): Ignore the return value of memcpy().
10693 2016-11-15  Pedro Alves  <palves@redhat.com>
10695         sys_time: add gnulib::timeval for C++
10696         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
10697         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
10698         timeval macro.
10700 2016-11-14  Pedro Alves  <palves@redhat.com>
10702         snippet/c++defs: fix real-floating arg functions in C++ mode
10703         Also, define isfinite, isinf, isnan, signbit in the gnulib
10704         namespace instead of in the global namespace.
10705         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
10706         (_GL_END_NAMESPACE): New.
10707         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
10708         (isfinite, isinf, isnan, signbit) [__cplusplus &&
10709         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
10710         instead of in the global namespace.
10711         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
10712         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
10713         of in the global namespace.
10715 2016-11-13  Jim Meyering  <meyering@fb.com>
10717         strftime: don't use __THROW
10718         Each use of __THROW would provoke this from gcc-7-to-be:
10720           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
10721             on unit local functions [-Wattributes]
10722           static int iso_week_days (int, int) __THROW;
10723           ^~~~~~
10724         * lib/strftime.c (__THROW): Don't define.
10725         Remove each use of __THROW.
10726         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
10727         (tm_diff, iso_week_days, __strftime_internal): Likewise.
10729 2016-11-14  Paul Eggert  <eggert@union>
10731         obstack: port to gcc -fcheck-pointer-bounds
10732         Problem found by 'make check' failure on bleeding-edge coreutils
10733         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
10734         6.2.0-5ubuntu12), configured via "./configure
10735         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
10736         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
10737         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
10738         New macro, copied from fts_.h.
10739         (struct _obstack_chunk.contents): Use it.
10741 2016-11-14  Eric Blake  <eblake@redhat.com>
10743         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
10744         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
10745         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
10747 2016-11-14  Pádraig Brady  <P@draigBrady.com>
10749         strptime: fix compile error in recent change
10750         * lib/strptime.c (__strptime_internal): Fix ported code.
10752 2016-11-11  Bruno Haible  <bruno@clisp.org>
10754         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
10755         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
10756         (func_import): Extend determination of license_incompatibilities.
10757         (func_create_testdir): Extend table of license compatibility. Handle
10758         also the licenses GPLv3+, GPL, LGPLv3+.
10760 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
10762         strftime: tune %q
10763         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
10765         Merge strftime.c changes from glibc
10766         This incorporates:
10767         2007-10-16 [BZ #5184] Add tzset_called argument
10768         2008-06-13 [BZ #6612] pass reference to tzset_called around
10769         2009-10-30 Implement Burmese language locale for Myanmar
10770         2010-01-09 Add support for XPG7 testing
10771         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
10772         2015-10-20 Convert miscellaneous function definitions to prototype style
10773         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
10774         it anyway and this lessens the difference between gnulib and glibc.
10775         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
10776         (__THROW): Define if standard headers do not.
10777         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
10778         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
10779         Declare with __THROW.
10780         (__strftime_internal): Rename from strftime_case_. Add arg for
10781         whether tzset is called.  All uses changed.  Call tzset at most
10782         once.  Allow %OC, for Burmese.
10783         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
10784         Don't assume values are in range.
10786 2016-11-12  Eric Blake  <eblake@redhat.com>
10788         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
10789         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
10790         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
10791         different value.
10793 2006-11-12  Pedro Alves  <palves@redhat.com>
10795         Fix gnulib C++ namespace support and std::frexp
10796         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
10797         _GL_CXXALIASWARN.
10799 2006-11-12  Pedro Alves  <palves@redhat.com>
10801         GNULIB_NAMESPACE::func need not pull in rpl_func
10802         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10803         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
10804         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
10805         struct instead of a function pointer.
10807 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
10809         manywarnings: fix -Wno-missing-field-initializers detection
10810         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
10811         to be independent of -Wunused-variable.  I.E. ensure the latter
10812         warning doesn't occur so that detection of the former is accurate.
10814 2016-11-05  Pádraig Brady  <pbrady@fb.com>
10816         strftime,strptime: support %q to represent the quarter
10817         * lib/strftime.c (strftime_case_): Add %q case.
10818         * lib/strptime.c (__strptime_internal): Likewise.
10819         * tests/test-strftime.c (quarter_test): A new test case.
10821 2016-11-03  Eric Blake  <eblake@redhat.com>
10823         bootstrap: Fix get_version() for AIX 5.3
10824         * build-aux/bootstrap (get_version): Factor out sed script, since
10825         indented comments choke AIX 5.3 sed.
10826         Reported-by: Michael Felt <aixtools@gmail.com>
10828 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10830         intprops: port to older XL C
10831         Problem reported by Alexander Samoilov in:
10832         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
10833         http://savannah.nongnu.org/bugs/?49448
10834         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
10835         Define to 1 only for XL C 12.1 or later, since this bug
10836         occurs in XL C for AIX 6.0 but not in 12.1.
10838 2016-11-02  Pádraig Brady  <P@draigBrady.com>
10840         backupfile: initialize default suffix within the implementation
10841         * lib/backupfile.c (find_backup_file_name): Initialize the
10842         global variable here, to simplify usage, and to only call
10843         getenv() when needed.
10845 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10847         futimens: remove FIXME for old Linux kernels
10848         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
10849         this in 2012" FIXME, like that for utimensat.
10851         utimensat: remove FIXME for old Linux kernels
10852         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
10853         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
10854         this in 2012" FIXME, by assuming the file system bug is absent
10855         unless demonstrated to be present.  We no longer need to worry
10856         about Linux kernel 2.6.32 when building with newer kernels.
10858 2016-10-16  Bruno Haible  <bruno@clisp.org>
10860         qsort_r: Fix macrology for platforms that lack the function.
10861         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
10862         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
10863         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
10864         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
10865         not exist.
10866         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
10867         the function exists.
10868         * modules/qsort_r: Add comments.
10870 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10872         sys_types: fix Texinfo typos
10873         * doc/glibc-functions/gnu_dev_major.texi:
10874         * doc/glibc-functions/gnu_dev_makedev.texi:
10875         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
10877 2016-10-26  John David Anglin  <dave.anglin@bell.net>
10879         getprogname: port to HP-UX
10880         See Bug#24805.
10881         * lib/getprogname.c (getprogname) [__hpux]: Port.
10882         * tests/test-getprogname.c (STREQ) [__hpux]:
10883         Special-case for HP-UX limitations on program name length.
10885 2016-10-20  Bruno Haible  <bruno@clisp.org>
10887         Update doc about target platforms.
10888         * doc/gnulib-intro.texi (Target Platforms): Update list.
10890 2016-10-15  Bruno Haible  <bruno@clisp.org>
10892         opendir, readdir, closedir: Relicense under LGPLv2+.
10893         * modules/opendir (License): Change to LGPLv2+.
10894         * modules/readdir (License): Likewise.
10895         * modules/closedir (License): Likewise.
10897 2016-10-16  Bruno Haible  <bruno@clisp.org>
10899         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
10900         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
10901         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
10902         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
10903         HAVE_DECL_STRERROR_R.
10905 2016-10-16  Bruno Haible  <bruno@clisp.org>
10907         Make the 'argp' module work without the 'error' module.
10908         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
10910 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10912         diffseq: restore TOO_EXPENSIVE heuristic
10913         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
10914         (Bug#24715).  The simplest solution is to restore the
10915         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
10916         using a higher threshold to avoid Bug#16848 on smaller files.
10917         * lib/diffseq.h (struct context): Restore member too_expensive.
10918         (struct partition): Restore members lo_minimal, hi_minimal.
10919         (diag, compareseq): Restore arg find_minimal.  All uses changed.
10920         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
10921         1993 to make 'diff' run faster (but not as well) on large inputs,
10922         but use a threshold of 4096 instead of the old 256.
10923         * lib/fstrcmp.c (strcmp_bounded):
10924         * lib/git-merge-changelog.c (compute_differences):
10925         Adjust to diffseq.h changes.
10927 2016-10-22  Bruno Haible  <bruno@clisp.org>
10929         iconv: Avoid compilation error when bootstrapping GNU libiconv.
10930         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
10931         declaration yet, define ICONV_CONST to empty.
10933 2016-10-15  Bruno Haible  <bruno@clisp.org>
10935         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
10936         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
10937         module.
10939 2016-10-16  Bruno Haible  <bruno@clisp.org>
10941         system-quote tests: Avoid compiler warning on AIX.
10942         * tests/test-system-quote-child.c (fopen): Redefine like the system's
10943         <stdio.h> does.
10945 2016-10-16  Bruno Haible  <bruno@clisp.org>
10947         Fix some "gcc -Wall" warnings.
10948         * tests/test-ffsl.c (main): Use variable x, not i.
10949         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
10950         freopen.
10951         * tests/test-sethostname1.c (main): Explicitly ignore the return value
10952         of sethostname.
10954 2016-10-16  Bruno Haible  <bruno@clisp.org>
10956         gnulib-tool: Make --create-testdir on all modules work again.
10957         * gnulib-tool (func_create_testdir): Don't include the
10958         non-recursive-gnulib-prefix-hack module.
10960 2016-10-21  Daiki Ueno  <ueno@gnu.org>
10962         libunistring: change the maintainer to 'all'
10963         * modules/gen-uni-tables, modules/libunistring:
10964         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
10965         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
10966         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
10967         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
10968         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
10969         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
10970         * modules/uniwidth/*: Change the maintainer to 'all'.
10972 2016-10-16  Bruno Haible  <bruno@clisp.org>
10974         Simplify "configure: checking ..." messages.
10975         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
10976         AC_MSG_NOTICE.
10977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10979 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10981         quotearg-tests: pacify gcc -Wall
10982         Problem reported by Bruno Haible in:
10983         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
10984         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
10985         * tests/test-quotearg.h: ... from here.
10987 2016-10-20  Pádraig Brady  <P@draigBrady.com>
10989         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
10990         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
10991         Needed on Centos <= 4.
10993 2016-10-20  Jim Meyering  <meyering@fb.com>
10995         printf.m4: fix a bug in detecting printf %j support
10996         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
10997         uintmax_t is defined in neither stdint.h nor inttypes.h.
10998         Before, this macro might have mistakenly set
10999         gl_cv_func_printf_sizes_c99=yes on such a system.
11000         Spotted by Zev Weiss.
11002 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11004         sched: substitute HAVE_SYS_CDEFS_H too
11005         Problem reported by Tom G. Christensen in:
11006         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
11007         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
11008         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
11010 2016-10-19  Pádraig Brady  <P@draigBrady.com>
11012         quotearg: never write beyond the returned length
11013         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
11014         scan of the string when we initially encounter a single quote when
11015         shell quoting, so that if we then switch to a more concise quoting method
11016         we will not have written beyond that returned length.
11017         This is significant for sh-quote, which has separate routines
11018         to determine the length and do the actual quoting.
11019         * tests/test-quotearg.h: Reinstate the buffer bounds checking
11020         now that we never write more than the returned length.
11022 2016-10-18  Bruno Haible  <bruno@clisp.org>
11024         getprogname tests: Avoid failure in packages that use libtool.
11025         * tests/test-getprogname.c (main): Strip "lt-" prefix.
11026         Based on a patch by Jim Meyering.
11028 2016-10-16  Bruno Haible  <bruno@clisp.org>
11030         getprogname: Fix test failure on Cygwin. Comments.
11031         * lib/getprogname.h: Add comments.
11032         * lib/getprogname.c: Add comments. Fix #elif indentation.
11033         * tests/test-getprogname.c (main): On Cygwin, expect a result without
11034         ".exe" suffix.
11036 2016-10-16  Bruno Haible  <bruno@clisp.org>
11038         Make sure the libunistring detection rejects older versions with a
11039         known bug.
11040         * modules/unistr/u8-strtok (configure.ac): Bump required version.
11041         * modules/unistr/u16-strtok (configure.ac): Likewise.
11042         * modules/unistr/u32-strtok (configure.ac): Likewise.
11044 2016-10-18  Bruno Haible  <bruno@clisp.org>
11046         sh-quote, system-quote: revert regression of unit test.
11047         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
11048         * tests/test-system-quote-main.c (check_one): Likewise.
11050 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11052         quotearg: fix stale tests
11053         * tests/test-quotearg.c [locale_results]: Add the missing str7
11054         entries to the expected results.
11055         * tests/test-system-quote-main.c (check_one): Don't enforce that we
11056         don't write beyond the returned length, since that's no longer the
11057         case if we switch to a more concise quoting style.
11058         * tests/test-sh-quote.c (check_one): Likewise.
11059         (main): Adjust for the new more concise quoting style.
11060         Reported by Bruno Haible.
11062 2016-10-16  Jim Meyering  <meyering@fb.com>
11064         non-recursive-gnulib-prefix-hack: fix inconsequential typo
11065         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
11066         to "$1".  This macro is always invoked with $1 == lib.
11067         Spotted by Bruno Haible
11069 2016-10-16  Bruno Haible  <bruno@clisp.org>
11071         Fix a test crash.
11072         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
11073         fails.
11075 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11077         test-limits-h: suppress -Woverlength-strings
11078         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
11080 2016-10-15  Bruno Haible  <bruno@clisp.org>
11082         gettime, timespec, utimens: Relicense under LGPL.
11083         * modules/gettime (License): Change to LGPL.
11084         * modules/timespec (License): Likewise.
11085         * modules/utimens (License): Likewise.
11087 2016-10-14  Bruno Haible  <bruno@clisp.org>
11088             Pádraig Brady  <P@draigBrady.com>
11090         canonicalize-lgpl: Support the case path_max > INT_MAX.
11091         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
11092         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
11094 2016-10-13  Jim Meyering  <meyering@fb.com>
11096         getprogname: IBM z/OS: avoid NULL-dereference
11097         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
11098         upon strdup failure.
11100 2016-10-12  Jim Meyering  <meyering@fb.com>
11102         test-stdint: use _GL_VERIFY rather than "verify" for some tests
11103         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
11104         and an abbreviated diagnostic rather than verify with the full one,
11105         because the full-length strings would evoke warnings from gcc with
11106         -Woverlength-strings.
11108 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11110         stdint: port SIZE_MAX to glibc s390
11111         Problem reported by Eric Blake in:
11112         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
11113         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
11114         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
11115         correct type, if possible.
11117 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
11119         getprogname: port to IBM z/OS
11120         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
11122 2016-10-11  Jim Meyering  <meyering@fb.com>
11124         maint: remove stray space after "." in AC_DEFINE comment.
11125         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
11126         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11128 2016-10-05  Jim Meyering  <meyering@fb.com>
11130         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11131         * lib/long-options.c (parse_long_options): Add a break statement
11132         to avoid this new warning/failure:
11133         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11134           --create-testdir --dir=/t/x --with-tests --test long-options
11135         ../../gllib/long-options.c: In function 'parse_long_options':
11136         ../../gllib/long-options.c:66:12: error: this statement may \
11137           fall through [-Werror=implicit-fallthrough]
11138                    (*usage_func) (EXIT_SUCCESS);
11139                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11141 2016-10-05  Jim Meyering  <meyering@fb.com>
11143         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11144         Testing this module would fail when using GCC 7 like this:
11145         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11146           --dir=/tmp/x --with-tests --test utimecmp
11147         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11148         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11149           [-Werror=bool-operation]
11150                          time_t s = src_s & ~ (res == 2 * BILLION);
11151                                             ^
11152         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11153           [-Werror=bool-operation]
11154                src_s &= ~ (res == 2 * BILLION);
11155                         ^
11156         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11157         Instead, make it explicit that we intend to apply it to 0 or 1.
11159 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11161         dfa: save memory for states
11162         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
11163         states if dfa has a lot of caches.
11165 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
11167         wchar, wctype-h: fix for MinGW 3.22.2
11168         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
11169         special invocation, to fix issues with MinGW 3.22.2 wchar.h
11170         when included from <string.h>.
11171         * lib/wctype.in.h [__MINGW32__]: Add special invocation
11172         convention for MinGW 3.22.2, to solve issues with their
11173         wctype.h when included from <ctype.h>.
11175 2016-10-05  Jim Meyering  <meyering@fb.com>
11177         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11178         * lib/long-options.c (parse_long_options): Add a break statement
11179         to avoid this new warning/failure:
11180         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11181           --create-testdir --dir=/t/x --with-tests --test long-options
11182         ../../gllib/long-options.c: In function ‘parse_long_options’:
11183         ../../gllib/long-options.c:66:12: error: this statement may \
11184           fall through [-Werror=implicit-fallthrough]
11185                    (*usage_func) (EXIT_SUCCESS);
11186                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11188         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11189         Testing this module would fail when using GCC 7 like this:
11190         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11191           --dir=/tmp/x --with-tests --test utimecmp
11192         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11193         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11194           [-Werror=bool-operation]
11195                          time_t s = src_s & ~ (res == 2 * BILLION);
11196                                             ^
11197         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11198           [-Werror=bool-operation]
11199                src_s &= ~ (res == 2 * BILLION);
11200                         ^
11201         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11202         Instead, make it explicit that we intend to apply it to 0 or 1.
11204 2016-10-03  Pádraig Brady  <P@draigBrady.com>
11206         quotearg: minimize shell quoting using double quotes
11207         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
11208         quote in encountered then use double quotes (c style quoting)
11209         when possible, as it simplifies the quoting.
11210         * tests/test-quotearg-simple.c: Add test cases.
11211         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
11212         for the fact we now may write beyond the returned length.
11214 2016-10-02  Jim Meyering  <meyering@fb.com>
11216         vasnprintf.c: avoid spurious warning from GCC 7
11217         The presence of cpp directives renders this "FALLTHROUGH" comment
11218         ineffective, so does not suppress the -Wimplicit-fallthrough warning
11219         from GCC 7 built from git on 2016-10-02.
11220         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
11221         directives, so that it takes effect once again.  This is clearly
11222         not a proper change, and I will revert it once this bug is fixed:
11223         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
11225 2016-10-01  Jim Meyering  <meyering@fb.com>
11227         getprogname: correct the test for a __progname variable
11228         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
11229         and AC_LINK_IFELSE to check for a global __progname.  If found,
11230         define HAVE_VAR___PROGNAME.
11231         * lib/getprogname.c (getprogname): Reflect the new name of the
11232         feature- checked preprocessor symbol:
11233         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
11235 2016-09-28  Jim Meyering  <meyering@fb.com>
11237         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
11238         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
11239         fall-through case with a /* fallthrough */ comment.
11241         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
11242         * lib/dfa.c (dfassbuild): Mark the end of this case with a
11243         /* fallthrough */ comment.
11245         getprogname: avoid __progname vs program_invocation_short_name pitfall
11246         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
11247         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
11248         not with Fedora 24's glibc-2.23.1-10.
11249         * lib/getprogname.c (__progname): Move this declaration down...
11250         (getprogname): ... into the #elif block where used, and make it
11251         explicitly "extern".
11253         getprogname: port to OpenBSD 5.1
11254         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
11255         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
11256         * modules/getprogname (configure.ac): Move most of this code...
11257         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
11258         increment serial number, and add a test for __progname.
11259         https://bugs.gnu.org/24562
11260         Reported by Nelson H. F. Beebe.
11262 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11264         sched: port to GCC 6.2.1 on macOS Sierra
11265         Problem reported by Denis Davydov in:
11266         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
11267         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
11268         Include <sys/cdefs.h> before <sched.h>.
11269         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
11270         so that we needn’t worry about the sched.h include bug here.
11271         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
11272         and include it before <sched.h> if it exists, when
11273         checking for <sched.h>.
11275         tests/init.sh: port Alpine fix to AIX 7.1
11276         * tests/init.sh (compare_): When attempting to use diff -U3,
11277         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
11278         diff -u not outputting a space after leading '+', as the users
11279         of 'compare' should not be that picky about its output format.
11280         In the AIX 7.1 case, return with diff exit status (or with 2 if
11281         trouble), instead of some random nonzero exit status.
11282         * tests/test-init.sh (test_compare): Remove space after leading
11283         '+', so that AIX 7.1 'diff' passes the test.
11285 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11287         nl_langinfo: pacify GCC
11288         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
11289         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
11291         stdint: also set GL_GENERATE_LIMITS_H
11292         Problem reported by Jim Meyering in:
11293         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11294         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11296         limits-h, stdint: Don't assume extensions, fix typo
11297         * m4/limits-h.m4 (gl_LIMITS_H):
11298         * m4/stdint.m4 (gl_STDINT_H):
11299         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11300         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11301         reported by Jim Meyering in:
11302         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11304 2016-09-21  Jim Meyering  <meyering@fb.com>
11306         getprogname: port to AIX
11307         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11308         and strdup to obtain a short program name string.  Using code from
11309         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11310         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11311         Assaf Gordon reported that this new file would fail to compile on
11312         AIX-7.1 32bit.
11314 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11316         extensions: fix typo in comment
11317         * m4/extensions.m4: Sync from Autoconf master.
11319         stdint: support new _WIDTH macros
11320         * doc/posix-headers/stdint.texi: Document this.
11321         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11322         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11323         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11324         * modules/stdint (Depends-on): Add limits-h.
11325         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11326         * modules/stdint-tests (Depends-on): Add extensions, so that
11327         INTMAX_MAX etc. are defined.
11328         * tests/test-stdint.c: Verify the new macros.
11330         limits-h: new module
11331         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11332         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11333         * doc/posix-headers/limits.texi: Document new module.
11334         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11335         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11337         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11338         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11339         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11340         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11342 2016-09-15  Eric Blake  <eblake@redhat.com>
11344         sys_types: avoid glibc 2.25 warnings about major()
11345         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11346         older autoconf.
11347         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11348         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11349         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11350         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11352         mountlist: include sysmacros.h for glibc
11353         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11354         AC_HEADER_MAJOR.
11355         * lib/mountlist.c (includes): Use correct headers.
11357 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11359         extensions: port to more ISO C TSes
11360         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11361         master, to add support for more recent ISO C TRs and TSes.
11363 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11365         intprops: new macro TYPE_WIDTH
11366         * lib/intprops.h (TYPE_WIDTH): New macro.
11367         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11368         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11369         * lib/parse-datetime.y (parse_datetime2):
11370         Use it.
11372         extensions: port to recent ISO C TRs
11373         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11374         Sync from Autoconf master, to add support for recent ISO C TRs.
11375         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11376         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11377         the MinGW option is not an extension.
11379 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11381         dfa: port to Solaris 9
11382         Problems reported by Tom G. Christensen in:
11383         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11384         * modules/dfa (Depends-on): Add isblank.
11385         * modules/dfa-tests (dfa_match_aux_LDADD):
11386         Rename from test_stat_LDADD, to fix typo.
11387         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11389 2016-09-10  Jim Meyering  <meyering@fb.com>
11391         strverscmp: avoid link failure on OS X
11392         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11393         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11395 2016-08-16  Jim Meyering  <meyering@fb.com>
11397         dfa: new module, importing grep's DFA matcher
11398         Since grep's DFA matcher is now being used by two gnulib-enabled
11399         projects, grep and sed, it makes sense to version-control its
11400         sources and unit tests in one place: here.
11401         * modules/dfa: New module.
11402         * modules/dfa-tests: New file.
11403         * lib/dfa.c: New file, from grep.
11404         * lib/dfa.h: Likewise.
11405         * lib/localeinfo.c: Likewise.
11406         * lib/localeinfo.h: Likewise.
11407         * tests/dfa-match-aux.c: Likewise.
11408         * tests/dfa-invalid-char-class.sh: Likewise.
11409         * tests/dfa-match.sh: Likewise, with minor changes.
11410         * MODULES.html.sh (Misc): Add "dfa" to this list.
11412 2016-09-09  Jim Meyering  <meyering@fb.com>
11414         getprogname-tests: don't depend on assert-h
11415         * modules/getprogname-tests (Depends-on): Remove assert-h.
11416         It was not needed, and in fact would cause build failure for
11417         coreutils on some systems.  Reported by Assaf Gordon in https:
11418         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11420 2016-09-07  Jim Meyering  <meyering@fb.com>
11422         getprogname-tests: work also when EXEEXT is nonempty
11423         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11424         * tests/test-getprogname.c (main): Use it.
11425         Suggested by Gisle Vanem.
11427 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11429         getprogname: fix errors in previous change
11430         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11431         s/program_invocation_name/base/
11432         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11434 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11436         parse-datetime: restrict debug output to input string
11437         * lib/parse-datetime.y (parse_datetime2): If we parse
11438         all of the input but determine it's invalid, ensure
11439         we don't output the now invalid input pointer.
11440         This issue was seen with `date -d 'now +1'`.
11442 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11444         flexmember: new macro FLEXALIGNOF
11445         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11446         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11447         this macro.  Update comments.
11449 2016-09-07  Jim Meyering  <meyering@fb.com>
11451         getprogname: port to systems with __argv (mingw, msvc)
11452         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11453         last_component: more general than open coding it with hard-coded "/".
11454         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11455         * modules/getprogname (Depends-on): Add dirname-lgpl.
11456         (configure.ac): Check for __argv in <stdlib.h>.
11457         * modules/getprogname-tests: New file.
11458         * tests/test-getprogname.c: New file.
11459         Suggested by Gisle Vanem in
11460         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11462 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11464         flexmember: port better to GCC + valgrind
11465         With a char[] flexible array member in a struct with nontrivial
11466         alignment, GCC-generated code can access past the end of the
11467         array, because GCC assumes there are padding bytes to get the
11468         struct aligned.  So the common idiom of malloc (offsetof (struct
11469         s, m), n) does not properly allocate an n-byte trailing member, as
11470         malloc’s argument should be the next multiple of alignof (struct s).
11471         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11472         Although C11 apparently permits this GCC optimization (i.e., there
11473         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11474         See the thread containing:
11475         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11476         * lib/flexmember.h: New file.
11477         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11478         * lib/localename.c, lib/time_rz.c:
11479         Include flexmember.h.
11480         * lib/fnmatch_loop.c (struct patternlist):
11481         * lib/localename.c (struct hash_node):
11482         Use FLEXIBLE_ARRAY_MEMBER.
11483         * lib/fnmatch_loop.c (EXT):
11484         * lib/fts.c (fts_alloc):
11485         * lib/glob.c (glob_in_dir):
11486         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11487         * lib/localename.c (gl_lock_define_initialized):
11488         * lib/time_rz.c (tzalloc):
11489         Use FLEXSIZEOF instead of offsetof.
11490         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11491         Check that the size of the struct can be taken.
11492         * modules/flexmember (Files): Add lib/flexmember.h.
11493         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11494         Add flexmember.
11496 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11498         getprogname: port to Solaris 10
11499         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11500         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11501         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11503         stdalign: correct mistake in alignof doc
11504         Problem reported by Joseph Myers in:
11505         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11506         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11507         alignof(S) where S is a structure containing a flexible array
11508         member.  The Gnulib substitute does not support this, but C11 does.
11510 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11512         main.mk: remove sc_program_name, since there is no more need to
11513         use set_program_name in tools (getprogname is enough for most
11514         of the cases).
11515         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11516         * top/maint.mk (sc_program_name): Remove.
11518 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11520         Port tests away from progname, since modules that need the
11521         program name already depend on getprogname.
11522         * modules/acl-tests (Depends-on): Remove progname.
11523         * modules/argmatch (Depends-on): Likewise.
11524         * modules/argmatch-tests (Depends-on): Likewise.
11525         * modules/argp-tests (Depends-on): Likewise.
11526         * modules/argp-version-etc-tests (Depends-on): Likewise.
11527         * modules/array-list-tests (Depends-on): Likewise.
11528         * modules/array-oset-tests (Depends-on): Likewise.
11529         * modules/avltree-list-tests (Depends-on): Likewise.
11530         * modules/avltree-oset-tests (Depends-on): Likewise.
11531         * modules/avltreehash-list-tests (Depends-on): Likewise.
11532         * modules/carray-list-tests (Depends-on): Likewise.
11533         * modules/copy-file-tests (Depends-on): Likewise.
11534         * modules/exclude-tests (Depends-on): Likewise.
11535         * modules/fchownat-tests (Depends-on): Likewise.
11536         * modules/fdopendir-tests (Depends-on): Likewise.
11537         * modules/filenamecat-tests (Depends-on): Likewise.
11538         * modules/fstatat-tests (Depends-on): Likewise.
11539         * modules/fstrcmp-tests (Depends-on): Likewise.
11540         * modules/linked-list-tests (Depends-on): Likewise.
11541         * modules/linkedhash-list-tests (Depends-on): Likewise.
11542         * modules/mkdirat-tests (Depends-on): Likewise.
11543         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
11544         * modules/nonblocking-socket-tests (Depends-on): Likewise.
11545         * modules/obstack-printf-tests (Depends-on): Likewise.
11546         * modules/openat-tests (Depends-on): Likewise.
11547         * modules/parse-datetime-tests (Depends-on): Likewise.
11548         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
11549         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
11550         * modules/quotearg-simple-tests (Depends-on): Likewise.
11551         * modules/quotearg-tests (Depends-on): Likewise.
11552         * modules/rbtree-list-tests (Depends-on): Likewise.
11553         * modules/rbtree-oset-tests (Depends-on): Likewise.
11554         * modules/rbtreehash-list-tests (Depends-on): Likewise.
11555         * modules/spawn-pipe-tests (Depends-on): Likewise.
11556         * modules/system-quote-tests (Depends-on): Likewise.
11557         * modules/uniname/uniname-tests (Depends-on): Likewise.
11558         * modules/uninorm/nfc-tests (Depends-on): Likewise.
11559         * modules/uninorm/nfd-tests (Depends-on): Likewise.
11560         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
11561         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
11562         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
11563         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
11564         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
11565         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
11566         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
11567         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
11568         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
11569         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
11570         * modules/unlinkat-tests (Depends-on): Likewise.
11571         * modules/version-etc-tests (Depends-on): Likewise.
11572         * modules/xalloc-die-tests (Depends-on): Likewise.
11573         * modules/xmemdup0-tests (Depends-on): Likewise.
11574         * modules/xprintf-posix-tests (Depends-on): Likewise.
11575         * modules/xvasprintf-tests (Depends-on): Likewise.
11576         * tests/test-argmatch.c: Do not include progname.h.
11577         (main) Stop calling set_program_name.
11578         * tests/test-argp-version-etc.c: Likewise.
11579         * tests/test-argp.c: Likewise.
11580         * tests/test-argv-iter.c: Likewise.
11581         * tests/test-array_list.c: Likewise.
11582         * tests/test-array_oset.c: Likewise.
11583         * tests/test-avltree_list.c: Likewise.
11584         * tests/test-avltree_oset.c: Likewise.
11585         * tests/test-avltreehash_list.c: Likewise.
11586         * tests/test-carray_list.c: Likewise.
11587         * tests/test-copy-acl.c: Likewise.
11588         * tests/test-copy-file.c: Likewise.
11589         * tests/test-exclude.c: Likewise.
11590         * tests/test-fchownat.c: Likewise.
11591         * tests/test-fdopendir.c: Likewise.
11592         * tests/test-filenamecat.c: Likewise.
11593         * tests/test-fstatat.c: Likewise.
11594         * tests/test-fstrcmp.c: Likewise.
11595         * tests/test-linked_list.c: Likewise.
11596         * tests/test-linkedhash_list.c: Likewise.
11597         * tests/test-mkdirat.c: Likewise.
11598         * tests/test-nonblocking-pipe-main.c: Likewise.
11599         * tests/test-nonblocking-socket-main.c: Likewise.
11600         * tests/test-obstack-printf.c: Likewise.
11601         * tests/test-openat.c: Likewise.
11602         * tests/test-parse-datetime.c: Likewise.
11603         * tests/test-pipe-filter-gi1.c: Likewise.
11604         * tests/test-pipe-filter-gi2-main.c: Likewise.
11605         * tests/test-pipe-filter-ii1.c: Likewise.
11606         * tests/test-pipe-filter-ii2-main.c: Likewise.
11607         * tests/test-quotearg-simple.c: Likewise.
11608         * tests/test-quotearg.c: Likewise.
11609         * tests/test-rbtree_list.c: Likewise.
11610         * tests/test-rbtree_oset.c: Likewise.
11611         * tests/test-rbtreehash_list.c: Likewise.
11612         * tests/test-sameacls.c: Likewise.
11613         * tests/test-set-mode-acl.c: Likewise.
11614         * tests/test-spawn-pipe-main.c: Likewise.
11615         * tests/test-system-quote-main.c: Likewise.
11616         * tests/test-unlinkat.c: Likewise.
11617         * tests/test-version-etc.c: Likewise.
11618         * tests/test-xalloc-die.c: Likewise.
11619         * tests/test-xfprintf-posix.c: Likewise.
11620         * tests/test-xmemdup0.c: Likewise.
11621         * tests/test-xprintf-posix.c: Likewise.
11622         * tests/test-xvasprintf.c: Likewise.
11623         * tests/uniname/test-uninames.c: Likewise.
11624         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11625         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11626         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11627         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11628         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11629         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11630         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11631         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11632         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11633         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11634         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11635         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11636         * tests/test-c-stack.c: (program_name): Do not define.
11637         (main): Do not set program_name.
11638         * tests/test-closein.c: Likewise.
11639         * tests/test-xstrtol.c: Likewise.
11640         * tests/test-yesno.c: Likewise.
11642 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11644         Port modules to use getprogname explicitly, instead of requiring
11645         progname to be used (or program_name to be provided).
11646         * lib/argmatch.c: Do not include progname.h.
11647         [TEST] (program_name): Do not define.
11648         [TEST] (main): Call getprogname instead of using program_name.
11649         * lib/c-stack.c: Do not include progname.h.
11650         (program_name): Do not define.
11651         (die): Call getprogname instead of using program_name.
11652         * lib/chdir-long.c: Do not include progname.h.
11653         [TEST_CHDIR] (main): Do not set program_name.
11654         * lib/error.c [!_LIBC]: Include progname.h.
11655         [!_LIBC] (program_name): Define using getprogname.
11656         * lib/euidaccess.c: Do not include progname.h.
11657         [TEST] (main): Do not set program_name.
11658         * lib/git-merge-changelog.c: Include getprogname.h instead of
11659         progname.h.
11660         (usage): Call getprogname instead of using program_name.
11661         (main): Likewise.  Stop calling set_program_name.
11662         * lib/group-member.c: Do not include progname.h.
11663         [TEST] (main): Do not set program_name.
11664         * modules/argmatch (Depends-on): Add getprogname.
11665         * modules/c-stack (Depends-on): Likewise.
11666         * modules/error (Depends-on): Likewise.
11667         * modules/git-merge-changelog (Depends-on): Likewise.
11668         Also remove progname.
11670 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
11672         * NEWS: Document the deprecation of the 'progname' module.
11674 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11676         getprogname: new module
11677         This provides a LGPL module for getting the name of the current
11678         program, using the same API found on *BSD systems.
11679         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
11680         * modules/getprogname: New files.
11681         * MODULES.html.sh (Misc): Add getprogname.
11683 2016-09-02  Jim Meyering  <meyering@fb.com>
11685         manywarnings: add -fno-common
11686         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
11687         to the list.  Quoting the manual, "Compiling with -fno-common is
11688         useful on targets for which it provides better performance, or if
11689         you wish to verify that the program will work on other systems that
11690         always treat uninitialized variable declarations this way [putting
11691         it in the data section]."  If diffutils had been using this sooner,
11692         it would have prevented this duplicate declaration issue:
11693         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
11695 2016-08-31  Simon Josefsson  <simon@josefsson.org>
11697         parse-datetime: Fix typo.
11698         * lib/parse-datetime.y (parse_datetime2): Fix typo.
11700 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11702         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
11703         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
11704         GCC 5 and 6 that have __builtin_sub_overflow but not
11705         __builtin_sub_overflow_p.  With the recent changes, these
11706         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
11707         implementation than with INT_SUBTRACT_OVERFLOW implementation,
11708         since the former needs just one runtime comparison whereas the
11709         latter needs two.
11711         strverscmp: sync with glibc
11712         Although this doesn't exactly synchronize with glibc
11713         byte-for-byte, it makes the code behave the same as glibc.
11714         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
11715         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
11716         difference shouldn't matter in practical use.  All uses changed
11717         back to isdigit.
11718         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
11719         (next_state): Now unsigned char array; redo elements.
11720         (result_type): Now signed char array; redo elements.
11721         (__strverscmp): Fix glibc bug 9913 by using new states.
11722         * tests/test-strverscmp.c (main): Test glibc bug 9913.
11724 2016-08-29  Jim Meyering  <meyering@fb.com>
11726         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
11727         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
11728         similarly to how it was done to intprops.h.
11730 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11732         intprops.h: port recent changes to GCC 6.2.0
11733         * lib/intprops.h (__has_builtin): Move earlier.
11734         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
11735         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
11736         the last argument can be null.  All uses changed.
11737         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
11738         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11739         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
11740         and it's not clear which GCC versions it works for.
11741         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
11742         its definiens.
11744         intprops.h: use __typeof__ with GCC 7
11745         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
11746         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
11747         This avoids computing the expression's value (which might overflow!).
11749 2016-08-29  Jim Meyering  <meyering@fb.com>
11751         intprops.h, xalloc-oversized.h: work with gcc 7
11752         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
11753         __builtin_mul_overflow each accept a NULL pointer as the third
11754         argument.  However in gcc 7, that is no longer accepted.
11755         Instead, one must use the "_p"-suffixed names, with which, the
11756         third parameter is no longer a pointer.
11757         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
11758         the definition: not true for gcc 7 and subsequent.
11759         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
11760         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11761         Provide new definitions for gcc 7 and subsequent.
11762         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
11763         that works with gcc-7.
11765         intprops.h: fix missing-backslash problems
11766         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
11767         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
11769 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11771         intprops: fix paren typo on old platforms
11772         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
11773         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
11774         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
11775         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
11776         && !defined LLONG_MAX]:
11777         Remove stray paren.
11779         intprops: port to OpenVMS
11780         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
11781         * doc/posix-headers/limits.texi: Document the problem.
11782         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
11783         Define if not already defined.
11785 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
11787         parse-datetime: improve debug implementation
11788         Follow-up to commit 12ad79069 ("add optional debug printing").
11789         Improve parse-datetime's debug implementation: remove macros,
11790         replace global debug flag variable with a function parameter,
11791         use nstrftime for formatting.
11792         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
11793         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
11794         (parse_datetime2): New function, accepts 'flags' parameter, supporting
11795         debug flag. Existing interface 'parse_datetime' left unmodified.
11796         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
11797         (struct parser_control): add 'parse_datetime_debug' member variable.
11798         (parse_datetime): Call new function 'parse_datetime2' without debug.
11799         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
11800         pc.parse_datetime_debug variable as needed.
11801         (to_year): Accept new flags parameter, instead of using global variable.
11802         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
11803         use struct 'debug' variable instead of global variable.
11804         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
11805         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
11806         correspnding functions directly instead of using macros.
11807         * modules/parse-datetime: Add gnulib's strftime module.
11809 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
11811         c-strcase-tests: port to EBCDIC
11812         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
11813         which assume ASCII encoding semantics to run only in ASCII
11814         mode, as they fail in EBCDIC.
11816         sigpipe-tests: fix typo
11817         * tests/test-sigpipe.sh: C, not B.
11819 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11821         canonicalize-lgpl: fix errno after malloca fails
11822         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
11823         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
11824         * lib/canonicalize-lgpl.c (__realpath):
11825         Don't assume malloca sets errno on failure.
11827 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11829         strtod: port errno handling to z/OS
11830         * lib/strtod.c (strtod): Save and restore errno more reliably.
11832 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11834         strtod: port to z/OS
11835         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11836         implementation.
11838 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11840         strtod: port to z/OS
11841         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11842         implementation.
11844         regex, string: rename to avoid '__string'
11845         * lib/regex.h, lib/string.in.h: Do not use the identifier
11846         '__string', as it is effectively reserved by string.h on z/OS.
11848         c-strcase-tests, wcwidth-tests: depend on c-ctype
11849         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
11850         Add c-ctype.
11852 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11854         thread: port to z/OS
11855         * lib/glthread/thread.c, lib/glthread/thread.h:
11856         Rudimentary gl_thread support for z/OS.
11858         maint: port tests to z/OS errno behavior
11859         * tests/test-nonblocking-reader.h:
11860         * tests/test-nonblocking-writer.h:
11861         Accommodate z/OS errno code preferences. (I believe this should
11862         still be within spec; IBM is good at following the letter if not
11863         the spirit of such things.)
11865         maint: preprocessor changes to support z/OS
11866         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
11867         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
11868         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
11869         * tests/test-nonblocking-pipe.h:
11871         fclose, strstr-simple, wchar: port to z/OS
11872         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
11873         Changes to the Autoconf M4 code to support z/OS.  Note that
11874         fclose() is broken in a different way on z/OS than it is on other
11875         systems, thus the special-case in fclose.m4.
11877         iconv_open-utf-tests, iconv-tests: port to EBCDIC
11878         * tests/test-iconv-utf.c, tests/test-iconv.c:
11879         Added appropriately conditional #pragmas so that the test strings
11880         in test-iconv-utf.c are correctly interpreted in ASCII instead of
11881         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
11882         addressed in a more portable way by simply rewriting all the ASCII
11883         literal characters as octal escapes, but then you would lose the
11884         partial readability that the strings have now. Also, iconv_open()
11885         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
11887         c-strcase-tests, wcwidth-tests: port to EBCDIC
11888         * tests/test-c-strcasecmp.c: Include c-ctype.h.
11889         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
11890         * tests/test-wcwidth.c: Likewise.
11892 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11894         stdbool: don't require _Bool for C++
11895         Problem reported by David Seifert in:
11896         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
11897         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
11898         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
11899         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
11900         stricter about checking that bool and _Bool are compatible in C.
11902 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11904         getdelim: remove dependency on realloc-posix
11905         * lib/canonicalize-lgpl.c (alloc_failed)
11906         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
11907         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
11908         Use __set_errno where needed, for consistency.
11909         * lib/getdelim.c (alloc_failed): New function.
11910         (getdelim): Use it.
11912 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
11914         parse-datetime: add optional debug printing
11915         Print parsing information, warnings, and errors to stderr.
11916         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
11917         * lib/parse-datetime.y:
11918         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
11919         (PROGRESS*): Same as DEBUG, for progress reporting.
11920         (dbg_printf): Print message to stderr, with 'date' prefix.
11921         (struct parser_control): Add 'debug_*_seen' variables.
11922         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
11923         (debug_print_current_time, debug_print_relateive_time): Prints the
11924         current/relative date/time value of parser_control.
11925         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
11926         (to_year): Warn about 2-digit year parsing.
11927         (yylex):   Warn about unrecognized words.
11928         (get_effective_timezone): Returns current timezone in minutes.
11929         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
11930         clearly and unambigiously as possible.
11931         (debug_mktime_not_ok): Print detailed information about failed
11932         date/time values.
11933         (parse_datetime): Add DEBUG messages for failures, warnings. Add
11934         PROGRESS messages for status messages.
11935         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
11937 2016-08-06  Jim Meyering  <meyering@fb.com>
11939         tests/init.sh: exclude dash with bad "local" semantics
11940         * tests/init.sh (gl_shell_test_script_): Add a function to
11941         eliminate a shell like "dash" (unlike bash, zsh) that has
11942         surprising/risky "local var='...'" semantics.  Inspired by
11943         the problem and discussion in https://bugs.gnu.org/24116#11.
11945 2016-08-02  Ján Tomko  <jtomko@redhat.com>
11947         maint.mk: expand the prohibit_doubled_word regex
11948         This check has a static list of words that are checked for
11949         repetitions.  Expand it before running the perl script to
11950         avoid using expensive captures.  This decreases the cost
11951         for libvirt from 1.66s to 0.66s.
11952         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
11953         (sc_prohibit_doubled_word): Use it.
11955 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11957         useless-if-before-free: skip non-matching lines early
11958         * build-aux/useless-if-before-free: First match each line with the
11959         simple/quick /\bif\b/ and reject if there is no match. This often
11960         saves the cost of the much more involved regular expression.
11961         For libvirt, this decreases the cost from 1.44s to 1.02s.
11963 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11965         maint.mk: speed up sc_po_check
11966         sc_po_check would skip files based on their names, or on the
11967         existence of files with derived names. Rewrite it to use perl
11968         instead of shell to make the check faster.
11969         * top/maint.mk (perl_translatable_files_list_): Define.
11970         (sc_po_check): Use it.
11972 2016-07-30  Ján Tomko  <jtomko@redhat.com>
11974         maint.mk: speed up require_config_h_first
11975         Instead of spawning three processes per file,
11976         rewrite the check in perl and run it once for all the files.
11977         * top/maint.mk (perl_config_h_first_): Define.
11978         (sc_require_config_h_first): Use it in place of shell code.
11980 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11982         maint.mk: speed up sc_po_check
11983         sc_po_check would skip files based on their names, or on the
11984         existence of files with derived names. Rewrite it to use perl
11985         instead of shell to make the check faster.
11986         * top/maint.mk (perl_translatable_files_list_): Define.
11987         (sc_po_check): Use it.
11989 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11991         obstack: pacify GCC 6 with -Wnull-dereference
11992         Problem reported by Assaf Gordon in:
11993         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
11994         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
11995         Declare with __attribute_noreturn__.
11996         * lib/obstack.h (__attribute_noreturn__): New macro.
11998 2016-07-13  Eric Blake  <eblake@redhat.com>
12000         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
12001         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
12002         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
12004 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12006         doc: mention glibc SSIZE_MAX buglet
12007         * doc/posix-headers/limits.texi (limits.h): Document the bug.
12009 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
12011         printf-posix: Fix mingw build
12012         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
12013         expression for detecting C symbol prefixes but forgot to qoute square
12014         brackets in the command line arguments for grep.  That way when
12015         building with mingw the condition was false although it ought to be
12016         true instead.  In particular scenarios this led to the following
12017         compile error:
12019             Cannot export rpl_printf: symbol not found
12020             Cannot export rpl_scanf: symbol not found
12021             collect2: error: ld returned 1 exit status
12023         Fix this by properly quoting square brackets.
12025 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12027         mktime: call tzset as per POSIX
12028         Problem reported by Ludovic Courtès in:
12029         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
12030         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
12031         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
12033 2016-06-26  Pádraig Brady  <P@draigBrady.com>
12035         fts: handle readdir() errors
12036         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
12037         but also upon error when it will also set errno.  Therefore
12038         flag the error case from readdir().  We treat the case where
12039         no items are read the same as if the dir can't be accessed,
12040         i.e. by setting fts_errno to FTS_DNR.
12042 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12044         intprops: port better to GCC 7
12045         GCC 7 __builtin_add_overflow supports a new usage form, where the
12046         last argument is a null pointer, and which merely returns 1 if an
12047         overflow would occur.  This is a constant expression if all
12048         arguments are constants, and should generate faster code when code
12049         needs to be generated.
12050         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
12051         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12052         Use builtin operations if available.
12053         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
12054         operations are available, as it's almost surely faster.
12056 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12058         intprops-test: port to GCC 6
12059         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
12060         since the bug is not fixed in GCC 6.1.
12062 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12064         xalloc-oversized: port to GCC 7; fewer warnings
12065         GCC 7 will have a better way to deal with integer overflow.
12066         Plus, fix a warnings problem reported by Tim Ruehsen in:
12067         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
12068         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
12069         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
12070         For GCC 5, use __xalloc_oversized if both args are constants,
12071         or if pedantic.
12073 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12075         regex: port to Sun C
12076         Reported by Daiki Ueno.
12077         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
12078         __restrict, in prototype.  This fixes a problem I introduced in
12079         the 2016-02-19 merge from glibc.
12081 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12083         stdbool: Restore __bool_true_false_are_defined check
12084         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
12085         __bool_true_false_are_defined is still defined, even with C++11.
12087 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
12089         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
12090         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
12092 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12094         Use GCC_LINT, not lint
12095         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
12096         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
12097         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12098         Document problem with lint and _Noreturn.
12099         * lib/diffseq.h (IF_LINT, IF_LINT2):
12100         * lib/fts.c (sccsid):
12101         * lib/getndelim2.c (IF_LINT):
12102         * lib/gl_anylinked_list2.h (gl_linked_iterator)
12103         (gl_linked_iterator_from_to):
12104         * lib/gl_anytree_list2.h (gl_tree_iterator)
12105         (gl_tree_iterator_from_to):
12106         * lib/gl_anytree_oset.h (gl_tree_iterator):
12107         * lib/gl_array_list.c (gl_array_iterator)
12108         (gl_array_iterator_from_to):
12109         * lib/gl_array_oset.c (gl_array_iterator):
12110         * lib/gl_carray_list.c (gl_carray_iterator)
12111         (gl_carray_iterator_from_to):
12112         * lib/idcache.c:
12113         * lib/inet_ntop.c (IF_LINT):
12114         * lib/regcomp.c (build_charclass_op, create_tree):
12115         * lib/regex_internal.c (re_acquire_state)
12116         (re_acquire_state_context):
12117         * lib/trigl.c (rcsid):
12118         * lib/trim.c (IF_LINT):
12119         * lib/vasnprintf.c (IF_LINT):
12120         * lib/verify.h (assume):
12121         Treat GCC_LINT like lint.
12123 2016-05-29  Bruno Haible  <bruno@clisp.org>
12125         secure_getenv: Port to many more platforms.
12126         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
12127         functions.
12128         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
12129         for non-BSD Unix platforms and for native Windows.
12130         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
12131         Prompted by a request from Nikos Mavrogiannopoulos.
12133 2016-05-27  Eric Blake  <eblake@redhat.com>
12135         canonicalize: Fix broken probe for realpath.
12136         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
12137         in logic introduced in 54615b95.
12139 2016-05-26  Eric Blake  <eblake@redhat.com>
12141         unsetenv: relax to LGPLv2+
12142         * modules/unsetenv (License): Match setenv license.
12144 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
12146         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
12147         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
12148         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
12149         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
12150         (commonarg, dirargs, dirs, infoarg, generate_ascii)
12151         (generate_html, generate_info, generate_tex, outdir)
12152         (source_extra, split, srcfile, texarg): Move above 'version'.
12153         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
12155 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12157         manywarnings: update for GCC 6.1
12158         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12159         Add GCC 6.1 options that apply to C.
12160         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
12161         do not apply to C, are obsolescent, etc.
12163 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
12165         glob: size_t overflow checks
12166         * lib/glob.c (__has_builtin): New macro.
12167         (size_add_wrapv, glob_use_alloca): New static functions.
12168         (glob, glob_in_dir): Check for size_t overflow in several places,
12169         and fix some size_t checks that were not quite right.
12171         glob: don't assume INT_MAX < SIZE_MAX
12172         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
12173         latter is not portable to (probably theoretical) hosts where
12174         SIZE_MAX <= INT_MAX.
12176 2016-05-09  Bruno Haible  <bruno@clisp.org>
12178         Fix undefined behaviour in gettext.h.
12179         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
12180         pointer's value after the storage it points to has been freed.
12181         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
12182         Spotted by Coverity.
12184 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12186         git-version-gen: avoid undefined shift
12187         Problem reported by Mosè Giordano in:
12188         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
12189         * build-aux/git-version-gen: Avoid undefined behavior if invoked
12190         with --prefix or --fallback but without a later argument.  While
12191         we're at it, omit unnecessary quotes.
12193 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
12195         glob: merge glibc changes into lib/glob.c
12196         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
12197         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
12198         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
12199           struct dirent [BZ #19779]
12200         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
12201           callback gl_readdir
12202         2015-10-20 Convert miscellaneous function definitions to prototype style
12203         2015-10-20 Convert 113 more function definitions to prototype style
12204           (files with assertions)
12205         2015-06-12 Fix getlogin_r namespace (bug 18527).
12206         2014-02-10 Use glibc_likely instead __builtin_expect.
12207         2013-10-20 When glob pattern contains a trailing slash match only
12208           directories. Fixes bug 10278.
12209         2013-09-04 glob: silence -Wattribute warnings
12210         2013-06-07 Avoid use of "register" as optimization hint.
12211         2012-09-25 Use size_t instead of int for internal variables in glob
12212           (bug 14621)
12213         2011-07-20 Check for overflows in expressions
12214         2011-05-28 Remove unused variable
12215         2011-05-22 Add a few more alloca size checks
12216         2010-03-27 Whitespace fixes
12217         2010-03-27 Fix one more issue with the glob patch
12218         2010-03-24 Fix glob with empty pattern
12219         2008-05-27 Remove useless more "if" tests before "free"
12220         * modules/glob (Depends-on): Add stdint.
12222 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12224         mktime: port to stricter signed overflow checking
12225         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
12226         (long_int): Require width for INT_MAX * 3 * (seconds per year),
12227         instead of merely for INT_MAX * 2.  In practice platforms that
12228         do the latter also do the former.
12229         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
12230         (shr): New static function, replacing SHR.  All uses changed.
12231         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
12232         and TIME_T_MAX.  All uses changed.
12233         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12234         Use long_int, not time_t.
12235         (long_int_avg): New static function, replacing time_t_avg.
12236         All uses changed.  Round toward positive infinity, as that
12237         generates slightly better code.
12238         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
12239         by INT_ADD_WRAPV.
12240         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
12241         (convert_time): New static function.
12242         (ranged_convert): Use it
12243         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
12244         Use simpler test for loop exit.
12245         (__mktime_internal): Store negative of guessed offset, to simplify
12246         overflow checking.  Remove no-longer-needed test for small time_t
12247         overflows.
12249         mktime: speed up DEBUG_MKTIME benchmarks
12250         Call tzset just once, at the start, rather than for every test
12251         case.  This lets us measure the CPU cost of mktime as opposed to
12252         that of tzset.  This is relevant when TZ is not set and glibc is
12253         being used.  This speeds up tests by a factor of 40 on my Fedora
12254         23 x86-64 platform.
12255         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
12256         to call tzset and as a sanity check.  Later on, use localtime_r
12257         instead of localtime.
12259         mktime: resurrect DEBUG_MKTIME testing
12260         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
12261         Include <string.h>, for strcmp.
12263         mktime: simplify DEBUG_MKTIME
12264         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
12265         Simplify later usage accordingly.
12267         Port mktime_internal offset to unsigned time_t
12268         This avoids some assumptions about wraparound arithmetic on
12269         signed integer overflow.
12270         * lib/mktime-internal.h (mktime_offset_t): New type.
12271         (mktime_internal): Use it in decl.
12272         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
12274         * lib/mktime.c (__mktime_internal, localtime_offset):
12275         * lib/timegm.c (timegm): Use it.
12276         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
12277         (gl_FUNC_MKTIME): Require it.
12279 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12281         xstrtol: prohibit monstrosities like "1bB"
12282         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
12283         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
12284         "B" only if the first suffix needs a base.
12285         * tests/test-xstrtol.sh: Test this.
12287 2016-04-21  Pádraig Brady  <P@draigBrady.com>
12289         xstrtod: reinstate setting of *result upon ERANGE
12290         * lib/xstrtod.c (XSTRTOD): The user may decide to use
12291         the returned limits upon ERANGE, so allow and document that.
12293 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12295         xstrtod: modify *result only if no errors
12296         * lib/xstrtod.c (XSTRTOD).
12298 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12300         btowc: document problems in C locale
12301         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12302         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12304 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12306         mktime: improve integer overflow checking
12307         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12308         (WRAPV): Remove; no longer needed.
12309         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12310         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12311         Remove.  Use intprops.h defns instead.
12312         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12313         Use bool for Boolean, for clarity.
12314         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12315         detect integer overflow.
12316         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12318         intprops: check two's complement assumption
12319         Suggested by Eric Blake in:
12320         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12321         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12322         short, int, long, and (if available) long long are two's complement.
12323         * modules/intprops (Depends-on): Add 'verify'.
12325         intprops, mktime, strtol: assume two's complement
12326         These macros were not portable to every conforming C11 ones'
12327         complement platform.  It's not worth the hassle of porting to some
12328         platforms that use ones' complement or signed magnitude, as such
12329         platforms are almost purely theoretical nowadays and porting even
12330         to some of them makes the code harder to review for little
12331         practical benefit.  Problem reported by Florian Weimer in:
12332         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12333         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12334         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12335         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12336         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12337         (TYPE_SIGNED_MAGNITUDE):
12338         Remove.  All uses rewritten to assume two's complement, which is
12339         all we can reasonably test nowadays anyway.
12340         * top/maint.mk (_intprops_names): Remove the removed macros.
12342 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12344         stdint: port to strict C11 left shift
12345         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12346         Pacify clang -Wshift-negative-value, which should be an issue only
12347         on clang setups where stdint.h does not conform to C11 or to C++11.
12348         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12350 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12352         mbrtowc: work around glibc bug#19932
12353         Fix mbrtowc so that it never returns -1 in the C locale,
12354         as this conflicts with a future version of POSIX
12355         http://austingroupbugs.net/view.php?id=663#c2738
12356         and causes problems with GNU grep: http://bugs.gnu.org/23234
12357         See glibc bug 19932:
12358         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12359         * doc/posix-functions/mbrlen.texi (mbrlen):
12360         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12361         Document the glibc bug.
12362         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12363         Include hard-locale.h, locale.h.
12364         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12365         if the bug is possible.
12366         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12367         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12368         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12369         * modules/mbrtowc (Depends-on): Add hard-locale.
12370         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12371         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12372         * tests/test-mbrtowc5.sh: New file.
12374 2016-04-03  Pedro Alves  <palves@redhat.com>
12376         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12377         When gnulib is configured in C++ mode for a system with a working C99
12378         implementation of stdint.h that predates C++11, gnulib ends up
12379         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12380         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12381         MinGW is LLP64.  Instead of trying to detect the right types, detect
12382         good-enough-pre-C++11 stdint.h and in such case define
12383         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12384         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12385         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12386         conforms to C99.  If it does, check whether it hides symbols
12387         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12388         does, define those macros in config.h.
12390 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12392         argp: merge changes from glibc
12393         Among other things, this should fix problems found by a Coverity
12394         scan and reported by Andrei Borzenkov:
12395         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12396         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12397         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12398         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12399         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12400         * lib/argp.h:
12401         Merge changes from glibc.
12402         * tests/test-argp-2.sh: Adjust to match new behavior.
12404 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12406         stddef: support configuring with g++
12407         Problem reported by Ángel González in:
12408         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12409         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12410         Do not define if _GCC_MAX_ALIGN_T is defined.
12412 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12414         test-framework-sh: minor cleanups
12415         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12416         since strictly speaking POSIX requires this.
12417         (setup_): Do not use the variable 'fail', as that makes the
12418         trace output harder to read ('fail' is typically used by
12419         tests to mean the test failed).  Treat // portably.
12420         Check that new directory is not merely a sibling of the tmp dir.
12421         Avoid unnecessary invocation of tr.
12423         test-framework-sh: revert port to NetBSD 7.0
12424         It was a false alarm; I misinterpreted Assaf Gordon's report.
12425         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12426         Restore.
12427         (test_dir_): Adjust to mktempd_ change.
12428         (mktempd_): Restore 2nd arg.  Use -t again.
12429         (base_template_, template_, nx_): Resurrect old code.
12431         Port better to Alpine Linux
12432         Its diff implementation does not support -c, but does support -U3.
12433         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12434         * tests/init.sh (diff_opt_): New var.
12435         (compare_): Prefer diff -U3 to diff -c to plain diff.
12437 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12439         test-framework-sh: port to NetBSD 7.0
12440         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12441         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12442         Remove.  All uses removed.
12443         (test_dir_): Adjust to mktempd_ change.
12444         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12445         (base_template_, template_, nx_): Simplify by hardcoding.
12447 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12449         gitlog-to-changelog: suppress ignored chatter
12450         * build-aux/gitlog-to-changelog: Do not warn about skipping
12451         an SHA if it would have been ignored anyway.
12453 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12455         setlocale: add "sv" to Windows language table
12456         * lib/setlocale.c (language_table) [W32]: Add "sv".
12457         Reported in <https://savannah.gnu.org/bugs/?44588>.
12459 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12461         sys_select: port to new Cygwin
12462         Problem reported by Ken Brown in:
12463         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12464         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12465         diagnostics.
12467 2016-03-17  Jim Meyering  <meyering@fb.com>
12469         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12470         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12471         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12472           test-userspec.c:176:9: error: statement is indented as if it were \
12473             guarded by... [-Werror=misleading-indentation]
12474                    {
12475                    ^
12476           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12477                  if (!diag && !T[i].result)
12478                  ^~
12480 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12482         time_rz: port to clang -Wunused-const-variable
12483         * lib/time_rz.c (TZ): Remove.  All uses removed.
12485         std-gnu11: improve clang support
12486         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12487         2016-03-15 Also try clang
12488         2016-03-15 Port C11 and C++11 testing to clang
12490         select: port more to Intel 2016.1.150 compiler
12491         Problem reported by Balázs Hajgató in:
12492         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12493         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12495 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12497         select: try to port to 2016.1.150 compiler
12498         Problem reported by Balázs Hajgató in:
12499         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12500         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12501         POSIX specifies 'restrict'.
12503 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12505         localename-tests: memory allocation fixes
12506         * tests/test-localename.c (test_locale_name)
12507         (test_locale_name_thread): Don't call freelocale on a locale
12508         that was the base of a successful newlocale, as that
12509         results in a double free.  Problem reported by Assaf Gordon.
12510         (test_locale_name_thread): Free saved names after use, to pacify
12511         gcc -fsanitize=address.
12513 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12515         intprops: make .h file license match module
12516         * lib/intprops.h: Change the license wording to match glibc format.
12517         This is what is in modules/intprops anyway.  See:
12518         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12520 2016-03-08  Eric Blake  <eblake@redhat.com>
12522         acl: fix missing return on Cygwin
12523         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12524         fall off end of function. Fixes http://bugs.gnu.org/22949
12526 2016-03-05  Bruno Haible  <bruno@clisp.org>
12528         extern-inline: port to PGI CC
12529         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12530         keyword 'inline'.
12531         Reported by Adam James Stewart in:
12532         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12534 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12536         signbit: port back to pre-C++11 GCC
12537         * lib/math.in.h (signbit): Do previous change only if
12538         __cplusplus < 201103.  See Jonathan Wakely in:
12539         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12541 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12543         mountlist: recognize autofs-mounted remote file systems, too
12544         Originally reported at: https://bugzilla.redhat.com/1309247
12545         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
12546         "-hosts" because it is used by autofs to mount remote file systems.
12548 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12550         signbit: port to C++ with GCC 6
12551         * lib/math.in.h (signbit) [__cplusplus]:
12552         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
12553         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
12555         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
12557         regex: make it closer to libc
12558         Make Idx a signed type, rather than possibly unsigned.
12559         The unsignedness was not really buying us anything, since the code
12560         overflows for other reasons before getting to PTRDIFF_MAX.  Making
12561         it signed allows us to use -1 and -2 with abandon, like libc does,
12562         thus lessening the number of differences between gnulib and libc.
12563         Also, it should help avoid gratuitous warnings like the one
12564         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
12565         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
12568         regex: merge patches from libc
12570         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
12571         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
12572         Convert miscellaneous function definitions to prototype style.
12573         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
12574         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
12575         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
12576         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
12577         (re_search_internal):
12578         Convert to prototype-style function definition.
12579         Use internal_function for internal functions.
12581 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
12583         stdalign: port to older HP and IBM cc
12584         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
12585         C compilers, by checking their version numbers.  These version
12586         numbers appear in MariaDB and in Qt code that dates way back and
12587         that conditiionally uses the 'aligned' attribute.
12589 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12591         stdalign: port to clang 3.7.0
12592         Problem reported by Herbert J. Skuhra in:
12593         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
12594         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
12595         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
12596         https://llvm.org/bugs/show_bug.cgi?id=26547
12598 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12600         readdir_r: now obsolescent
12601         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
12602         * lib/mountlist.c (read_file_system_list): Add a FIXME.
12604 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12606         misc: port better to gcc -fsanitize=address
12607         Without these patches, ./configure CFLAGS='-fsanitize=address'
12608         would compute incorrect values.  This patch fixes some (but not all)
12609         test failures with recent glibc, with this configuration.
12610         * m4/acl.m4 (gl_ACL_GET_FILE):
12611         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
12612         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
12613         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
12614         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
12615         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12616         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12617         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
12618         * m4/getline.m4 (gl_FUNC_GETLINE):
12619         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
12620         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
12621         * m4/regex.m4 (gl_REGEX):
12622         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12623         * tests/test-calloc-gnu.c (main):
12624         * tests/test-duplocale.c (main):
12625         * tests/test-getgroups.c (main):
12626         * tests/test-getline.c (main):
12627         * tests/test-inttostr.c (main):
12628         * tests/test-localename.c (test_locale_name)
12629         (test_locale_name_thread, test_locale_name_environ)
12630         (test_locale_name_default):
12631         * tests/test-regex.c (main):
12632         * tests/test-setlocale1.c (main):
12633         * tests/test-stat.h (test_stat_func):
12634         Free heap-allocated storage before exiting.
12635         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
12636         Don't match *_foo symbols inserted by AddressSanitizer.
12637         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
12639 2016-02-02  Jim Meyering  <meyering@fb.com>
12641         verify-tests: also remove stray test-verify.Tpo
12642         * modules/verify-tests (Makefile.am): Arrange for "make clean"
12643         to remove the test-verify.Tpo file that is left behind by
12644         the automake-generated rule upon compilation failure.
12645         Otherwise, that .Tpo file would cause a failed "make distcheck"
12646         at least for grep.
12648 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12650         std-gnu11: new module
12651         This makes it easier for applications to prefer C11 and C++11
12652         to older variants, when compiling C and C++ code.
12653         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
12654         a nontrivial chunk of GPLed Autoconf source code.
12655         * COPYING: Mention the m4/*.m4 copyright situation.
12656         * MODULES.html.sh (std-gnu11): New module.
12657         * m4/std-gnu11.m4, modules/std-gnu11: New files.
12659 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12661         get-permissions, strftime: fix grammar in comments
12662         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
12663         some grammar fixes Alan Mackenzie made to GNU Emacs.
12665 2016-01-25  Daiki Ueno  <ueno@gnu.org>
12667         gettext: mark as obsolete
12668         Suggested by Paul Eggert in:
12669         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
12670         * modules/gettext (Status): Mark as obsolete.
12671         (Notice): Suggest to use 'gettext-h' instead.
12672         * modules/gettext-h (Description): Suggest GNU gettext, instead of
12673         the 'gettext' module.
12675 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12677         gnulib-tool: don't give up on ln -s so easily
12678         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
12679         because an earlier one failed.  The targets could be on different
12680         file systems.  Problem reported by KO Myung-Hun in:
12681         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
12683         closedir: fix OS/2-related typos
12684         Problem reported by KO Myung-Hun in:
12685         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
12686         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
12687         in the last couple of changes.
12689 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
12691         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
12692         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
12693         copying a directory.
12695 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12697         regex: treat [x] as x if x is a unibyte encoding error
12698         Problem reported by Aharon Robbins in:
12699         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
12700         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
12701         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
12703         closedir, dirfd, opendir: port to OpenSolaris 5.10
12704         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
12705         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12706         * m4/opendir.m4 (gl_FUNC_OPENDIR):
12707         Don't use ${word##pat} substitution, as it doesn't work in
12708         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
12709         http://bugs.gnu.org/22443#11
12711 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12713         bootstrap: use American spelling
12714         * build-aux/bootstrap: Honor American spelling.
12716 2016-01-22  Karl Berry  <karl@freefriends.org>
12718         * doc/posix-functions/localtime.texi,
12719         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
12721 2016-01-21  Bruno Haible  <bruno@clisp.org>
12723         hash-pjw-bare: fix comment
12724         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
12726         wcwidth: Replace also on OpenBSD 5.8
12727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
12728         * doc/posix-functions/wcwidth.texi: Update.
12730 2016-01-20  Pádraig Brady  <P@draigBrady.com>
12732         gnu-web-doc-update: fix addition of new files
12733         If there were already added (emnpty) dirs,
12734         then cvs aborts the add with the message:
12735           cvs [add aborted]: there is a version in <./dirname> already
12736         * build-aux/gnu-web-doc-update: Add directories separately
12737         to the addition of files, to avoid the above issue
12738         impacting the addition of files.
12740 2016-01-19  Daiki Ueno  <ueno@gnu.org>
12742         utimens-tests: avoid pulling gettext .m4 files
12743         Although this is not the right fix to the original problem:
12744         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
12745         it makes it possible again for consumer projects to use arbitrary
12746         version of gettext, through the steps described at:
12747         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
12748         See here for details:
12749         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
12750         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
12751         'gettext'.
12752         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
12753         'gettext'.
12755 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12757         regex: pacify static checkers
12758         Problem and draft fix reported by Aharon Robbins in:
12759         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12760         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
12761         Clear memory to pacify static checkers.
12763         regex: fix [ diagnostic
12764         Problem and fix reported by Aharon Robbins in:
12765         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12766         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
12768         regex: fix memory leaks
12769         Problem and draft fix reported by Aharon Robbins in:
12770         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12771         * lib/regcomp.c (build_range_exp, build_charclass_op)
12772         * lib/regex_internal.c (re_dfa_add_node):
12773         Fix memory leak on failure.
12775 2016-01-18  Pádraig Brady  <P@draigBrady.com>
12777         fts: don't unconditionally use leaf optimization for NFS
12778         NFS st_nlink are not accurate on all implementations,
12779         leading to aborts() if that assumption is made.
12780         See <https://bugzilla.redhat.com/1299169>
12781         * lib/fts.c (leaf_optimization_applies): Remove NFS from
12782         the white list, and document the issue.
12784 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12785             KO Myung-Hun  <komh@chollian.net>
12787         gnulib-tool: don't assume ln -s works
12788         * gnulib-tool (func_ln_s): New function.
12789         (func_ln): Use it.
12791 2016-01-15  KO Myung-Hun  <komh@chollian.net>
12793         utimes: detect utimes() correctly on OS/2 kLIBC
12794         utimes() of OS/2 kLIBC has some limitations.
12795         1. OS/2 itself supports a file date since 1980 year in local time.
12796         2. OS/2 itself supports only even seconds for a file time.
12797         3. utimes() of OS/2 kLIBC does not work on an opened file.
12798         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
12799         * doc/posix-functions/utimes.texi: Document the above limitations of
12800         utimes() on OS/2 kLIBC.
12802 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12803             KO Myung-Hun  <komh@chollian.net>
12805         openat_proc_name: port to OS/2 kLIBC
12806         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
12807         instead of /proc/self/fd.
12808         * lib/openat-proc.c (openat_proc_name):
12809         Don't assume file name length is less than INT_MAX.
12810         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
12812 2016-01-14  KO Myung-Hun  <komh@chollian.net>
12814         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
12815         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
12816         definitions of intptr_t and uintptr_t (which use int and unsigned)
12817         to avoid clashes with declarations of system functions like sbrk.
12818         * lib/stdint.in.h (intptr_t, uintptr_t): Check
12819         _INTPTR_T_DECLARED before defining them.
12821         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
12822         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
12823         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
12824         Declare on kLIBC.
12825         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
12826         fd associated with dirp.
12827         (_gl_register_dirp_fd): New. Register fd associated with dirp to
12828         dirp_fd_list.
12829         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
12830         (dirfd): Implemented for kLIBC.
12831         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
12832         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
12833         succeeds.
12834         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
12835         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12836         (REPLACE_DIRFD): Define to 1 if replaced.
12837         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
12838         * modules/closedir (Depends-on): Add dirfd.
12839         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
12840         condition.
12841         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
12842         * modules/opendir (Depends-on): Add dirfd.
12844         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
12845         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
12846         * lib/dup.c (dup_nothrow): New.
12847         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
12848         (klibc_dup2): New.
12849         * lib/fcntl.c (klibc_fcntl): New.
12850         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
12851         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
12852         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
12853         fd.
12855         pipe_filter_ii_execute: port to OS/2 kLIBC
12856         Pipes on kLIBC do not support O_NONBLOCK like Win32.
12857         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
12858         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
12859         Reuse Win32 code on OS/2 kLIBC.
12860         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
12861         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
12863         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
12864         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
12865         static inline function.  The implementation of wcwidth in wcwidth.c
12866         causes a "conflicting types" error.
12867         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
12869         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
12870         spawn() on OS/2 kLIBC is not silly like one on Windows
12871         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
12872         empty string on OS/2 kLIBC.
12874         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
12875         On OS/2 kLIBC, select() works only on sockets.
12876         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
12878         binary-io: don't put fd in binary mode if it is a console on EMX
12879         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
12880         a console on EMX.
12882 2016-01-15  Pádraig Brady  <P@draigBrady.com>
12884         doc: mention unfixed issues with unsupported localtime() values
12885         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
12886         returns nonsense for localtime(2^56).
12887         * doc/posix-functions/localtime_r.texi: Likewise.
12889 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12891         doc: mention setlocale() issues on OpenBSD
12892         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
12893         never fails, and the need to check categories individually.
12895 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12897         sig2str: list all signals on FreeBSD >= 7
12898         FreeBSD >= 7 is contravening POSIX by not defining NSIG
12899         to the maximal statically defined signal value.
12900         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
12901         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
12902         where available, even when NSIG is defined.
12904 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
12906         acl-permissions: port to USE_ACL==0 platforms
12907         I ran into this problem when building bleeding-edge GNU Emacs
12908         with gcc -fsanitize=address on Fedora 23.  On this platform
12909         the ACL library does not pass the 'configure' test and Emacs
12910         then does not build due in part to what appear to be typos in the
12911         ACL part of Gnulib.
12912         * lib/acl-internal.c (free_permission_context):
12913         * lib/acl-internal.h (struct permission_context):
12914         Test whether USE_ACL is nonzero, not whether it is defined.
12916 2016-01-12  Martin Sebor  <msebor@redhat.com>
12918         mktime: rename macro to avoid glibc clash
12919         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
12920         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
12922 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
12924         Port "$@" to OpenIndiana ksh93
12925         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
12926         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
12927         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
12928         bug long-dead shells, so remove the workaround.
12929         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
12930         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12931         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
12932         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
12933         Use "$@" instead of ${1+"$@"}.
12935         Port Universal Time settings to strict POSIX
12936         * build-aux/announce-gen, build-aux/bootstrap:
12937         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
12938         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12939         * build-aux/gnupload, build-aux/mkinstalldirs:
12940         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
12941         * build-aux/update-copyright, build-aux/useless-if-before-free:
12942         * build-aux/vc-list-files, tests/test-strftime.c:
12943         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
12944         but POSIX says the behavior of TZ="UTC" is undefined.
12946 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
12948         msvc-inval: fix problem with unset shell var
12949         Problem reported by Karl Berry in:
12950         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
12951         * modules/msvc-inval (Depends-on):
12952         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
12953         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
12955 2016-01-01  Pádraig Brady  <P@draigBrady.com>
12957         tests: for compare_(), use cmp -s where available
12958         * tests/init.sh (compare_): Only fall back to cmp without
12959         the POSIX defined -s option, where this is not available.
12961 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12963         version-etc: new year
12964         * build-aux/gendocs.sh (version):
12965         * doc/gendocs_template:
12966         * doc/gendocs_template_min:
12967         * doc/gnulib.texi:
12968         * lib/version-etc.c (COPYRIGHT_YEAR):
12969         Update copyright dates by hand in templates and the like.
12970         * all files: Run 'make update-copyright'.
12972 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
12974         human: fix output buffer overrun by 1
12975         * lib/human.c (human_readable): Fix off-by-one typo in buffer
12976         calculation that could lead to a one-byte buffer overrun.
12978 2015-12-28  Daiki Ueno  <ueno@gnu.org>
12980         maint: fix operator precedence in mbrtowc test
12981         This is a fix for test breakage introduced by commit 45228d96; the
12982         equality expression must be parenthesized when negated with '!',
12983         otherwise we always get:
12985           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
12987         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
12988         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
12990 2015-12-23  James Youngman  <jay@gnu.org>
12992         regexprops-generic: update from regex.h
12993         * doc/regexprops-generic.texi: update by running the regexprops binary
12994         from findutils (the command line is 'regexprops "Regular Expressions"
12995         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
12996         gnulib with GNU grep had made this document out-of-date.
12998 2015-12-23  Pádraig Brady  <P@draigBrady.com>
13000         strftime-tests: avoid false failure on OS X
13001         * tests/test-strftime.c (struct localtime_rz_test): Add an
13002         ahistorical member which is used to warn rather than fail
13003         when tm_isdst isn't set for such entries.  This is the case for
13004         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
13006 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
13008         fts: ensure leaf optimization is used for NFS
13009         NFS provides usable dirent.d_type but not necessarily for all entries
13010         of large directories.  See <https://bugzilla.redhat.com/1252549>
13011         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
13013 2015-12-20  Pádraig Brady  <P@draigBrady.com>
13015         fts: enable leaf optimization for XFS
13016         XFS provides usable dirent.d_type only for DT_DIR,
13017         but the noleaf optimization still applies.
13018         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
13020 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13022         intprops: comment fix
13023         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
13024         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
13026         intprops-test: work around GCC bug 68971
13027         Problem reported by Pádraig Brady in:
13028         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
13029         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
13030         (main): Add a case that better tests 64-bit long in this area.
13032 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
13034         gnulib-tool: allow multiple --local-dir usage
13035         * gnulib-tool: Use --local-dir to construct compound
13036         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
13037         PATH_SEPARATOR early.
13038         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
13039         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
13040         func_determine_path_separator because that needs to be detected
13041         earlier now.
13042         (func_determine_path_separator): New function.
13043         (func_path_foreach, func_path_foreach_inner): New functions.
13044         (func_path_prepend, func_path_append): Likewise.
13045         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
13046         (func_lookup_file, func_all_modules): Use new functions to work
13047         with local_gnulib_path.
13048         (func_modules_in_dir, func_exists_module): New callbacks for
13049         func_path_foreach.
13050         (func_exists_module, func_get_tests_module): Likewise.
13051         (func_is_local_file, func_should_symlink): New helper methods.
13052         (func_add_file, func_update_file): Use new func_should_symlink
13053         instead, DRY.
13054         (func_reconstruct_cached_local_gnulib_path): New helper.
13055         (func_reconstruct_cached_dir): New callback.
13056         (func_import): The cached_local_gnulib_dir renamed to
13057         cached_local_gnulib_path similarly to local_gnulib_dir.
13058         Use new func_reconstruct_cached_local_gnulib_path.
13059         (func_count_relative_local_gnulib_path): New sub-method.
13060         (func_create_testdir): Use func_should_symlink, DRY.
13061         (func_create_megatestdir): Use new functions to work with
13062         local_gnulib_path correctly.
13063         (func_append_local_dir): New helper.
13065 2015-12-08  Pádraig Brady  <P@draigBrady.com>
13067         fix freadptr to work with ungetc on all uClibc configs
13068         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
13069         where GNU coreutils cut(1) generates invalid output on uClibc
13070         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
13071         * lib/freadptr.c (freadptr): Return NULL if there are
13072         ungotten chars.  In this case freadseek() will iterate
13073         again to process the ungotten character.
13075 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13077         xalloc-oversized: improve performance with GCC 5
13078         * lib/xalloc-oversized.h (xalloc_oversized):
13079         Improve performance with GCC 5 by using __builtin_mul_overflow.
13081 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13083         intprops: new public macro EXPR_SIGNED
13084         Emacs can use this macro, so make it public.
13085         * doc/intprops.texi (Arithmetic Type Properties): Rename from
13086         'Integer Type Determination', since some of these macros apply
13087         to non-integer types.  Clarify what kinds of constant expressions
13088         these macros return.  Say when the arguments can be non-integers.
13089         Mention newly published macro EXPR_SIGNED.
13090         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
13091         make it public.  All uses changed.
13093         intprops: fix typo in clang port
13094         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
13095         '__builtin_add_overflow' that is not caught by compiler.
13097 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13099         test-timespec: fix typo in previous change
13100         * tests/test-timespec.c (main): Fix typo that reduced test quality.
13102         timespec-sub: fix overflow bug; add tests
13103         * lib/timespec-add.c (timespec_add):
13104         * lib/timespec-sub.c (timespec_sub):
13105         Work even if time_t is narrower than int (a theoretical
13106         possibility).  Redo code for a bit more clarity.
13107         * lib/timespec-sub.c (timespec_sub):
13108         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
13109         * modules/timespec-tests, tests/test-timespec.c: New files.
13111         intprops-test: suppress -Woverlength-strings
13112         Problem reported by Pádraig Brady in:
13113         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
13114         It is not worth the hassle to port this test to compilers that
13115         cannot handle long strings in diagnostics.
13116         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
13118 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13120         quotearg: add quotearg_n_style_colon()
13121         This quotes with default options of the specified style,
13122         but with quoting enabled for instances of ':'.
13123         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
13124         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
13126 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13128         intprops: revise _WRAPV macros, revert _OVERFLOW
13129         The incompatible changes to the _OVERFLOW macros were too much of
13130         a hassle in practice, so revert them.  Instead, change the new
13131         _WRAPV macros to make them closer in behavior to GCC 5's new
13132         builtin_add_overflow etc. functions.  No other software was using
13133         these newly-added macros yet, so this should be OK.
13134         * NEWS: Revert previous change, since the incompatible change
13135         has been reverted, and nobody used the incompatible version.
13136         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
13137         Document revised behavior.
13138         (Integer Range Overflow): Adjust example to match above revisions.
13139         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
13140         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
13141         these can be used in integer constant expressions again.
13142         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
13143         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
13144         needed.
13145         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13146         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13147         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
13148         Remove, as they did not seem that useful.
13149         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
13150         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
13151         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13152         Support new semantics.
13153         (__has_builtin): New macro, if not alreay defined.
13154         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
13155         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13156         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13157         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13158         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
13159         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
13160         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
13161         New macros.
13162         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
13164 2015-11-03  Jim Meyering  <meyering@fb.com>
13166         intprops: add parentheses for when OP has precedence lower than "-"
13167         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
13168         "a OP b" must be parenthesized for when OP is like "<<", which has
13169         lower precedence than the following "-". Reported by Pádraig Brady.
13171 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13173         quotearg: constify get_quoting_style parameters
13174         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
13175         * lib/quotearg.c (get_quoting_style): Likewise.
13177 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13179         quotearg: add support for $'' shell escaping
13180         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
13181         items and descriptions.
13182         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
13183         above types by quoting like "shell", but using $'...' syntax
13184         for non printable characters, which should provide unambiguous
13185         printable output for any input.
13186         * tests/test-quotearg-simple.c: Update accordingly.
13188 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13190         maint: use a more standard return from mbrtowc test
13191         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
13192         from the test program as this is non standard and often
13193         indicates an unhandled case in the test program.
13194         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13196 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13198         intprops: add WRAPV and const flavors for GCC 5
13199         If available, use GCC 5's builtin functions for efficient integer
13200         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
13201         and safely compute the low-order bits of the correct answer.
13202         A downside of these efficient functions is that they cannot be
13203         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
13204         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
13205         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
13206         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
13207         Document the changes.
13208         (Wraparound Arithmetic): New section.
13209         (Integer Range Overflow):
13210         Put this subsection last, since it's least useful.
13211         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
13212         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
13213         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
13214         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13215         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13216         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
13217         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13218         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
13219         New macros.
13220         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13221         Generate calls to GCC builtins if available, for speed.
13222         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13223         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13224         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13225         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
13226         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
13227         (CHECK_QUOTIENT, CHECK_REMAINDER):
13228         Test WRAPV and CONST flavors (when available) too.
13230 2015-10-30  Pádraig Brady  <P@draigBrady.com>
13232         doc: use extended timezone format in iso-8601 example
13233         * doc/parse-datetime.texi: The standard states that extended format
13234         is to be used consistently throughout.
13235         Note that lib/parse-datetime.y can handle either tz format.
13237 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13239         stdalign: port to Sun C 5.9
13240         * doc/posix-headers/stdalign.texi: Document this.
13241         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
13242         __attribute__ ((__aligned__ (...))).
13244 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
13246         time_rz: fix comment about tzalloc
13247         * lib/time_rz.c (tzalloc): Fix comment.
13249 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13251         stdalign: work around pre-4.9 GCC x86 bug
13252         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
13253         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
13254         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
13256 2015-10-18  Pádraig Brady  <P@draigBrady.com>
13258         maint.mk: sc_tight_scope: remove extraneous expressions
13259         * top/maint.mk (tight_scope): This is not really required since
13260         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
13261         that matches all nm entries.  But it does remove extraneous entries
13262         that may be confusing or cause issue in future maintenance.
13264 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13266         time_rz: return NULL if localtime_r fails
13267         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
13268         while still attempting to pacify bleeding-edge GCC.
13270         fts: port to C11 alignof
13271         * doc/posix-headers/stdalign.texi (stdalign.h):
13272         Document the C11 restriction.
13273         * lib/fts.c: Include stddef.h, for max_align_t.
13274         (fts_alloc): Align using max_align_t, not FTSENT.
13275         * modules/fts (Depends-on): Add stddef.
13277 2015-10-18  Jim Meyering  <meyering@fb.com>
13279         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
13280         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
13281         would see this:
13283         lib/time_rz.c: In function 'localtime_rz':
13284         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
13285           [-Werror=nonnull]
13286                    if (tm && !save_abbr (tz, tm))
13287                        ^
13289         That was complaining about "tm" because it is a parameter that was
13290         declared with the __nonnull__ attribute.
13291         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
13292         result of localtime_r.
13294 2015-10-17  Jim Meyering  <meyering@fb.com>
13296         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13297         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13298         name-extraction regexp mistakenly used \S+, and would mistakenly
13299         extract "*F" from "extern int *F()" rather than the desired "F".
13300         Use \w+ instead.
13302 2015-10-17  Jim Meyering  <meyering@fb.com>
13304         maint.mk: sc_tight_scope: factor and support OS X
13305         * top/maint.mk (_gl_tight_scope): Address three issues:
13306         - factor out four instances of code that wraps a string in "^...$"
13307         - allow nm-reported symbol names to have an optional leading "_"
13308         - add "main" to the list of ignored variable names, because on os x,
13309         "main" has nm-reported type "S" in the variable-checking section.
13311 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13313         safe-alloc-tests: fix typo in license header
13314         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13316 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13318         copy-file: fix mem leak in error case
13319         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13320         upon error opening or performing I/O to the src and dest files.
13322 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13324         localename: control langinfo.h inclusion
13325         This header is only used to work around buggy behavior in old
13326         versions of glibc, so do not include it all the time.  Otherwise
13327         we get build failures on systems that do not provide langinfo.h.
13328         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13329         in the source later on.
13330         The patch was originally submitted to gettext as:
13331         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13333 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13335         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13336         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13337         * lib/u64.c, lib/unistd.c:
13338         Append 'typedef int dummy;', to pacify compilers that are picky
13339         about empty translation units.
13341 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13343         accept4-tests: fix to avoid non portable flags
13344         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13345         as they are the only documented ones, and passing others may trigger
13346         EINVAL (seen on FreeBSD 10.1-RELEASE).
13347         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13348         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13350 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13352         gnulib-tool: fix tests of 'extensions' module
13353         This complements f8fe25fab60e3c687a124 commit.
13354         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13355         emitting of initial gl_EARLY macros.
13356         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13357         replaced with func_emit_pre_early_macros call.
13359 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13361         unicase/locale-language: fix typo in utf-8 cookie
13362         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13363         Problem reported by Zbigniew Jędrzejewski-Szmek.
13365 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13367         xalloc: do not worry about GCC 5 warning on 32 bit
13368         * lib/xalloc.h: Revert previous change.
13369         I found a better way to fix this in coreutils.
13371 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13373         xalloc: avoid GCC 5.1 warning on 32 bit
13374         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13375         xalloc_oversized(), which was seen to give this warning
13376         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13377         when simplifying conditional".
13379 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13381         uniname/uniname-tests: avoid compiler warnings
13382         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13383         unused local variables.
13384         (test_alias_lookup): Fix alias name display in failure cases.
13386 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13388         c-ctype: do not worry about EBCDIC + char signed
13389         Drop support for EBCDIC with char being signed, as this breaks too
13390         many programs.  Problem reported by Ben Pfaff in:
13391         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13392         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13393         char being signed.
13394         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13395         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13396         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13397         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13398         * tests/test-c-ctype.c (test_all):
13399         Simplify by assuming standard char values cannot be negative.
13400         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13402 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13404         c-ctype: port better to z/OS EBCDIC
13405         Problems reported by Daniel Richard G. in:
13406         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13407         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13408         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13409         (_C_CTYPE_OTHER_CNTRL): New macro.
13410         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13411         from SCHAR_MIN, as the functions are defined only from values
13412         promoted from char or from unsigned char, not necessarily from
13413         signed char.
13415 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13417         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13419         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13420         and ARFLAGS variables.  Doing this unconditionally could break
13421         later Automake's AM_PROG_AR invocation (at least it's
13422         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13424         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13425         Amsterdam Compiler Kit, so make the previous code to have effects
13426         only on ACK, and rather automatically call the Automake's
13427         AM_PROG_AR as soon as possible to decide other cases.
13429         References:
13430         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13432         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13433         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13434         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13435         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13436         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13437         'extensions' module is used.
13438         * modules/extensions (configure.ac-early): Remove as this snippet
13439         is added to gnulib-comp.m4 earlier anyway.
13441 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13443         sockets: MS Windows initalization fixes
13444         Problem reported by Test User in:
13445         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13446         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13447         Correct the endianness.
13448         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13449         number mismatch, not just on <.  Cleanup before any such failure.
13451 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13453         gc: fix detection of installed libgcrypt version
13454         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13455         at least as recent as 1.4.4.  The previously used macro is not
13456         available now, since modules were removed in version 1.6.0.
13458 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13460         c-ctype: rewrite to use inline functions
13461         This simplifies maintenance, since it makes for just one
13462         implementation of each function, letting the compiler have the fun
13463         of optimization.  In practice this works well nowadays with GCC.
13464         E.g., c_isascii might need only three instructions even though the
13465         source code lists every ASCII character individually in a large
13466         switch statement.
13467         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13468         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13469         * NEWS: Document the API change.
13470         * lib/c-ctype.c: Drastically simplify, since this now just expands
13471         inline functions.
13472         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13473         (C_CTYPE_INLINE): New macro.
13474         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13475         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13476         Verify that either ASCII or EBCDIC is being used.
13477         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13478         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13479         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13480         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13481         New private macros.
13482         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13483         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13484         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13485         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13486         (c_tolower, c_toupper): When converting, return the unsigned char,
13487         as that is what z/OS does.
13488         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13489         of some c-ctype.h macros.
13490         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13491         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13492         c_tolower promotion to be compatible with z/OS.
13494 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13496         gitlog-to-changelog: trim only trailing whitespaces
13497         This is fix for --format regression introduced by commit
13498         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13499         doubled %n string) had no effect anymore.  This format
13500         specification has been used e.g. by GNU paxuitils (commit
13501         edfd8bcc3).
13503         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13504         newlines in commmit messages.
13506 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13508         Test that c_iscntrl agrees with iscntrl, etc.
13509         Suggested by Daniel Richard G. in:
13510         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13511         * modules/c-ctype-tests (Depends-on): Add ctype.
13512         * tests/test-c-ctype.c: Include <ctype.h>.
13513         (NCHARS): New constant.
13514         (test_agree_with_C_locale): New function.
13515         (main): Use it.
13516         (test_all): Use named constants.
13518         c-ctype: improve c_isascii testing
13519         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13520         Add a test to count the number of ASCII characters.
13522 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13524         savewd: remove SAVEWD_CHDIR_READABLE
13525         It was problematic in the light of file systems that ignore umask.
13526         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13527         * NEWS: Document this.
13528         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13529         successful, -1 (setting errno) on failure, rather than something
13530         more complicated than that.
13531         * lib/mkdir-p.c (make_dir_parents):
13532         Do not use SAVEWD_CHDIR_READABLE.
13533         * lib/savewd.c (savewd_chdir):
13534         Remove support for SAVEWD_CHDIR_READABLE.
13535         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13537         c-ctype: port better to EBCDIC
13538         Problems reported by Daniel Richard G. in
13539         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13540         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13541         Include "verify.h".
13542         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13543         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
13544         Define as enum constants with value false, if not defined, so that
13545         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
13546         code more portable, as both branches of the 'if' are compiled on
13547         all platforms.
13548         (C_CTYPE_EBCDIC): New constant.
13549         Verify that the character set is either ASCII or EBCDIC.
13550         (to_char): New static function.
13551         (c_isascii, c_iscntrl):
13552         Assume standard control-character assignments for EBCDIC.
13553         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
13554         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
13555         Rewrite to use 'if' instead of 'ifdef'.
13556         Use to_char if non-ASCII.  Prefer <= to >=.
13557         Prefer true and false to 1 and 0, for booleans.
13558         (c_iscntrl): Use 'if', not 'ifdef'.
13559         * modules/c-ctype (Depends-on): Add verify.
13560         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
13561         (to_char): New function.
13562         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
13564 2015-09-21  Pádraig Brady  <P@draigBrady.com>
13566         nanosleep: fix return code for interrupted replacement
13567         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
13568         that we return -1 in the case the call is interrupted by a signal,
13569         rather than the current value of 1.
13570         Diagnosed and tested by Daniel Richard G.
13572 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13574         Diagnose ERE '()|\1'
13575         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
13576         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
13577         track of the set of previously-completed subexpressions available
13578         before the first alternative, and restore this set just before
13579         parsing each subsequent alternative.  This lets us diagnose the
13580         invalid back-reference in the ERE '()|\1'.
13582         regex: merge patches from libc
13584         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
13585         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
13586         * lib/regex_internal.h:
13587         Include <libc-lock.h> instead of <bits/libc-lock.h>.
13589         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
13590         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
13591         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
13592         wcscoll.
13593         * lib/regexec.c (check_node_accept_bytes): Likewise.
13595         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13596         Fix regex wcrtomb namespace (bug 18496).
13597         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
13598         instead of wcrtomb.
13600         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13601         Fix regex wctype namespace (bug 18495).
13602         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
13603         instead of towlower.
13604         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
13605         instead of iswlower.  Call __towupper instead of towupper.
13606         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
13607         instead of iswalnum.
13609         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
13610         * lib/regcomp.c (parse_bracket_exp): Initialize type to
13611         COLL_SYM in a couple of places to avoid uninitialized variable
13612         wanings on tilegx gcc 4.8.2.
13614         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13615         * lib/regex_internal.h: Remove NOT_IN_libc.
13617         2014-11-17  Andreas Schwab  <schwab@suse.de>
13618         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
13620         2014-09-11  Roland McGrath  <roland@hack.frob.com>
13621         Move findidx nested functions to top-level.
13622         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
13623         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
13624         Pass new arguments to findidx.
13625         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
13626         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
13627         Don't #include it inside the function.  Pass new arguments to findidx.
13628         * lib/regex_internal.h:
13629         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
13630         (re_string_elem_size_at): Don't #include it inside the function.
13631         Pass new arguments to findidx.
13633         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13634         Check if DEBUG is defined in regex_internal.c
13635         * lib/regex_internal.c: Check if DEBUG is defined and is set.
13637 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
13639         ceill: detect buggy OpenBSD implementation
13640         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
13641         which returns zero for small values.  Discussed here:
13642         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
13644 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
13646         mountlist: add me_mntroot field on Linux machines
13647         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
13648         mount_entry so Linux machines based on /proc/self/mountinfo can
13649         distinguish between bind mounts and original mounts.  In reality bind
13650         mounts aren't treated differently than mountroot=/ mounts by the
13651         kernel, but the user often wants these bind mounts distinguished.
13652         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
13653         More details at https://pad.lv/1432871
13655 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
13657         doc: Describe to use multiple instances of gnulib
13658         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
13659         instances of gnulib with different modules can be used, for example one
13660         for a lib and another one for associated tools.
13662 2015-09-01  Pádraig Brady  <P@draigBrady.com>
13664         base32: mark function as __attribute__ const
13665         * lib/base32.h (isbase32): Mark __attribute__ const as
13666         suggested by GCC, and consistent with the base64 module.
13668 2015-08-20  Daiki Ueno  <ueno@gnu.org>
13670         gnulib-tool: don't transform binary files with sed
13671         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
13672         .mo and .class files.
13673         Reported by Denis Denisov.
13675 2015-08-10  Daiki Ueno  <ueno@gnu.org>
13677         gperf: respect silent rules
13678         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
13679         V_GPERF_0 for silent rules.
13680         * modules/iconv_open (Makefile.am): Use V_GPERF.
13681         * modules/unicase/locale-language (Makefile.am): Likewise.
13682         * modules/unicase/special-casing (Makefile.am): Likewise.
13683         * modules/unictype/category-byname (Makefile.am): Likewise.
13684         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13685         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13686         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13687         * modules/unictype/property-byname (Makefile.am): Likewise.
13688         * modules/unictype/scripts (Makefile.am): Likewise.
13689         * modules/uninorm/composition (Makefile.am): Likewise.
13691 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13693         Improve port of stdalign to C++11
13694         Problem reported by Sundaram in:
13695         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
13696         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
13697         (__alignas_is_defined): Define if C++11 or newer.
13699 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
13701         pmccabe2html: fix gawk regex escaping
13702         * build-aux/pmccabe2html: Add one more backslash to properly
13703         escape the gsub replacement value.  Fixes this error:
13704         gawk: ./build-aux/pmccabe2html:425: \
13705         warning: escape sequence `\&' treated as plain `&'
13707 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
13709         time_rz: port to pedantic memcpy
13710         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
13711         that reject memcpy (..., NULL, 0).
13713 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
13715         time_rz: port better to MinGW
13716         Don't change tzname, as this makes MinGW dump core (Bug#21020).
13717         Instead, store the tzname copy in the struct tm_zone object.
13718         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
13719         * lib/strftime.c [!_LIBC]:
13720         * lib/time_rz.c: Include time-internal.h.
13721         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
13722         name from *TZ rather than from TZNAME, doable because *TZ now has
13723         a tzname_copy member.
13724         * lib/time-internal.h: New file, with contents taken from
13725         lib/time_rz.c.  It's separate because strftime.c now accesses
13726         struct tm_zone members.
13727         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13728         New member tzname_copy.
13729         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
13730         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13731         Initialize tzname_copy member.
13732         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
13733         in tzname_copy member.
13734         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
13735         (restore_tzname): Remove; no longer needed.  All calls removed.
13736         * modules/time_rz (Files): Add lib/time-internal.h.
13738         time: port __need_time_t to MinGW
13739         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
13740         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
13742 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13744         strftime: fix newly-introduced bug on Solaris
13745         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
13746         consistently at the start, rather than doing some of the setup at
13747         the start and some in the %Z format spec.  This is cleaner, and
13748         works better with time_rz on platforms like Solaris where struct
13749         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
13750         mktime_z and localtime_rz can mess up the tzname cache.
13752         test-strftime: test for Solaris bug
13753         * modules/strftime-tests (Depends-on): Add strerror.
13754         * tests/test-strftime.c: Include <errno.h>.
13755         (posixtm_test): New function, containing the old 'main'.
13756         (struct tzalloc_test, struct localtime_rz_test): New types.
13757         (TZ, LT): New static vars.
13758         (tzalloc_test): New function.
13759         (main): Rewrite in terms of posixtm_test and tzalloc_test.
13761         time_rz: port to Solaris etc.
13762         Works around a tzname problem on platforms like Solaris that have
13763         tzname but not tm_zone, by setting tzname at the appropriate time
13764         and restoring it later.
13765         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
13766         New static vars.
13767         (save_abbr) [HAVE_TZNAME]: Set them.
13768         (revert_tz) [HAVE_TZNAME]: Clear or use them.
13769         (restore_tzname): New function.
13770         (localtime_rz, mktime_z): Use it.
13772         time_rz: now LGPL
13773         * modules/time_rz (License): Now LGPL, because strftime depends on it.
13775         time_rz: make a constant 'const'
13776         * lib/time_rz.c (local_tz): Now const.
13778         time_rz: fix off-by-one typo
13779         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
13781 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13783         fprintftime, strftime: use timezone_t args
13784         * NEWS: Document the change.
13785         * lib/fprintftime.h (fprintftime):
13786         * lib/strftime.c (extra_args) [my_strftime]:
13787         * lib/strftime.h (nstrftime):
13788         Time zone arg is now of type timezone_t, not int.
13789         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
13790         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
13791         (my_strftime) [emacs && !my_strftime]:
13792         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
13793         Remove; Emacs doesn't need this any more.
13794         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
13795         fprintftime and nstrftime to call tzset.
13796         (ut) [!my_strftime]: Remove, replacing with ...
13797         (tz) [!my_stftime]: ... this new macro.  All uses changed.
13798         (strftime_case_): Use localtime_rz and mktime_z instead
13799         of localtime_r and mktime.
13800         * modules/fprintftime (Depends-on): Add time_rz.
13801         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
13802         * tests/test-strftime.c (main): Adjust to new nstrftime API.
13804         time_rz: new module
13805         * MODULES.html.sh: Add time_rz.
13806         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
13807         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
13808         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
13809         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
13810         New var HAVE_TIMEZONE_T (default 0).
13811         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13812         New var GNULIB_TIME_RZ (default 0).
13813         * modules/time (time.h): Substitute the new vars.
13815         flexmember: license is now unlimited
13816         * modules/flexmember (License): Change to unlimited,
13817         since its only source file gives an unlimited license.
13819 2015-07-15  Eric Blake  <eblake@redhat.com>
13821         maint: update copyright paper procedures
13822         * config/srclist.txt: Drop outdated files.
13823         * doc/Copyright/conditions.txt: Update to latest.
13824         * doc/Copyright/assign.changes.manual: Delete.
13825         * doc/Copyright/assign.future.manual: Likewise.
13826         * doc/Copyright/assign.manual: Likewise.
13827         * doc/Copyright/assign.translation.manual: Likewise.
13828         * doc/Copyright/disclaim.changes.manual: Likewise.
13829         * doc/Copyright/disclaim.manual: Likewise.
13830         * doc/Copyright/disclaim.program: Likewise.
13832 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13834         localename: fix link error on Illumos
13835         Illumos defines __sun, but does not have getlocalename_l nor the
13836         equivalent.  This partially reverts commit 387c214.
13837         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
13838         available, as well as uselocale.
13839         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
13840         use getlocalename_l if it is not available.
13842 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13844         unistr/uN-strtok-tests: avoid a trivial leak
13845         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
13846         input and delim after the multibyte delimiter tests.
13848 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13850         file-has-acl, acl-permissions: fix HP-UX typos
13851         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
13852         * lib/file-has-acl.c (file_has_acl):
13853         * lib/set-permissions.c (context_acl_from_mode)
13854         (context_aclv_from_mode, set_acls):
13855         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
13856         They were introduced by the recent ACL changes.
13858         regex: match current GNU grep behavior
13859         These symbols have not matched GNU grep behavior for quite some time.
13860         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
13861         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
13862         Change to match current GNU behavior.
13863         Simplify by expressing it as differences from POSIX BREs and EREs.
13864         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
13866 2015-07-03  Jim Meyering  <meyering@fb.com>
13868         set-permissions.c: adjust acl_from_mode's cpp guard
13869         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
13870         directives identical to those guarding the sole use.
13871         Otherwise, on some systems, we'd get a warning about
13872         the function being defined but not used.
13873         Also, filter through cppi to correct misleading indentation
13874         of cpp directives.
13876 2015-07-03  Pádraig Brady  <P@draigBrady.com>
13878         tests: restrict shells to those that support 'local'
13879         The local keyword is very widely supported and used
13880         in tests in coreutils and grep at least.  Therefore
13881         restrict to testing with shells that support it.
13882         This mainly excludes /bin/sh on Solaris.
13883         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
13885 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
13886         and Daiki Ueno  <ueno@gnu.org>
13888         unistr/uN-strtok: handle multibyte delimiters
13889         Previously, uN_strtok moved PTR to the next unit to the token end.
13890         When DELIM contained a multibyte character, the new position could
13891         be a middle of a multibyte character.
13892         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
13893         after the token.
13894         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
13895         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
13896         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
13897         * modules/unistr/u8-strtok (Depends-on): Depend on
13898         unistr/u8-strmblen.
13899         * modules/unistr/u16-strtok (Depends-on): Depend on
13900         unistr/u16-strmblen.
13901         * modules/unistr/u32-strtok (Depends-on): Depend on
13902         unistr/u32-strmblen.
13903         * tests/unistr/test-u-strtok.h: New file.
13904         * tests/unistr/test-u8-strtok.c: New file.
13905         * tests/unistr/test-u16-strtok.c: New file.
13906         * tests/unistr/test-u32-strtok.c: New file.
13907         * modules/unistr/u8-strtok-tests: New file.
13908         * modules/unistr/u32-strtok-tests: New file.
13909         * modules/unistr/u16-strtok-tests: New file.
13911 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
13913         update-copyright: fix test failure with perl >= 5.22 (trivial)
13914         * build-aux/update-copyright: Escape a literal left curly bracket,
13915         required with perl >= 5.22
13917 2015-07-02  Daiki Ueno  <ueno@gnu.org>
13919         u{16,32}-strstr-tests: relax timeout condition
13920         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
13921         tests can take longer than 5 seconds to complete.
13922         Reported by Dagobert Michelsen in:
13923         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
13924         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
13925         seconds to 10 seconds.
13926         * tests/unistr/test-u32-strstr.c (main): Likewise.
13928 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13930         gnulib-common.m4: change the ARFLAGS default to 'cr'
13931         In some GNU/Linux distributions people started to compile 'ar'
13932         binary with --enable-deterministic-archives (binutils project).
13933         That, however, in combination with previous autotools long time
13934         working default AR{_,}FLAGS=cru causes warnings on such
13935         installations:
13936         ar: `u' modifier ignored since `D' is the default (see `U')
13937         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
13938         set already.
13940 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13942         selinux-h: avoid double free after *getfilecon()
13943         Originally reported by Ben Shelton on bug-tar:
13944         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
13945         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
13946         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
13947         param should be freed by freecon(3) (regardless the return value).
13949 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
13951         fix pty related tests issues on Windows (trivial)
13952         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
13953         however it's still present in tests/ subdirectory of the final project.
13954         Therefore avoid it to pass `make check`.
13955         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
13956         will just return -ENOSYS, so avoid this non applicable test allowing
13957         the build to proceed.
13959 2015-07-01  Pádraig Brady  <P@draigBrady.com>
13961         acl: fix definition of acl_from_mode on FreeBSD
13962         This was causing basic coreutils copy operations to fail
13963         with ENOTSUP or ENOENT error messages.
13964         * lib/acl-internal.h (acl_from_mode): Only define when
13965         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
13966         of acl_from_mode() defined in lib/set-permissions.c to
13967         be used on FreeBSD at least.
13968         * lib/set-permissions.c: Fix up comment spelling,
13969         and a redundant variable assignment; noticed in passing.
13971 2015-06-30  Pádraig Brady  <P@draigBrady.com>
13973         readutmp: port to FreeBSD >= 9
13974         * lib/readutmp.h: Map utmpxname() to setutxdb().
13975         With that coreutils who(1) and pinky(1) tests pass.
13977 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13979         mgetgroups: port to strict OS X
13980         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
13981         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
13982         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
13983         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
13985 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
13987         mgetgroups: port to strict OS X
13988         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
13989         Document the getgrouplist problem.
13990         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
13991         New macro.
13992         (mgetgroups): Use it.
13993         * m4/mgetgroups.m4 (gl_MGETGROUPS):
13994         Check for OS X signature for getgrouplist.
13996 2015-06-29  Jim Meyering  <meyering@fb.com>
13998         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
13999         It started like this when building coreutils' latest on OS X,
14000         invoking ./configure with a nonempty --cache=.cache:
14002           lib/linkat.c:46:42: error: operator '||' has no right operand
14003           lib/linkat.c: In function 'rpl_linkat':
14004           lib/linkat.c:330:27: error: #if with no expression
14006         Here's linkat.c's line 46:
14008           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
14010         Here's some context:
14012           $ grep linkat_nofoll .cache
14013           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
14014           $ grep LINKAT_SYM lib/config.h
14015           #define LINKAT_SYMLINK_NOTSUP
14017         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
14018         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
14019         but that violates a tenet of AC_CACHE_CHECK: it must
14020         have no side effect other than setting its cache variable.
14022         What happens is that when the cache is set, we'd skip the
14023         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
14024         defined to whatever value it happened to have in configure's
14025         environment.  In my case, it was not defined, so this later code:
14027           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
14028             [Define to 1 if linkat can create hardlinks to symlinks])
14030         would emit code with an empty RHS.
14032         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
14033         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
14035 2015-06-28  Jim Meyering  <meyering@fb.com>
14037         mountlist: avoid an unused-label warning on OS X
14038         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
14039         Building on OS X, I saw a warning about the "free_then_fail" label
14040         being unused.  Give it the _GL_UNUSED_LABEL attribute.
14042         error.c: correct printf-style format: %d -> %u
14043         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
14044         rather than %d, to match the type of "line_number", unsigned int.
14046 2015-06-25  Pádraig Brady  <P@draigBrady.com>
14048         fts: avoid reading beyond the heap allocation
14049         GCC 5.1.1 with -O2 and -fsanitize=address reports
14050         a read of size 4 from a heap object of size 3 is indeed invalid,
14051         though this may be due to incorrect padding assumptions by GCC, see:
14052         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
14053         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
14054         * modules/fts: Depend on stdalign.
14056 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14058         savedir: avoid undefined behavior in qsort call
14059         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14060         "runtime error: null pointer passed as argument 1,
14061          which is declared to never be null"
14062         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
14064 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14066         userspec: avoid undefined behavior in gettext call
14067         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14068         "runtime error: null pointer passed as argument 2,
14069          which is declared to never be null"
14070         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
14072 2015-06-20  Glenn Morris  <rgm@gnu.org>
14074         gitlog-to-changelog: improve gitmerge.el commits
14075         Let the Emacs ChangeLog generation process exclude "skipped"
14076         messages from merge commits (Bug#20717).
14077         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
14079 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14081         wchar: fix MinGW compilation warnings
14082         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
14083         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
14084         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
14086 2015-06-20  Daiki Ueno  <ueno@gnu.org>
14088         uniname/uniname-tests: use pristine data files
14089         For copyright and maintenance reasons, use the data files from UCD
14090         without modification.
14091         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
14092         (getfield): Remove.
14093         (aliases_count): New global variable.
14094         (fill_names): Skip comments and empty lines in the input.  Don't
14095         use getfield.
14096         (fill_aliases): Likewise.
14097         (main): Change the expected command line arguments to:
14098         NAMES... ["--" ALIASES...].
14099         * tests/uniname/test-uninames.sh: Adjust to the change in
14100         test-uninames.c.
14101         * tests/uniname/UnicodeDataNames.txt: Remove.
14102         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
14103         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
14104         file from Unicode 8.0.0.
14106 2015-06-19  Pádraig Brady  <P@draigBrady.com>
14108         linked-list, linkedhash-list: avoid compiler warnings
14109         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14110         -Werror=suggest-attribute=pure (from GCC 5.1.1).
14112 2015-06-19  Daiki Ueno  <ueno@gnu.org>
14114         libunistring: bump minimum version to 0.9.6
14115         * all modules depending on updated Unicode data: Regenerate.
14116         The modules are listed by a script that does:
14117         - for each file listed by: git show --oneline --name-only 705f4efc
14118           - deduce the containing modules, based on "Files:"
14119         - deduce the modules which depend on the containing modules, based
14120           on "Depends-on:"
14122 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14124         uniname/uniname: update to Unicode 8.0.0
14125         * lib/uniname/uninames.h: Regenerate.
14126         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
14127         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
14129 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14131         libunistring: update to Unicode 8.0.0
14132         * lib/gen-uni-tables.c (SIZEOF): New macro.
14133         (output_numeric): Increase the maximum number of fractions from
14134         128 to 160.  Increase the level3 value width from 7 bits to 8
14135         bits.  Use SIZEOF instead of a hard-coded integer.
14136         (output_blocks): Decrease the cut-off threshold from 0x30000 to
14137         0x28000.
14138         (fill_blocks): Increase the maximum number of blocks from 256 to
14139         384.  Use SIZEOF instead of a hard-coded integer.
14140         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
14141         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
14142         value width.
14143         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
14144         a new case added to LBP22.
14145         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
14146         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
14147         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
14148         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
14149         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
14150         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14151         lib/uniwidth/width.c.
14152         * all generated files under lib/uni* and tests/uni*: Regenerate.
14154 2015-06-16  Pádraig Brady  <P@draigBrady.com>
14156         gnu-web-doc-update: add --mirror to remove stale files
14157         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
14158         out of date files from the CVS server.  Since this is usually
14159         appropriate, a prompt is given when the option is not specified,
14160         along with the `cvs remove` command that would be run.
14162 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14164         acl-permissions: pacify -Wsuggest-attribute=const
14165         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
14166         * lib/acl-internal.h (free_permission_context):
14167         Declare with attribute const if ! (defined USE_ACL &&
14168         (HAVE_ACL_GET_FILE || defined GETACL)).
14170         fsync: document AIX misbehavior
14171         * doc/posix-functions/fsync.texi (fsync):
14172         Document failure on AIX with read-only file descriptor.
14174 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
14176         stdio: Don't redefine gets when using C++
14177         * lib/stdio.in.h (gets): Disable warning on C++.
14179 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
14181         acl-permissions: port to AIX, C89 HP-UX
14182         Problems reported by Michael Felt.
14183         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
14184         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
14185         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
14186         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
14187         Add cast for AIX, whose system calls are declared to accept
14188         char * even though the arguments are really char const *.
14189         * lib/get-permissions.c (get_permissions):
14190         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
14191         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
14192         that broke a build.
14193         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
14194         Rework types to pacify xlc.
14196 2015-06-03  Pádraig Brady  <P@draigBrady.com>
14198         vasprintf-posix: avoid compiling vasnprintf where possible
14199         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
14200         module where not required.  For example on a GNU/Linux system
14201         when gnulib-tool is run with the --conditional-dependencies option.
14203 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14205         file-has-acl: fix build on Mac OS X 10
14206         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
14207         which has an incompatible 6 parameter getxattr() call.
14208         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
14209         call on Mac OS X >= 10.4.
14210         * doc/glibc-functions/fgetxattr.texi: Likewise.
14211         * lib/file-has-acl.c: Revert to more complete combined check.
14212         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
14213         Reported by Jack Howarth.
14215 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14217         prefix-gnulib-mk: remove no longer needed special case
14218         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
14219         continued lib_SOURCES lines are no longer present,
14220         so special case handling of such entries is not required.
14222 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14224         acl: don't depend on the deprecated qacl module
14225         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
14227 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14229         gnulib-tool: concatenate lib_SOURCES to a single line
14230         * gnulib-tool: Refactor the line merging sed logic,
14231         and use that to output a single lib_SOURCES line for each module.
14232         gnulib using projects often postprocess this output to prepend
14233         subdir paths to each item, and having a single line simplifies this
14234         processing allowing better decoupling from the gnulib-tool output.
14236 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
14238         pthread_sigmask: discount system version if a simple macro (trivial)
14239         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
14240         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
14241         function to ensure it's available.
14243 2015-05-31  Pádraig Brady  <P@draigBrady.com>
14245         readlinkat: avoid OS X 10.10 trailing slash bug
14246         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
14247         has this bug.
14248         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
14249         that OS X 10.10 has this function.
14250         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
14251         as done for readlink().
14252         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
14253         trailing slash bug, and assume readlinkat() has the same issue.
14254         Also fix a typo where $gl_cv_decl_readlink_works was tested,
14255         rather than the correct $gl_cv_decl_readlinkat_works.
14257 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14259         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
14260         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
14261         module rewrite.
14263         acl-permissions: Fix build on Solaris and Cygwin
14264         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
14265         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
14266         ace_entries variables have moved into struct permission_context but
14267         they were still accessed as local variables here.
14269 2015-05-29  Pádraig Brady  <P@draigBrady.com>
14271         linkat: avoid OS X 10.10 trailing slash with symlink bug
14272         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
14273         causes the symlink to be dereferenced, and if it points
14274         to a non existent file, that file will be created as
14275         a hard link to "path1".
14276         This fixes a test failure in test-linkat.c.
14277         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
14278         this case.  The existing workaround in linkat.c for
14279         trailing slash issues, suffices for this case.
14280         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
14281         the list of platforms with trailing slash issues.
14283 2015-05-28  Pádraig Brady  <P@draigBrady.com>
14285         unlinkat: handle ignoring of ".." on Darwin 14
14286         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
14287         on Mac OS X 10.10, where it ignores paths with a trailing "..",
14288         so handle in the same manner.
14289         * m4/unlinkat.m4: Comment on this Darwin issue.
14290         * doc/posix-functions/unlink.texi: Update the latest version
14291         where the issue was seen.
14292         * doc/posix-functions/unlinkat.texi: Mention this issue.
14293         Fixes a test failure in test-unlinkat.c.
14295 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14297         qacl: split into qcopy-acl and qset-acl
14298         Emacs needs the former, but not the latter.
14299         * modules/acl-permissions: New file, containing most of the old qacl.
14300         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14301         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14302         * modules/qcopy-acl, modules/qset-acl: New files.
14303         * MODULES.html.sh (File system functions):
14304         Mention the new modules, and mention qacl while we're at it.
14306 2015-05-27  Glenn Morris  <rgm@gnu.org>
14308         gitlog-to-changelog: new option --ignore-line
14309         (This patch is imported from the GNU Emacs master.)
14310         This option ignores individual commit lines matching a pattern.
14311         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14313 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14315         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14316         Implement get_permissions and set_permissions primitives for getting all
14317         the permissions of a file, storing them, and later setting them. (In the
14318         minimal case, the permissions consist only of a file mode.) Reimplement
14319         qset_acl and qcopy_acl based on these new primitives: this avoids code
14320         duplication and makes error handling more consistent.
14321         The Solaris and Cygwin code still uses duplicate code paths for setting
14322         a file mode while making sure that no acls exist and setting an explicit
14323         acl; this is no worse than before, but could be cleaned up.  The AIX
14324         code still doesn't read ACLs, it only makes sure that acls don't get in
14325         the way when setting a file mode.
14326         * lib/acl-internal.h (struct permission_context): New data structure.
14327         (get_permissions, set_permissions, free_permission_context): Declare.
14328         * lib/acl-internal.c (free_permission_context): New helper function.
14329         * lib/get-permissions.c (get_permissions): New helper function split off
14330         from qcopy_acl.
14331         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14332         AIX, set a file's permissions based only on a file mode.
14333         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14334         other platforms construct a temporary acl from the file mode and set
14335         that acl in the same way as setting an acl read from the source file.
14336         This should help avoid code duplication and inconsistent / buggy
14337         behavior.
14338         (set_acls): New helper function Split off from qcopy_acl.
14339         (chmod_or_fchmod): Moved here from qset-acl.c.
14340         (set_permissions): New helper function.
14341         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14342         set_permissions.
14343         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14344         * modules/qacl: Add get-permissions.c and set-permissions.c.
14346         file-has-acl: Split feature tests again (Bug#20667)
14347         * lib/file-has-acl.c: Instead of testing for
14348         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14349         define them when needed.
14350         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14351         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14353 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14355         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14356         This avoids a conflict with "FORTIFY_SOURCE" variants
14357         of the string functions when they're replaced on NetBSD-6.0.1
14358         and Darwin-14.3.0 at least.
14359         * lib/string.in.h: Avoid including our "lib/string.h" while
14360         including the system <string.h>.
14362 2015-05-26  Eric Blake  <eblake@redhat.com>
14364         stdio: limit __gnu_printf__ witness to gcc 4.4+
14365         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14366         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14368         error: use correct printf attributes on mingw
14369         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14371         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14372         * modules/inttypes (Depends-on): Require extensions, so that mingw
14373         always uses GNU style inttypes.
14374         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14376         stdio: fix probe on mingw under gcc 5.1
14377         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14378         around new gcc preprocessor rules.
14380 2015-05-07  Glenn Morris  <rgm@gnu.org>
14382         gitlog-to-changelog: parse "Tiny-change"
14383         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14384         "Copyright-paperwork-exempt".  (Bug#20324)
14386 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14388         doc: document glibc posix_fallocate() issues
14389         * doc/posix-functions/posix_fallocate.texi: Mention the
14390         glibc efficiency problems and issues with NFS.
14392 2015-05-05  Karl Berry  <karl@freefriends.org>
14394         * build-aux/gendocs.sh (usage): document new css default
14395         for HTML (--htmlarg).
14397 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14399         extern-inline: no need for workaround in GCC 5.1
14400         * doc/extern-inline.texi (extern inline):
14401         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14402         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14403         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14404         two we can remove these workarounds.
14406 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14408         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14409         Avoid [-Wunknown-attributes] warnings like:
14410         warning: unknown attribute '__alloc_size__' ignored
14411         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14412         with clang, as support has been fully removed as of clang 3.5:
14413         https://github.com/llvm-mirror/clang/commit/c047507a
14414         * lib/eealloc.h: Likewise.
14415         * lib/pagealign_alloc.h: Likewise.
14417 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14419         tests: pacify GCC 5.1's stricter printf checking
14420         * tests/test-dirname.c (main):
14421         * tests/test-getaddrinfo.c (simple):
14422         * tests/test-getlogin.c (main):
14423         * tests/test-getndelim2.c (main):
14424         * tests/test-inttostr.c (CK):
14425         * tests/test-md5.c (main):
14426         * tests/test-read-file.c (main):
14427         * tests/test-sha1.c (main):
14428         Fix mismatches between printf format and value signedness.
14429         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14430         Remove, as CAST_VAL always returned a value of type uintmax_t.
14432         fts: port to GCC 5.1 with --enable-gcc-warnings
14433         Without this fix, GCC 5.1 (correctly) warns about a subscript
14434         error on the fts_name component of FTSENT.  It's actually a
14435         flexible member, so define it that way on C99 or later hosts.
14436         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14437         structure that now has a flexible array member.
14438         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14439         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14440         * modules/fts (Depends-on): Add flexmember.
14442 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14444         file-has-acl: port to CentOS 6
14445         Problem reported by Tom G. Christensen in:
14446         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14447         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14448         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14449         HAVE_GETXATTR.
14450         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14451         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14452         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14453         file-has-acl.c actually needs.
14455 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14457         file-has-acl: always return false when ACLs aren't supported
14458         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14459         change the GNU/Linux getxattr path, to transform "not supported"
14460         errors to a false return rather than an error.  This is handled
14461         within file_has_acl() due to the platform specific tests to
14462         determine if ACLs are not supported.
14464 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14466         gettext: propagate po/Makefile.in.in too
14467         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14468         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14469         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14470         between Makefile.in.in and the gettext-runtime m4 files.
14472 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14474         file-has-acl: new module, split from acl
14475         And add a new module file-has-acl-tests to match.
14476         I ran into a problem with the recent changes to the acl module,
14477         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14478         When using the fixed version with Emacs, I discovered that
14479         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14480         had multiple libraries, but needed only one), so I fixed that too.
14481         * NEWS: Document this incompatible change.
14482         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14483         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14484         Initialize gl_need_lib_has_acl.
14485         (gl_FUNC_ACL): Require it.
14486         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14487         Move the file-has-acl.c-relevant stuff to ...
14488         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14489         use_xattrs = 0' typo, and omit some needless work.  Set
14490         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14491         when gl_FUNC_ACL is called.
14492         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14493         (Link): Remove $(LIB_HAS_ACL).
14494         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14495         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14496         modules/file-has-acl-tests.
14497         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14499         manywarnings: add GCC 5.1 warnings
14500         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14501         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14502         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14503         -Wsuggest-override, -Wuse-without-only.  Change
14504         -Wnormalized=... operands to match 5.1.
14505         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14506         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14507         -Wdiscarded-qualifiers, -Wformat-signedness,
14508         -Wincompatible-pointer-types, -Wint-conversion,
14509         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14510         -Wshift-count-negative, -Wshift-count-overflow,
14511         -Wsizeof-array-argument, -Wsuggest-final-methods,
14512         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14513         and add -Warray-bounds=2 as a special case.
14515 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14517         doc: update FDL template to match FDL examples.
14518         * doc/alloca-opt.texi:
14519         * doc/alloca.texi:
14520         * doc/c-ctype.texi:
14521         * doc/c-strcase.texi:
14522         * doc/c-strcaseeq.texi:
14523         * doc/c-strcasestr.texi:
14524         * doc/c-strstr.texi:
14525         * doc/c-strtod.texi:
14526         * doc/c-strtold.texi:
14527         * doc/ctime.texi:
14528         * doc/error.texi:
14529         * doc/gcd.texi:
14530         * doc/gnulib-tool.texi:
14531         * doc/inet_ntoa.texi:
14532         * doc/intprops.texi:
14533         * doc/lib-symbol-visibility.texi:
14534         * doc/maintain.texi:
14535         * doc/parse-datetime.texi:
14536         * doc/quote.texi:
14537         * doc/regexprops-generic.texi:
14538         * doc/standards.texi: Remove spurious 'with' in FDL license
14539         template.
14541 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14543         lstat: fix cross-compilation 'ln -s' problem
14544         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
14545         Have the test program call 'symlink' rather than a separate
14546         script run 'ln -s'; this is more likely to work in
14547         cross-compilation environments.  Reported by Pavel Fedin in:
14548         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
14550 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
14552         gendocs.sh: default to a common CSS style sheet for HTML output
14553         * build-aux/gendocs.sh (htmlarg): Change default value.
14555 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
14557         gnulib-tool: output bold attribute more portably
14558         * gnulib-tool (func_show_module_list): Change hexadecimal
14559         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
14560         encoded numbers as arguments to `printf' is not portable,
14561         and is not claimed by POSIX.  This is the case with FreeBSD.
14563 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14565         qacl: Simplify HP-UX acl_nontrivial check
14566         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
14567         acl_nontrivial. Check if the acl has at most three entries instead (it must
14568         have exactly three entries according to the HP-UX documentation). Ignore
14569         uids and gids as long as an entry is either for a user (i.e., the owner),
14570         a group (i.e., the owning group), or others.
14571         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
14572         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
14574 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
14576         acl: On Linux, check for acls without libacl
14577         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
14578         library function to check for the presence of acls, avoiding a library.
14579         * lib/file-has-acl.c: Include xattr headers if we have them.
14580         (file_has_acl): On Linux, use getxattr().
14581         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
14582         file_has_acl(). Check for xattr headers and getxattr().
14584 2015-04-14  Ángel González  <keisial@gmail.com>
14586         tempname: avoid unused parameter warnings (trivial)
14587         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
14588         (try_nocreate): Likewise.
14590 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
14592         fseeko: fix build failure on NetBSD >= 6 (trivial)
14593         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
14594         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
14596 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14598         gitlog-to-changelog: port to MS-Windows
14599         * build-aux/gitlog-to-changelog (git_dir_option):
14600         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
14601         MS-Windows Perl.  Reported by Eli Zaretskii in:
14602         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
14604 2015-04-07  Karl Berry  <karl@gnu.org>
14606         gendocs: new option --tex for passing args to texi2dvi.
14607         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
14608         (TEXI2DVI): cut to just command name.
14609         (usage): mention new option, and update copyright.
14610         <generate_tex>: use it.
14612 2015-04-07  Karl Berry  <karl@gnu.org>
14614         * config/srclistvars.sh (GETTEXT): new definition.
14615         * config/srclist.txt: use it for gettext .m4 files.
14616         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
14617         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
14618         and continuing into April.
14620 2015-04-07  Daiki Ueno  <ueno@gnu.org>
14622         uniname/uniname-tests: fix failure due to alias
14623         Reported by Jack Howarth in:
14624         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
14625         * tests/uniname/test-uninames.c (name_has_alias): New function.
14626         (test_inverse_lookup): Exclude character name with valid alias,
14627         from randomly generated character names.
14628         (main): Fill unicode_aliases before calling test functions.
14630 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
14632         hash: remove deprecated hash_insert0 function
14633         * lib/hash.h (hash_insert0): Remove deprecated function.
14634         * lib/hash.c (hash_insert0): Likewise.
14636 2015-04-02  Pádraig Brady  <P@draigBrady.com>
14638         mountlist: remove dependency on libmount
14639         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
14640         directly, rather than depending on libmount, which has many
14641         dependencies due to its dependence on libselinux, as detailed at:
14642         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
14643         Note we restrict this to __linux__ as that's probably where this
14644         interface will remain.  If ever porting, it would be best
14645         to first pull the makedev() wrapper from coreutils to a gnulib module.
14646         Note also we don't add a getline dependency to the mountlist module,
14647         as all Linux versions are sufficient.
14649 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
14651         stddef: port to pre-C11 GCC on x86
14652         On this platform, max_align_t should have an alignment of 8 even
14653         though the storage alignments of double, long, etc. max out at 4.
14654         Inspired by a comment of Andreas Schwab's here:
14655         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
14656         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
14657         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
14658         * tests/test-stddef.c: Test __alignof__ too, if available.
14660 2015-03-24  Pádraig Brady  <P@draigBrady.com>
14662         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
14663         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
14665 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
14667         yesno: make EOL optional in ENABLE_NLS case also (trival)
14668         * lib/yesno.c (yesno): Check for EOL before replacing.
14669         * tests/test-yesno.sh: Add a test case (test along with gettext).
14671 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14673         fdopendir-tests: test it does not close its arg
14674         * tests/test-fdopendir.c (main): Test that fdopendir does not
14675         close its argument.  From a suggestion by David Grayson in:
14676         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
14678 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14680         gitlog-to-changelog: trim trailing white space
14681         * build-aux/gitlog-to-changelog (main):
14682         Trim trailing white space from commit message lines.
14683         This is helpful for processing the GNU Emacs repository,
14684         which dates back to 1985 and contains a lot of such lines.
14686         gitlog-to-changelog: new option --ignore-matching
14687         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
14688         Support new option --ignore-matching=PAT, which ignores all
14689         commit messages whose first line matches PAT.
14691 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14693         fdopendir: port better to MinGW
14694         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
14695         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
14696         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
14697         * modules/fdopendir (Depends-on): Add dirfd.
14699 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14701         fdopendir: fix typo in comment
14702         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
14704 2015-03-09  Eric Blake  <eblake@redhat.com>
14706         error: document all entry points provided
14707         * doc/glibc-functions/error_print_progname.texi
14708         (error_print_progname): Mention the error module.
14709         * doc/glibc-functions/error_at_line.texi (error_at_line):
14710         Likewise.
14711         * doc/glibc-functions/error_message_count.texi
14712         (error_message_count): Likewise.
14713         * doc/glibc-functions/error_one_per_line.texi
14714         (error_one_per_line): Likewise.
14716 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
14718         vasnprintf: pacify clang 3.5.0
14719         Problem reported by Werner Lemberg in:
14720         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
14721         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
14722         The casts aren't needed, since the characters in question are ASCII.
14724 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14726         glob, etc.: port to MSVC v18 on MS-Windows 8.1
14727         * lib/dirent--.h (GNULIB_defined_opendir):
14728         * lib/dirent.in.h (GNULIB_defined_opendir)
14729         (GNULIB_defined_closedir):
14730         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
14731         #undef only if Gnulib defined it.
14733         poll: port to MSVC v18 on MS-Windows 8.1
14734         Problem reported by Gisle Vanem in:
14735         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
14736         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
14737         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
14738         Add sys_socket.
14740 2015-02-24  Pádraig Brady  <P@draigBrady.com>
14742         tests: support stderr verification with returns_()
14743         * tests/init.sh (returns_): Disable tracing for this wrapper
14744         function, so that stderr of the wrapped command is unchanged,
14745         allowing for verification of the contents.
14747 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
14749         passfd: avoid valgrind uninitalised data warning
14750         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
14751         to include just the fd we've initialized, rather than including
14752         the extra space used for alignment.
14754 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14756         uniwbrk/u32-wordbreaks-tests: fix copyright
14757         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
14759         dup2: doc and test for Android bug
14760         Reported by Kevin Cernekee in:
14761         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
14762         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14763         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
14765 2015-02-23  Kevin Cernekee  <cernekee@google.com>
14767         Replace dup2() on Android
14768         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
14769         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
14770         fails.  Using rpl_dup2() fixes this because it has an explicit test
14771         for this condition.
14773 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
14775         Android doesn't define RLIM_SAVED_*
14776         Portability problem reported by Kevin Cernekee in:
14777         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
14778         * doc/posix-headers/sys_resource.texi (sys/resource.h):
14779         Mention the portability problem.
14780         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
14781         Define if not defined.
14782         * m4/dup2.m4 (gl_FUNC_DUP2):
14783         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14784         Likewise.
14786 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14788         vasnprintf-posix-tests: use consistent test
14789         * tests/test-vasnprintf-posix.c (test_function):
14790         Use "<" in assert instead of "<=", for consistency with other tests.
14792 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14794         printf, isinf, etc.: noncanonical != NaN
14795         Do not require that isinf, printf, etc. treat noncanonical
14796         values as NaNs.  Instead, require only that they do not crash.
14797         Problem reported by Joseph Myers in:
14798         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
14799         * doc/posix-functions/dprintf.texi (dprintf):
14800         * doc/posix-functions/fprintf.texi (fprintf):
14801         * doc/posix-functions/isfinite.texi (isfinite):
14802         * doc/posix-functions/isinf.texi (isinf):
14803         * doc/posix-functions/isnan.texi (isnan):
14804         * doc/posix-functions/printf.texi (printf):
14805         * doc/posix-functions/snprintf.texi (snprintf):
14806         * doc/posix-functions/sprintf.texi (sprintf):
14807         * doc/posix-functions/vdprintf.texi (vdprintf):
14808         * doc/posix-functions/vfprintf.texi (vfprintf):
14809         * doc/posix-functions/vprintf.texi (vprintf):
14810         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14811         * doc/posix-functions/vsprintf.texi (vsprintf):
14812         Document this.
14813         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
14814         * m4/isinf.m4 (gl_ISINFL_WORKS):
14815         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
14816         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
14817         * tests/test-isfinite.c (test_isfinitel):
14818         * tests/test-isinf.c (test_isinfl):
14819         * tests/test-isnan.c (test_long_double):
14820         * tests/test-isnanl.h (main):
14821         * tests/test-snprintf-posix.h (test_function):
14822         * tests/test-sprintf-posix.h (test_function):
14823         * tests/test-vasnprintf-posix.c (test_function):
14824         * tests/test-vasprintf-posix.c (test_function):
14825 o       Test only that noncanonical values do not cause crashes, not that
14826         they are treated as NaNs.  In some cases this means a larger
14827         output buffer is needed.
14829 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
14831         fts: remove redundant close() (trivial)
14832         * lib/fts.c (fts_read): Remove redundant call to close().
14833         Spotted by coverity.
14835 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14837         getdtablesize: port better for Android
14838         Problem reported by Kevin Cernekee in:
14839         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
14840         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
14841         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
14842         Instead, just use getrlimit, taking care to avoid Cygwin bug.
14844         poll: fixes for large fds
14845         * lib/poll.c (poll): Don't check directly for NFD too large.
14846         Don't rely on undefined behavior in FD_SET when an arg exceeds
14847         FD_SETSIZE.  Always set revents afterwards, even if to zero.
14848         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
14849         as that makes the test a bit stricter.
14851 2015-02-19  Kevin Cernekee  <cernekee@google.com>
14853         fcntl: Fix cross compiling
14854         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
14855         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
14857 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14859         dup2, fcntl: cross-compile better for Android
14860         Problem reported by Kevin Cernekee in:
14861         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
14862         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
14863         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
14864         there's little need to cross-compile for older kernels nowadays.
14865         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
14866         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
14868 2015-02-18  Pádraig Brady  <P@draigBrady.com>
14870         getopt: don't crash on memory exhaustion
14871         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
14872         memory exhaustion.  In the _LIBC case we use alloca() as is
14873         already done in glibc, so we don't need to consider the separate
14874         error path in that awkward case.  Also fix a memory leak when
14875         ambiguous options are present.
14876         Reported by Tobias Stoeckmann
14878 2015-02-17  Mike Miller  <mtmiller@ieee.org>
14880         tempname: allow compilation with C++ (trivial)
14881         * lib/tempname.h [C++]: Specify extern "C" linkage.
14882         * lib/tempname.h (try_tempname):
14883         * lib/tempname.c (__try_tempname, __gen_tempname):
14884         Rename 'try' to 'tryfunc'.
14886 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14888         dup2, fcntl: port to AIX
14889         * m4/dup2.m4 (gl_FUNC_DUP2):
14890         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14891         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
14892         The former works on AIX 7.1 but the latter does not.
14893         Also, this may work better with Android; see:
14894         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
14896 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14898         getdtablesize, dup2, fcntl: port to Android
14899         Problem reported by Kevin Cernekee in:
14900         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
14901         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
14902         Mention that getdtablesize doesn't work on Android.
14903         * lib/getdtablesize.c: Use getrlimit substitute only if
14904         getdtablesize is declared.  This should suffice for Cygwin
14905         while not breaking Android.
14906         * m4/dup2.m4 (gl_FUNC_DUP2):
14907         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14908         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
14909         standardized but the latter is not, and sysconf works on Android.
14910         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
14911         Also check that getdtablesize is declared.
14912         This removes the need for a special case for Android.
14914 2015-02-16  Kevin Cernekee  <cernekee@google.com>
14916         localename: Implement gl_locale_name_thread_unsafe for Android
14917         * lib/localename.c: Android API level >= 21 supports two hardcoded
14918         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
14919         the internal __locale_t struct.
14921 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
14923         fts: avoid crash when a cycle is added while traversing
14924         This could be triggered by auto-mounting a recursive bind mount.
14925         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
14926         * lib/fts.c (fts_read): Avoid removing the original hash table item
14927         when leaving a directory that caused a cycle, and preserve the FTS_DC
14928         flag.
14930 2015-02-16  Daiki Ueno  <ueno@gnu.org>
14932         uniname/uniname: support character alias
14933         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
14934         Generate one-way mapping from aliases to codepoints in the
14935         generated tables.  Special case variation selectors to reduce
14936         table size.
14937         * lib/uniname/uniname.c (unicode_character_name): Special case
14938         variation selectors.
14939         (unicode_name_character): Special case variation selectors and
14940         their aliases.
14941         * lib/uniname/uninames.h: Regenerate.
14942         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
14943         * modules/uniname/uniname-tests (Files): Add
14944         tests/uniname/NameAliases.txt.
14945         * tests/uniname/test-uninames.c: Mark as static.
14946         (ALIASLEN): Define.
14947         (struct unicode_alias): New struct.
14948         (unicode_aliases): New variable.
14949         (fill_aliases): New function.
14950         (test_alias_lookup): New test function.
14951         (main): Run the 'test_alias_lookup' test if the second argument is
14952         given.
14953         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
14954         second argument.
14956 2015-02-11  Kevin Cernekee  <cernekee@google.com>
14958         Fix FILE struct compatibility with Android API level >= 21
14959         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
14960         __sferror.  Recent versions of Bionic's stdio.h no longer define
14961         __sferror.
14962         * lib/fbufmode.c: Likewise.
14963         * lib/fflush.c: Likewise.
14964         * lib/fpurge.c: Likewise.
14965         * lib/freadable.c: Likewise.
14966         * lib/freadahead.c: Likewise.
14967         * lib/freading.c: Likewise.
14968         * lib/freadptr.c: Likewise.
14969         * lib/freadseek.c: Likewise.
14970         * lib/fseeko.c: Likewise.
14971         * lib/fseterr.c: Likewise.
14972         * lib/fwritable.c: Likewise.
14974         Assume unbroken ungetc() on Android
14975         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
14976         test case passed when running on an Android host, and the code
14977         hasn't really changed since 2009.
14979         getdtablesize: Fix Android build
14980         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
14981         versions have this symbol in the .so library (at least 32-bit
14982         platforms) but are missing the declaration in the header file,
14983         causing the m4 logic to guess incorrectly.
14985         localename: Fix Android build
14986         * modules/localename (Depends-on): Add langinfo.
14988         getugroups: Fix Android build
14989         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
14990         functions.
14992         euidaccess: Fix Android build
14993         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
14994         AT_EACCESS gets declared.
14996         linkat_nofollow: Add fallback case for cross compiling
14997         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
14999         net_if: Handle content-free <net/if.h> system headers
15000         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
15001         struct if_nameindex.  If not, enable the replacement header.
15003         signal_h: Fix Android build
15004         * lib/signal.in.h: Add Android to the list of platforms that declare
15005         pthread_sigmask() in <pthread.h> instead of <signal.h>.
15007         duplocale: Fix Android build of duplocale-tests
15008         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
15009         is included by test-duplocale.c (but not by duplocale.c).
15010         * modules/duplocale-tests (configure.ac): Check for monetary.h.
15011         * tests/test-duplocale.c: Skip test if monetary.h is absent.
15012         * doc/posix-headers/monetary.texi: Add Android to the list of
15013         platforms missing monetary.h.
15015 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15017         tests: avoid recent -Werror=unused-variable regression in test-locale
15018         * tests/test-locale.c (main): Reference the variable to avoid the
15019         "unused variable" warning.
15021 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15023         maint: various whitespace cleanups in tempname
15024         * lib/tempname.c: Normalize spacing and line length.
15025         * lib/tempname.h: Likewise.
15026         * modules/tempname: Likewise.
15028 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15030         tests: provide returns_() to simplify exit status checking
15031         * tests/init.sh (returns_): A new function for use in tests,
15032         to allow for easier checking of return values, where you expect
15033         a command to exit with failure status.  By checking for a particular
15034         exit code, you don't hide any crashes for example.
15036 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15038         mountlist: only use libmount when specified
15039         There are currently many shared libs dependencies introduced by
15040         libmount with associated runtime and virt mem overhead.
15041         Therefore don't enable by default.
15042         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
15044 2015-02-08  Daiki Ueno  <ueno@gnu.org>
15046         uniname/unimame-tests: don't link with -lunistring
15047         * modules/uniname/uniname-tests (Makefile.am): Don't link against
15048         $(LIBUNISTRING).  Document the rationale why we need to
15049         conditionalize the test.
15051 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15053         fstrcmp: don't assume strlen < INT_MAX
15054         * lib/fstrcmp.c: Include stddef.h and stdint.h.
15055         (uintptr_t): Remove, as we're now assuming stdint.
15056         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
15057         Prefer ptrdiff_t to int when the value could exceed INT_MAX
15058         if the input string is long.
15059         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
15060         uintptr_t to size_t when the underlying value is a pointer casted
15061         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
15062         * modules/fstrcmp (Depends-on): Add stdint.
15064         diffseq: prefer ptrdiff_t to ssize_t
15065         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
15066         ptrdiff_t is the natural type for signed indexes.
15067         On a few older platforms, ssize_t is narrower than size_t.
15069         xalloc: fix typo that suppressed warnings
15070         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
15071         This typo, introduced a couple of years ago, mistakenly suppressed
15072         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
15073         -Wmissing-declarations warnings.
15075         full-read: fix license notice typo
15076         * lib/full-read.h: Remove a stray line in the license notice.
15077         Reported by Sam Ellis in: http://bugs.gnu.org/19808
15079         crypto/gc: fix a -Wswitch warning
15080         Reported by Bruce Korb in:
15081         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
15082         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
15084 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15086         gnulib-tool: fix handling of patch(1) diagnostics
15087         * gnulib-tool: Send diagnostics from patch(1) to stderr,
15088         as otherwise gnulib-tool will reparse that output and attempt
15089         to lookup modules.
15091 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15093         bootstrap: exit immediately upon gnulib-tool failure
15094         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
15095         This was noticed when gnulib-tool exited early due to failure
15096         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
15097         but various confusing errors were then given as the build proceeded.
15099 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
15101         symlinkat: include all required header files
15102         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
15103         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
15104         Reported at https://savannah.gnu.org/bugs/index.php?44151
15105         and by Jack Howarth.
15107 2015-01-29  Pádraig Brady  <P@draigBrady.com>
15109         localename: support Solaris 12 and illumos
15110         * lib/localename.c (gl_locale_name_thread_unsafe): call
15111         getlocalename_l() on newer __sun platforms.
15112         Reported by Alexander Pyhalov.
15113         Fix suggested by Rich Burridge.
15115 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
15117         locale: fix tests on illumos (trivial)
15118         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
15119         so move from global scope to main().
15121 2015-01-24  Daiki Ueno  <ueno@gnu.org>
15123         unictype: avoid undefined left-shift behavior
15124         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
15125         gcc's -fsanitize=shift and running its tests triggered:
15126           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
15127             places cannot be represented in type 'int'
15128         Cast LHS to 'unsigned int' after integer promotion.
15129         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15130         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15132 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15134         libunistring: bump version of unitypes dependants
15135         Due to the header file search order, all the headers which depend
15136         on unitypes.h need to be generated, when the preinstalled
15137         libunistring is older.
15138         * modules/unicase/base (configure.ac): Bump minimum version to
15139         0.9.4.
15140         * modules/uniconv/base (configure.ac): Likewise.
15141         * modules/unilbrk/base (configure.ac): Likewise.
15142         * modules/uninorm/base (configure.ac): Likewise.
15143         * modules/unistdio/base (configure.ac): Likewise.
15144         * modules/unistr/base (configure.ac): Likewise.
15145         * modules/uniwbrk/base (configure.ac): Likewise.
15146         * modules/uniwidth/base (configure.ac): Likewise.
15148 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15150         unictype/category-none: fix link with libunistring
15151         Since _UC_CATEGORY_NONE is not a public symbol, it will be
15152         prefixed with "libstring_" when compiled as part of libunistring.
15153         To avoid undefined symbol at link time, increase the minimum
15154         version when the dependant modules are updated.
15155         * modules/unictype/category-none (configure.ac): Bump minimum
15156         version to 0.9.5.
15158 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15160         unitypes: fix build with installed libunistring
15161         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
15162         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
15163         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
15165 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15167         time: port to MinGW32 3.21
15168         Problem reported by Eli Zaretskii in:
15169         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
15170         * lib/time.in.h:
15171         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
15172         * modules/time (Depends-on):
15173         Fall back on unistd.h if the other include files don't define
15174         struct timespec.
15176         update-copyright: apply to self
15177         * build-aux/update-copyright: Fix copyright date.  How ironic!
15179 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15181         libunistring: update to Unicode 7.0.0
15182         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
15183         Manichaean names.
15184         * lib/unictype/joininggroup_name.h: Likewise.
15185         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
15186         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
15187         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
15188         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
15189         (fill_arabicshaping, joining_group_as_c_identifier): Support those
15190         enum values.
15191         (is_property_alphabetic): Accept newly added characters to
15192         cuneiform numeric signs.
15193         (is_property_default_ignorable_code_point): Reject U+0605.
15194         (FIELDLEN): Increase from 120 to 160.
15195         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
15196         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
15197         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
15198         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
15199         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
15200         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
15201         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
15202         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
15203         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
15204         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
15205         U+1E8D0..U+1E8D6.
15206         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
15207         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15208         lib/uniwidth/width.c.
15209         * all generated files under lib/uni* and tests/uni*: Regenerate.
15211 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15213         libunistring: update to Unicode 6.3.0
15214         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15215         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
15216         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
15217         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
15218         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
15219         Update WB5, WB9, WB10, WB13a, and WB13b.
15220         * tests/uniwbrk/test-uc-wordbreaks.c
15221         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
15222         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15223         (UC_BIDI_PDI): New enumeration values.
15224         (bidi_category_byname): Support those enum values.
15225         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
15226         dedicated property assigned.
15227         (is_property_case_ignorable): Check 0x0027.
15228         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15229         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15230         (output_wbp): Support those enum values.
15231         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15232         (UC_BIDI_PDI): New enumeration values.
15233         * lib/unictype/bidi_byname.gperf: Add those property names.
15234         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
15235         U+180E, U+1A1B, and U+2066..U+2069.
15236         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15237         lib/uniwidth/width.c.
15238         * all generated files under lib/uni* and tests/uni*: Regenerate.
15240 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15242         libunistring: update to Unicode 6.2.0
15243         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
15244         (unilbrk_table): Adjust table size.
15245         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15246         for LBP_RI.
15247         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
15248         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
15249         Normalize table index skipping ignored properties.
15250         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
15251         WBP_EXTEND and WBP_FORMAT, which are now computed without using
15252         the table.
15253         * lib/uniwbrk/wbrktable.h: Adjust table size.
15254         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
15255         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
15256         Support rule GB8a.
15257         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
15258         * tests/unigbrk/test-uc-is-grapheme-break.c
15259         (graphemebreakproperty_to_string): Support GBP_RI.
15260         * tests/uniwbrk/test-uc-wordbreaks.c
15261         (wordbreakproperty_to_string): Support WBP_RI.
15262         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
15263         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
15264         (output_lbp): Support LBP_RI.  Adjust some characters changed from
15265         LBP_AL to LBP_ID.
15266         (output_lbp): Support LBP_RI.
15267         (WBP_RI): New enumeration value.
15268         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15269         (output_wbp): Support WBP_RI.
15270         (GBP_RI): New enumeration value.
15271         (output_gbp_test, fill_org_gbp): Support GBP_RI.
15272         * all generated files under lib/uni* and tests/uni*: Regenerate.
15274 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15276         libunistring: update to Unicode 6.1.0
15277         * lib/gen-uni-tables.c (output_joining_group): Switch to
15278         3-level table to accommodate joining groups defined with higher
15279         codepoint value.  Since there are only 88 groups defined in
15280         Unicode 7.0.0, use 7-bit packed format for level3 entries.
15281         (get_lbp): Update for Unicode 6.1.0.
15282         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
15283         3-level table.
15284         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
15285         joining group name.
15286         * lib/unictype/joininggroup_name.h: Likewise.
15287         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
15288         (unilbrk_table): Adjust table size.
15289         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15290         for LBP_HL.
15291         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
15292         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15293         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15294         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15295         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15296         U+302E..U+302F.
15297         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15298         lib/uniwidth/width.c.
15299         * all generated files under lib/uni* and tests/uni*: Regenerate.
15300         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15302 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15304         uniwbrk/u32-wordbreaks-tests: add conformance test
15305         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15306         tests/uniwbrk/test-uc-wordbreaks.c,
15307         tests/uniwbrk/test-uc-wordbreaks.sh, and
15308         tests/uniwbrk/WordBreakTest.txt.
15309         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15310         test-uc-wordbreaks to $(check_PROGRAMS), and define
15311         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15312         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15313         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15315 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15317         uniwbrk: ignore Extended/Format characters at BOL not BOS
15318         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15319         characters if the previous character property is one of
15320         WBP_NEWLINE, WBP_CR, and WBP_LF.
15322 2015-01-11  Jim Meyering  <meyering@fb.com>
15324         test-strstr.c: avoid a trivial leak
15325         * tests/test-strstr.c (main): Free haystack.
15327         update-copyright: recognize groff's \(co marker
15328         * build-aux/update-copyright (circle_c_re): Also accept
15329         uses of \(co, as found in gzip.1.
15331 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15333         maint.mk: fix compatibility with OS X nm
15334         * top/maint.mk (_gl_tight_scope): Use the -g option to
15335         show exported items rather than the -e option which is
15336         ignored on all platforms except OS X where it gives an error.
15337         Reported by Assaf Gordon.
15339 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15341         localcharset: improve charset detection on OS/2
15342         Use system codepage when appropriate.  Map OS/2 codepages to
15343         GNU canonical charset names if possible.
15344         * lib/config.charset: Don't output aliases if "$os" is os2*.
15345         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15346         result for OS/2.
15347         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15348         from the locale name which is neither "C" nor "POSIX".
15350 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15352         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15353         This reverts the last patch but one, as it shouldn't be needed now
15354         that the typo is fixed.
15355         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15356         * lib/count-trailing-zeros.h:
15357         * lib/count-one-bits.h:
15358         Go back to using 64-bit intrinsics.
15360         count-leading-zeros: fix pragma typos
15361         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15362         Fix typos in declaration of intrinsics when _MSC_VER.
15364 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15366         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15367         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15368         intrinsics in this case.
15369         * lib/count-trailing-zeros.h: Likewise.
15370         * lib/count-one-bits.h: Likewise.
15372 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15374         uniname/uniname: update to Unicode 7.0.0
15375         To accommodate new characters added since Unicode 5.1.0, this
15376         changes the internal representation of codepoint ranges.
15377         Previously, we grouped codepoint ranges by manually assigned 4-bit
15378         tag, which only allowed 16 groups.  This removes the limitation by
15379         switching to binary search on a table.  For the detail rationale
15380         and the benchmark results, see:
15381         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15382         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15383         to INDEX, as it no longer represents a codepoint.
15384         (range): New struct.
15385         (main): Switch to intervals list from a bit-pattern based
15386         classification.
15387         * lib/uniname/uninames.h: Regenerate.
15388         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15389         * modules/uniname/base (configure.ac): Bump minimum version to
15390         0.9.5.
15391         * modules/uniname/uniname (configure.ac): Bump minimum version to
15392         0.9.5.
15394 2015-01-05  Eric Blake  <eblake@redhat.com>
15396         doc: update INSTALL from autoconf
15397         * doc/install.texi: Resync from autoconf.
15398         * doc/INSTALL: Reflect recent autoconf update.
15399         * doc/INSTALL.ISO: Likewise.
15400         * doc/INSTALL.UTF-8: Likewise.
15402         stdio: fix use of PRIdMAX on modern mingw
15403         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15404         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15405         to work with modern mingw.
15407 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15409         pthread: detect git mingw builds with only partial pollution
15410         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15411         pollution, as seen temporarily in Fedora 21.
15413 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15415         lib-symbol-versions: cache script check
15416         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15417         Cache the check for linker version scripts.
15418         From a suggestion by Christophe Curis in:
15419         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15421 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15423         maint: fix grammar nits in propername (trivial change)
15424         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15425         and use an adequate verb and tense.
15427 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15429         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15430         * module/gendocs: Add 'doc/gendocs_template_min'.
15432         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15433         from to Gnulib's.
15434         (scripturl, templateurl): Adjust accordingly.
15436 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15438         gendocs: copyright date and version fix
15439         Reported by Karl Berry in:
15440         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15441         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15442         Fix copyright date.
15443         * build-aux/gendocs.sh (scriptversion): Update.
15445 2015-01-01  Karl Berry  <karl@gnu.org>
15447         * doc/install.texi,
15448         * build-aux/mdate-sh,
15449         * build-aux/depcomp,
15450         * build-aux/config.guess,
15451         * build-aux/config.sub,
15452         * build-aux/ar-lib,
15453         * build-aux/compile: revert copyright updates (some from last
15454         year) in slaved files.
15456 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15458         version-etc: new year
15459         * doc/gnulib.texi:
15460         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15461         * all files: Run 'make update-copyright'.
15463 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15465         xstrtol: ensure errno is reset
15466         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15467         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15469         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15471 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15473         utimens: fix dependency typo
15474         * modules/utimens (Depends-on): Remove 'assure'.
15475         This bug was introduced in the recent 'assure' patch.
15477 2014-12-22  Eric Blake  <eblake@redhat.com>
15479         docs: mention why libgen.h is bad
15480         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15482 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15484         assure: new module
15485         This works better than 'assert' when compiling with -DNDEBUG,
15486         as it avoids some compiler diagnostics in that case.
15487         Reported by Norihiro Tanaka in:
15488         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15489         * MODULES.html.sh (func_all_modules): Add 'assure'.
15490         * lib/assure.h, modules/assure: New files.
15491         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15492         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15493         Prefer 'assure' to 'assert'.
15494         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15495         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15496         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15497         Depend on 'assure'.
15499 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15501         stdalign: port better to HP compilers
15502         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15503         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15505         stdalign: work around Apple GCC 4.0 bug
15506         Reported by David Fang in:
15507         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15508         * lib/stdalign.in.h (_Alignas):
15509         * m4/stdalign.m4 (gl_STDALIGN_H):
15510         Do not use aligned attribute with GCC 4.0 on Apple.
15512 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15514         getcwd: fix test failure on OS X 10.9
15515         * m4/getcwd-path-max.m4: Avoid the replacement if it
15516         won't be effective due to the PATH_MAX limitation of lstat().
15517         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15518         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15519         for this case for use in tests, and also exclude this
15520         case when setting REPLACE_GETCWD.
15521         * tests/test-getcwd.c (test_long_name): Restrict the
15522         tested path length so that lstat() will not be passed
15523         a path greater than PATH_MAX.
15524         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15525         than AT_FDCWD, since the latter is set unconditionally
15526         since Sep 2009 in commit 52c658e9.
15528 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15530         parse-datetime: avoid a compiler warning with byacc (trivial)
15531         * lib/parse-datetime.y (yylex): Use the same prototype in the
15532         function definition as the declaration, to avoid a -Wstrict-prototypes
15533         warning seen when using byacc.
15535 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15537         unicase/locale-language-tests: fix LOCALE_FR test
15538         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15539         a French locale with traditional encoding.
15540         Reported by umerqayam in:
15541         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15543 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15545         stddef: support C11's max_align_t
15546         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
15547         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
15548         Do not undef, as that might cause max_align_t to be defined twice.
15549         Instead, change use to check for _GL_STDDEF_WINT_T too.
15550         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
15551         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
15552         Check for max_align_t.
15553         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
15554         * modules/stddef-tests (Depends-on): Add stdalign.
15555         * tests/test-stddef.c: Test max_align_t.
15557 2014-12-11  Daiki Ueno  <ueno@gnu.org>
15559         unistd: fix iOS check conditional
15560         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
15561         as 0 or 1 in <TargetConditionals.h>, and the previous check always
15562         yielded true on non-iOS environment.
15563         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
15564         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
15565         they are defined.
15567 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15569         posixtm: avoid compiler warning in a better way
15570         * lib/posixtm.c (IF_LINT): Remove.
15571         (year, posix_time_parse):
15572         Return true (not 0) if successful.  All callers changed.
15573         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
15575 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15577         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
15578         started with '/' on EMX.
15580 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15582         freopen: workaround freopen() on OS/2 kLIBC
15583         * lib/freopen.c (rpl_freopen): Workaround.
15584         * m4/freopen.m4: Add os2* case.
15586         get_shared_library_fullname: port to EMX
15587         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
15588         on EMX, respectively.
15589         (_DLL_InitTerm): New on EMX.
15590         (get_shared_library_fullname): Implement on EMX.
15592         find_executable: port to EMX
15593         * lib/progreloc.c (find_executable): Implement on EMX.
15595         sched: check struct sched_param in spawn.h as well
15596         * lib/sched.in.h: Include spawn.h on kLIBC.
15597         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
15599 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
15601         bootstrap: Allow perl modules in $buildreq
15602         * build-aux/bootstrap: Add case for perl modules.
15604 2014-12-08  Pádraig Brady  <P@draigBrady.com>
15606         apply _GL_ATTRIBUTE_PURE to some inline functions
15607         clang 3.4.2 flagged these inline functions as pure
15608         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
15609         * lib/sig-handler.h (get_handler): Likewise.
15610         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
15611         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
15613 2014-12-06  Pádraig Brady  <P@draigBrady.com>
15615         vasnprintf: fix potential use after free
15616         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
15617         flagged by clang-analyzer 3.4.2.
15619 2014-12-05  Pádraig Brady  <P@draigBrady.com>
15621         filevercmp, posixtm: avoid compiler warnings with -O3
15622         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
15623         * lib/posixtm.c: (IF_LINT): Define.
15624         (posix_time_parse): Use it to void a "may be used uninitialized"
15625         warning, seen only with -O3.
15627 2014-12-05  Bruno Haible  <bruno@clisp.org>
15629         Fix LDBL80_WORDS macro on big endian platforms.
15630         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
15631         LDBL80_WORDS macro.
15632         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15633         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15634         * tests/test-isfinite.c (test_isfinitel): Likewise.
15635         * tests/test-isinf.c (test_isinfl): Likewise.
15636         * tests/test-isnan.c (test_long_double): Likewise.
15637         * tests/test-isnanl.h (main): Likewise.
15638         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
15639         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
15640         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
15641         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
15642         Reported by Pádraig Brady.
15644 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
15646         git-version-gen: do not print new line characters
15647         * build-aux/git-version-gen: Use printf instead of echo and tr.
15649         gnulib-tool: recognize x:* as an absolute path
15650         * gnulib-tool (func_gnulib_dir): Add ?:* case.
15651         (func_relconcat): Likewise.
15653 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
15655         argp: avoid extraneous translation and mem leak with empty pre doc
15656         * lib/argp-help.c (argp_doc): Never translate the empty string,
15657         when "\v" is the first or last character of the string, as that
15658         has a reserved meaning to return the header info from a po file.
15659         This also fixes a small memory leak in the !post case.
15660         The issue can be seen with this command for example:
15661         LC_MESSAGES=en_US grub2-mknetdir --help
15663 2014-11-27  Daiki Ueno  <ueno@gnu.org>
15665         uniname/uniname-tests: skip if system's libunistring is used
15666         * modules/uniname/uniname-tests (Makefile.am): Skip test if
15667         uniname/uniname module is not compiled.
15669 2014-11-27  Pádraig Brady  <P@draigBrady.com>
15671         printf: fix configure check on big endian systems
15672         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
15674 2014-11-22  Daiki Ueno  <ueno@gnu.org>
15676         pipe-filter-gi, pipe-filter-ii: port to AIX
15677         On AIX 7.1, 'select' is defined as static and cannot be referred
15678         to from inline function.
15679         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
15680         the definition...
15681         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
15682         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
15684 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15686         gitlog-to-changelog: add --until
15687         * build-aux/gitlog-to-changelog: Support new --until option.
15688         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
15690 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15692         extern-inline: update commentary about GCC bugs
15693         * m4/extern-inline.m4: Add another GCC bug number to comments.
15695 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15697         gen-uni-tables: untabify
15698         * lib/gen-uni-tables.c: Untabify.
15700 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15702         gen-uni-tables: check out-of-range values added to 3-level tables
15703         * lib/gen-uni-tables.c (output_category, output_bidi_category)
15704         (output_joining_type, output_ident_category): Check out-of-range
15705         values added to 3-level tables.
15707 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15709         gen-uni-tables: utilize 'assert'
15710         * lib/gen-uni-tables.c: Include <assert.h>.
15711         (output_category, output_combclass, output_decimal_digit_test)
15712         (output_decimal_digit, output_digit_test, output_digit)
15713         (output_numeric, get_mirror_value, fill_properties)
15714         (fill_property30, is_property_alphabetic)
15715         (is_property_default_ignorable_code_point)
15716         (is_property_uppercase, is_property_lowercase)
15717         (is_property_cased, is_property_case_ignorable)
15718         (is_property_changes_when_lowercased, is_property_iso_control)
15719         (is_property_math, fill_arabicshaping, output_joining_group)
15720         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
15721         (output_wbp, fill_org_gbp, get_decomposition)
15722         (output_decomposition, fill_composition_exclusions)
15723         (debug_output_composition_tables, output_composition_tables)
15724         (redistribute_casefolding_rules, output_casing_rules): Use
15725         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
15726         reporting.
15728 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15730         gen-uni-tables: cosmetic improvements
15731         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
15732         variables specification.
15733         (is_outdigit): Remove unused function.
15735 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
15737         fcntl-h-tests: port to PA-RISC GNU/Linux
15738         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
15740 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15742         fts: port to C89
15743         Problem reported for MSVC 16 by Gisle Vanem in:
15744         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
15745         * lib/fts.c (fts_build): Avoid declaration before statement.
15747 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15749         unistd: port to iOS
15750         Problem reported by André Klitzing in:
15751         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
15752         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
15754 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15756         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
15757         Problem reported by Alan Modra in:
15758         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
15759         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
15760         Always cast the function arg, reverting this part of the previous
15761         change.
15763 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
15765         obstack: avoid potentially-nonportable function casts
15766         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
15767         Remove, replacing with ...
15768         (call_chunkfun, call_freefun): New static functions.
15769         All uses changed.  Avoid potentially-nonportable casts.
15770         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
15771         (_obstack_begin_worker): Omit last two args, since they
15772         rely on potentially-nonportable casts.  All callers changed.
15773         * lib/obstack.h (_OBSTACK_CAST): New macro.
15774         Use it everywhere the old API used a potentially-nonportable cast.
15775         The new API doesn't cast.
15776         (struct obstack): Use unions rather than requiring
15777         potentially-nonportable casts.
15778         (obstack_chunkfun, obstack_freefun): Return void.
15780 2014-11-03  Alan Modra  <amodra@gmail.com>
15782         obstack: fix macro return values
15783         * lib/obstack.h (obstack_next_free): Return void *.
15784         (obstack_1grow_fast, obstack_blank_fast): Return void.
15785         For __GNUC__ macros:
15786         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
15787         For !__GNUC__ macros:
15788         (obstack_make_room, obstack_grow, obstack_grow0)
15789         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
15791 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15793         obstack: do not assume system-supplied obstack is size_t safe
15794         * m4/obstack.m4: New file.
15795         * modules/obstack (Files): Add it.
15797         obstack: port to platforms that #define __alignof__
15798         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
15799         not if !_LIBC.  We don't know of any platforms that #define
15800         __alignof__, but it might be useful in tests.  Conversely,
15801         glibc assumes GCC.
15803 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15805         linkat: don't unconditionally replace on GNU/Linux
15806         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
15807         was redundant for a few reasons.  It was present to support compiling
15808         on new systems but running on the old narrow window of Linux 2.6.1[67].
15809         It setup and cleaned up test files which weren't actually used.
15810         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
15811         implicit in the following check.
15813 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15815         linkat: wrap to handle symlinks on OS X 10.10
15816         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
15817         but not usable because it doesn't support creating hardlinks
15818         to symlinks.  Therefore add a generic test for this capability
15819         and fallback to our emulation if linkat() fails with ENOTSUP.
15821 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15823         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
15824         * doc/posix-functions/open.texi (open):
15825         * doc/posix-functions/openat.texi (openat):
15826         Document that these functions do not set errno to ELOOP when
15827         a symlink is opened with O_NOFOLLOW.
15829 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15831         obstack: add NEWS entry for recent incompatible changes
15832         * NEWS: Describe recent changes.
15834 2014-10-30  Pádraig Brady  <P@draigBrady.com>
15836         mountlist: don't use libmount to decide on dummy/remote
15837         * lib/mountlist.c (read_file_system_list): Don't use the libmount
15838         routines to determine whether a file system is dummy or remote,
15839         as they're not currently compatible.  For example the remoteness
15840         is determined on file system type (for which the list seems incomplete),
15841         rather than simply checking for a ':' in the device name.
15842         Also libmount currently determines that 'tmpfs' is a dummy file system
15843         even though it has associated storage.
15845 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15847         obstack: prefer __alignof__ to alignof
15848         This is for portability to pre-4.7 GCC when compiling glibc.
15849         See Joseph S. Myers in:
15850         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
15851         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
15852         New macro, defined by including and using <alignof.h>.
15853         (MAX): New macro.
15854         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
15855         Do not use enums as they are not portable to some broken compilers.
15856         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
15858         obstack: prefer alignof to calculating alignments by hand
15859         * lib/obstack.c: Include <stdalign.h>.
15860         (struct fooalign): Remove.
15861         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
15862         * modules/obstack (Depends-on): Add stdalign.
15864 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15866         obstack: use size_t alignments and check for overflow
15867         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
15868         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
15869         * lib/obstack.h (struct obstack.alignment_mask):
15870         Use _OBSTACK_SIZE_T, not int, for alignments.
15871         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
15872         overflows, e.g., when adding the alignment.
15874 2014-10-29  Alan Modra  <amodra@gmail.com>
15876         obstack: 64-bit obstack support, part 3
15877         This finally enables full 64-bit obstack support.  The glibc
15878         shared library specific code is removed from obstack.c too, and
15879         the error handling code conditionally compiled under control of
15880         another macro, _OBSTACK_NO_ERROR_HANDLER.
15881         * lib/obstack.h: Include string.h earlier.
15882         (_OBSTACK_INTERFACE_VERSION): Define.
15883         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
15884         * lib/obstack.c: Don't include shlib-compat.h.
15885         (OBSTACK_INTERFACE_VERSION): Delete.
15886         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
15887         glibc code is compatible with version 2.  Don't include stdio.h for
15888         __GNU_LIBRARY.
15889         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
15890         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
15891         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
15892         glibc shared library specific source.
15894         obstack: 64-bit obstack support, part 2
15895         This gets us 4G obstack support, without changing ABI
15896         compatibility, apart from possibly introducing some
15897         signed/unsigned comparison warnings in code that uses obstack.h.
15898         a) Replace "int" size parameters, return values, and macro local vars
15899            with _OBSTACK_SIZE_T, an "unsigned int" for now.
15900         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
15901         c) Make all obstack macros checking available room use obstack_room.
15902            "next_free + desired > chunk_limit" may wrap the lhs for chunks
15903            allocated near the top of memory.
15904         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
15905         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
15906         in place of "int" size parameters, return values and local vars.
15907         (_CHUNK_SIZE_T): Define.
15908         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
15909         union use an _OBSTACK_SIZE_T integer type.
15910         For __GNUC__ versions of the following macros...
15911         (obstack_room): Rename local var.
15912         (obstack_make_room): Use obstack_room.
15913         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15914         obstack_int_grow, obstack_blank): Likewise.
15915         (obstack_finish): Use unsigned comparison when comparing aligned
15916         next_free against chunk_limit.
15917         (obstack_free): Cast OBJ to remove possible const qualifier.
15918         For !__GNUC__ versions of the following macros...
15919         (obstack_make_room): Use obstack_room.
15920         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15921         obstack_int_grow, obstack_blank): Likewise.
15922         (obstack_finish): Use unsigned comparision when comparing aligned
15923         next_free against chunk_limit.
15924         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
15925         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
15926         _OBSTACK_SIZE_T.
15927         (_obstack_begin, _obstack_begin_1): Likewise.
15928         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
15929         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
15931         obstack: 64-bit obstack support, part 1
15932         a) Correct calls to alloc function, to use a size_t arg.  "long" is
15933            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
15934            and "size_t" 64 bits.
15935         b) Consolidate _obstack_begin and _obstack_begin1 code.
15936         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
15937         use "size_t" rather than "long".
15938         (_obstack_begin, _obstack_begin1): Likewise.
15939         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
15940         obstack_chunkfun): Update alloc function casts.
15941         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
15942         (chunkfun_type, freefun_type): New typdefs.
15943         (_obstack_begin_worker): Split out from ..
15944         (_obstack_begin, _obstack_begin_1): ..here.
15946         obstack: tidy part 2
15947         a) Don't be concerned about "not polluting the namespace with stddef.h
15948            symbols" in obstack.h, since gnulib string.h includes stddef.h
15949            anyway, and it seems unlikely that anyone would care.
15950         b) Don't roll our own slow memcpy in _obstack_newchunk.
15951         c) Rename obstack_free to _obstack_free.  This makes the naming
15952            consistent with other obstack functions and obviates the need for
15953            __obstack_free.  Ancient obstack.c defined both obstack_free and
15954            _obstack_free.  We continue to do that for _LIBC via an alias.
15955         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
15956            is clever, but nowadays gcc warns on undefined macros.  You'll get
15957            an undefined macro warning if simulating an old gcc with -U__GNUC__
15958            -U__GNUC_MINOR__ -D__GNUC__=1.
15959         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
15960         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
15961         (__obstack_free): Delete, update refs.
15962         (_obstack_free): Rename from obstack_free.
15963         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
15964         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
15965         * lib/obstack.c: Don't include stddef.h.
15966         (COPYING_UNIT): Delete.
15967         (_obstack_begin): Formatting fix.
15968         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
15969         (_obstack_free): Rename from __obstack_free, update alias.  Move
15970         undef of obstack_free to where it is needed.
15972         obstack: tidy part 1
15973         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
15974            to me, and result in overlong lines after later patches.
15975         b) Move error handling code, to avoid a forward declaration and to
15976            simplify later patches in this series.
15977         * lib/obstack.h (struct obstack <temp>): Rename fields of union
15978         and update all uses.
15979         * lib/obstack.c: Include stdlib.h earlier.
15980         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
15981         in file.
15982         (print_and_abort): Remove now redundant forward declaration.
15984 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15986         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
15987         Without this change, in bleeding-edge fileutils Autoconf complains
15988         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
15989         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
15990         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
15991         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
15993 2014-10-24  Daiki Ueno  <ueno@gnu.org>
15995         iconv: avoid false detection of non-working iconv
15996         The INBUF arguments of iconv can be either 'const char **'
15997         or 'char **'.  If CC is g++, the difference causes a compile error
15998         and thus leads to a false detection of non-working iconv.
15999         Reported by Eli Zaretskii and Werner LEMBERG in:
16000         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
16001         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
16002         iconv.  Bump serial number.
16004 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16006         bootstrap: print more diagnostics for missing programs
16007         * build-aux/bootstrap: only suppress stderr when checking for
16008         alternative program names.  This supports programs issuing non
16009         standard error messages.
16011 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16013         bootstrap: only update the gnulib submodule
16014         * build-aux/bootstrap: Restrict the "submodule update" command
16015         to the gnulib path.
16017 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
16019         symlinkat: port to AIX 7.1
16020         * doc/posix-functions/symlinkat.texi (symlinkat):
16021         Mention AIX porting problem.
16022         * lib/symlinkat.c: Always include errno.h.
16023         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
16024         * lib/unistd.in.h (symlinkat): Add replacement machinery.
16025         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
16026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
16027         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
16028         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
16029         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
16031         readlinkat: port to AIX 7.1
16032         * doc/posix-functions/readlink.texi (readlink):
16033         * doc/posix-functions/readlinkat.texi (readlinkat):
16034         Mention AIX porting problem.
16035         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
16036         New function.
16037         * lib/unistd.in.h (readlinkat): Add replacement machinery.
16038         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
16039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
16040         * modules/readlinkat (configure.ac): Also compile replacement
16041         if REPLACE_READLINKAT.
16042         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
16044 2014-10-12  Karl Berry  <karl@gnu.org>
16046         * doc/posix-functions/dirname.texi: remove spurious {.
16048 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
16050         basename, dirname: Improve documentation.
16051         * doc/posix-functions/basename.texi: Mention dirname module and
16052         base_name() function.
16053         * doc/posix-functions/dirname.texi: Mention dir_name() and
16054         mdir_name() functions.
16055         Suggested by Werner LEMBERG <wl@gnu.org>.
16057 2014-09-24  Jim Meyering  <meyering@fb.com>
16059         exclude: declare exclude_patopts static
16060         * lib/exclude.c (exclude_patopts): Declare static,
16061         to avoid triggering a -Wmissing-prototypes warning.
16062         The alternative (declaring it in the .h file) would
16063         require publicizing the private "struct patopts".
16065 2014-09-21  Werner Lemberg  <wl@gnu.org>
16067         dirname: support compilation with C++
16068         * lib/dirname.h: Add necessary C linkage declarations.
16070 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16072         qsort_r: include <config.h>
16073         Problem reported by Tom G. Christensen in:
16074         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
16075         * lib/qsort.c [!_LIBC]: Include <config.h> first.
16077 2014-09-16  Dylan Cali  <calid1984@gmail.com>
16079         avltree-list: avoid compiler warnings (trivial)
16080         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
16081         -Werror=suggest-attribute=pure.
16082         * lib/gl_array_list.c: Likewise.
16083         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
16084         declaration to avoid -Werror=missing-prototypes.  This is not added
16085         to a header as only exported for tests.  Add (void) to the
16086         check_invariants() call to indicate we're discarding the result
16087         in this context which avoids -Werror=unused-value.  Note we don't
16088         use ignore_value here to avoid a dependency as we know we'll not
16089         be adding __attribute__((warn_unused_result)) to check_invariants().
16090         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
16092 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16094         qsort_r: new module, for GNU-style qsort_r
16095         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
16097 2014-09-15  Werner LEMBERG  <wl@gnu.org>
16099         strerror_r-posix: support compilation with C++
16100         * lib/strerror_r.c: Add necessary C linkage declarations.
16102 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
16104         fcntl-h: fix compilation with Intel C++ compiler (trivial)
16105         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
16107 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
16109         mountlist: use /proc/self/mountinfo when available
16110         Use libmount to propagate device IDs provided by Linux in
16111         /proc/self/mountinfo.  This will give more accurate output when
16112         using df in chroot'ed environments as the device IDs are not
16113         determined by stat() which may be inaccurate within the chroot.
16114         * lib/mountlist.c (read_file_system_list): Use the libmount routines
16115         from util-linux to parse "/proc/self/mountinfo" or fall back to
16116         standard getmntent() processing.
16117         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
16118         getmntent() is used, as is the case on GNU/Linux.
16120 2014-09-07  Eric Wong  <normalperson@yhbt.net>
16122         users.txt: add cmogstored
16123         cmogstored has used gnulib since the beginning in 2012 to support
16124         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
16126 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16128         Trivial change.
16129         * gnulib-tool: Use same options as build-aux/bootstrap to download
16130         PO files.
16132 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16134         Trivial change.
16135         * gnulib-tool: Fallback to wget when rsync of PO files fails.
16137 2014-09-04  Eric Blake  <eblake@redhat.com>
16139         maintainer-makefile: add syntax check for useless ';;'
16140         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
16142 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
16144         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
16145         Problem reported by Assaf Gordon in:
16146         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
16147         Apparently Ubuntu is doing some fancy link-time optimization
16148         that doesn't work with -lpthread but does work with -pthread.
16149         Work around the bug by preferring -pthread to -lpthread.
16150         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16151         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
16152         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16153         Treat -pthread like -lpthread.
16155 2014-09-04  Eric Blake  <eblake@redhat.com>
16157         error: drop spurious semicolon
16158         * lib/error.c (__error_at_line): Fix ';;'.
16160 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16162         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
16163         * m4/gnulib-common.m4 (AC_C_RESTRICT):
16164         Override AC_C_RESTRICT unconditionally.
16165         Update from autoconf, incorporating:
16166         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
16167         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
16169 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16171         manywarnings: add GCC 4.9 warnings
16172         Also, make it easier to maintain this in the future.
16173         * build-aux/gcc-warning.spec: Add -Wabi-tag,
16174         -Wconditionally-supported, -Wdelete-incomplete,
16175         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
16176         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
16177         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
16178         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
16179         only for older GCC versions that need them.  Handle
16180         -Wnormalized=nfc specially, so that the 'comm' command used
16181         for maintenance doesn't get confused.
16183 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16185         vasnprintf: fix bugs in width computation
16186         * lib/vasnprintf.c (VASNPRINTF):
16187         Rework previous change, which introduced a bug,
16188         to avoid the warning in a different way.
16189         Avoid undefined behavior if the width arg is less than -INT_MAX.
16190         Avoid unnecessary use of HAS_WIDTH local.
16192 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
16194         vasnprintf: Avoid signed/unsigned comparison warning.
16195         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
16196         compare end addr of generated string w/ maximum end addr.
16198 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16200         parse-datetime: Avoid pointer difference.
16201         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
16202         instead of calculating difference of pointers.  This removes an
16203         annoying warning, devoid of any use.
16205 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16207         qsort_r: new module, for GNU-style qsort_r
16208         This works even on FreeBSD, which has an incompatible qsort_r API.
16209         * MODULES.html.sh: Add it.
16210         * doc/glibc-functions/qsort_r.texi: It's now supported.
16211         * lib/qsort.c: New file, taken from glibc with minor changes
16212         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
16213         removed.
16214         * lib/qsort_r.c: New file, compiled only on FreeBSD.
16215         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
16216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
16217         * modules/qsort_r, modules/qsort_r-tests: New files.
16218         * modules/stdlib (Makefile): Set up its defaults.
16219         * tests/test-qsort_r.c: New file.
16221 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16223         vla: new module
16224         GNU RCS can use this, mostly for documentation I expect.  See:
16225         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
16226         * MODULES.html.sh: Add vla.
16227         * lib/vla.h, modules/vla: New files.
16229 2014-08-07  Daiki Ueno  <ueno@gnu.org>
16231         localename: make gl_locale_name_thread really thread-safe on Windows
16232         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
16233         "glthread/lock.h".
16234         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
16235         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
16237 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
16239         getpass: don't assume struct termios
16240         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
16241         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
16242         * lib/getpass.c (getpass): Port to systems lacking struct termios.
16244         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
16245         Problem reported by Jonas 'Sortie' Termansen in:
16246         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
16247         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
16248         Implement via sysconf for platforms that lack getdtablesize.
16250         vararrays: modernize AC_C_VARARRAYS for C11
16251         This backports a change I recently made to Autoconf.
16252         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
16253         VLAs are not supported, as this is what C11 does.  The old macro
16254         HAVE_C_VARARRAYS is still defined if they are supported, but is
16255         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
16257 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
16259         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
16260         * build-aux/install-reloc (func_create_wrapper): Also wrap
16261         strerror-override, stat, stat.
16263 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16265         sys_select: fix FD_ZERO problem on Solaris 10
16266         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
16267         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
16268         to expand to an expression that invoked memset without necessarily
16269         including <string.h>.  The problem was that the first include
16270         defined _SYS_TIME_H, causing the second include to short-circuit.
16271         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
16272         Also, fix what appears to be a cut-and-paste typo, by replacing
16273         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
16274         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
16276         accept: document Solaris 10 type glitch
16277         * doc/posix-functions/accept.texi (accept): Mention that
16278         Solaris 10 'accept' takes void * last arg, not socklen_t *.
16280 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16282         extern-inline: port to FreeBSD, DragonFly
16283         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
16284         is present if either __DragonFly__ or __FreeBSD__ is defined.
16285         FreeBSD problem reported by Andrey Borzenkov in:
16286         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
16287         Also, worry about __APPLE__ only if __MACH__ is also defined,
16288         as this is more consistent with the rest of gnulib.
16289         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
16290         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
16292 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16294         regex: Make #if/#ifdef usage consistent for DEBUG
16295         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16296         of the inconsistent usage of #if and #ifdef as that works with
16297         both Glibc and Gnulib's style.
16299 2014-07-31  Eric Blake  <eblake@redhat.com>
16301         openat-die: use _Noreturn markup
16302         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16303         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16304         _Noreturn.
16306 2014-07-30  Eric Blake  <eblake@redhat.com>
16308         test-open: port to cygwin, which lacks Fortify
16309         * tests/test-open.h (ALWAYS_INLINE): New macro.
16310         (__always_inline): Don't abuse internal symbol on non-glibc.
16312 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16314         localename: Enforce declarations before statements.
16315         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16316         first statement.
16318 2014-07-18  Jim Meyering  <meyering@fb.com>
16320         test-userspec: don't look up numeric user names
16321         * tests/test-userspec.c: I found a system for which getpwnam("0")
16322         returned a pointer to a non-root user's entry, and that made the
16323         test fail.
16324         (T): Prefix each numeric input with "+", to inhibit lookup.
16326 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16328         localcharset, localename: MS-Windows support for non-default locales
16329         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16330         falling back on the default system codepage, try extracting
16331         the codepage from what 'setlocale' returns.  This allows to
16332         take into account changes of the codeset due to non-default
16333         locale set by a previous call to 'setlocale'.
16334         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16335         Define if not already defined.
16336         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16337         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16338         current locale by calling 'setlocale', then converting the
16339         locale name into LCID by calling 'get_lcid'.  This allows to
16340         take into account changes in the current locale from the
16341         default one, in contrast to GetThreadLocale.
16343 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16345         announce-gen: avoid failure when Digest::SHA is installed
16346         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16347         Digest::SHA1->new in print_checksums fails.
16348         * build-aux/announce-gen (digest_classes): New associative array
16349         for available message digest implementations.
16350         (print_locations): Use it.
16352 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16354         gettext: revert "update macros to version 0.19"
16355         This reverts commit 9b9370ca, as it currently requires that
16356         developers of any project that explicitly uses the gettext module
16357         or implicitly uses it through the utimens-tests or
16358         futimens-tests modules, use gettext >= 0.19.
16359         However there are some stability and availablity issues with
16360         that version at present.  We can reinstate this soon, when stability
16361         is addressed and packages are more readily available.
16363 2014-07-12  Jim Meyering  <meyering@fb.com>
16365         regex: don't deref NULL upon heap allocation failure
16366         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16367         failure in one more place.
16368         To trigger the segfault, configure grep -with-included-regex,
16369         build it, and run these commands:
16370         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16371         I discovered this while replying to a private report from
16372         Jens Schleusener about excessive memory consumption by grep
16373         when using a regular expression like the one above.
16375 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16377         regex: fix memory leak in compiler
16378         Fix by Andreas Schwab in:
16379         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16380         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16381         constructed tree before returning error.
16383 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16385         announce-gen: avoid perl warnings
16386         * build-aux/announce-gen: add two minor checks to avoid
16387         "use of uninitialized value" warnings when command-line parameters are
16388         missing.
16390 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16392         localename: avoid -Wsuggest-attribute={const,pure} warnings
16393         * lib/localename.c (string_has): Tag internal function as pure.
16394         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16395         as const when appropriate.
16397 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16399         nl_langinfo: Fix last change.
16400         * lib/nl_langinfo.c (includes): Drop redundant include.
16402 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16404         error: Fix -Wundef warnings in glibc
16405         * lib/error.c [_LIBC]: Define default macros for
16406         glibc.
16407         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16408         Check _LIBC before STRERROR_R_CHAR_P.
16410         error: Sync from glibc master
16411         * lib/error.c [_LIBC]: Remove INTUSE usage.
16412         (error_tail): Remove unused macro ALLOCA_LIMIT.
16413         Fix potential buffer overflow.  Fix potential NULL dereference
16414         in strcmp.
16416 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16418         nl_langinfo: fix build under mingw
16419         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16421 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16423         mountlist: do not classify a bind-mounted dir entry as "dummy"
16424         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16425         1-argument getmntent() (instead of assuming absence).
16427 2014-07-08  Eric Blake  <eblake@redhat.com>
16429         maint.mk: less syntax-check noise when SIGPIPE is ignored
16430         * top/maint.mk (_sc_header_without_use)
16431         (sc_require_config_h_first): Parse full list.
16433 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16434             Paul Eggert  <eggert@cs.ucla.edu>
16436         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16437         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16438         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16439         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16440         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16441         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16442         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16443         Include <stdio.h> if Microsoft Windows.
16444         Include <time.h> if !REPLACE_NL_LANGINFO.
16445         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16446         and with improvements for Microsoft Windows.
16447         (rpl_nl_langinfo): Use it.
16448         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16449         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16450         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16451         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16452         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16453         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16454         corresponding values returned by 'localeconv'.  Compute the values
16455         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16456         'strftime' with a suitable struct tm value.
16458 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16460         Bruno Haible has stepped down as maintainer.
16461         See Karl Berry in:
16462         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16463         Daiki Ueno has volunteered to maintain libunistring; see:
16464         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16465         * modules/gen-uni-tables, modules/libunistring:
16466         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16467         * modules/unicase/base, modules/unicase/cased:
16468         * modules/unicase/empty-prefix-context:
16469         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16470         * modules/unicase/locale-language, modules/unicase/special-casing:
16471         * modules/unicase/tocasefold, modules/unicase/tolower:
16472         * modules/unicase/totitle, modules/unicase/toupper:
16473         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16474         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16475         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16476         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16477         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16478         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16479         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16480         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16481         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16482         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16483         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16484         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16485         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16486         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16487         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16488         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16489         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16490         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16491         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16492         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16493         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16494         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16495         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16496         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16497         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16498         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16499         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16500         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16501         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16502         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16503         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16504         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16505         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16506         * modules/uniconv/u16-conv-to-enc:
16507         * modules/uniconv/u16-strconv-from-enc:
16508         * modules/uniconv/u16-strconv-from-locale:
16509         * modules/uniconv/u16-strconv-to-enc:
16510         * modules/uniconv/u16-strconv-to-locale:
16511         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16512         * modules/uniconv/u32-strconv-from-enc:
16513         * modules/uniconv/u32-strconv-from-locale:
16514         * modules/uniconv/u32-strconv-to-enc:
16515         * modules/uniconv/u32-strconv-to-locale:
16516         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16517         * modules/uniconv/u8-strconv-from-enc:
16518         * modules/uniconv/u8-strconv-from-locale:
16519         * modules/uniconv/u8-strconv-to-enc:
16520         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16521         * modules/unictype/bidicategory-all:
16522         * modules/unictype/bidicategory-byname:
16523         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16524         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16525         * modules/unictype/bidiclass-byname:
16526         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16527         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16528         * modules/unictype/block-all, modules/unictype/block-list:
16529         * modules/unictype/block-of, modules/unictype/block-test:
16530         * modules/unictype/category-C, modules/unictype/category-Cc:
16531         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16532         * modules/unictype/category-Co, modules/unictype/category-Cs:
16533         * modules/unictype/category-L, modules/unictype/category-LC:
16534         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16535         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16536         * modules/unictype/category-Lu, modules/unictype/category-M:
16537         * modules/unictype/category-Mc, modules/unictype/category-Me:
16538         * modules/unictype/category-Mn, modules/unictype/category-N:
16539         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16540         * modules/unictype/category-No, modules/unictype/category-P:
16541         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16542         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16543         * modules/unictype/category-Pi, modules/unictype/category-Po:
16544         * modules/unictype/category-Ps, modules/unictype/category-S:
16545         * modules/unictype/category-Sc, modules/unictype/category-Sk:
16546         * modules/unictype/category-Sm, modules/unictype/category-So:
16547         * modules/unictype/category-Z, modules/unictype/category-Zl:
16548         * modules/unictype/category-Zp, modules/unictype/category-Zs:
16549         * modules/unictype/category-all, modules/unictype/category-and:
16550         * modules/unictype/category-and-not, modules/unictype/category-byname:
16551         * modules/unictype/category-longname, modules/unictype/category-name:
16552         * modules/unictype/category-none, modules/unictype/category-of:
16553         * modules/unictype/category-or, modules/unictype/category-test:
16554         * modules/unictype/category-test-withtable:
16555         * modules/unictype/combining-class:
16556         * modules/unictype/combining-class-all:
16557         * modules/unictype/combining-class-byname:
16558         * modules/unictype/combining-class-longname:
16559         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
16560         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
16561         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
16562         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
16563         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
16564         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
16565         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
16566         * modules/unictype/digit, modules/unictype/joininggroup-all:
16567         * modules/unictype/joininggroup-byname:
16568         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
16569         * modules/unictype/joiningtype-all:
16570         * modules/unictype/joiningtype-byname:
16571         * modules/unictype/joiningtype-longname:
16572         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
16573         * modules/unictype/mirror, modules/unictype/numeric:
16574         * modules/unictype/property-all, modules/unictype/property-alphabetic:
16575         * modules/unictype/property-ascii-hex-digit:
16576         * modules/unictype/property-bidi-arabic-digit:
16577         * modules/unictype/property-bidi-arabic-right-to-left:
16578         * modules/unictype/property-bidi-block-separator:
16579         * modules/unictype/property-bidi-boundary-neutral:
16580         * modules/unictype/property-bidi-common-separator:
16581         * modules/unictype/property-bidi-control:
16582         * modules/unictype/property-bidi-embedding-or-override:
16583         * modules/unictype/property-bidi-eur-num-separator:
16584         * modules/unictype/property-bidi-eur-num-terminator:
16585         * modules/unictype/property-bidi-european-digit:
16586         * modules/unictype/property-bidi-hebrew-right-to-left:
16587         * modules/unictype/property-bidi-left-to-right:
16588         * modules/unictype/property-bidi-non-spacing-mark:
16589         * modules/unictype/property-bidi-other-neutral:
16590         * modules/unictype/property-bidi-pdf:
16591         * modules/unictype/property-bidi-segment-separator:
16592         * modules/unictype/property-bidi-whitespace:
16593         * modules/unictype/property-byname:
16594         * modules/unictype/property-case-ignorable:
16595         * modules/unictype/property-cased:
16596         * modules/unictype/property-changes-when-casefolded:
16597         * modules/unictype/property-changes-when-casemapped:
16598         * modules/unictype/property-changes-when-lowercased:
16599         * modules/unictype/property-changes-when-titlecased:
16600         * modules/unictype/property-changes-when-uppercased:
16601         * modules/unictype/property-combining:
16602         * modules/unictype/property-composite:
16603         * modules/unictype/property-currency-symbol:
16604         * modules/unictype/property-dash:
16605         * modules/unictype/property-decimal-digit:
16606         * modules/unictype/property-default-ignorable-code-point:
16607         * modules/unictype/property-deprecated:
16608         * modules/unictype/property-diacritic:
16609         * modules/unictype/property-extender:
16610         * modules/unictype/property-format-control:
16611         * modules/unictype/property-grapheme-base:
16612         * modules/unictype/property-grapheme-extend:
16613         * modules/unictype/property-grapheme-link:
16614         * modules/unictype/property-hex-digit:
16615         * modules/unictype/property-hyphen:
16616         * modules/unictype/property-id-continue:
16617         * modules/unictype/property-id-start:
16618         * modules/unictype/property-ideographic:
16619         * modules/unictype/property-ids-binary-operator:
16620         * modules/unictype/property-ids-trinary-operator:
16621         * modules/unictype/property-ignorable-control:
16622         * modules/unictype/property-iso-control:
16623         * modules/unictype/property-join-control:
16624         * modules/unictype/property-left-of-pair:
16625         * modules/unictype/property-line-separator:
16626         * modules/unictype/property-logical-order-exception:
16627         * modules/unictype/property-lowercase, modules/unictype/property-math:
16628         * modules/unictype/property-non-break:
16629         * modules/unictype/property-not-a-character:
16630         * modules/unictype/property-numeric:
16631         * modules/unictype/property-other-alphabetic:
16632         * modules/unictype/property-other-default-ignorable-code-point:
16633         * modules/unictype/property-other-grapheme-extend:
16634         * modules/unictype/property-other-id-continue:
16635         * modules/unictype/property-other-id-start:
16636         * modules/unictype/property-other-lowercase:
16637         * modules/unictype/property-other-math:
16638         * modules/unictype/property-other-uppercase:
16639         * modules/unictype/property-paired-punctuation:
16640         * modules/unictype/property-paragraph-separator:
16641         * modules/unictype/property-pattern-syntax:
16642         * modules/unictype/property-pattern-white-space:
16643         * modules/unictype/property-private-use:
16644         * modules/unictype/property-punctuation:
16645         * modules/unictype/property-quotation-mark:
16646         * modules/unictype/property-radical:
16647         * modules/unictype/property-sentence-terminal:
16648         * modules/unictype/property-soft-dotted:
16649         * modules/unictype/property-space:
16650         * modules/unictype/property-terminal-punctuation:
16651         * modules/unictype/property-test, modules/unictype/property-titlecase:
16652         * modules/unictype/property-unassigned-code-value:
16653         * modules/unictype/property-unified-ideograph:
16654         * modules/unictype/property-uppercase:
16655         * modules/unictype/property-variation-selector:
16656         * modules/unictype/property-white-space:
16657         * modules/unictype/property-xid-continue:
16658         * modules/unictype/property-xid-start:
16659         * modules/unictype/property-zero-width, modules/unictype/scripts:
16660         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
16661         * modules/unictype/syntax-c-whitespace:
16662         * modules/unictype/syntax-java-ident:
16663         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
16664         * modules/unigbrk/u16-grapheme-breaks:
16665         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
16666         * modules/unigbrk/u32-grapheme-breaks:
16667         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
16668         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
16669         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
16670         * modules/unigbrk/uc-is-grapheme-break:
16671         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
16672         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
16673         * modules/unilbrk/u16-width-linebreaks:
16674         * modules/unilbrk/u32-possible-linebreaks:
16675         * modules/unilbrk/u32-width-linebreaks:
16676         * modules/unilbrk/u8-possible-linebreaks:
16677         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
16678         * modules/unilbrk/ulc-possible-linebreaks:
16679         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
16680         * modules/uniname/uniname, modules/uninorm/base:
16681         * modules/uninorm/canonical-decomposition:
16682         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
16683         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
16684         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
16685         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
16686         * modules/uninorm/nfkc, modules/uninorm/nfkd:
16687         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
16688         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
16689         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
16690         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
16691         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
16692         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
16693         * modules/unistdio/base, modules/unistdio/u-printf-args:
16694         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
16695         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
16696         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
16697         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
16698         * modules/unistdio/u16-u16-sprintf:
16699         * modules/unistdio/u16-u16-vasnprintf:
16700         * modules/unistdio/u16-u16-vasprintf:
16701         * modules/unistdio/u16-u16-vsnprintf:
16702         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
16703         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
16704         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
16705         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
16706         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
16707         * modules/unistdio/u32-u32-asnprintf:
16708         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
16709         * modules/unistdio/u32-u32-sprintf:
16710         * modules/unistdio/u32-u32-vasnprintf:
16711         * modules/unistdio/u32-u32-vasprintf:
16712         * modules/unistdio/u32-u32-vsnprintf:
16713         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
16714         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
16715         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
16716         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
16717         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
16718         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
16719         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
16720         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
16721         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
16722         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
16723         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
16724         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
16725         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
16726         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
16727         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
16728         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
16729         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
16730         * modules/unistr/u16-check, modules/unistr/u16-chr:
16731         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
16732         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
16733         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
16734         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
16735         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
16736         * modules/unistr/u16-move, modules/unistr/u16-next:
16737         * modules/unistr/u16-prev, modules/unistr/u16-set:
16738         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
16739         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
16740         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
16741         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
16742         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
16743         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
16744         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
16745         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
16746         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
16747         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
16748         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
16749         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
16750         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
16751         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
16752         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
16753         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
16754         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
16755         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
16756         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
16757         * modules/unistr/u32-next, modules/unistr/u32-prev:
16758         * modules/unistr/u32-set, modules/unistr/u32-startswith:
16759         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
16760         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
16761         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
16762         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
16763         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
16764         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
16765         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
16766         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
16767         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
16768         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
16769         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
16770         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
16771         * modules/unistr/u8-check, modules/unistr/u8-chr:
16772         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
16773         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
16774         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
16775         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
16776         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
16777         * modules/unistr/u8-next, modules/unistr/u8-prev:
16778         * modules/unistr/u8-set, modules/unistr/u8-startswith:
16779         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
16780         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
16781         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
16782         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
16783         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
16784         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
16785         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
16786         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
16787         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
16788         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
16789         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
16790         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
16791         * modules/uniwbrk/base, modules/uniwbrk/table:
16792         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
16793         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
16794         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
16795         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
16796         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
16797         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
16798         * modules/uniwidth/width, modules/utf16-ucs4:
16799         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
16800         * modules/utf8-ucs4-unsafe:
16801         Change maintainer from Bruno Haible to Daiki Ueno.
16802         This is my guess at the libunistring modules; please feel free
16803         to fix if I guessed incorrectly.
16804         * modules/accept4, modules/acl, modules/acos, modules/acosf:
16805         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
16806         * modules/areadlink, modules/array-list, modules/array-mergesort:
16807         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
16808         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
16809         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
16810         * modules/binary-io, modules/bison-i18n, modules/btowc:
16811         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
16812         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
16813         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
16814         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
16815         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
16816         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
16817         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
16818         * modules/closedir, modules/concat-filename, modules/copy-file:
16819         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
16820         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
16821         * modules/csharpcomp-script, modules/csharpexec:
16822         * modules/csharpexec-script, modules/ctype, modules/diffseq:
16823         * modules/dprintf, modules/dprintf-posix, modules/dup:
16824         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
16825         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
16826         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
16827         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
16828         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
16829         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
16830         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
16831         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
16832         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
16833         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
16834         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
16835         * modules/findprog, modules/findprog-lgpl, modules/floor:
16836         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
16837         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
16838         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
16839         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
16840         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
16841         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
16842         * modules/freadable, modules/freadahead, modules/freadptr:
16843         * modules/freadseek, modules/freopen, modules/frexp:
16844         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
16845         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
16846         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
16847         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
16848         * modules/ftello, modules/full-read, modules/full-write:
16849         * modules/fwritable, modules/fwriteerror, modules/gcd:
16850         * modules/get-rusage-as, modules/get-rusage-data:
16851         * modules/getdtablesize, modules/getrusage, modules/gettext:
16852         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
16853         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
16854         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
16855         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
16856         * modules/iconv, modules/iconv-h, modules/iconv_open:
16857         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
16858         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
16859         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
16860         * modules/integer_length_ll, modules/ioctl, modules/isatty:
16861         * modules/isblank, modules/isnand, modules/isnand-nolibm:
16862         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
16863         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
16864         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
16865         * modules/javaexec, modules/javaexec-script, modules/javaversion:
16866         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
16867         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
16868         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
16869         * modules/lib-symbol-visibility, modules/libsigsegv:
16870         * modules/linked-list, modules/linkedhash-list, modules/list:
16871         * modules/localcharset, modules/locale, modules/localeconv:
16872         * modules/localename, modules/lock, modules/log, modules/log-ieee:
16873         * modules/log10, modules/log10-ieee, modules/log10f:
16874         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
16875         * modules/log1p, modules/log1p-ieee, modules/log1pf:
16876         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
16877         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
16878         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
16879         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
16880         * modules/logf, modules/logf-ieee, modules/login_tty:
16881         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
16882         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
16883         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
16884         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
16885         * modules/mbscspn, modules/mbsinit, modules/mbslen:
16886         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
16887         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
16888         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
16889         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
16890         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
16891         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
16892         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
16893         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
16894         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
16895         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
16896         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
16897         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
16898         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
16899         * modules/posix_spawn, modules/posix_spawn-internal:
16900         * modules/posix_spawn_file_actions_addclose:
16901         * modules/posix_spawn_file_actions_adddup2:
16902         * modules/posix_spawn_file_actions_addopen:
16903         * modules/posix_spawn_file_actions_destroy:
16904         * modules/posix_spawn_file_actions_init:
16905         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
16906         * modules/posix_spawnattr_getpgroup:
16907         * modules/posix_spawnattr_getschedparam:
16908         * modules/posix_spawnattr_getschedpolicy:
16909         * modules/posix_spawnattr_getsigdefault:
16910         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
16911         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
16912         * modules/posix_spawnattr_setschedparam:
16913         * modules/posix_spawnattr_setschedpolicy:
16914         * modules/posix_spawnattr_setsigdefault:
16915         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
16916         * modules/pow, modules/powf, modules/printf-frexp:
16917         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
16918         * modules/progname, modules/propername, modules/pselect:
16919         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
16920         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
16921         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
16922         * modules/read, modules/readdir, modules/readlink:
16923         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
16924         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
16925         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
16926         * modules/relocatable-script, modules/remainder:
16927         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
16928         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
16929         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
16930         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
16931         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
16932         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
16933         * modules/setlocale, modules/sh-quote, modules/shutdown:
16934         * modules/signal, modules/signbit, modules/sigpipe:
16935         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
16936         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
16937         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
16938         * modules/snippet/link-warning, modules/snippet/unused-parameter:
16939         * modules/snprintf, modules/snprintf-posix, modules/spawn:
16940         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
16941         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
16942         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
16943         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
16944         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
16945         * modules/streq, modules/strerror_r-posix, modules/striconv:
16946         * modules/striconveh, modules/striconveha, modules/strncat:
16947         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
16948         * modules/sublist, modules/sys_resource, modules/sys_utsname:
16949         * modules/sys_wait, modules/system-posix, modules/system-quote:
16950         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
16951         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
16952         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
16953         * modules/truncf, modules/truncf-ieee, modules/truncl:
16954         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
16955         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
16956         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
16957         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
16958         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
16959         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
16960         * modules/wait-process, modules/waitpid, modules/wcpcpy:
16961         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
16962         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
16963         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
16964         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
16965         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
16966         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
16967         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
16968         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
16969         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
16970         * modules/write, modules/xconcat-filename, modules/xlist:
16971         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
16972         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
16973         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
16974         * modules/y0, modules/y1, modules/yn:
16975         Remove Bruno Haible as maintainer; if he's the sole maintainer,
16976         change the maintainer to 'all'.  Let's hope someone volunteers.
16978 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
16980         mktime: merge #if/#ifdef usage from glibc
16981         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
16982         as that works with both Glibc's and Gnulib's style.
16983         See thread starting at Siddhesh Poyarekar's bug report at:
16984         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
16986 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
16988         git-version-gen: improve option descriptions
16989         * build-aux/git-version-gen: Mention that --prefix and --fallback
16990         have a mandatory argument.
16992 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
16994         regex: fix memory leak in compiler
16995         Fix by Andreas Schwab in:
16996         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
16997         * lib/regcomp.c (parse_expression): Deallocate partially
16998         constructed tree before returning error.
17000         regex: merge patch from libc
17001         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
17002         Combine __USE_BSD and __USE_SVID into __USE_MISC.
17003         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
17005 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17007         acl: port to gcc -Wredundant-decls
17008         From a request by Dmitry Antipov in:
17009         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
17010         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
17011         "#ifndef _GL_ACL_H".
17013 2014-06-11  Bruce Korb  <bkorb@gnu.org>
17014         Jim Meyering  <meyering@fb.com>
17016         parse-duration: eliminate 68-year duration limit
17017         * lib/parse-duration.c: Include "intprops.h".
17018         (TIME_MAX): Rename to MAX_DURATION and define to
17019         TYPE_MAXIMUM(time_t).
17020         * modules/parse-duration (Depends-on): Add intprops.
17021         Reported by Jonas 'Sortie' Termansen.
17023 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17025         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
17026         * modules/pthread (Depends-on): Add 'extensions', as it defines
17027         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
17028         (configure.ac-early): New section.
17029         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
17030         it is no longer needed.
17032 2014-06-14  Pádraig Brady  <P@draigBrady.com>
17034         pthread: define thread-safe macros on some platforms
17035         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
17036         for thread-safe operation on some platforms.
17038 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17040         regex: don't be multithreaded if USE_UNLOCKED_IO.
17041         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
17042         * lib/regex_internal.h: Do not use multithreaded version if
17043         USE_UNLOCKED_IO is defined.  This is a hack, but it works
17044         around a porting bug with coreutils 8.22 on AIX 7.1.
17046 2014-06-11  Daiki Ueno  <ueno@gnu.org>
17048         gettext: update macros to version 0.19
17049         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
17050         depend on gl_EXTERN_INLINE and drop support for older Bison
17051         versions.
17053 2014-06-10  Pádraig Brady  <P@draigBrady.com>
17055         select,poll: fix console handle check on windows 8
17056         lib/poll.c (IsConsoleHandle): Change from testing the lower
17057         2 bits of the handle to the more expensive but accurate syscall.
17058         lib/select.c: Likewise.
17060 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17062         select: fix waiting on anonymous pipes on MS-Windows
17063         * lib/select.c (rpl_select): Fall back to polling when select()
17064         indicates there is nothing to check, while due to the timeout not
17065         expiring, activity is indicated on one of the handles.
17066         Also clear the TIMEOUT argument if the timer does expire.
17068 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17070         times: fix to return non constant value on MS-Windows
17071         * lib/times.c (times): Don't use the process creation time,
17072         rather clock() which on windows returns the number of
17073         clock ticks since the process started.
17075 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
17077         isatty: fix to work on windows 8
17078         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
17079         2 bits of the handle to the more expensive but accurate syscall.
17081 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17083         maint: fix typo in fdl.texi
17084         * doc/fdl.texi: Fix typo (missing '@').
17085         Somehow this was in fdl.texi but not fdl-1.3.texi.
17087 2014-06-06  Ben Walton  <bdwalton@gmail.com>
17089         mountlist: avoid hasmntopt const type warning on solaris
17090         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
17091         with char * instead of const char *.  Passing the constant string
17092         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
17093         to avoid the warning.
17095 2014-06-04  Eric Blake  <eblake@redhat.com>
17097         maintainer-makefile: delete obsolete code
17098         * top/maint.mk (build_aux): Drop old code, as threatened.
17100         maintainer-makefile: avoid spurious error messages
17101         * top/maint.mk (syntax-check): Guard definition and use of
17102         $(shell) by whether Makefile is present.
17104 2014-06-03  Ben Walton  <bdwalton@gmail.com>
17106         rename: avoid unused-but-set-variable compiler warning
17107         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
17108         it is possible that dst_exists may be set but not used.  Mark it with
17109         the unused attribute to avoid compiler warnings.
17111 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17113         rename: mark a label as potentially unused
17114         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
17115         by marking the out label as potentially unused.
17116         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
17118 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
17120         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
17121         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
17123 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17125         acl: apply pure attribute to two functions
17126         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
17127         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
17129 2014-06-01  Pádraig Brady  <P@draigBrady.com>
17131         gnulib-common.m4: add _GL_UNUSED_LABEL
17132         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
17133         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
17135 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17137         dup2, fcntl, fcntl-h: port to AIX 7.1
17138         This fixes some porting problems discovered when testing the latest
17139         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
17140         in grep but it could be important for other applications.
17141         * doc/posix-functions/dup2.texi:
17142         * doc/posix-functions/fcntl.texi:
17143         * doc/posix-headers/fcntl.texi:
17144         Document AIX bugs.
17145         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
17146         Define to 0 if outside 'int' range.
17147         * m4/dup2.m4 (gl_FUNC_DUP2):
17148         * m4/fcntl.m4 (gl_FUNC_FCNTL):
17149         Check for getdtablesize.  If it's available, test a value just
17150         outside its range instead of testing 1000000.  When cross-compiling,
17151         guess that AIX will fail this improved test.
17153 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17155         printf, config.rpath: Port to FreeBSD 10.
17156         Problem reported by Tijl Coosemans in:
17157         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
17158         * build-aux/config.rpath (hardcode_libdir_flag_spec)
17159         (hardcode_direct): Simplify FreeBSD configuration.
17160         (library_names_spec): Don't mishandle FreeBSD 10+.
17161         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
17162         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
17163         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
17164         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
17165         Don't mishandle FreeBSD 10+ when cross-compiling.
17167         ftoastr: work around compiler bug in IBM xlc 12.1
17168         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
17169         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
17170         around a compiler bug in IBM xlc 12.1.0.0: it complains
17171         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
17172         _GL_FLT_PREC_BOUND.'
17174 2014-05-30  Kieran Colford  <colfordk@gmail.com>
17176         valgrind-tests: fixed misleading help message
17177         * m4/valgrind-tests.m4: The help message generated by configure
17178         implied that valgrind was disabled by default, which it wasn't.
17179         Adjusted the help message using s/enable/disable/ to clarify.
17181 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
17183         isfinite, isinf, isnan tests: fix for little-endian PowerPC
17184         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
17185         first double of a PowerPC "double double" pair.
17186         * tests/test-isinf.c (test_isinfl): Likewise.
17187         * tests/test-isnan.c (test_long_double): Likewise.
17188         * tests/test-isnanl.h (main): Likewise.
17189         * tests/test-signbit.c (test_signbitl): Likewise.
17191 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17193         exclude-tests: port to AIX 7.1
17194         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
17195         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
17196         the regex code uses locks.
17198 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
17200         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
17201         Without this fix, Emacs would sometimes call sigprocmask instead
17202         of pthread_sigmask, which is a no-no in multithreaded applications.
17203         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
17204         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17205         Suppress check for pthread_sigmask working without -lpthread if
17206         the application always links with -lpthread.  Do not link with
17207         $LIBMULTITHREAD if gl_THREADLIB is not defined.
17208         * m4/timer_time.m4 (gl_TIMER_TIME):
17209         Require gl_THREADLIB only if it is defined.  Do not append
17210         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
17212 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
17214         gnulib-tool: wget translations using --no-verbose rather than --quiet
17215         This allows the user to see error messages if any (--quiet hides them)
17216         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
17218 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
17220         gnulib-tool: adjust translation wget to avoid a https redirection
17221         Context: http://translationproject.org/latest/gnulib redirects to
17222            https://translationproject.org/latest/gnulib/
17223         Rationale: if the user falls back to wget, she doesn't have rsync and
17224         is probably in a minimal build environment, where packages such as
17225         'ca-certificates' are missing as well, resulting in a failed (and
17226         difficult to detect since ignored) translation initial fetch.
17227         Consequently let's avoid https if possible, and add the missing
17228         trailing slash.  This also avoids an unnecessary 302 redirection.
17229         * gnulib-tool: Add trailing slash to gnulib URL.
17231 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17233         getlogin_r-tests: check return value rather than errno
17234         * tests/test-getlogin_r.c (main): As per POSIX we should be
17235         verifying the return value from getlogin_r() rather than errno.
17237 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17239         getlogin_r-tests: fix various issues in recent change
17240         * tests/test-getlogin_r.c: Include required headers that were
17241         missed in recent commit eec20b4e.
17242         Also consistently check the errno rather than the return value from
17243         getlogin_r as POSIX only specifies that non zero is returned on error.
17244         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
17246 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17248         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
17249         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
17250         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
17251         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
17252         * lib/spawn-pipe.c:
17253         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
17254         and then 'int open64(const char *, int, ...);', which means the
17255         declaration for 'open' gets lost if we later '#undef open'.
17256         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
17257         where the compilation reported the non-fatal error "In function
17258         'openat_proc_name' ... warning: implicit declaration of function
17259         'open'".  In this case the error is relatively harmless, but in
17260         other cases it might not be so minor.
17262 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17264         xalloc: don't potentially generate invalid code for xmemdup calls
17265         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
17266         this function can initialize the newly-allocated storage with new
17267         pointers, which means this function is not malloc-like.  See:
17268         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
17270 2014-05-19  Pádraig Brady  <P@draigBrady.com>
17272         getlogin_r-tests: avoid false failure under sudo/ssh etc.
17273         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
17274         changes from commit 97249cf29 to not depend on environment variables.
17276 2014-05-18  Pádraig Brady  <P@draigBrady.com>
17278         getlogin-tests: avoid false failure under cron
17279         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
17280         since that's not what's under test.  Centos 6 was seen to return
17281         EINVAL for ttyname() when run from cron.
17283 2014-05-16  Jim Meyering  <meyering@fb.com>
17285         mbrtowc.m4: fix a comment typo
17286         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
17287         emitted documentation string.
17289 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17291         mbrlen, mbrtowc: fix bug with empty input
17292         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17293         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17294         so this is mainly for documentation.
17295         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17296         (gl_FUNC_MBRTOWC): Use it.
17297         * tests/test-mbrtowc.c (main): Test for the bug.
17299 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17301         doc: document mbrtowc and mbrlen problem with empty input
17302         * doc/posix-functions/mbrlen.texi (mbrlen):
17303         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17304         Document portability problem when the input string is empty.  See:
17305         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17307         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17308         Problem reported by Eli Zaretskii in:
17309         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17310         * doc/posix-functions/execl.texi (execl):
17311         * doc/posix-functions/execle.texi (execle):
17312         * doc/posix-functions/execlp.texi (execlp):
17313         * doc/posix-functions/execv.texi (execv):
17314         * doc/posix-functions/execve.texi (execve):
17315         * doc/posix-functions/execvp.texi (execvp):
17316         Mention spawn+exit problem on non-Cygwin Windows platforms.
17318 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17320         getlogin-tests: avoid false failure under sudo/ssh etc.
17321         * modules/getlogin-tests (configure.ac): Check for ttyname().
17322         * tests/test-getlogin.c (main): Don't depend on environment variables
17323         to correlate with getlogin(), since sudo and ssh etc. can tamper
17324         with the LOGNAME and USER env vars.  Instead lookup the name from
17325         the uid associated with the stdin tty.
17327 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17329         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17330         These were found when building the latest grep snapshot on IRIX 6.5.
17331         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17332         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17333         never used later.
17334         * lib/quotearg.c (quoting_options_from_style):
17335         * lib/xstrtol.c (__xstrtol):
17336         Use enum instead of 0, to pacify IRIX 6.5 cc.
17338 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17340         gitlog-to-changelog: revert inclusion of git-log-fix file
17341         * build-aux/git-log-fix: Delete dummy file.
17342         * modules/gitlog-to-changelog: Don't reference (overwrite)
17343         the project specific git-log-fix file.
17345 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17347         maint.mk: Relax the copyright check to cater for non FSF projects
17348         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17349         to not require the "Free" suffix after the copyright years.
17351 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17353         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17354         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17355         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17356         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17357         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17359 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17361         exclude: port to strict C99
17362         Strict C does not allow converting a function pointer to void *
17363         and vice versa.  Pass a pointer to a function pointer instead.
17364         * lib/exclude.c (add_exclude_file):
17365         Pass the address of the function pointer.
17366         (call_addfn): And deference the address here, to match.
17368 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17370         regex: do not depend on malloc-gnu
17371         * modules/regex (Depends-on): Remove malloc-gnu.
17372         It's no longer needed, because of the 2012-12-29 patch
17373         "regex: port to hosts where malloc (0) == NULL".
17374         Reported by Nathan Kennedy in:
17375         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17377 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17379         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17380         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17381         * doc/posix-functions/expl.texi: Mention the workaround.
17383 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17385         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17386         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17387         size to be zero even when the pointer is nonnull.  This
17388         accommodates the use case where P is malloc (0) and *PN is 0 on a
17389         host where malloc (0) yields nonnull.
17391 2014-04-09  Eric Blake  <eblake@redhat.com>
17393         fts: avoid unnecessary strlen calls
17394         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17396 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17398         fts: avoid unnecessary strlen calls
17399         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17400         when that can be faster than strlen.
17402 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17404         fts: avoid unnecessary strlen calls
17405         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17406         (fts_build): Store the length of the dp->d_name entry in a local variable
17407         instead of calling strlen() several times via the above, removed macro.
17408         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17409         run by ~4%, yet this reduces the execution time by about a third if run
17410         via "ltrace -c rm -rf some-dir".
17412 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17414         obstack: Remove ancient NeXTSTEP gcc support conditional
17415         This change will ease merging with glibc.  The "#if ... __NEXT__"
17416         causes a warning with -Wundef which glibc now enables by default.
17417         Problem reported by Will Newton in
17418         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17419         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17420         so go with that.
17421         * lib/obstack.h (__extension__):
17423 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17425         obstack: merge with glibc changes
17426         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17427         This is mostly indenting and commentary changes.
17428         Instances of 'register' have been removed.
17430 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17432         strftime: wrap macros in "do {...} while(0)"
17433         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17434         this macro in "do {...} while(0)" to prevent false use as a
17435         single statement, e.g., in an un-braced "{}" else-block.
17436         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17437         (strftime_case_): Remove 'else' after 'goto' - which was the
17438         only non-fatal, un-braced use of one of the above macros.
17439         Spotted by coverity (NESTING_INDENT_MISMATCH).
17441 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17443         modechange: avoid memory leaks for invalid octal modes
17444         * lib/modechange.c (mode_compile): During the parsing of
17445         notations like +40, free the 'mc' buffer for invalid mode
17446         strings like +17777 (greater than the maximum octal mode),
17447         =18 (bad octal mode characters) or u=1 ('affected' with
17448         octal modes).
17449         Reproducer, e.g.:
17450             $ valgrind --leak-check=full chmod +17777 file
17451         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17452         add notations +40, 00440, etc.".
17453         Spotted by coverity (RESOURCE_LEAK).
17455 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17457         gitlog-to-changelog: include a dummy git-log-fix file
17458         Problem reported by Nathan Stratton Treadway in:
17459         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17460         * build-aux/git-log-fix: New file.
17462 2014-03-13  Jim Meyering  <meyering@fb.com>
17464         gitlog-to-changelog: also include the file, git-log-fix
17465         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17466         Reported by Assaf Gordon.
17468 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17470         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17471         This fixes a bug when ignoring case and when comparing the
17472         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17473         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17474         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17475         titlecase letter is neither lowercase nor uppercase, but
17476         uppercasing the titlecase letter (via towupper) yields the
17477         uppercase letter, so the two letters should match when ignoring case.
17478         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17479         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17480         Don't test whether a character is lowercase before uppercasing it.
17482 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17484         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17485         This is basically one of the options Bruno Haible proposed in:
17486         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17487         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17488         * lib/stdint.in.h: Use it.
17489         * modules/stdint (Depends-on): Add sys_types.
17491 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17493         parse-datetime: fix crash or infloop in TZ="" parsing
17494         * lib/parse-datetime.y (parse_datetime): Break out of the
17495         TZ="" parsing loop once the second significant " is found.
17496         Also skip over any subsequent whitespace to be consistent
17497         with the non TZ= case.
17498         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17500 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17502         savedir: new symbol for fast-read version
17503         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17504         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17505         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17506         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17508 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17510         unistd: port readlink to Mac OS X 10.3.9
17511         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17512         around self-include problem in Mac OS X 10.3.9 when combined with
17513         readlink module.  Problem reported by Klaus Zietler in
17514         <http://bugs.gnu.org/16825>.
17516 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17518         diffseq: remove TOO_EXPENSIVE heuristic
17519         Problem with diffutils reported by Vincent Lefevre in
17520         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17521         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17522         Although appropriate for circa-1993 hardware, these days the heuristic
17523         seems to be more trouble than it's worth.
17524         * lib/diffseq.h: Modernize citations.
17525         (struct context): Remove member too_expensive.
17526         All uses changed.
17527         (struct partition): Remove members lo_minimal, hi_minimal.
17528         All uses changed.
17529         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17530         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17531         1993 to make 'diff' run faster (but not as well) on large inputs.
17532         These days, computers are fast enough that it's typically better
17533         to run slower but more accurately.
17534         * lib/fstrcmp.c: Remove duplicate comment.
17535         * lib/fstrcmp.c (strcmp_bounded):
17536         * lib/git-merge-changelog.c (compute_differences):
17537         Adjust to diffseq.h changes.
17538         * NEWS: Document the change.
17540         savedir: simplify by using stpcpy
17541         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17542         (streamsavedir): Use stpcpy instead.
17543         * modules/savedir (Depends-on): Add stpcpy.
17545 2014-02-21  Pádraig Brady  <P@draigBrady.com>
17547         spawn: fix link error on uclibc
17548         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
17549         to incorporate -lrt if needed (on uclibc for example).
17550         * modules/posix_spawn: Reference the substituted LIB.
17552 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
17553         timer: fix uClibc detection of threading
17554         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
17555         enabled in uClibc.
17557 2014-02-21  Eric Blake  <eblake@redhat.com>
17559         maintainer-makefiles: provide AC_PROG_SED for older autoconf
17560         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
17562 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17564         exclude: add support for posix regexps
17566         This commit adds support for POSIX extended regular expressions
17567         and fixes a long-standing memory leak (pattern buffer was never
17568         freed).  It also implements a new interface function to read
17569         exclude patterns from a FILE, which passes an additional parameter
17570         to its callback function, thereby allowing to preserve its state
17571         between invocations.
17573         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
17574         (pattern_buffer): New struct.
17575         (exclude): New member patbuf.
17576         (exclude_add_pattern_buffer): New function.
17577         (free_exclude_segment): Free regexps.
17578         (free_exclude): Free allocated pattern buffers.
17579         (exclude_patopts): New function.
17580         (file_pattern_matches): Use exclude_patopts.
17581         (add_exclude): support regexps.
17582         (add_exclude_fp): New function.
17583         (add_exclude_file): Rewrite using add_exclude_fp.
17584         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17585         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17586         (add_exclude_fp)
17587         (add_exclude_file): Rewrite using add_exclude_fp.
17588         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17589         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17590         (add_exclude_fp)
17591         (exclude_add_pattern_buffer): New prototypes.
17592         * modules/exclude: Depends on regex and filename.
17594 2014-02-20  Eric Blake  <eblake@redhat.com>
17596         maintainer-makefiles: use $(SED) for syntax check
17597         * modules/maintainer-makefile (configure.ac): Check for sane sed.
17598         * top/maint.mk: Change sed to $(SED).
17600 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
17601             Paul Eggert  <eggert@cs.ucla.edu>
17603         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
17604         Patch based on an idea by Dick Streefland in
17605         <https://savannah.gnu.org/patch/?7892>.
17606         * NEWS: Document this.
17607         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
17608         (direntry_t, comparison_function): New types.
17609         (direntry_cmp_name): New function.
17610         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
17611         (streamsavedir, savedir): New arg OPTION.
17612         (streamsavedir): Simplify memory allocation.
17613         (fdsavedir): Remove.
17614         * lib/savedir.h (enum savedir_option): New type.
17615         (streamsavedir, savedir): New arg OPTION.
17616         (fdsavedir): Remove.
17618 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17620         file-type: add support for doors and other less-common file types
17621         Problem with S_ISDOOR reported by Rich Burridge.
17622         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
17623         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
17624         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
17626 2014-01-23  Eric Blake  <eblake@redhat.com>
17628         pthread: work around winpthread header pollution on mingw
17629         * lib/time.in.h: Move pthread workarounds...
17630         * lib/pthread.in.h: ...here.
17631         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
17632         detect macro pollution on mingw.
17633         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
17635 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17637         qacl: check for fchmod
17638         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
17639         and qset-acl.c both use HAVE_FCHMOD.
17641 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17643         fdopen-tests: port to Tru64
17644         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
17645         descriptor that is not open, as POSIX doesn't specify the
17646         resulting behavior and the test does not work on Tru64.
17647         Problem reported by Steven M. Schweda in:
17648         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
17650         stdalign: port to HP-UX compilers
17651         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
17652         if __HP_cc or __HP_aCC are nonzero.
17654 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17656         strtoimax: port to platforms lacking 'long long'
17657         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
17658         check whether strtoll is declared, which causes the C file to
17659         wrongly report an error.  Problem reported by Steven M. Schweda in:
17660         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
17661         * lib/strtoimax.c (strtoull):
17662         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
17663         (strtoll): Declare only if HAVE_LONG_LONG_INT.
17665 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
17667         relocatable-perl: fix texi syntax
17668         * doc/relocatable-maint.texi: Escape braces.
17670 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
17672         relocatable-perl: like relocatable-script, but for Perl scripts
17673         * build-aux/relocatable.pl.in: Add.
17674         * doc/relocatable-maint.texi: Add documentation.
17675         * modules/relocatable-perl: Add.
17677 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
17679         tests: fix export bug in previous patch
17680         Problem reported by Jim Meyering.
17681         * tests/init.sh (re_shell): New var, which is exported instead of
17682         re_shell_.
17684         tests: simplify porting to Solaris 10 /bin/sh
17685         Some test cases in 'grep' need a shell that groks '$(';
17686         export re_shell_ for their benefit.  Problem reported for 'grep'
17687         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
17688         * tests/init.sh (re_shell_): Export if it's used.
17690 2014-01-06  Eric Blake  <eblake@redhat.com>
17692         md5, sha1, sha256, sha512: support older autoconf
17693         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
17694         for autoconf < 2.63b.
17696         include_next: port to autoconf 2.63
17697         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
17699 2014-01-04  Jim Meyering  <meyering@fb.com>
17701         maint: add a gnulib-local rule to keep non-ascii out of .texi files
17702         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
17703         so that "make sc_maint" will ding anyone who puts non-ascii
17704         in any of gnulib's .texi files.
17706 2014-01-03  Jim Meyering  <meyering@fb.com>
17708         freadable, fwritable, fwriting: declare with the "pure" attribute
17709         * lib/freadable.h (freadable): Declare with the "pure" attribute.
17710         * lib/fwritable.h (fwritable): Likewise.
17711         * lib/fwriting.h (fwriting): Likewise.
17712         Suggested by Bruno Haible.
17714         maint.mk: adapt openat.h-include-without-use test
17715         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
17716         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
17717         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
17718         With this change, running "make sc_maint" in gnulib's top-level
17719         directory now passes for me.
17721 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17723         doc: use ASCII in .texi files where UTF-8 isn't needed
17724         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
17725         * doc/posix-functions/setkey.texi, doc/regex.texi:
17726         Use ASCII input, not UTF-8.
17728 2014-01-02  Jim Meyering  <meyering@fb.com>
17730         freading: declare with the "pure" attribute
17731         * lib/freading.h (freading): Declare with the "pure" attribute.
17733         manywarnings: remove -Wmudflap
17734         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
17735         it is no longer supported in gcc-4.9-to-be.
17737 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17739         relocatable-script: remove unused code
17740         Problem reported by Reuben Thomas in:
17741         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
17742         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
17744 2014-01-01  Jim Meyering  <meyering@fb.com>
17746         maint: fix public-submodule-commit to work with newer git
17747         * top/maint.mk (public-submodule-commit): Remove excess quoting.
17748         We were over-quoting the test arguments, and somewhere prior to
17749         version 1.8.5.2.229, git stopped removing those excess quotes,
17750         which made the test fail, since the unexpanded strings would
17751         always differ; using GIT_TRACE=1 confirmed that the git merge-base
17752         command wasn't even being run.
17754 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17756         doc: update main copyright year
17757         * doc/gnulib.texi: Update copyright date.
17759 2014-01-01  Eric Blake  <eblake@redhat.com>
17761         version-etc: new year
17762         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
17763         * all files: run 'make update-copyright'
17765 2013-12-24  Eric Blake  <eblake@redhat.com>
17767         passfd: give nicer error for recvfd at eof
17768         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
17769         * tests/test-passfd.c (main): Enhance test to cover this.
17771 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17773         gettimeofday: port recent C++ fix to Emacs
17774         Without this further patch, Emacs won't build due to
17775         the portcheck failing.  Also, this simplifies the patch a bit.
17776         * lib/time.in.h (localtime, gmtime): Don't replace unless
17777         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
17778         * lib/time.in.h (localtime, gmtime):
17779         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
17780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17781         * modules/time (time.h):
17782         Don't worry about the possibility of localtime and gmtime
17783         being absent; they're present in all C libraries we know about.
17784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17785         Don't assume sys_time is present and has been initialized.
17786         Instead, use a hack that should work even if it hasn't been.
17787         Don't use a portcheck for gmtime or localtime; this supports
17788         the hack.
17789         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
17791 2013-12-17  John W. Eaton  <jwe@gnu.org>
17793         gettimeofday: fix C++ crosscompilation
17795         Never replace gmtime and localtime by macros when compiling with
17796         C++, this prevents <ctime> from being included.
17798         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
17799         define gmtime and localtime as preprocessor macros.  Instead
17800         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
17801         REPLACE_LOCALTIME substitutions.
17802         * lib/time.in.h: Declare gmtime and localtime when needed.
17803         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
17804         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
17805         * modules/time: Depend on gettimeofday, and substitute the above
17806         variables in time.h.
17808 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17810         qacl: port to Windows better
17811         See Eli Zaretskii in
17812         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
17813         * lib/file-has-acl.c (acl_access_nontrivial):
17814         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
17815         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
17817 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
17819         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
17820         * lib/gl_openssl.h: Cast void pointers to a specific type.
17822 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17824         open-tests: fix build failure with -Werror=old-style-declaration
17825         * tests/test-open.h: Reorder the inline to avoid the issue.
17827 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17829         md5, sha1, sha256, sha512: fix link error with partial libcrypto
17830         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
17831         init time, so that if early checks find crypto routines,
17832         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
17833         avoiding link failures.
17835 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17837         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
17838         This provides a new way to specify the default for
17839         gl_CRYPTO_CHECK, one that is reflected in the --help message.
17840         Emacs uses this, as well as the old way.
17841         This attempts to implement a suggestion by Pádraig Brady in
17842         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
17843         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
17844         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
17846         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
17847         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
17848         Add support for a new option, --with-openssl=auto, which causes
17849         the library to be used if available and silently ignored if not.
17850         Add support to allow configure.ac to specify its own
17851         default, by setting with_openssl_default before invoking gl_INIT.
17853 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17855         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
17856         Problem reported by Daiki Ueno in:
17857         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
17858         * tests/test-open.h (__always_inline):
17859         New macro, if not already defined.
17860         (test_open): Use it.
17862 2013-12-04  Eric Blake  <eblake@redhat.com>
17864         include_next: minimize code duplication
17865         * modules/include_next (Depends-on): Add absolute-header.
17866         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
17867         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
17869 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17871         getcwd: fix compile error in configure check
17872         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
17874 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17876         regex: suppress core dumps from detection code
17877         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
17878         to suppress core dumps that may well occur on glibc systems.
17879         These core dumps might not be cleaned up automatically, or could
17880         trigger some system core dump handling logic.
17882 2013-12-03  Pádraig Brady  <P@draigBrady.com>
17884         md5, sha1, sha256, sha512: support mandating use of openssl
17885         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
17886         description, to list the now 3 separate options.  also don't
17887         mention the default=no, since this is implicit given the option
17888         is described as --with-openssl rather than --without-openssl.
17889         If projects change the default they're free to document that.
17890         with --with-openssl[=yes] we now error out when the specified
17891         hash algorithm is not available in libcrypto.
17893 2013-12-03  Ivailo  <xakepa10@gmail.com>
17895         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
17896         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
17897         -Wformat-nonliteral checks, as these edge cases are part of the test.
17899 2013-12-03  Eric Blake  <eblake@redhat.com>
17901         regex: avoid glibc deadlock during configure
17902         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
17903         glibc bug 15078 in turn triggers bug 16159.
17904         Reported by Michal Privoznik.
17906 2013-12-02  Pádraig Brady  <P@draigBrady.com>
17908         md5, sha1, sha256, sha512: use openssl routines if available.
17909         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
17910         routines will be used if available, requiring apps to link @LIB_CRYPTO@
17911         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
17912         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
17913         in the standard system location.
17914         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
17915         * m4/sha256.m4: Likewise with SHA256.
17916         * m4/sha512.m4: Likewise with SHA512.
17917         * m4/md5.m4: Likewise with MD5.
17918         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
17919         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
17920         * lib/sha256.h: Likewise with SHA256.
17921         * lib/sha512.h: Likewise with SHA512.
17922         * lib/md5.h: Likewise with MD5.
17923         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
17924         * lib/sha256.c: Likewise with SHA256.
17925         * lib/sha512.c: Likewise with SHA512.
17926         * lib/md5.c: Likewise with MD5.
17927         * modules/crypto/sha1 (Link:): Add the new optional lib.
17928         (Depends-on:): Add dependency on extern-inline.
17929         * modules/crypto/sha256: Likewise.
17930         * modules/crypto/sha512: Likewise.
17931         * modules/crypto/md5: Likewise.
17932         * modules/crypto/sha1-tests: Reference the lib here too.
17933         * modules/crypto/md5-tests: Likewise.
17934         * modules/crypto/gc-des-tests: Likewise.
17935         * modules/crypto/gc-hmac-md5-tests: Likewise.
17936         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17937         * modules/crypto/gc-hmac-sha256-tests: Likewise.
17938         * modules/crypto/gc-hmac-sha512-tests: Likewise.
17939         * modules/crypto/gc-md5-tests: Likewise.
17940         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17941         * modules/crypto/gc-sha1-tests: Likewise.
17942         * modules/crypto/gc-tests: Likewise.
17943         * modules/crypto/hmac-md5-tests: Likewise.
17944         * modules/crypto/hmac-sha1-tests: Likewise.
17945         * modules/crypto/hmac-sha256-tests: Likewise.
17946         * modules/crypto/hmac-sha512-tests: Likewise.
17948 2013-11-29  RV1971  <rv1971@web.de>
17950         base64: (trivial) fix compilation regression on some compilers
17951         * lib/base64.c: Don't return the void function,
17952         instead split to a separate return statement.
17954 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17956         ignore-value: revert previous code change
17957         * lib/ignore-value.h (ignore_value): Use __extension__ and
17958         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
17959         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
17960         Change the comment to try to explain this better.
17962 2013-11-27  Pádraig Brady  <P@draigBrady.com>
17964         selinux-h: improve stub types and add more stub functions
17966         * lib/se-selinux.in.h: Change security_context_t to a typedef
17967         rather than a define, as it's a pointer type and so is better
17968         as a typedef to avoid issues declaring multiple variables
17969         with the comma operator.  Also add stub for string_to_security_class().
17970         * lib/se-context.in.h: Add stub functions for
17971         context_{type,range,role,user}_get().
17973 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
17975         ignore-value: prefer GCC version back through 2.0
17976         The code didn't match the comments, so I did a bit of software
17977         archaeology.  GCC 2.0 seems to support __extension__ and
17978         __typeof__, so fix both code and comments to use 2.0.
17979         * lib/ignore-value.h (ignore_value): Use __extension__ and
17980         __typeof__ for GCC 2.0 through 3.3, too.
17982 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
17984         pty: Activate the signature wrapper of forkpty.
17985         The intended preprocessor macro HAVE_FORKPTY is
17986         never defined, yet `lib/forkpty.c' depends on it.
17988         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
17989         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
17990         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
17992 2013-11-18  Jim Meyering  <meyering@fb.com>
17993         and Paul Eggert  <eggert@cs.ucla.edu>
17995         quotearg: don't attempt to store 1 << 31 into an "int"
17996         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
17997         gcc's new -fsanitize=undefined and running its tests triggered some
17998         new test failures due to undefined behavior, all with this diagnostic:
17999           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
18000             cannot be represented in type int
18001         Rather than shifting "1" left to form a mask, shift the bits right and
18002         simply use "1" as the mask.
18004 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
18006         error: depend on stdio
18007         Problem reported by Nikos Mavrogiannopoulos in
18008         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
18009         * modules/error (Depends-on): Add stdio.
18011 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
18013         * doc/relocatable-maint.texi (Supporting Relocation): Improve
18014         wording.
18015         Reported by Reuben Thomas <rrt@sc3d.org>.
18017 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18019         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
18020         New function and macro, to work around _DARWIN_C_SOURCE problem.
18021         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
18023 2013-11-11  Pádraig Brady  <P@draigBrady.com>
18025         base64: provide a fast path for encoding well sized buffers
18026         Avoid conditionals in the base64 encoding loop,
18027         which was seen to give 60% better throughput.
18028         * lib/base64.c (base64_encode_fast): A new function to be called
18029         when we don't want to NUL terminate, and we have enough space
18030         in the output to encode the given input.
18031         (base64_encode): Call the _fast() version when appropriate.
18032         Also remove a redundant mask with 0x3F on the first encoded byte.
18034 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18036         extern-inline: port better to OS X 10.9
18037         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
18038         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
18039         OS X 10.9, except for g++ where the bug is still present.
18040         See <http://trac.macports.org/ticket/41033>.
18042 2013-11-08  Eric Blake  <eblake@redhat.com>
18044         fpending: fix regression on DragonFly BSD
18045         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
18046         * lib/fpending.h (__fpending): Don't declare twice.
18047         Reported by GW in
18048         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
18050 2013-11-05  Jim Meyering  <meyering@fb.com>
18052         hash: relax license to LGPLv2+, for libguestfs
18053         * modules/hash (License): Change from GPL to LGPLv2+.
18055 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18057         intprops: port to Oracle Studio c99
18058         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
18059         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
18061 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
18063         obstack: pacify HP C
18064         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
18065         warning "conversion from pointer to smaller integer" from HP
18066         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
18067         C89 or later nowadays, so cast to void instead of int.  Privately
18068         reported by H.Merijn Brand.  Also, change header to match glibc's,
18069         to make checking against glibc easier.
18071 2013-10-29  Jim Meyering  <meyering@fb.com>
18073         maint.mk: prefer gpgv2 over gpgv
18074         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
18075         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
18076         Reported by Gary Vaughan.
18078 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18080         isnan: port to VAX
18081         Reported by John Klos for NetBSD-5/VAX in
18082         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
18083         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
18084         (FUNC): Use it.
18086 2013-10-28  Jim Meyering  <meyering@fb.com>
18088         gnulib-tool: protect against CDPATH
18089         * gnulib-tool: Many "cd" built-in functions print a directory name
18090         to stdout when CDPATH is set, e.g.,
18091           $ bash -c 'CDPATH=/; cd tmp'
18092           /tmp
18093         Unset it, when possible.  Prompted by a comment from Bruce Korb.
18095         maint.mk: restore functionality removed by recent change...
18096         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
18097         the context of a shallow-cloned gnulib repository: "git describe"
18098         would fail in such a directory.  However, that change made it so
18099         the reported gnulib revision no longer includes the version number
18100         or a commit count, even when run from a full clone.
18101         * top/maint.mk (gnulib-version): Use the full "git describe"
18102         output when possible, e.g., the form above, rather than the
18103         abbreviated, no-tag, no-commit-count string, and fall back to
18104         using a 10-byte hash, rather than the default minimal-length
18105         hash prefix, since while the minimal-length one may be fine today,
18106         it is likely not to be unique for very long.
18108 2013-10-26  Jim Meyering  <meyering@fb.com>
18110         maint.mk: fix "release" target to build _version
18111         This fixes a bug in README-release whereby following the outlined
18112         steps, one would publish a tarball whose programs would report
18113         --version output not consistent with the package version number.
18114         This bug caused grep-2.15 to produce a grep program whose
18115         --version option made it print 2.14.56-1e3d rather than 2.15.
18116         * top/maint.mk (release): Making this target build "_version"
18117         ensures that the new version number is reflected in configure.
18119 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
18121         install-reloc: Support multi-binary installation.
18122         * build-aux/install-reloc: Support installing multiple programs in
18123         one invocation, as done by Automake starting with commit
18124         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
18125         Haible <bruno@clisp.org>, archived at
18126         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
18127         Reported by Sylvain <beuc@gnu.org>.
18129 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18131         selinux-h: Really build without selinux when library is missing.
18132         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
18133         continue without selinux, as already told in the warning message.
18135 2013-10-21  Jim Meyering  <meyering@fb.com>
18137         regex: also remove dependency on HAVE_WCSCOLL
18138         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
18140 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
18142         xfreopen: Fix typo. s/frepoen/freopen/
18143         * lib/xfreopen.c: Fix description.
18144         * modules/xfreopen: Likewise.
18146 2013-10-21  Jim Meyering  <meyering@fb.com>
18148         regex: don't depend on wcscoll
18149         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
18150         It is no longer used.
18152 2013-10-20  Jim Meyering  <meyering@fb.com>
18154         error: add the printf attribute to a static function
18155         * lib/error.c (error_tail): Add the printf attribute, to placate
18156         gcc's -Werror=suggest-attribute=format option.
18158 2013-09-30  Jim Meyering  <meyering@fb.com>
18160         fpending, obstack, strerror-override: use pure+const function attrs
18161         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
18162         * lib/obstack.c (_obstack_allocated_p): Likewise.
18163         * lib/obstack.h (_obstack_memory_used): Likewise.
18164         (_obstack_memory_used): Likewise.
18165         * lib/strerror-override.h (strerror_override): Declare with
18166         the "const" attribute.
18168 2013-10-18  Eric Blake  <eblake@redhat.com>
18170         extern-inline: make safe for -Wundef usage
18171         Reported by Vladimir 'phcoder' Serbinenko in
18172         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
18173         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
18175 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18177         mkfifo-tests, etc.: allow HP-UX 11.11 bug
18178         Problem reported by Daniel Richard G. in
18179         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
18180         * doc/posix-functions/mkfifo.texi (mkfifo):
18181         * doc/posix-functions/mkfifoat.texi (mkfifoat):
18182         * doc/posix-functions/mknod.texi (mknod):
18183         * doc/posix-functions/mknodat.texi (mknodat):
18184         Document the HP-UX 11.11 bug.
18185         * tests/test-mkfifo.h (test_mkfifo):
18186         Allow the HP-UX 11.11 bug.
18188 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18190         acl: allow cross-compilation to Gentoo
18191         Problem reported by Gabriel Marcano in
18192         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
18193         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
18194         test only whether it links.
18196 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18198         mgetgroups: remove dependency on realloc-gnu
18199         The dependency violates the comment in realloc-gnu, which
18200         says that tests can't depend on realloc-gnu; some tests depend
18201         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
18202         Problem reported by Daniel Richard G. in
18203         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
18204         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
18205         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
18206         not realloc-gnu.
18208 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18210         regex-tests: port to HP-UX 11.11
18211         Problem reported by Daniel Richard G. in
18212         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
18213         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
18215 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18217         verify: document some 'assume' pitfalls
18218         * doc/verify.texi (Compile-time Assertions):
18219         Mention that 'assume (E)' can sometimes slow things down.
18220         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
18222 2013-10-10  Eric Blake  <eblake@redhat.com>
18224         strtoumax: fix typo in previous commit.
18225         * modules/strtoumax (Depends-on): Fix typo.
18226         * modules/strtoimax (Depends-on): Likewise.
18228 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18230         strtoumax: port to Solaris 8
18231         This problem was introduced in the recent HP-UX patch.
18232         Reported by Tom G. Christensen in
18233         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
18234         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
18235         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
18237 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18239         strtoimax, strtoumax: port to HP-UX 11.11
18240         Problem reported by Daniel Richard G. in
18241         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
18242         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
18243         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
18244         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
18245         REPLACE_STRTOUMAX.
18246         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
18247         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
18248         Replace the function if defined as a macro but not as a function.
18249         * modules/inttypes-incomplete (inttypes.h): Substitute
18250         REPLACE_STRTOUMAX.
18251         * modules/strtoumax (configure.ac): Replace strtoumax if
18252         REPLACE_STRTOUMAX.
18254 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18256         strtoimax: port to HP-UX 11.11
18257         Problem reported by Daniel Richard G.
18258         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
18259         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
18260         they might clash with inttypes.h.
18262 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18264         New module 'count-trailing-zeros'.
18265         * MODULES.html.sh: Mention it.
18266         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
18267         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
18268         * modules/count-trailing-zeros-tests:
18269         * tests/test-count-trailing-zeros.c:
18270         New files.
18272         count-leading-zeros: port to MSC; support types wider than 64 bits
18273         The ideas behind the MSC port are stolen from Emacs.
18274         * lib/count-leading-zeros.h:
18275         Don't include verify.h: it's no longer needed, as types wider than
18276         64 bits are now supported.
18277         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
18278         performance with MSC.  All uses changed.  Do not assume that TYPE
18279         has at most 64 bits.
18280         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
18281         All uses changed.  Fold the subtraction from 31 into the table.
18283         count-one-bits: port to MSC; support types wider than 64 bits
18284         The ideas behind the MSC port are stolen from Emacs.
18285         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
18286         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
18287         Don't include verify.h: it's no longer needed, as types wider than
18288         64 bits are now supported.
18289         (COUNT_ONE_BITS_GENERIC): New macro.
18290         (popcount_supported) [_MSC_VER]: New inline function.
18291         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
18292         performance with MSC.  All uses changed.  Do not assume that TYPE
18293         has at most 64 bits.
18294         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18296 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18298         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18299         * lib/mountlist.c (read_file_system_list): fix leak of directory
18300         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18302 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18304         tests: improve diagnostic when an assertion fails
18305         * tests/macros.h (ASSERT): Report the assertion that failed.
18307 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18309         verify: new macro 'assume'
18310         This is taken from Emacs, and should be generally useful.
18311         * doc/verify.texi (assume): Document it.
18312         * lib/verify.h (assume): New macro.
18313         (__has_builtin): Expand to 0 if not defined.
18315 2013-09-26  Eric Blake  <eblake@redhat.com>
18317         dup2, dup3: work around another cygwin crasher
18318         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18319         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18320         * tests/test-dup2.c (main): Likewise.
18321         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18322         * lib/dup3.c (dup3): Likewise.
18323         * doc/posix-functions/dup2.texi (dup2): Document it.
18324         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18326         getdtablesize: work around cygwin issue
18327         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18328         * modules/getdtablesize (configure.ac): Build replacement.
18329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18330         * modules/unistd (Makefile.am): Expose the witness.
18331         * lib/unistd.in.h (getdtablesize): Declare replacement.
18332         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18333         * tests/test-getdtablesize.c (main): Test it.
18334         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18336 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18338         pmccabe2html: escaping of special characters
18339         Escape all '<', '>', and '&' in HTML output.
18340         * build-aux/pmccabe2html (html_fnc): Call gsub()
18341         instead of sub() to capture all '<', '>', and '&'.
18342         Neither of '<' and '>' is special in a regexp,
18343         so first arguments to gsub() are corrected. Also,
18344         in replacement strings, ampersand must be escaped.
18345         Finally, '&' must be handled first, then '<' and '>'.
18347 2013-09-24  Eric Blake  <eblake@redhat.com>
18349         manywarnings: enable nicer gcc warning messages
18350         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18351         some -f options for optimal warnings.
18353 2013-09-21  Jim Meyering  <meyering@fb.com>
18355         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18356         * lib/timespec-add.c (timespec_add): Also replace 999999999
18357         with TIMESPEC_RESOLUTION - 1.
18358         * lib/timespec-sub.c (timespec_sub): Likewise.
18360 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18362         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18363         Problem reported by Dagobert Michelsen via Eric Blake in
18364         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18365         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18366         not AC_COMPILE_IFELSE.
18368 2013-09-23  Eric Blake  <eblake@redhat.com>
18370         configmake: support new --runstatedir option
18371         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18372         even if autoconf was too old to provide the command line option.
18373         * modules/configmake (Makefile.am): Propagate it to .h file.
18375 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18377         ctype, string: depend on extern-inline
18378         This is needed to complete the recent OS X fixes.
18379         Also, fix related documentation as suggested by Eric Blake.
18380         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18381         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18382         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18383         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18384         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18385         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18386         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18387         * doc/posix-functions/toupper.texi:
18388         List the 'ctype' gnulib module.
18389         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18390         * doc/posix-functions/strncpy.texi:
18391         List the 'string' gnulib module.
18392         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18393         Add string.
18394         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18396 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18398         userspec: support optional parameters to parse_user_spec()
18399         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18400         then avoid group processing and treat the full spec as a user.
18401         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18402         be optional params (NULL), in which case they're ignored.
18404 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18406         timespec: new function make_timespec, and new constants
18407         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18408         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18409         (make_timespec): New function.
18410         * lib/dtotimespec.c (dtotimespec):
18411         * lib/timespec-add.c (timespec_add):
18412         * lib/timespec-sub.c (timespec_sub):
18413         * lib/utimens.c (validate_timespec):
18414         * lib/utimensat.c (rpl_utimensat):
18415         Use these new constants and functions.
18417         stdio: OS X port of putc_unlocked + extern inline
18418         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18419         * doc/posix-functions/putc_unlocked.texi:
18420         * doc/posix-functions/putchar_unlocked.texi:
18421         Document this portability problem.
18423         signal: OS X port of sigaddset etc. + extern inline
18424         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18425         (sigismember): #undef on problematic Apple platforms.
18426         * doc/posix-functions/sigaddset.texi:
18427         * doc/posix-functions/sigdelset.texi:
18428         * doc/posix-functions/sigemptyset.texi:
18429         * doc/posix-functions/sigfillset.texi:
18430         * doc/posix-functions/sigismember.texi:
18431         Document this portability problem.
18433         extern-inline: do not always suppress extern inline on OS X
18434         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18435         extern inline on Apple only if the particular compile-time
18436         configuration is known to have the problem.
18437         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18438         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18439         other Gnulib modules.
18441         extern-inline: document fixes for ctype and wctype macros
18442         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18443         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18444         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18445         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18446         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18447         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18448         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18449         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18450         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18451         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18452         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18453         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18454         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18455         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18456         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18457         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18458         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18459         * doc/posix-functions/strncpy.texi:
18460         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18461         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18462         Document that Gnulib fixes portability problems with these
18463         functions on OS X 10.8 and earlier when called from plain inline
18464         or extern inline functions.
18466 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18468         fflush, freadahead, fseeko: Fix for Android
18469         Suggested by Bruno Haible in:
18470         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18471         * lib/stdio-impl.h: Use local __sfileext definition.
18473 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18475         pmccabe2html: Portability to other awk versions.
18476         The functions systime() and strftime() are available
18477         in Gawk only.  Properly close two HTML-tags 'style'
18478         and 'span'.
18479         * build-aux/pmccabe2html (BEGIN): Store timing
18480         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18481         systime() in HTML_COMMENT.
18482         (html_header): Correctly close tag 'style'.
18483         (END): Replace strftime() by CHRONOS_TIME.  Close
18484         tag 'span' correctly, not as 'div'.
18486 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18488         getgroups: statement without effect
18489         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18490         Change equality conditional to expected assignment.
18492 2013-09-09  Eric Blake  <eblake@redhat.com>
18494         glob: fix compilation
18495         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18497 2013-09-07  Eric Blake  <eblake@redhat.com>
18499         glob: fix build for platforms without __THROW
18500         * lib/glob.in.h (__THROW): Add definition again.
18502 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18504         regex-quote: fix buffer access out of bounds
18505         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18506         * lib/regex-quote.c (regex_quote_spec_pcre):
18507         Fix typo that resulted in an out-of-bounds read.
18509 2013-09-04  Eric Blake  <eblake@redhat.com>
18511         glob: avoid -Wattribute warnings on glibc
18512         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18513         __THROWNL, not __THROW, on static functions.
18514         * lib/glob.in.h (__THROW): Adjust...
18515         (__THROWNL): ...accordingly.
18517 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18519         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18520         Suggested by Bruce Korb in:
18521         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18522         * doc/extern-inline.texi (extern inline):
18523         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18524         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18525         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18526         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18527         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18528         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18529         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18530         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18531         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18532         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18533         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18534         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18535         * lib/xtime.h:
18536         Check that _GL_INLINE_HEADER_BEGIN is defined.
18538 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18540         bootstrap: remove the --version requirement from ancillary tools
18541         * build-aux/bootstrap (check_exists): A new refactored function to
18542         determine if a command exists.
18543         (find_tool): Use the new function which does not require the
18544         --version option to be supported.
18545         (check_versions): Use the new function.
18547 2013-08-26  Simon Josefsson  <simon@josefsson.org>
18549         gc: support HMAC-SHA256 and HMAC-SHA512.
18550         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
18551         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
18552         functions.
18553         (gc_hmac_md5): Use symbolic constant.
18554         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18555         (gc_hmac_sha256, gc_hmac_sha512): New functions.
18556         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
18557         * m4/sha256.m4: Protect against empty expansion.
18558         * m4/sha512.m4: Likewise.
18559         * lib/hmac-sha256.c: New file.
18560         * lib/hmac-sha512.c: Likewise.
18561         * m4/gc-hmac-sha256.m4: Likewise.
18562         * m4/gc-hmac-sha512.m4: Likewise.
18563         * m4/gc-sha256.m4: Likewise.
18564         * m4/gc-sha512.m4: Likewise.
18565         * modules/crypto/gc-hmac-sha256: Likewise.
18566         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18567         * modules/crypto/gc-hmac-sha512: Likewise.
18568         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18569         * modules/crypto/hmac-sha256: Likewise.
18570         * modules/crypto/hmac-sha256-tests: Likewise.
18571         * modules/crypto/hmac-sha512: Likewise.
18572         * modules/crypto/hmac-sha512-tests: Likewise.
18573         * tests/test-gc-hmac-sha256.c: Likewise.
18574         * tests/test-gc-hmac-sha512.c: Likewise
18575         * tests/test-hmac-sha256.c: Likewise.
18576         * tests/test-hmac-sha512.c: Likewise
18578 2013-08-24  Daiki Ueno  <ueno@gnu.org>
18580         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
18581         of AC_CHECK_DECLS.
18583 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18585         selinux-at: omit unnecessary include
18586         * lib/selinux-at.c: Don't include dosname.h; not needed, since
18587         this source file doesn't use its macros, and subsidiary files that
18588         use the macros already include it.
18590 2013-08-21  Eric Blake  <eblake@redhat.com>
18592         d-ino: avoid false negative on symlink
18593         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
18594         Reported by Stephane Chazelas.
18596 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
18598         bootstrap: port to OpenBSD sed
18599         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
18600         does not interpret `-' as a file argument to mean stdin.
18602 2013-08-15  Eric Blake  <eblake@redhat.com>
18604         warnings: minor optimization
18605         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
18607         warnings: check -Wfoo rather than -Wno-foo
18608         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
18609         -Wno-, test if the compiler recognizes the positive form instead.
18611 2013-08-15  Karl Berry  <karl@gnu.org>
18613         * config/srclist-update: add option "doclicense" to placate
18614         pulling *.texi files from Emacs.  Write terse usage
18615         documentation at the top.
18617 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18619         xvasprintf-tests: port to GCC with hardening flags
18620         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
18621         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
18622         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
18624 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18626         fpending: port to recent Cygwin change to stdio_ext.h
18627         Reported by LRN in
18628         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
18629         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
18630         just declare __fpending unless it's a macro.
18631         A duplicate decl shouldn't hurt.
18632         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
18633         call compiles and links, instead of separately checking for
18634         decl and lib function.
18635         * modules/fpending (configure-ac):
18636         Adjust to fpending.m4's renaming of shell variable.
18638 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18640         sys_time: port to OpenBSD
18641         * lib/sys_time.in.h: Simply delegate to the system's header
18642         in the BSDish cases as well.  Problem reported by Mike Miller in
18643         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
18644         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
18645         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
18646         wider than time_t.
18648 2013-08-09  Pádraig Brady  <P@draigBrady.com>
18650         bootstrap: support checksum utils having -c but not --status
18651         * build-aux/bootstrap: Only look for sha1sum if updating po files.
18652         Add sha1 to the list of supported checksum utils since it's now
18653         supported through adjustments below.
18654         (update_po_files): Remove the use of --status
18655         in a way that will suppress all error messages, but since this is
18656         only used to minimize updates, it shouldn't cause an issue.
18657         Exit early if there is a problem updating the po file checksums.
18658         (find_tool): Remove the check for --version support as this
18659         is optional as per commit 86186b17.  Don't even check for the
18660         presence of the command as if that is needed, it's supported
18661         through configuring prerequisites in bootstrap.conf.
18662         Prompt that when a tool isn't found, one can define an environment
18663         variable to add to the hardcoded search list.
18665 2013-08-05  Jim Meyering  <meyering@fb.com>
18667         regex: port to non-glibc/lock-using systems
18668         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
18669         system with GNULIB_LOCK would fail due to absence of the
18670         included "glthread/lock.h".  This would affect any package
18671         for which the "lock" module is used only by the regex module,
18672         and not explicitly used.
18673         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
18674         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
18675         Add a dependency on the "lock" module.
18677 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18679         localecharset: make locale_charset thread-safe on Mac OS X
18680         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
18681         instead of MB_CUR_MAX.
18683 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18685         gettext: update to version 0.18.3
18686         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
18687         require AC_PROG_SED to allow user to specify custom sed command when
18688         generating en@quot PO file.
18690 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
18692         bootstrap: use correct source when copying build-aux files
18693         * build-aux/bootstrap (gnulib_extra_files): This variable is
18694         relative to upstream gnulib layout, not downstream.
18696 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18698         tmpdir: fix bug in VMS port
18699         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
18700         See Steven M. Schweda in
18701         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
18703 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18705         tmpdir: port to VMS, to // != /, and to long dirs
18706         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
18707         __secure_getenv, so that we're more like the glibc version.
18708         All uses changed.
18709         (path_search): Don't put slash after directory if __VMS.
18710         Problem reported by Steven M. Schweda in
18711         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
18712         Simplify code to add slash; no need for a loop.
18713         Do not remove trailing slash from "//".
18714         Do not assume dlen <= INT_MAX.
18716 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18718         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
18719         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
18720         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
18721         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
18723         accept4, dup3, pipe2: port to Cygwin
18724         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
18725         * lib/accept4.c (accept4) [O_BINARY]:
18726         * lib/dup3.c (dup3) [O_BINARY]:
18727         * lib/pipe2.c (pipe2) [O_BINARY]:
18728         Use set_binary_mode, not setmode.
18729         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
18730         * modules/binary-io (Depends-on): Remove module indicator.
18731         These last two bits undo the previous change to pipe2 and binary-io.
18733 2013-07-09  Pádraig Brady  <P@draigBrady.com>
18735         mountlist: add support for deallocating returned list entries
18736         * lib/mountlist.c (free_mount_entry): A new exported function
18737         to deallocate a mount list entry.
18738         (read_file_system_list): Refactor to use the new deallocation function.
18739         Suggested by Anton Ovchinnikov.
18741 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18743         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
18744         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
18745         * lib/stdalign.in.h (_Alignas, _Alignof):
18746         Port to FreeBSD 9.1, and to C11 and C++11.
18747         (_Alignas): Also support ICC.
18748         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
18749         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
18751 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18753         fnmatch: don't goto over declaration
18754         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
18755         undefined behavior for goto over a declaration.
18756         Problem reported by Charlie Brown in
18757         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
18759         pipe2: decouple from binary-io a bit
18760         This is for Emacs, which needs pipe2 but not binary-io.
18761         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
18762         * modules/binary-io (Depends-on): Add module indicator.
18764 2013-07-03  Eric Blake  <eblake@redhat.com>
18766         mgetgroups: relax license to LGPLv2+
18767         * modules/getugroups (License): Change from GPLv3+.
18768         * modules/mgetgroups (License): Likewise.
18769         * modules/getgroups (License): Change from LGPLv3+.
18771         xalloc-oversized: relax license to LGPLv2+
18772         * modules/xalloc-oversized (License): Change from GPLv3+.
18774         nproc: relax license to LGPLv2+
18775         * modules/nproc (License): Change from LGPLv3+.
18777         bootstrap: honor --no-git
18778         * build-aux/bootstrap: Don't even try to use git when user is
18779         pointing to a static checkout.
18781 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18783         ignore-value: port to gcc -pedantic
18784         * lib/ignore-value.h (ignore_value):
18785         Port to gcc -pedantic, by using __extension__.
18786         Reindent as per usual gnulib style nowadays.
18787         Simplify GCC version check.
18789 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18791         extern-inline: port to gcc -std=c89
18792         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18793         Do not use __gnu_inline__ if pedantic and pre-C99.
18795 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18797         doc: document extern-inline
18798         * doc/extern-inline.texi: New file.
18799         * doc/gnulib.texi (alloca-opt): Include it.
18800         * m4/extern-inline.m4: Move some comments to documentation,
18801         and others closer to what they describe.
18803         doc: chatter less
18804         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
18805         (updated-stamp): Use it.  This causes 'make' to output just
18806         one file name rather than zillions.
18808         fflush, fseeko: port to musl cross-compiles
18809         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
18810         on some implementation that (1) is not known to be buggy,
18811         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
18812         cross-compiled to so we can't easily check for lack of
18813         conformance.  This is for cross-compiling to musl.
18814         Reported by Rich Felker in
18815         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
18816         * m4/fclose.m4 (gl_FUNC_FCLOSE):
18817         * m4/fflush.m4 (gl_FUNC_FFLUSH):
18818         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
18819         Adjust to above change.
18820         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
18821         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
18822         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
18823         known not to work, or unknown.
18825 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18827         msvc-inval: port to mingw-w64
18828         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
18829         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
18830         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
18832 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18834         getcwd-lgpl: port to Tru64
18835         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
18836         Problem reported by Steven M. Schweda in
18837         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
18839         tests: port large-fd POSIX spawn tests to OS X
18840         Problem reported by Daiki Ueno in
18841         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
18842         * tests/test-posix_spawn_file_actions_addclose.c:
18843         * tests/test-posix_spawn_file_actions_adddup2.c:
18844         * tests/test-posix_spawn_file_actions_addopen.c:
18845         Include <limits.h>, for OPEN_MAX, if available.
18846         (big_fd): New static function.
18847         (main): Use it.
18849 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
18851         tests/nap.h: use an adaptive delay to avoid ctime update issues
18852         The recent change in nap.h (5191133e) decreased the probability of lost
18853         races to about a third, however such problems could still be observed
18854         in virtual machines and openSUSE's OBS.
18855         Before, nap() detected the needed time once empirically and then used
18856         that delay (together with a small correction multiplier) in further
18857         calls.  This problem has been reported and discussed several times,
18858         including guesses about possible kernel issues:
18859         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
18860         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
18861         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
18862         http://bugs.gnu.org/12820
18863         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
18864         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
18865         Now, nap() avoids the race alltogether by verifying on a reference
18866         file whether a timestamp difference has happened.
18867         * tests/nap.h (nap_fd): Define file descriptor variable for the
18868         witness file.
18869         (nap_works): Change return value to bool.  Change passing
18870         the old file's status by value instead of by reference as this function
18871         does no longer update that timestamp; rename the function argument from
18872         st to old_st.  Remove the local variables cdiff and mdiff because that
18873         function now returns true/false instead of the precise delay.
18874         (guess_delay): Remove function.
18875         (clear_tmp_file): Add new function to close and unlink the witness file.
18876         (nap): Instead of re-using the delay which has been calculated during
18877         the first call, avoid the race by actually verifying that a timestamp
18878         difference can be observed on the current file system.  Use an adaptive
18879         approach for the delay to minimize execution time.  Assert that the
18880         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
18881         = 2^31 - 1 = 2.1s.
18882         Use atexit to call clear_tmp_file when the process terminates.
18884 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18886         sig2str: port to C++
18887         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
18888         Reported by Daniel J Sebald in
18889         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
18891 2013-05-30  Eric Blake  <eblake@redhat.com>
18893         docs: mention cygwin shortcoming in <sys/un.h>
18894         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
18896         vasnprintf: silence mingw compiler warning
18897         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
18899 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18901         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
18902         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
18903         This fixes a porting bug I recently reintroduced in regex, and
18904         some other instances that I discovered while testing the fix.
18905         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
18906         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
18907         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
18908         with an empty argument if this is a pedantic pre-C99 GCC.
18909         * lib/verify.h: Do not use _Static_assert if this is a pedantic
18910         pre-C11 GCC.
18912         regex: adapt to locking regime instead of depending on pthread
18913         Instead of depending on pthread, adapt to whatever thread
18914         modules are in use.  Problem reported by Ludovic Courtès in
18915         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
18916         and by Mats Erik Andersson in
18917         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
18918         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18919         Support either the 'lock' module, or the 'pthread' module, or
18920         no module.
18921         (lock_lock, lock_unlock): New macros.
18922         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
18923         * modules/lock, modules/pthread (configure.ac): Add module indicator.
18924         * modules/regex (Depends-on): Remove pthread.
18926 2013-05-22  Eric Blake  <eblake@redhat.com>
18928         getgroups: document portability issues
18929         * doc/glibc-functions/initgroups.texi (initgroups): Mention
18930         multithread safety.
18931         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
18932         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
18933         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
18934         getugroups.
18935         * doc/posix-functions/getgroups.texi (getgroups): Mention
18936         multithread safety and mgetgroups.
18938 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18940         test-lchown, test-chown: also skip test if chown fails with EPERM
18941         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
18942         skip this test, to handle FAT file systems.
18943         * tests/test-chown.h (test_chown): Likewise.
18945 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18947         regex: fix dfa race in multithreaded uses
18948         Problem reported by Ludovic Courtès in
18949         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
18950         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18951         New macros.  All uses of __libc_lock_define, __libc_lock_init
18952         changed to use the first two of these.
18953         (__libc_lock_lock, __libc_lock_unlock): New macros, for
18954         non-glibc platforms.
18955         (struct re_dfa_t): Define the lock unconditionally.
18956         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
18957         '#ifdef _LIBC"s.
18958         * modules/regex (Depends-on): Add pthread, if we use the
18959         included regex.
18961         * lib/regcomp.c: Do actions that are not needed for glibc,
18962         but may be needed elsewhere.
18963         (regfree, re_compile_internal): Destroy the lock.
18964         (re_compile_internal): Check for lock-initialization failure.
18966         malloca: port to compilers that reject size-zero arrays
18967         This fixes a bug introduced in my previous patch.
18968         * lib/malloca.c (struct preliminary_header): Use an int
18969         rather than a character array of size int; that's simpler.
18970         (struct header): Remove, replacing with ...
18971         (union header): New type.  This avoids the need for declaring a
18972         character array of size zero, which is not allowed on some platforms.
18973         All uses changed.
18975 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18977         parse-datetime, tests: don't use "string" + int
18978         Recent versions of 'clang' complain about C source code that
18979         uses expressions of the form '"string literal" + integer',
18980         I guess on the theory that it's confusing for readers who are
18981         used to C++.  On those grounds I suppose it's OK to make this
18982         minor style change.
18983         * lib/parse-datetime.y (parse_datetime):
18984         * tests/test-fchdir.c (main):
18985         * tests/test-snprintf-posix.h (test_function):
18986         * tests/test-snprintf.c (main):
18987         * tests/test-vasnprintf-posix.c (test_function):
18988         * tests/test-vasnprintf.c (test_function):
18989         * tests/test-vsnprintf.c (main):
18990         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
18991         Rewrite '"str" + E' to '&"str"[E]'.
18993 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18995         argmatch: port to C++
18996         * lib/argmatch.h [__cplusplus]: Add extern "C".
18998         argp: typo fix
18999         * lib/argp-help.c: Typo in comment.
19001 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
19003         manywarnings: update for GCC 4.8.0
19004         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19005         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
19006         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
19007         -Wmissing-noreturn, as they are duplicates of other warnings.
19008         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
19009         was documented to be flaky in earlier versions of GCC.
19011         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
19012         * tests/test-spawn.c (main):
19013         * tests/test-sys_socket.c (main):
19014         * tests/test-sys_wait.c (main):
19015         Don't have a switch value that isn't covered by a case.
19017         getaddrinfo-tests: port --enable-gcc-warnings to clang
19018         * tests/test-getaddrinfo.c (simple):
19019         Avoid casts from looser to stricter-aligned pointers.
19021         thread: port --enable-gcc-warnings to clang
19022         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
19023         Include <signal.h>, to pacify a warning about pthread_sigmask.
19025         stdio: use __REDIRECT for fwrite, fwrite_unlocked
19026         * lib/stdio.in.h (fwrite):
19027         When working around bug 11959, use __REDIRECT rather than '#define
19028         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
19029         fix the -Wunused-value issue with clang, and it works with GCC too.
19030         Problem with targeting reported by Eric Blake in
19031         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
19032         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
19033         debugging the fwrite issue.
19035         stdio: port --enable-gcc-warnings to clang
19036         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
19037         since the GCC workaround for fwrite does not pacify clang.
19039         sig2str: port --enable-gcc-warnings to clang
19040         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
19042         obstack: port --enable-gcc-warnings to clang
19043         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
19044         Avoid casts from looser to stricter-aligned pointers.
19046         memchr2: port --enable-gcc-warnings to clang
19047         * lib/memchr2.c (memchr2):
19048         Avoid casts from looser to stricter-aligned pointers.
19050         mbsstr: port --enable-gcc-warnings to clang
19051         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
19052         Avoid casts from looser to stricter-aligned pointers.
19054         malloca: port --enable-gcc-warnings to clang
19055         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
19056         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
19058         inttostr: port --enable-gcc-warnings to clang
19059         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
19061         warnings: port to clang
19062         Problem reported by Daniel P. Berrange via Eric Blake in
19063         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
19064         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
19065         (gl_WARN_ADD): Use it.
19067 2013-05-11  Jim Meyering  <meyering@fb.com>
19069         quotearg: do not read beyond end of buffer
19070         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
19071         end of an ARG for which no length was specified.  With an N-byte
19072         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
19073         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
19074         via coreutils' misc/sort-debug-keys.sh test and detected by running
19075         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
19076         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
19077         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
19078         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
19079         characters correctly."
19081 2013-05-11  Daiki Ueno  <ueno@gnu.org>
19083         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
19084         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
19085         compilation target is Mac OS X 10.6.
19086         Problem reported by parafin and Andoni Morales in
19087         <http://savannah.gnu.org/bugs/?37844> and
19088         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
19090 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19092         mkdir-p: remove assumptions about umask and mode
19093         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
19094         umask is 0, or that MODE is a subset of MODE_BITS.
19096 2013-05-10  Eric Blake  <eblake@redhat.com>
19098         maint.mk: catch more abuse of HAVE_DECL in syntax-check
19099         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
19101 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
19103         deps: require Automake >= 1.9.6 in generated Makefile fragments
19105         That is the same minimal version required in the DEPENDENCIES file.
19106         Moreover, the old code generated a requirement of Automake >= 1.5,
19107         and that is an insanely outdated version.
19109         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
19110         * tests/havelib/rpathlx/Makefile.am: Likewise.
19111         * tests/havelib/rpathly/Makefile.am: Likewise.
19112         * tests/havelib/rpathlyx/Makefile.am: Likewise.
19113         * tests/havelib/rpathlz/Makefile.am: Likewise.
19114         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
19115         * tests/havelib/rpathx/Makefile.am: Likewise.
19116         * tests/havelib/rpathy/Makefile.am: Likewise.
19117         * tests/havelib/rpathz/Makefile.am: Likewise.
19119 2013-05-08  Eric Blake  <eblake@redhat.com>
19121         bootstrap: AC_INIT may have more than four parameters
19122         * build-aux/bootstrap (extract_package_name): Correctly extract
19123         non-empty tarname field.  Avoid range in regex.
19124         Based on a report by Sami Kerola <kerolasa@iki.fi>.
19126 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19128         qacl: port to MS-Windows port of GNU Emacs
19129         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
19130         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
19131         port of GNU Emacs.  Problem reported by Eli Zaretskii in
19132         <http://bugs.gnu.org/14295#14>.
19134 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
19136         acl: include quote.h
19137         * lib/copy-acl.c: Include quote.h.
19138         * lib/set-acl.c: Likewise.
19140 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
19142         fchownat, renameat, unlinkat: update statat dependencies
19143         These modules use statat and lstatat, not fstatat; so depend on
19144         the statat module, which was split out recently from fstatat.
19145         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
19146         * modules/renameat: Likewise.  Also delete fstat.
19147         URL: http://bugs.gentoo.org/468790
19149 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
19151         Assume gnulib is checked out from Git, not CVS
19153         In fact, access to the gnulib repository through CVS has been
19154         disabled, or more precisely, got broken and was never restored; see:
19155         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
19157         Note that support for CVS is not removed completely and unthinkingly
19158         by this change: only support for CVS checkouts of gnulib itself is
19159         removed.  For example, the 'bootstrap' script still cater to .cvsingore
19160         files and CVS directories, for the benefit of those poor gnulib clients
19161         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
19163         * gnulib-tool: Simplify accordingly.
19164         * posix-modules: Likewise.
19165         * MODULES.html.sh: Likewise.
19166         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
19167         repository.
19168         * doc/gnulib-intro.texi: Likewise.
19169         * doc/gnulib-readme.texi: Likewise.
19170         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
19171         sample '.gitignore' file rather than a sample '.cvsignore'.
19172         * NEWS: Update.
19173         * m4/extensions.m4: While at it, remove a comment mistakenly referring
19174         to "CVS Autoconf" rather than "git Autoconf".
19176 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
19178         utimensat-tests, etc.: try to fix some races
19179         Problem reported by Bernhard Voelker in
19180         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
19181         I don't know whether this patch fixes that race condition, but it
19182         fixes *some* race conditions, so it should be a win.
19183         * modules/chown-tests (Depends-on):
19184         * modules/fchownat-tests (Depends-on):
19185         * modules/fdutimensat-tests (Depends-on):
19186         * modules/futimens-tests (Depends-on):
19187         * modules/lchown-tests (Depends-on):
19188         * modules/stat-time-tests (Depends-on):
19189         * modules/utimens-tests (Depends-on):
19190         * modules/utimensat-tests (Depends-on):
19191         Depend on nanosleep, not usleep.
19192         * modules/chown-tests (test_chown_LDADD):
19193         * modules/lchown-tests (test_lchown_LDADD):
19194         * modules/stat-time-tests (test_stat_time_LDADD):
19195         New macro.
19196         * modules/fchownat-tests (test_fchownat_LDADD):
19197         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
19198         * modules/futimens-tests (test_futimens_LDADD):
19199         * modules/utimens-tests (test_utimens_LDADD):
19200         * modules/utimensat-tests (test_utimensat_LDADD):
19201         Add $(LIB_NANOSLEEP).
19202         * modules/stat-time-tests (Files): Add tests/nap.h.
19203         * tests/nap.h: Include <limits.h>, for INT_MAX.
19204         (lt_mtime): Remove.
19205         (diff_timespec): New function.
19206         (get_stat): Rename from get_mtime.  All callers changed.
19207         (nap_works): Determine the needed delay by inspecting the
19208         file system's timestamp jumps; this should be more reliable.
19209         Look at both mtime and ctime, and take the maximum of the two jumps.
19210         (nap_works, guess_delay):
19211         Return a nanosecond count, not a microsecond count.
19212         All callers changed.
19213         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
19214         failure.
19215         (nap): Multiply the guess by 1.125, to accommodate the case where
19216         the file system's clock is a bit slower than nanosleep's clock.
19217         * tests/test-stat-time.c (BASE): New macro.
19218         Include nap.h.
19219         (nap): Remove; nap.h now defines this.  This removes a duplicate
19220         implementation of 'nap'.
19222         utimens, utimensat: work around Solaris UTIME_OMIT bug
19223         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
19224         Linux kernel 2.6.32 does.  Work around it in the same way.
19225         * doc/posix-functions/futimens.texi (futimens):
19226         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
19227         * lib/utimens.c (fdutimens, lutimens):
19228         * lib/utimensat.c (rpl_utimensat): Work around the bug.
19230         gettext: now it's your responsibility to add -I$(top_builddir)/intl
19231         Formerly, it was your responsibility to do this for all Makefile.ams
19232         other than Gnulib's.  Now it's your responsibility to do it for
19233         Gnulib's Makefile.am, too.
19234         * NEWS: Document this.
19235         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
19237         acl: include errno.h to get errno
19238         Reported by Daiki Ueno in
19239         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
19240         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
19242 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19244         tests: don't assume getdtablesize () <= 10000000
19245         * modules/cloexec-tests:
19246         * modules/dup2-tests:
19247         * modules/dup3-tests:
19248         * modules/nonblocking-tests:
19249         * modules/posix_spawn_file_actions_addclose-tests:
19250         * modules/posix_spawn_file_actions_adddup2-tests:
19251         * modules/posix_spawn_file_actions_addopen-tests:
19252         * modules/unistd-safer-tests:
19253         Depend on the getdtablesize module.
19254         * tests/test-cloexec.c:
19255         * tests/test-dup-safer.c:
19256         * tests/test-dup2.c:
19257         * tests/test-dup3.c:
19258         * tests/test-fcntl.c:
19259         * tests/test-nonblocking.c:
19260         * tests/test-posix_spawn_file_actions_addclose.c:
19261         * tests/test-posix_spawn_file_actions_adddup2.c:
19262         * tests/test-posix_spawn_file_actions_addopen.c:
19263         Don't assume getdtablesize () <= 10000000.
19265 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
19267         extern-inline: work around bug in Sun c99
19268         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19269         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
19271 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19273         qacl: new module, broken out from the acl module
19274         This is for GNU Emacs, which wants the acl functions but does
19275         not want 'error' invoked when they fail.
19276         * lib/acl-internal.h: Do not include error.h, quote.h.
19277         (ENOSYS, ENOTSUP): Remove; no longer needed.
19278         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
19279         * lib/acl.h: Include <stdbool.h>.
19280         (acl_errno_valid): New function.
19281         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
19282         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
19283         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
19284         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
19285         (ACL_INTERNAL_INLINE): Remove; no longer needed.
19286         * lib/file-has-acl.c (file_has_acl):
19287         * lib/qcopy-acl.c (qcopy_acl):
19288         * lib/qset-acl.c (qset_acl):
19289         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
19290         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
19291         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
19292         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19293         Add lib/set-acl.c.
19294         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19295         Add qacl.
19296         (configure.ac): Move gl_FUNC_ACL to qacl module.
19297         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19298         Rename set-mode-acl.c to set-acl.c.
19299         * lib/acl-errno-valid.c: New file.
19300         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19301         copy_acl function remains in copy-acl.c.
19302         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19303         (_): Remove; not needed.
19304         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19305         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19306         * modules/qacl: New file, moved from the old modules/acl.
19307         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19308         Remove set-mode-acl.c, copy-acl.c.
19309         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19311         alignof, intprops, malloca: port better to IBM's C compiler
19312         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19313         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19314         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19316 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19318         wctype-h: fix gettext link error on mingw
19319         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19320         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19321         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19322         rpl_towupper and rpl_towupper.
19324 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19326         regex-tests, regex: allow glibc re_search behavior
19327         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19328         re_search input data to make the multi-character collating element
19329         in it clearly visible, and treat re_search return code 0 as valid.
19330         * m4/regex.m4 (gl_REGEX): Likewise.
19332 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19334         stdalign: doc fix
19335         * doc/posix-headers/stdalign.texi (stdalign.h):
19336         Gnulib doesn't support '_Alignof expr'.
19338 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19340         stdalign: port to stricter ISO C11
19341         ISO C11 says that _Alignof's operand must be a parenthesized type.
19342         Problem reported by Eli Zaretskii in
19343         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19344         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19345         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19347 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19349         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19350         Problem reported by Marco Atzeri in
19351         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19352         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19353         Simply delegate to the system <sys/select.h> in this case too.
19354         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19355         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19356         be needed on Solaris either.
19357         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19358         Simply delegate to the system <sys/time.h> in this case.
19360 2013-03-19  Karl Berry  <karl@gnu.org>
19362         * build-aux/gnupload: check for erroneous (with gnupload) use of
19363         ftp-upload.gnu.org, tweak help.
19365 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19367         copy-file, rpmatch: fix problems found by cppcheck
19368         Reported by Arno Onken in
19369         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19370         * lib/rpmatch.c (try): Fix memory leak.
19371         * lib/copy-file.c: Include "ignore-value.h".
19372         (qcopy_file_preserving): Ignore chown value.
19373         * modules/copy-file (Depends-on): Add ignore-value.
19375 2013-01-27  Jim Meyering  <jim@meyering.net>
19377         prefix-gnulib-mk: give better diagnostics
19378         * build-aux/prefix-gnulib-mk: Don't just "die".
19379         Give better diagnostics upon failure.
19381 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19383         putenv: port to Solaris 10
19384         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19385         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19386         is not what is wanted here.
19387         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19388         declaration, not for its existence.
19390 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19392         mktime: fix configure typo
19393         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19395 2013-03-12  Eric Blake  <eblake@redhat.com>
19397         regex-tests: skip UTF-8 test on mingw
19398         * modules/regex-tests (Depends-on): Add localcharset.
19399         * tests/test-regex.c (main): Use it to skip test on mingw.
19401 2013-03-11  Eric Blake  <eblake@redhat.com>
19403         tests: make it easier to bypass alarm time in debugger
19404         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19405         * tests/test-memmem.c (main): Likewise.
19406         * tests/test-passfd.c (main): Likewise.
19407         * tests/test-ptsname.c (main): Likewise.
19408         * tests/test-ptsname_r.c (main): Likewise.
19409         * tests/test-strcasestr.c (main): Likewise.
19410         * tests/test-strstr.c (main): Likewise.
19412         regex: port to mingw's recent addition of undeclared alarm
19413         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19414         exists but still doesn't work in newer mingw.
19415         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19416         not existence.  Ensure SIGALRM is not trapped.
19417         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19418         * m4/regex.m4 (gl_REGEX): Likewise.
19419         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19420         * tests/test-regex.c (main): Use correct probe for alarm.
19422         putenv: avoid compilation warning on mingw
19423         * lib/putenv.c (_unsetenv): Protect variable declaration.
19424         (putenv): Fix indentation.
19426 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19428         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19429         * lib/unistd.in.h: be careful not to include un-needed system
19430         stdlib.h from here, because that prevents gnulib stdlib.h from
19431         defining rpl_strtod correctly.
19433 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19435         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19436         changesets, but for the 'precision 0' test.
19437         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19438         round-to-even, since POSIX says rounding is implementation-defined
19439         and OS X 10.8.2 rounds 1.51 to 1 here.
19441         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19442         changeset.
19443         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19444         round-to-even, since POSIX says rounding is implementation-defined
19445         and OS X 10.8.2 rounds 1.5 to 1 here.
19447 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19449         vasnprintf-posix-tests: allow rounding 1.5 to 1
19450         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19451         round-to-even, since POSIX says rounding is implementation-defined
19452         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19453         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19455         bootstrap: port to FreeBSD
19456         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19457         that treat '--' differently.  Reported by Mats Erik Andersson in
19458         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19460 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19462         regex: rename remaining __attribute calls to __attribute__.
19463         2012-02-25 changed definition of __attribute, but left some uses
19464         unchanged, preventing compilation of regex module on most non-gcc
19465         environments.
19466         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19467         (lookup_collation_sequence_value, build_range_exp)
19468         (build_collating_symbol): Set attributes with newly renamed
19469         __attribute__ decorator.
19470         * lib/regex_internal.c (re_string_peek_byte_case)
19471         (re_node_set_compare, re_node_set_contains): Likewise.
19472         * lib/regexec.c (acquire_init_state_context): Likewise.
19474 2013-03-06  Bruno Haible  <bruno@clisp.org>
19476         execute: Revert last change, but use a different condition.
19477         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19478         on Windows.
19480 2013-03-05  Eric Blake  <eblake@redhat.com>
19482         execute: drop dead code
19483         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19485 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19487         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19488         * m4/non-recursive-gnulib-prefix-hack.m4
19489         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19490         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19491         <http://bugs.gnu.org/10305#237>.
19493 2013-03-04  Eric Blake  <eblake@redhat.com>
19495         test-getsockopt: avoid compiler warning
19496         * tests/test-getsockopt.c (includes): Ensure close is declared.
19498 2013-03-02  Bruno Haible  <bruno@clisp.org>
19500         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19501         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19503 2013-03-02  Bruno Haible  <bruno@clisp.org>
19505         gettext: Update to version 0.18.2.
19506         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19507         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19508                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19510 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19512         regex: merge patches from libc
19514         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19515         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19516         All uses changed.
19517         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19518         (re_string_wchar_at, re_string_elem_size_at):
19519         Mark function as possibly unused.
19521         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19522         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19523         elements compare against the byte sequence of it, not its name.
19525 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19527         putenv: port better to native Windows
19528         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19529         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19530         (_unsetenv): Use _putenv if available.
19531         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19532         a bit less likely to cause damage.
19533         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19534         Fix the wrong value with SetEnvironmentVariable.
19535         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19536         code better.
19538 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19540         regex: ignore old-style-definition warnings
19541         * lib/regex.c: Add pragma to ignore these warnings.
19542         Problem reported for GNU tar by Pavel Raiskup.
19544 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19546         getcwd: support coreutils better
19547         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
19548         but this might not be correct in coreutils, which disables
19549         the raw decl checks.  Problem reported by Nagendra in
19550         <http://bugs.gnu.org/10305#192>.
19551         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
19552         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19553         Test the getcwd function, not any macro, since getcwd.c wants the
19554         function.
19555         * m4/getcwd.m4 (gl_FUNC_GETCWD):
19556         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
19557         compile, as might happen if there's a macro but no function.
19559         strtod: support coreutils better
19560         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
19561         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
19562         disables the raw decl checks.  This assumes there is an underlying
19563         strtod, but that's a safe assumption these days.
19564         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
19566         mountlist: port to HP NonStop
19567         Reported by Joachim Schmitz in
19568         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
19569         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
19570         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
19572 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19574         extern-inline: avoid compilation error with HP-UX cc
19575         Reported by Richard Lloyd in
19576         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
19577         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19578         Suppress extern inline with HP-UX cc.  This should be safe,
19579         though it may hurt performance.  Perhaps someone with some HP-UX
19580         experience can come up with a higher-performance fix.
19582 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19584         putenv: fix heap corruption with mixed putenv/_putenv
19585         Problem reported by Michael Goffioul in
19586         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
19587         * lib/putenv.c (putenv) [HAVE__PUTENV]:
19588         Rely on _putenv to allocate the new environment.
19589         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19590         * modules/putenv (configure.ac): Use it.
19592 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
19594         unsetenv etc.: port to Solaris 11 + GNU Emacs
19595         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
19596         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
19597         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
19598         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
19599         idea but is too painful to fix right now), and without this gnulib
19600         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
19601         compiling unsetenv.c on Solaris 11.  Fix the problem for
19602         unsetenv.c, and fix other similar occurrences.
19604 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19606         secure_getenv: fix C++ declaration typo
19607         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
19608         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
19609         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
19611 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19613         careadlinkat: stop exporting careadlinkatcwd
19614         Only Emacs used it directly, and Emacs no longer needs it.
19615         * NEWS: Document this simplification.
19616         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
19617         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
19618         for readlink.
19619         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
19620         Don't include stdlib.h; no longer needed.
19621         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
19622         * lib/relocwrapper.c: Adjust comment to match new dependencies.
19623         * modules/areadlink (Depends-on): Add readlink.
19624         (Maintainer): Add self.
19625         * modules/careadlinkat (Depends-on): Remove readlink.
19627         extensions: port better to HP-UX
19628         This is merged from git Autoconf.
19629         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19630         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
19631         so that it's compatible with the value used when compiling.
19633         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
19634         Problem reported by Mats Erik Andersson in
19635         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
19636         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19637         openpty function exists, not merely when we intend to replace it.
19638         This corrects the 2013-01-31 patch, which mistakenly defined
19639         HAVE_OPENPTY even on hosts that lacked it.
19641 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19643         secure_getenv: fix include typo
19644         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
19646         secure_getenv: port better to FreeBSD and Solaris
19647         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
19648         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
19649         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
19650         This works better on BSDish platforms.
19651         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
19652         Test for issetugid if __secure_getenv is missing.
19654 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19656         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
19657         Some of these changes are merged in from git Autoconf.
19658         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19659         When deciding whether to define _XOPEN_SOURCE, inspect the
19660         preprocessor macro __hpux instead of the more-heavyweight
19661         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
19662         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
19663         as the key for __EXTENSIONS__.
19665         unistd: avoid namespace pollution on non-glibc systems
19666         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
19667         This avoids namespace pollution on non-glibc systems, by causing
19668         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
19669         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
19670         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
19672 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19674         tmpdir: use secure_getenv
19675         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
19676         Define to secure_getenv, not getenv.
19677         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
19678         as that's now secure_getenv's job.
19679         * modules/tmpdir (Depends-on): Add secure_getenv.
19681         tempname: use secure_getenv
19682         * lib/tempname.c (__secure_getenv) [!_LIBC]:
19683         Define to secure_getenv, not getenv.
19684         * modules/tempname (Depends-on):
19685         Add secure_getenv.
19687         secure_getenv: new module
19688         * MODULES.html.sh (Extra functions based on ANSI C 89):
19689         Add secure_getenv.
19690         * doc/glibc-functions/secure_getenv.texi: New file.
19691         * doc/gnulib.texi: Include it.
19692         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
19693         New files.
19694         * lib/stdlib.in.h (secure_getenv): New decl.
19695         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
19696         * modules/stdlib (stdlib.h):
19697         Add secure_getenv checks.
19699 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19701         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
19702         Reported for OS X 10.8.2 by Assaf Gordon in
19703         <http://bugs.gnu.org/13516>.
19704         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
19705         !HAVE_OPENAT && !HAVE_FDOPENDIR.
19706         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
19707         so that they can be kept in sync more easily.  Avoid PATH_MAX
19708         test on the Hurd.  Sync from test-getcwd.c for errno tests after
19709         mkdir or chdir failure.
19710         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
19711         lib/getcwd.c.
19712         (test_abort_bug): Do not test for the deep directory bug unless we
19713         have openat support.  Avoid PATH_MAX test on the Hurd.
19715         regex-tests, regex: fix bug: memset undeclared
19716         * tests/test-regex.c: Don't include regex.h twice.  Include
19717         string.h, to declare memset.  Christensen's report also mentioned
19718         this issue.
19719         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
19720         test-regex.c, to avoid future problems like this.  Remove
19721         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
19722         twice.
19724         regex-tests: fix link errors on older Solaris
19725         These need to link with @LIBINTL@ to get libintl_gettext.
19726         Problem reported by Tom G. Christensen in
19727         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
19728         * modules/regex-tests (test_regex_LDADD): New macro.
19730 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19732         regex-tests: new module
19733         * modules/regex-tests, tests/test-regex.c: New files.
19735         regex: fix off-by-one error in configure test
19736         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
19738 2013-01-31  Eric Blake  <eblake@redhat.com>
19740         regex: avoid infinite configure test
19741         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
19743 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
19745         openpty: fix bug where HAVE_OPENPTY wasn't defined
19746         See the thread starting at:
19747         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
19748         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19749         openpty function exists, not merely when we intend to replace it.
19751 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19753         sys_time: port to Solaris 2.6
19754         There is a circularity problem on Solaris 2.6, where <time.h> includes
19755         <sys/time.h> for struct timespec.  The include nesting is gnulib
19756         <time.h>, system <time.h>, gnulib <sys/time.h>, system
19757         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
19758         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
19759         <sys/siginfo.h>; the last, innermost file needs struct
19760         timestruc_t, which is defined in <sys/time.h>, which has not been
19761         fully parsed.  Problem reported by Tom G. Christensen in
19762         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
19763         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
19764         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
19765         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
19766         uses split double-inclusion guards.
19768 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19770         regex: test for buffer overrun
19771         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
19772         for the just-fixed regex bug.
19774 2013-01-29  Andreas Schwab  <schwab@suse.de>
19776         regex: fix buffer overrun in regexp matcher [BZ #15078]
19777         * lib/regexec.c (extend_buffers): Add parameter min_len.
19778         (check_matching): Pass minimum needed length.
19779         (clean_state_log_if_needed): Likewise.
19780         (get_subexp): Likewise.
19782 2013-01-28  Pádraig Brady  <P@draigBrady.com>
19784         mountlist: don't consider "devtmpfs" as dummy
19785         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
19786         as there is storage associcated with it.
19788 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19790         futimens-tests, utimens-tests: Depend on gettext.
19791         This works around a problem introduced in my 2013-01-12 patch,
19792         which added @LIBINTL@ to these modules.
19793         * modules/futimens-tests (Depends-on):
19794         * modules/utimens-tests (Depends-on): Add gettext.
19796 2013-01-26  Eric Blake  <eblake@redhat.com>
19798         test-getpeername: fix typo
19799         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
19801 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
19803         bootstrap: remove the need for a sorted .gitignore file
19804         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
19805         rename to insert_if_absent(), so that we don't need or generate
19806         a sorted .gitignore file.  We do require a .gitignore with no
19807         existing duplicate entries and enforce that.
19808         (sort_patterns): Remove this function as we now use the simpler
19809         technigue of inserting blacklist entries at the top of the file,
19810         assuming gnulib won't be inserting !whitelist entries.
19812 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19814         readlinkat: don't depend on gl_FUNC_OPENAT
19815         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
19816         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
19817         renameat.m4, symlinkat.m4; but one thing at a time.
19819         statat: new module, split out from fstatat
19820         GNU Emacs needs the POSIX-specified fstatat, but not the
19821         gnulib-specified statat and lstat.  Split the latter two into a
19822         new module 'statat'.
19823         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
19824         * lib/openat.h, lib/statat.c (STATAT_INLINE):
19825         Rename from FSTATAT_INLINE. All uses changed.
19826         * modules/fstatat (Files): Remove lib/statat.c.
19827         (gl_MODULE_INDICATOR([fstatat])): Remove.
19828         (lib_SOURCES): Remove.
19829         (Maintainer): Add self.
19830         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
19831         * tests/test-fstatat.c (BASE): Don't define if already defined.
19832         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
19834 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19836         tests: don't assume fd 99 is closed
19837         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
19838         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
19839         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
19840         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
19841         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
19842         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
19843         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
19844         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
19845         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
19846         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
19847         * tests/test-fwrite.c, tests/test-getpeername.c:
19848         * tests/test-getsockname.c, tests/test-getsockopt.c:
19849         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
19850         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
19851         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
19852         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
19853         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
19854         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
19855         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
19856         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
19857         * tests/test-unlinkat.c, tests/test-unlockpt.c:
19858         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
19859         Close file descriptor 99, instead of assuming it's already closed.
19861 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19863         stpncpy: port to OS X 10.8
19864         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
19865         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
19867 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
19869         unistd: port to recent mingw
19870         * lib/unistd.in.h: Remove special invocation convention for mingw,
19871         which breaks for the latest mingw version.  See John W. Eaton in
19872         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
19874         largefile: port better to Mac OS X 10.5
19875         This patch is backported from Autoconf git.
19876         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
19877         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
19878         with ino_t size being different for configuration time versus
19879         build/run time.  Problem reported by PHO in
19880         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
19882 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
19884         doc: clarify -Werror
19885         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
19886         clarify that it's intended for developers, not for ordinary builds,
19887         and mention --enable-gcc-warnings as one possible use.
19889 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
19891         stdint: fix build with Android's Bionic fox x86
19892         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
19893         was already included as _SSIZE_T_DEFINED_ might also be defined
19894         in include/machine/_types.h, which is included by stdio.h
19896 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
19898         net_if-tests: port to Solaris 7 + GCC 3.4.6
19899         Problem reported by Tom G. Christensen in
19900         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
19901         * tests/test-net_if.c (ni): Move to next the code that uses it,
19902         so that it's declared only if needed.
19904 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19906         net_if-tests: port to older Solaris
19907         Problem reported by Tom G. Christensen in
19908         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19909         * modules/net_if-tests (NET_IF_LIB): New substitution.
19910         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
19911         (HAVE_IF_NAMEINDEX): New C macro.
19912         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
19914         system-quote-tests: port to older Solaris
19915         Problem reported by Tom G. Christensen in
19916         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19917         * tests/test-system-quote-child.c (fopen, fread): Undef.
19919         c-xvasprintf etc.: fix link errors on older Solaris
19920         These need to link with @LIBINTL@ to get libintl_gettext.
19921         Problem reported by Tom G. Christensen in
19922         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19923         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
19924         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
19925         * modules/futimens-tests (test_futimens_LDADD):
19926         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
19928 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19930         locale: port to Solaris 2.6 and 7 + GNU gettext
19931         * lib/locale.in.h: Just include_next <locale.h> when
19932         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
19933         when combining the localename module with GNU gettext 0.18.2.
19934         Problem reported by Tom G. Christensen in
19935         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
19937 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
19939         stdlib: port to Solaris 2.6
19940         Also, the code worked on Solaris 7 through 9 only by accident.
19941         Problem reported by Tom G. Christensen in
19942         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
19943         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
19944         simply include the system stdlib.h.
19945         * lib/getopt.in.h (__need_system_stdlib_h):
19946         * lib/pthread.in.h (__need_system_stdlib_h):
19947         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
19948         Define when including <stdlib.h>, to avoid problems at least for
19949         the pthread case on Solaris 2.6 and 7.  These .h files can get by
19950         with the system stdlib.h.
19952 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
19954         doc: update main copyright year
19955         * doc/gnulib.texi: Update copyright date.
19957         doc: improve ISO 8601 discussion
19958         * doc/parse-datetime.texi (Combined date and time of day items):
19959         Specify more carefully what formats are supported and what is
19960         done with excess precision.
19962 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19964         doc: avoid small caps
19965         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
19966         they're more trouble than they're worth.  Suggested by Karl Berry
19967         in <http://bugs.gnu.org/13360>.
19969         regex: conform to strict C
19970         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
19971         From Aharon Robbins.
19973         gnulib-tool: fix incompatibility with autopoint 0.18.2
19974         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
19975         Problem reported by Tom G. Christensen in
19976         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
19978 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19980         fprintftime: bring back and reword fwrite comment
19981         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
19983         stdio: remove now-unnecessary stdio.c
19984         Since stdio.in.h no longer uses inline functions, we no longer
19985         need to compile the extern versions.
19986         * lib/stdio.c: Remove.
19987         * modules/stdio (Files): Remove lib/stdio.c.
19988         (lib_SOURCES): Remove.
19990         unicodeio: depend on stdio, not ignore-value
19991         * lib/unicodeio.c: Do not include ignore-value.h.
19992         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
19993         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
19995         fprintftime: depend on stdio, not ignore-value
19996         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
19997         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
19998         since the stdio module arranges to silence that warning now.
19999         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
20001 2012-10-04  Simon Josefsson  <simon@josefsson.org>
20003         stdint-tests: Fix expanded-before-required-warning.
20004         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
20006 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20008         fwrite: silence __wur only for older glibc versions
20009         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
20010         This will help us remove this workaround some time in the far future.
20012 2013-01-03  Eric Blake  <eblake@redhat.com>
20014         fwrite: silence __wur without using inline
20015         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
20016         just gcc, and in a way that avoids inline issues.
20017         * modules/stdio (Depends-on): Drop extern-inline.
20019 2013-01-03  Jim Meyering  <jim@meyering.net>
20021         update-copyright: avoid copyright notice date corruption
20022         Given a sequence of copyright year numbers in which the final
20023         one was a two-digit number that happened to be a substring of
20024         a preceding four-digit year number, we would mistakenly update
20025         the substring (from two- to four-digit) rather than the two-digit
20026         number at the end, which, combined with the addition of the current
20027         4-digit year number would yield two 5-digit year numbers, e.g.,
20028         here, it would convert the first "99" to "1999, 2013" rather than
20029         the final one:
20030           1991, 99
20031           11999, 20131, 1999
20032         * build-aux/update-copyright: Tighten a regexp.
20033         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
20034         Reported by Joseph Myers in
20035         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
20037 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20039         regex: omit needless signed-pointer casts
20040         * lib/regcomp.c (build_charclass, build_charclass_op):
20041         Use char *, not unsigned char *, for class name and extra.
20042         The char values are always nonnegative so there's no need to
20043         insist on unsigned char * here, and using char * removes the need
20044         for casts.  Reported by Aharon Robbins in
20045         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20047         regex: support Gawk, which never uses alloca
20048         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
20049         Do not include in this case.  Gawk doesn't supply a substitute
20050         alloca.h and doesn't need one.
20052         regex: port __libc_lock_define usage to C89
20053         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
20054         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
20055         does not conform to C89, as it has an empty macro argument.
20056         Reported by Aharon Robbins in
20057         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20059 2013-01-01  Eric Blake  <eblake@redhat.com>
20061         maint: update all copyright year number ranges
20062         Run "make update-copyright".
20064         version-etc: bump copyright year reported in --version
20065         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
20067 2012-12-31  Eric Blake  <eblake@redhat.com>
20069         sigprocmask-tests: skip test if pid is unexpectedly large
20070         * tests/test-sigprocmask.c (main): Add range check.
20072         git-version-gen: avoid test -z portability glitch
20073         * build-aux/git-version-gen: Prefer portable test spelling, since
20074         git-version-gen is run on more than just developer machines.
20076 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
20078         git-version-gen: add --fallback option to use if git is not present
20079         * build-aux/git-version-gen: Add support for the new option --fallback,
20080         which comes into play when there is no $tarball_version_file and
20081         git is not working.
20082         (scriptversion): Update.
20084         maint.mk: handle missing git with more grace
20085         * top/maint.mk (no-submodule-changes, public-submodule-commit):
20086         Quietly proceed if git is not present.
20088 2012-12-31  Eric Blake  <eblake@redhat.com>
20090         dup2: work around cygwin bug
20091         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
20092         * lib/dup2.c (rpl_dup2): Work around it.
20093         * doc/posix-functions/dup2.texi (dup2): Document it.
20095 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20097         regex: remove unnecessary dependency on localcharset.h
20098         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
20099         hasn't been needed for years.
20100         * modules/regex (Depends-on): Remove localcharset.
20102         regex: revert single-byte change
20103         * lib/regexec.c (check_node_accept_bytes): Revert previous change
20104         to this function.  This was alredy fixed in a different way, at
20105         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
20106         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
20107         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
20109         regex: simplify based on Gawk version
20110         * lib/regex_internal.c (re_dfa_add_node): Simplify.
20111         Reported by Aharon Robbins in
20112         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20114 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20116         regex: check that pattern char is single-byte
20117         Reported by Aharon Robbins in
20118         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20119         * lib/regexec.c (check_node_accept_bytes):
20120         Return 0 if the pattern string has a multibyte character here.
20122         regex: implement rational ranges
20123         Reported by Aharon Robbins in
20124         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20125         * lib/regcomp.c (build_range_exp) [!_LIBC]:
20126         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
20127         Implement rational ranges.
20129         regex: avoid redefining __wctype
20130         Reported by Aharon Robbins in
20131         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20132         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
20133         #undef before defining.
20135         regex: port to hosts where malloc (0) == NULL
20136         Reported by Aharon Robbins in
20137         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20138         * lib/regex_internal.c (re_node_set_alloc):
20139         Don't assume that malloc (0) yields nonnull.
20140         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
20141         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
20142         * modules/regex (Files): Add m4/eealloc.m4.
20144         regex: port to C89
20145         Reported by Aharon Robbins in
20146         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20147         * lib/regcomp.c (init_word_char): Declaration before statement.
20149         regex: merge glibc changes
20150         Also, copy the license wording from glibc.  This simplifies
20151         merging changes.  gnulib-tool will change the wording to GPL as
20152         appropriate, when importing it to other packages.  The only
20153         glibc change made since the last merge, which needs merging, is:
20154         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
20155         * lib/regex_internal.h (gettext): Remove use of INTUSE.
20157         * users.txt: Add Emacs.
20159         doc: omit mention of version when not needed
20160         * doc/gnulib-intro.texi (Portability and Application Code):
20161         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
20162         Don't mention particular dates or versions when not necessary, so
20163         that the documentation won't go out of date so quickly.
20165         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
20167 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
20169         bootstrap: pass --force to autoreconf.
20170         * build-aux/bootstrap (AUTORECONFFLAGS): New.
20171         Add "--force" so that Automake's ylwrap and other such tools
20172         be updated at each bootstrap invocation.
20173         Use it.
20175 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20177         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
20178         The earlier patch forgot to update one of the #if conditions, causing
20179         a problem on Debian testing i386 reported by Mats Erik Andersson
20180         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
20181         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
20182         (__argp_fmtstream_puts, argp_fmtstream_puts)
20183         (__argp_fmtstream_write, argp_fmtstream_write)
20184         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
20186         * doc/gnulib-readme.texi: Minor fixups.
20187         (Portability guidelines): Modernize URLs.  Remove some repetition.
20188         (Indent with spaces not TABs): Reword to avoid too-long lines.
20189         Remove some '@ifset standalone' stuff that isn't used.
20191         * doc/gnulib-readme.texi (Portability guidelines):
20192         ctype.h, not ctime.h.
20194         Correct name of POSIX.1-2001.
20195         * doc/posix-functions/fgetc.texi (fgetc):
20196         * doc/posix-functions/fgets.texi (fgets):
20197         * doc/posix-functions/fread.texi (fread):
20198         * doc/posix-functions/fscanf.texi (fscanf):
20199         * doc/posix-functions/getc.texi (getc):
20200         * doc/posix-functions/getchar.texi (getchar):
20201         * doc/posix-functions/scanf.texi (scanf):
20202         POSIX.1-2001, not POSIX-2001.
20204         doc: move README into manual
20205         * README: Move contents to new file doc/gnulib-readme.texi.
20206         Replace with a one-line summary.
20207         * doc/gnulib.texi (Brief Overview): New section,
20208         with old intro preface.  Include gnulib-readme.texi for contents.
20209         (Philosophy): Rename from "Introduction", since this
20210         section no longer introduces the rest.  Write a new preface.
20211         * doc/gnulib-readme.texi: New file, with the old contents of
20212         README texinfo-ized.  This way, the README info appears
20213         in the online and printed manual.
20215 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
20217         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
20218         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
20219         c_vasprintf() prototype.
20221 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
20223         c-vasprintf: Fix "empty declaration" warning reported by GCC.
20224         * lib/c-vasprintf.h: Remove stray semicolon.
20226 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20228         gettext: avoid obsolete macro AM_PROG_MKDIR_P
20229         It is obsolete and is planned to be removed from Automake 1.14; see
20230         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
20231         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
20232         (installdirs-data, installdirs-data-yes):
20233         Use $(MKDIR_P), not $(mkdir_p).
20234         * m4/intl.m4 (AM_INTL_SUBDIR):
20235         * m4/po.m4 (AM_PO_SUBDIRS):
20236         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
20238 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20240         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
20241         On this platform, we are not optimizing but we are using
20242         the substitute for extern inlines, so compile as if
20243         C99-style extern inline, or a substitute, is available.
20244         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
20245         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
20246         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
20247         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
20248         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
20249         Declare as ARGP_FS_EI, not as extern.
20250         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
20251         (__option_is_short, _option_is_end, __option_is_end)
20252         [!_LIBC && __USE_EXTERN_INLINES]:
20253         Declare as ARGP_EI, not as extern.
20255 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20257         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
20258         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
20259         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
20260         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
20261         ...), as the latter is fatal with older Autoconfs.
20262         Problem reported and fix suggested by Eric Blake in thread starting at
20263         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
20265 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20267         AC_PROG_MKDIR_P: don't workaround if not buggy
20268         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
20269         Define only for Autoconf versions before 2.62.
20270         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
20271         undocumented m4_PACKAGE_VERSION, for consistency with the
20272         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
20273         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
20274         was introduced in 2.62.
20276 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
20278         New 'c-*printf' modules for formatted output in C locale.
20280         New module 'c-vasnprintf'.
20281         * modules/c-vasnprintf: New file.
20282         * lib/c-vasnprintf.c: New file.
20283         * lib/c-vasnprintf.h: New file.
20285         New module 'c-snprintf'.
20286         * modules/c-snprintf: New file.
20287         * modules/c-snprintf-tests: New file.
20288         * lib/c-snprintf.c: New file.
20289         * lib/c-snprintf.h: New file.
20290         * tests/test-c-snprintf.c: New file.
20291         * tests/test-c-snprintf.sh: New file.
20293         New module 'c-vsnprintf'.
20294         * modules/c-vsnprintf: New file.
20295         * modules/c-vsnprintf-tests: New file.
20296         * lib/c-vsnprintf.c: New file.
20297         * lib/c-vsnprintf.h: New file.
20298         * tests/test-c-vsnprintf.c: New file.
20299         * tests/test-c-vsnprintf.sh: New file.
20301         New module 'c-vasprintf'.
20302         * modules/c-vasprintf: New file.
20303         * modules/c-vasprintf-tests: New file.
20304         * lib/c-asprintf.c: New file.
20305         * lib/c-vasprintf.c: New file.
20306         * lib/c-vasprintf.h: New file.
20307         * tests/test-c-vasprintf.c  +: New file.
20308         * tests/test-c-vasprintf.sh: New file.
20310         New module 'c-xvasprintf'.
20311         * modules/c-xvasprintf: New file.
20312         * modules/c-xvasprintf-tests: New file.
20313         * lib/c-xasprintf.c: New file.
20314         * lib/c-xvasprintf.c: New file.
20315         * lib/c-xvasprintf.h: New file.
20316         * tests/test-c-xvasprintf.c: New file.
20317         * tests/test-c-xvasprintf.sh: New file.
20319 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20321         argp: better 'inline'
20322         Use extern-inline module to declare extern inline functions.
20323         This avoids some bogus warning diagnostics.  Problem discovered
20324         when modifying GNU tar to use the manywarnings module.
20325         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20326         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20327         Define based on extern-inline.
20328         * modules/argp (Depends-on): Add extern-inline.
20330 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20332         filemode, sys_stat: Handle MPX files a la AIX.
20333         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20334         * lib/sys_stat.in.h (S_ISMPX): New macro.
20335         * tests/test-sys_stat.c: Add tests for MPX files.
20337 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20339         x-to-1: honor $PERL
20340         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20341         a chance to use his preferred version of Perl.  This is typically
20342         required by Darwin users whose default /usr/bin/perl does not have all
20343         the libraries required by help2man, and who need to use their MacPorts
20344         installation of Perl instead.
20346 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20348         gnu-web-doc-update: add all the new files, even in new directories
20349         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20350         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20351         Use it.
20352         (main): Don't use cvsutils to get the list of unknown files,
20353         just add all the existing files and directories.
20355 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20357         gnu-web-doc-update: improve --help
20358         * build-aux/gnu-web-doc-update: Move comments into --help.
20360 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20362         mountlist: recognize more "dummy" file systems
20363         * lib/mountlist.c (ME_DUMMY_0):
20364         Add these dummy FS names to the list:
20365         - "debugfs" virtual filesystem for kernel debugging
20366         - "devpts" PTY slave filesystem
20367         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20368         - "fusectl" control filesystem for FUSE
20369         - "mqueue" enumerates POSIX message queues
20370         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20371         - "sysfs" is for exporting kernel objects
20372         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20374 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20376         extern-inline: avoid incompatibility with Darwin Libc
20377         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20378         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20379         Problem reported by Akim Demaille in
20380         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20382 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20384         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20385         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20386         let it handle password prompting.
20388 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20390         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20391         * lib/canonicalize.c (canonicalize_filename_mode):
20392         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20393         fetching the current directory.  Don't overrun the beginning of
20394         rpath if there's no slashes after the MS-Windows drive letter.
20396 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20398         maint.mk: avoid extra forks
20399         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20400         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20401         So use that instead of "$(shell test -f FILE && echo FILE)".
20403 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20405         vasnprintf: fix ASCII_ONLY typo
20406         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20407         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20408         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20409         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20410         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20412 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20414         list, oset, xlist, xoset: fix extern inline issue with C99
20415         This was introduced by my recent changes for 'inline'.
20416         Problem reported for gettext by Daiki Ueno in
20417         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20418         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20419         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20420         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20421         (gl_list_previous_node, gl_list_get_at)
20422         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20423         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20424         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20425         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20426         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20427         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20428         (gl_list_iterator_free, gl_sortedlist_search)
20429         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20430         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20431         (gl_sortedlist_remove):
20432         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20433         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20434         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20435         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20436         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20437         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20438         (gl_list_add_at, gl_sortedlist_add):
20439         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20440         Wrap these extern decls inside "#if 0", because they are implemented
20441         as inline functions, and extern inline is not what's wanted here.
20442         It would simplify these .h files to remove the extern decls entirely,
20443         although a downside would be less-clear separation between
20444         specification and implementation.
20446 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20448         sys_stat: no 'static inline'
20449         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20450         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20452         extern-inline: no 'static inline'
20453         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20454         Do not require AC_C_INLINE.
20455         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20456         'static inline', for older compilers.
20458         snippet/warn-on-use: no 'static inline'
20459         * build-aux/snippet/warn-on-use.h:
20460         Remove unnecessary 'inline' in comment.
20462         rbtree-list, rbtreehash-list: no 'static inline'
20463         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20464         * lib/gl_anytree_list2.h (node_at):
20465         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20466         (gl_oset_first, add_nodes_to_buckets):
20467         Now static, not static inline.
20469         regex: no 'static inline'
20470         * lib/regex_internal.c (calc_state_hash):
20471         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20472         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20473         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20474         Now static, not static inline.
20475         (inline) [__GNUC__ < 3 && _LIBC]:
20476         Remove macro; no longer needed.
20478         xvasprintf: no 'static inline'
20479         * lib/xvasprintf.c (xstrcat):
20480         Now static, not static inline.
20481         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20482         Do not require AC_C_INLINE.
20484         parse-datetime, parse-duration: no 'static inline'
20485         * lib/parse-datetime.y (to_uchar):
20486         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20487         (scale_n_add):
20488         Now static, not static inline.
20489         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20490         * modules/parse-duration (configure.ac):
20491         Do not require AC_C_INLINE.
20493         getaddrinfo: no 'static inline'
20494         * lib/getaddrinfo.c (validate_family):
20495         Now static, not static inline.
20496         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20497         Do not require AC_C_INLINE.
20499         ftruncate, fts, lstat, openat, raise: no 'static inline'
20500         * lib/ftruncate.c (chsize_nothrow):
20501         * lib/fts.c (opendirat, diropen):
20502         * lib/lstat.c (orig_lstat):
20503         * lib/openat.c (orig_openat):
20504         * lib/raise.c (raise_nothrow):
20505         Now static, not static inline.
20506         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20507         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20508         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20509         * m4/openat.m4 (gl_PREREQ_OPENAT):
20510         * m4/raise.m4 (gl_PREREQ_RAISE):
20511         Do not require AC_C_INLINE.
20513         fflush, stat: no 'static inline'
20514         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20515         (clear_ungetc_buffer, disable_seek_optimization)
20516         (restore_seek_optimization, update_fpos_cache):
20517         * lib/stat.c (orig_stat):
20518         Now static, not static inline.
20519         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20520         (update_fpos_cache):
20521         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20522         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20523         * m4/stat.m4 (gl_PREREQ_STAT):
20524         Do not require AC_C_INLINE.
20526         error, filevercmp: no 'static inline'
20527         * lib/error.c (is_open, flush_stdout):
20528         * lib/filevercmp.c (order):
20529         Now static, not static inline.
20530         * m4/error.m4 (gl_PREREQ_ERROR):
20531         * modules/filevercmp (configure.ac):
20532         Do not require AC_C_INLINE.
20534         dup, execute, fatal-signal, etc.: no 'static inline'
20535         * lib/dup.c (dup_nothrow):
20536         * lib/execute.c (nonintr_close, nonintr_open):
20537         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20538         * lib/fopen.c (orig_fopen):
20539         * lib/freadseek.c (freadptrinc):
20540         * lib/freopen.c (orig_freopen):
20541         * lib/fstat.c (orig_fstat, fstat_nothrow):
20542         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20543         (get_rusage_as_via_iterator):
20544         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
20545         * lib/getdtablesize.c (_setmaxstdio_nothrow):
20546         * lib/isatty.c (_isatty_nothrow):
20547         * lib/open.c (orig_open):
20548         * lib/read.c (read_nothrow):
20549         * lib/sigprocmask.c (signal_nothrow):
20550         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
20551         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
20552         * lib/wait-process.c (unregister_slave_subprocess):
20553         * lib/write.c (write_nothrow):
20554         Now static, not static inline.
20555         * lib/spawn-pipe.c (nonintr_open): Define only if
20556         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
20557         * m4/dup.m4 (gl_PREREQ_DUP):
20558         * m4/execute.m4 (gl_EXECUTE):
20559         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
20560         * m4/fopen.m4 (gl_PREREQ_FOPEN):
20561         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
20562         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
20563         * m4/fstat.m4 (gl_PREREQ_FSTAT):
20564         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
20565         * m4/isatty.m4 (gl_PREREQ_ISATTY):
20566         * m4/open.m4 (gl_PREREQ_OPEN):
20567         * m4/read.m4 (gl_PREREQ_READ):
20568         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
20569         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
20570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
20571         * m4/wait-process.m4 (gl_WAIT_PROCESS):
20572         * m4/write.m4 (gl_PREREQ_WRITE):
20573         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
20574         Do not require AC_C_INLINE.
20576         c-strtod, memcoll, readutmp: no 'static inline'
20577         * lib/c-strtod.c (c_locale):
20578         * lib/memcoll.c (strcoll_loop):
20579         * lib/readutmp.c (desirable_utmp_entry):
20580         Now static, not static inline.
20581         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
20582         * m4/memcoll.m4 (gl_MEMCOLL):
20583         * m4/readutmp.m4 (gl_READUTMP):
20584         Do not require AC_C_INLINE.
20586         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
20587         * lib/arctwo.c (to_uchar):
20588         * lib/md4.c (set_uint32):
20589         * lib/md5.c (set_uint32):
20590         * lib/sha1.c (set_uint32):
20591         * lib/sha256.c (set_uint32):
20592         * lib/sha512.c (set_uint64):
20593         Now static, not static inline.  This is a bit simpler, and doesn't
20594         affect performance with GCC and default optimization.
20595         * m4/arctwo.m4 (gl_ARCTWO):
20596         * m4/md4.m4 (gl_MD4):
20597         * m4/md5.m4 (gl_MD5):
20598         * m4/sha1.m4 (gl_SHA1):
20599         * m4/sha256.m4 (gl_SHA256):
20600         * m4/sha512.m4 (gl_SHA512):
20601         Do not require AC_C_INLINE.
20603         cond, lock, thread: better 'inline'
20604         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
20605         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
20606         New macros.  Use them instead of static inline, for header functions.
20607         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
20608         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20609         * lib/glthread/lock.c (gl_waitqueue_init)
20610         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20611         * lib/glthread/thread.c (get_current_thread_handle):
20612         Change 'static inline' to 'inline'.
20613         * lib/glthread/cond.h, lib/glthread/thread.h:
20614         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20615         * m4/cond.m4 (gl_COND):
20616         * m4/lock.m4 (gl_PREREQ_LOCK):
20617         * m4/thread.m4 (gl_THREAD):
20618         Do not require AC_C_INLINE.
20619         * modules/cond, modules/thread (Depends-on): Add extern-inline.
20621         chdir-long, cycle-check, savewd: better 'inline'
20622         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
20623         (find_non_slash):
20624         * lib/cycle-check.c (is_zero_or_power_of_two):
20625         * lib/savewd.c (savewd_delegating):
20626         Change 'static inline' to 'inline'.
20627         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
20628         Replace all remaining uses of 'static inline' with it.
20629         * lib/savewd.h:
20630         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20631         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
20632         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20633         * m4/savewd.m4 (gl_SAVEWD):
20634         Do not require AC_C_INLINE.
20635         * modules/savewd (Depends-on): Add extern-inline.
20637         base32, base64: no need for 'inline'
20638         * lib/base32.c (to_uchar, get_8, decode_8):
20639         * lib/base64.c (to_uchar, get_4, decode_4):
20640         Change 'static inline' to 'inline'.
20641         * m4/base32.m4 (gl_PREREQ_BASE32):
20642         * m4/base64.m4 (gl_PREREQ_BASE64):
20643         Do not require AC_C_INLINE.
20645         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
20646         * lib/gl_array_oset.c (gl_array_nx_add_at):
20647         (gl_array_remove_at):
20648         * lib/gl_linkedhash_list.c (hash_resize_after_add)
20649         (add_to_bucket, remove_from_bucket):
20650         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
20651         Change 'static inline' to 'static', as it's simpler to omit
20652         'inline' unless there's a significant performance advantage.
20654         list, oset, xlist, xoset, xsublist: simplify via extern inline
20655         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
20656         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
20657         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
20658         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
20659         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
20660         New macro.  Replace all uses of 'static inline' with it.
20661         [HAVE_INLINE]: Implement functions as *_INLINE functions,
20662         instead of as macros FOO that are defined to static inline
20663         functions FOO_inline.
20664         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
20665         * lib/gl_xsublist.c:
20666         Reimplement from scratch, by defining the corresponding *_INLINE
20667         macro and including the corresponding .h file.  This is simpler.
20668         * modules/list, modules/oset, modules/xlist, modules/xoset:
20669         (Files): Remove m4/gl_list.m4.
20670         (configure.ac): Remove gl_LIST.
20671         * m4/gl_list.m4: Remove.
20672         * modules/list, modules/oset, modules/xlist, modules/xoset:
20673         * modules/xsublist:
20674         (Depends-on): Depend on extern-inline, not inline.
20676         xalloc: better 'inline'
20677         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
20678         New macro.  Replace all uses of 'static inline' with it.
20679         (static_inline): Remove.
20680         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20681         Let 'extern inline' do the work automatically, instead of doing
20682         it by hand.
20683         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
20684         Remove.  All uses removed.
20685         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
20687         gethrxtime: better 'inline'
20688         * lib/xtime.c: New file.
20689         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
20690         * lib/xtime.h (XTIME_INCLUDE):
20691         New macros.  Replace all uses of 'static inline' with them.
20692         * lib/gethrxtime.c (gethrxtime): Define only if
20693         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
20694         this source file is now always compiled, because of the extern inline.
20695         * lib/gethrxtime.h, lib/xtime.h:
20696         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20697         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
20698         if gethrtime works, as they're not needed in that case.
20699         (gl_XTIME): Do not require AC_C_INLINE.
20700         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
20701         compiled now.  Move the check into gl_GETHRXTIME.
20702         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
20703         (Depends-on): Add extern-inline.
20704         (configure.ac): gethrxtime is always compiled now.
20705         (lib_SOURCES): Add gethrxtime.c.
20707         wctype-h: better 'inline'
20708         * lib/wctype-h.c: New file.
20709         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
20710         New macro.  Replace all uses of 'static inline' with it.
20711         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20712         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
20713         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
20714         (Depends-on): Add extern-inline.
20716         unistd: better 'inline'
20717         * lib/unistd.c: New file.
20718         * lib/unistd.in.h (_GL_UNISTD_INLINE):
20719         New macro.  Replace all uses of 'static inline' with it.
20720         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20721         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
20722         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
20723         (Depends-on): Add extern-inline.
20725         sys_socket: better 'inline'
20726         * lib/sys_socket.c: New file.
20727         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
20728         New macro.  Replace all uses of 'static inline' with it.
20729         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20730         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
20731         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
20732         (Depends-on): Add extern-inline.
20734         stdio: better 'inline'
20735         * lib/stdio.c: New file.
20736         * lib/stdio.in.h (_GL_STDIO_INLINE):
20737         New macro.  Replace all uses of 'static inline' with it.
20738         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20739         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
20740         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
20741         (Depends-on): Add extern-inline.
20743         sigaction: better 'inline'
20744         * lib/sig-handler.c: New file.
20745         * lib/sig-handler.h (SIG_HANDLER_INLINE):
20746         New macro.  Replace all uses of 'static inline' with it.
20747         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20748         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
20749         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
20750         (Depends-on): Add extern-inline.
20752         selinux-h: better 'inline'
20753         * lib/se-context.c, lib/se-selinux.c: New files.
20754         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
20755         * lib/se-context.in.h (SE_CONTEXT_INLINE):
20756         New macro.  Replace all uses of 'static inline' with it.
20757         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20758         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
20759         New macro.  Replace all uses of 'static inline' with it.
20760         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20761         * modules/selinux-h (Files, lib_SOURCES):
20762         Add lib/se-context.c, lib/se-selinux.c.
20763         (Depends-on): Add extern-inline.
20764         (configure.ac): Do not require AC_C_INLINE.
20766         pthread: better 'inline'
20767         * lib/pthread.c: New file.
20768         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
20769         New macro.  Replace all uses of 'static inline' with it.
20770         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20771         * m4/pthread.m4 (gl_PTHREAD_CHECK):
20772         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
20773         * modules/pthread (Files): Add lib/pthread.c.
20774         (Depends-on): Add extern-inline.
20776         math: better 'inline'
20777         * lib/math.c: New file.
20778         * lib/math.in.h (_GL_MATH_INLINE):
20779         New macro.  Replace all uses of 'static inline' with it.
20780         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20781         * m4/math_h.m4 (gl_MATH_H):
20782         Do not require AC_C_INLINE.
20783         * modules/math (Files, lib_SOURCES):
20784         Add lib/math.c.
20785         (Depends-on): Add extern-inline.
20787         count-one-bits: better 'inline'
20788         * lib/count-one-bits.c: New file.
20789         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
20790         New macro.  Replace all uses of 'static inline' with it.
20791         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20792         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
20793         Do not require AC_C_INLINE.
20794         * modules/count-one-bits (Files, lib_SOURCES):
20795         Add lib/count-one-bits.c.
20796         (Depends-on): Add extern-inline.
20798         count-leading-zeros: better 'inline'
20799         * lib/count-leading-zeros.c: New file.
20800         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
20801         New macro.  Replace all uses of 'static inline' with it.
20802         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20803         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
20804         Do not require AC_C_INLINE.
20805         * modules/count-leading-zeros (Files, lib_SOURCES):
20806         Add lib/count-leading-zeros.c.
20807         (Depends-on): Add extern-inline.
20809         bitrotate: better 'inline'
20810         * lib/bitrotate.c: New file.
20811         * lib/bitrotate.h (BITROTATE_INLINE):
20812         New macros.
20813         Replace all uses of 'static inline' with them.
20814         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20815         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
20816         (Depends-on): Add extern-inline.
20817         (configure.ac): Do not require AC_C_INLINE.
20819 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
20821         maint.mk: avoid gratuitous failure
20822         Reported by Stefano Lattarini in
20823         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
20824         * top/maint.mk (public-submodule-commit): Quote more safely.
20826 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
20828         canonicalize, canonicalize-lgpl: support MS-Windows file names
20829         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
20830         for test cases, which it'd be nice to add at some point.
20831         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
20832         * lib/canonicalize.c (canonicalize_filename_mode):
20833         * lib/canonicalize-lgpl.c (__realpath):
20834         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
20835         slash is at the beginning of the file name.  Use ISSLASH, instead
20836         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
20837         the first character with '/'.  Test for
20838         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
20839         with a drive letter.
20840         * lib/canonicalize.c (SLASHES): New macro.
20841         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
20843 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
20845         fts: introduce FTS_VERBATIM
20846         * lib/fts_.h (FTS_VERBATIM): New bit flag.
20847         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
20848         * lib/fts.c (fts_open): Honor it.
20850 2012-11-09  Pádraig Brady  <P@draigBrady.com>
20852         getlogin-tests: allow errno == ENXIO
20853         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20854         with errno == ENXIO (No controlling tty).
20855         getlogin_r-tests: Likewise. Also allow errno == ENOENT
20856         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
20857         with errno == ENOENT.  This was reported to happen in various
20858         situations on GNU/Linux.
20860 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20862         getlogin-tests: allow errno == ENOENT
20863         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20864         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
20865         when running a test in an Emacs shell buffer.
20867 2012-11-08  Jim Meyering  <jim@meyering.net>
20869         tests/nap.h: avoid warning about unused variable
20870         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
20872         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
20873         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
20874         white space before each of the special-cased file names, to avoid
20875         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
20876         in http://bugs.gnu.org/12830.
20878 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20880         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
20881         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
20882         fails with errno == EBADF when fd is opened with O_PATH.
20883         Reported by Jim Meyering in
20884         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
20885         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20886         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
20888 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20890         test-utimens: speed up by taking shorter naps
20891         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
20892         New functions.
20893         (nap): Use them, to do a better job of guessing the delay.
20894         On Fedora 17 with ext4 atop md atop hard disks, this made
20895         test-utimens run 10x faster, because the test napped for
20896         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
20897         <http://bugs.gnu.org/12820#11>.
20899 2012-11-07  Jim Meyering  <jim@meyering.net>
20901         mountlist.c: fix a compilation failure
20902         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
20903         I introduced while transforming commit v0.0-7683-g613bcb6
20905 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20907         errno: port to LynxOS 178 2.2.2
20908         Problem reported by Joel Brobecker in
20909         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
20910         * doc/posix-headers/errno.texi (errno.h): Document this.
20911         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
20912         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
20913         Supply a string for EILSEQ.
20914         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
20916 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20918         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
20919         Linux kernel 2.6.39 introduced O_PATH (see
20920         <http://lwn.net/Articles/433854/>) and this is a better fallback
20921         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
20922         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20923         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
20924         * lib/fcntl.in.h (O_ACCMODE):
20925         * tests/test-fcntl-h.c (main):
20926         Do not reject O_ACCMODE merely because it has more than the
20927         minimal number of bits, as POSIX allows extensions here.
20929 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
20931         mountlist: do not classify a bind-mounted dir entry as "dummy"
20932         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
20933         the "none"-testing clause.
20934         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
20935         exception for bind-mounted directories.
20937 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
20939         quote: provide a means to escape strings with nul characters
20940         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
20941         (quote, quote_n): Rename formal arguments for consistency with
20942         quotearg.
20944 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20946         test-raise: don't assume 199 is an invalid signal
20947         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
20949         sh-quote-tests: port to Solaris 9
20950         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
20951         Problem reported by Dagobert Michelsen in
20952         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
20954 2012-10-28  Jim Meyering  <jim@meyering.net>
20956         maint.mk: rename a new configurable variable
20957         * top/maint.mk (_gl_translatable_string_re): Rename from
20958         translation-markers: _gl_ prefix to insulate from user Makefile code,
20959         and the _re suffix to inform that it's a regular expression.
20961 2012-10-26  Eric Blake  <eblake@redhat.com>
20963         maint.mk: let packages tweak sc_po_check pattern
20964         * top/maint.mk (sc_po_check): Add translation-markers, to allow
20965         finding files with other translation markers.
20967 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20969         euidaccess: speed up 'configure' on GNU hosts
20970         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
20971         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
20972         it's needed only in this case.  Use AC_CHECK_DECLS, not
20973         AC_CHECK_DECLS_ONCE.
20974         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
20975         or AC_REQUIRE for AC_FUNC_GETGROUPS.
20977         * lib/regexec.c (re_search_internal): Fix grammar in comment.
20979 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20981         fchmodat, fchownat, fstatat: port to non-inlining compilers
20982         Problem reported for FreeBSD 9 by Jim Meyering in
20983         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
20984         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
20985         New files, which define FCHMODAT_INLINE etc.
20986         * lib/fchmodat.c (FCHMODAT_INLINE):
20987         * lib/fchownat.c (FCHOWNAT_INLINE):
20988         * lib/fstatat.c (FSTATAT_INLINE):
20989         Remove, as chmodat.c etc. now do this.
20990         * modules/fchmodat (Files): Add lib/chmodat.c.
20991         * modules/fchownat (Files): Add lib/chownat.c.
20992         * modules/fstatat (Files): Add lib/statat.c.
20994 2012-10-15  Jim Meyering  <jim@meyering.net>
20996         fchmodat.c, fchownat.c: compile-impeding typos
20997         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
20998         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
20999         Introduced in commit v0.0-7636-gd202279.
21001 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21003         fcntl-h: support GNU flags like O_IGNORE_CTTY
21004         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
21005         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
21006         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
21007         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
21008         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
21009         Define to 0 if not already defined.
21010         * tests/test-fcntl-h.c: Test these new flags.
21012 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21014         faccessat, etc.: support AT_FDCWD-only use
21015         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
21016         this function only if its first argument is AT_FDCWD.
21017         Emacs wants faccessat for AT_EACCESS but not for any first-arg
21018         values other than AT_FDCWD, so it doesn't want all the openat
21019         machinery with fchdir etc.
21020         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
21021         * modules/fstatat, modules/mkdirat, modules/openat (Files):
21022         * modules/unlinkat (Files):
21023         Remove lib/openat-priv.h, as at-internal supplies this file.
21024         Removing this file here allows us to support programs like Emacs
21025         that avoid at-internal.
21027         faccessat: speed up 'configure' on mainstream hosts
21028         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
21029         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
21030         since it's only on unusual platforms that we need to check for
21031         'access', and it's better not to slow 'configure' down on all
21032         platforms.
21034         faccessat: port to Solaris 10
21035         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
21036         Needed on Solaris 10, which doesn't have AT_EACCESS,
21037         so we need the Gnulib fcntl.h, which defines it.
21039 2012-10-14  Pádraig Brady  <P@draigBrady.com>
21040         canonicalize: fix C89 compilation
21041         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
21042         declarations so C89 is supported.  Also remove the comment
21043         referencing memorty allocation as the suggested feature could
21044         not be implemented as suggested.
21045         Reported by Michael Goffioul.
21047 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21049         group-member: omit unnecessary dependencies
21050         This is for Emacs, which has its own allocator and where we
21051         don't want to use xalloc.
21052         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
21053         since we no longer use xmalloc.  Do not include stdbool.h, since
21054         the changes below happen to remove the only use of bool.
21055         (GROUPBUF_SIZE): New constant.
21056         (struct group_info): Remove n_groups member.  Add groupbuf member.
21057         This lets us get the groups without using malloc, usually.
21058         (free_group_info, get_group_info): Adjust to this.
21059         (get_group_info): Return the number of groups found, or -1 on error.
21060         Use plain malloc not xmalloc, and treat its failure as if there
21061         are no groups, as the user already loses in case of error.
21062         (group_member): Simplify, based on changes to get_group_info.
21063         * modules/group-member (Depends-on): Remove dependencies on
21064         xalloc and stdbool.  Add dependency on xalloc-oversized.
21066 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
21068         gethrxtime: port to C++
21069         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
21071 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21073         ptsname: fix macro-name typo
21074         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
21076 2012-10-03  Simon Josefsson  <simon@josefsson.org>
21078         inttostr: Relax license.
21079         * modules/inttostr (License): Change from LGPL to LGPLv2+.
21081 2012-10-03  Eric Blake  <eblake@redhat.com>
21083         ptsname_r: support ptys returned by FreeBSD posix_openpt
21084         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
21085         lives in /dev/pts/.
21087 2012-10-02  Eric Blake  <eblake@redhat.com>
21089         pselect: reject invalid file descriptors
21090         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
21091         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
21092         * modules/pselect (Depends-on): Add dup2.
21093         * doc/posix-functions/pselect.texi (pselect): Document this.
21095         select: reject invalid file descriptors
21096         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
21097         * lib/select.c (rpl_select) [!win32]: Work around it.
21098         * modules/select (Depends-on): Add dup2.
21099         * doc/posix-functions/select.texi (select): Document this.
21101         select: enhance test
21102         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
21103         New functions.
21104         (test_function): Enhance test.
21105         (do_select_bad_fd): Avoid any stale errno values.
21107         ptsname: reject invalid file descriptors
21108         http://www.austingroupbugs.net/view.php?id=503
21109         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
21110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
21111         * modules/stdlib (Makefile.am): Replace witness.
21112         * lib/stdlib.in.h (ptsname): Allow for replacement.
21113         * modules/ptsname (configure.ac): Trigger replacement.
21114         * doc/posix-functions/ptsname.texi (ptsname): Document this.
21116 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
21118         hash-pjw-bare: new module
21119         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
21120         * lib/hash-pjw-bare.h: Likewise.
21121         * modules/hash-pjw-bare: New file.
21122         * MODULES.html.sh (Misc): Add it.
21124 2012-10-02  Eric Blake  <eblake@redhat.com>
21126         manywarnings: cater to more gcc infelicities
21127         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
21128         -Wuninitialized without -O.
21130 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
21132         select, poll tests: Make setsockopt invocation effective.
21133         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
21134         the bind() call.
21135         * tests/test-select.h (open_server_socket): Likewise.
21137 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21139         sockets, sys_stat: restore AC_C_INLINE
21140         This undoes the 2012-09-22 patch.
21141         * m4/sockets.m4 (gl_SOCKETS):
21142         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21143         Restore AC_C_INLINE, since MSVC requires __inline or _inline
21144         and does not support plain 'inline'.  Reported by Bruno Haible in
21145         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
21147 2012-09-30  Bruno Haible  <bruno@clisp.org>
21149         localeconv tests: Avoid test failure on OpenIndiana.
21150         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
21151         skip the 'grouping' and 'mon_grouping' tests.
21152         Reported by Jim Meyering.
21154 2012-09-30  Bruno Haible  <bruno@clisp.org>
21156         havelib: Follow libtool developments.
21157         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
21158         Suggested by Simon Josefsson.
21160 2012-09-29  Jim Meyering  <meyering@redhat.com>
21162         fstatat.c: fix a compile-impeding typo
21163         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
21164         Introduced in commit v0.0-7636-gd202279.
21165         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
21167 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
21169         extern-inline: provide a -Wundef safe config.h
21170         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
21171         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
21172         to produce a -Wundef warning free config.h.
21174 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21176         hash-pjw: relax license to LGPLv2+
21177         * modules/hash-pjw (License): Relax, with consent of author.
21179 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21181         maint.mk: fix strict vs. lazy variable issues with RELEASE
21182         * top/maint.mk (_equal): New function.
21183         (member_check): Strip the result to avoid spurious spaces.
21184         (url_dir_list): Do not use ifeq, which is strict, as it will
21185         require RELEASE_TYPE to be defined.
21186         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
21187         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
21188         (announcement_Cc_alpha,announcement_mail_headers_alpha)
21189         (announcement_Cc_beta,announcement_mail_headers_beta)
21190         (announcement_Cc_stable,announcement_mail_headers_stable): these.
21191         (release): Do not depend on $(release-type), as it forces its
21192         evaluation.  Bounce to it.
21194 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21196         maint.mk: formatting changes
21197         * top/maint.mk: Indent bodies of if's.
21199 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
21201         maint.mk: factor the validation of RELEASE_TYPE
21202         With help from Jim Meyering.
21203         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
21204         * top/maint.mk (_empty, _sp): Move their definition earlier.
21205         (member-check, release-type): New.
21206         Use the latter instead of $(RELEASE_TYPE).
21207         Remove now useless local checks.
21209 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21211         maint.mk: provide "make upload" to ease uploading
21212         See
21213         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
21214         Do not depend simply on the current $(VERSION), as there may have been
21215         new commits since the tarball generation.  Rather, rely on $(RELEASE),
21216         as "make release-commit" already does.
21218         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
21219         "make TYPE".
21221         * top/maint.mk (upload_command, upload, release): New.
21222         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
21223         (VERSION): first word of $(RELEASE) is always right.
21224         (emit_upload_commands): Adjust.
21225         * top/README-release: Update.
21227 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21229         maint.mk: silent rules
21230         With help from Stefano Lattarini.
21231         * top/maint.mk (writable-files): Use $(AM_V_GEN).
21232         (announcement): Use $(AM_V_at).
21234 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21236         localename: port gl_locale_name_thread_unsafe to FreeBSD
21237         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
21238         and use the simpler FreeBSD implementation on Mac OS X as well.
21239         Original idea suggested by Ed Maste in
21240         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
21242 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21244         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
21245         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
21246         * lib/mbuiter.c, lib/xsize.c: New files.
21247         * lib/binary-io.h (BINARY_IO_INLINE):
21248         * lib/eealloc.h (EEALLOC_INLINE):
21249         * lib/mbfile.h (MBFILE_INLINE):
21250         * lib/mbiter.h (MBITER_INLINE):
21251         * lib/mbuiter.h (MBUITER_INLINE):
21252         * lib/xsize.h (XSIZE_INLINE):
21253         New macros.
21254         Replace all uses of 'static inline' with them.
21255         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21256         * m4/eealloc.m4 (gl_EEALLOC):
21257         * m4/mbfile.m4 (gl_MBFILE):
21258         * m4/mbiter.m4 (gl_MBITER):
21259         * m4/xsize.m4 (gl_XSIZE):
21260         Do not require AC_C_INLINE.
21261         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
21262         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
21263         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
21264         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
21265         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
21266         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
21267         * modules/binary-io, modules/eealloc, modules/mbfile:
21268         * modules/mbiter, modules/mbuiter:
21269         (Depends-on): Add extern-inline.
21271         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
21272         * lib/pipe-filter-aux.c: New file.
21273         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
21274         Replace all uses of 'static inline' with it.
21275         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21276         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
21277         (filter_retcode): No real need for inline here.
21278         * modules/pipe-filter-gi, modules/pipe-filter-ii:
21279         (Files): Add lib/pipe-filter-aux.c.
21280         (Depends-on): Add extern-inline.
21281         (configure.ac): Do not require AC_C_INLINE.
21282         (lib_SOURCES): Add pipe-filter-aux.c.
21284         fdutimensat: omit unnecessary AC_C_INLINE
21285         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
21287         fchmodat, fchownat, fstatat: use extern-inline
21288         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
21289         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
21290         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
21291         New macros.
21292         * lib/openat.h:
21293         Replace all uses of 'static inline' with them.
21294         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21295         * modules/fchmodat, modules/fchownat, modules/fstatat:
21296         * modules/openat-h:
21297         (Depends-on):
21298         Add extern-inline.
21299         (configure.ac): Remove AC_C_INLINE.
21301         acl, mbchar, priv-set: use extern-inline
21302         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21303         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21304         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21305         New macros.
21306         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21307         Replace all uses of 'static inline' with it.
21308         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21309         * m4/acl.m4 (gl_FUNC_ACL):
21310         * m4/mbchar.m4 (gl_MBCHAR):
21311         * m4/priv-set.m4 (gl_PRIV_SET):
21312         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21313         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21314         Add extern-inline.
21316         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21317         * m4/sockets.m4 (gl_SOCKETS):
21318         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21319         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21320         environments where it's already guaranteed to work, so we needn't
21321         check for it at 'configure'-time.
21323         tls-tests: omit unnecessary 'inline'
21324         * tests/test-tls.c (perhaps_yield): No longer inline.
21325         Simplicity and portability trump efficiency in test cases.
21327         utimens-tests: avoid unnecessary 'inline'
21328         * modules/fdutimensat-tests (configure.ac):
21329         * modules/futimens-tests (configure.ac):
21330         * modules/utimens-tests (configure.ac):
21331         * modules/utimensat-tests (configure.ac):
21332         Remove AC_C_INLINE.
21333         * tests/test-utimens-common.h (ctime_compare):
21334         No longer inline.  Simplicity and portability trump efficiency here.
21336         misc: don't limit commentary to inline functions
21337         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21338         * lib/xalloc-oversized.h, lib/xsize.h:
21339         Contrast macros to functions in general, not just to inline functions,
21340         when the commentary does not apply only to inline functions.
21342 2012-09-20  Jim Meyering  <meyering@redhat.com>
21344         non-recursive-gnulib-prefix-hack: new module
21345         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21346         the file that originated in Bison.
21347         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21348         largely copied from a snippet that resided in bison's configure.ac.
21349         * modules/non-recursive-gnulib-prefix-hack: New file.
21350         * MODULES.html.sh (Support for maintaining and releasing projects):
21351         Add it.
21353 2012-09-18  Jim Meyering  <meyering@redhat.com>
21355         maint.mk: generalize _gl_tight_scope for non-recursive make
21356         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21357         that *.h would describe additional .h files in the directory
21358         specified by $(_gl_TS_dir).  I.e., add this...
21359         (_gl_TS_other_headers): New variable.
21361         maint.mk: exempt trailing blanks found in "binary" files
21362         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21363         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21364         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21366 2012-09-17  Jim Meyering  <meyering@redhat.com>
21368         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21369         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21370         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21371         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21373 2012-09-17  Jim Meyering  <meyering@redhat.com>
21375         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21376         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21377         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21378         It is not in the same category as "exit (0)" or "exit (1)", and
21379         besides, I know of no symbolic name for that 77.  Reported by
21380         Richard W.M. Jones in
21381         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21383 2012-09-17  Jim Meyering  <meyering@redhat.com>
21385         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21386         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21387         all uses of #define, not just those that start in column 1.
21388         Richard W.M. Jones reported a false positive in
21389         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21391 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21393         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21394         * lib/localcharset.c (locale_charset) [DARWIN7]:
21395         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21396         as these two values are incompatible.  Problem reported by Max Horn.
21397         For more discussion, please see
21398         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21400         doc: document sticky-EOF issue
21401         * doc/posix-functions/fgetc.texi (fgetc):
21402         * doc/posix-functions/fgets.texi (fgets):
21403         * doc/posix-functions/fread.texi (fread):
21404         * doc/posix-functions/fscanf.texi (fscanf):
21405         * doc/posix-functions/getc.texi (getc):
21406         * doc/posix-functions/getchar.texi (getchar):
21407         * doc/posix-functions/scanf.texi (scanf):
21408         Mention that glibc and default Solaris do not conform to
21409         C99 and POSIX-2001 or later, with respect to how getchar
21410         etc. behave when feof reports nonzero.
21412 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21414         poll: fix poll(0, NULL, msec)
21415         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21416         but nfd is 0.  In that case poll should behave like select.
21418 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21419             Paolo Bonzini  <bonzini@gnu.org>
21421         poll: fix for systems that can't recv() on a non-socket
21422         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21423         is readable.  In this case POLLHUP will not be supported.
21424         * doc/posix-functions/poll.texi: Document this.
21426 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21428         poll/select: document portability problems not fixed by Gnulib.
21429         * doc/posix-functions/poll.texi: poll does not work well on
21430         pipes under Windows.  It has the same limitations as select on
21431         BeOS.
21432         * doc/posix-functions/select.texi: select does not work well
21433         on pipes under Windows.
21435 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21437         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21438         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21439         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21440         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21442 2012-09-06  Eric Blake  <eblake@redhat.com>
21444         net_if: give more details about the bug being fixed
21445         * doc/posix-headers/net_if.texi: Add clarification.
21447 2012-09-05  Eric Blake  <eblake@redhat.com>
21449         net_if: new module
21450         * modules/net_if: New module, borrowing ideas from netinet_in.
21451         * m4/net_if_h.m4: New file.
21452         * lib/net_if.in.h: Likewise.
21453         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21454         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21455         * tests/test-net_if.c: Make function checks conditional.
21456         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21458 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21460         readutmp: fix non-portable UT_PID use
21461         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21462         Use `UT_PID (u) > 0' as absolute condition.
21464 2012-09-04  Jim Meyering  <meyering@redhat.com>
21466         fts: reduce two or more trailing spaces to just one, usually
21467         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21468         or more slashes, trim all but the final one.  But if a name consists
21469         solely of two slashes, don't modify it.  If it consists solely of
21470         three or more slashes, strip all but one.
21472         This is part of the solution to a minor problem with rm:
21473         it would print a bogus ELOOP diagnostic when failing to remove
21474         the slash-decorated name of a symlink-to-directory:
21476             $ mkdir d && ln -s d s && env rm -r s/
21477             rm: cannot remove 's': Too many levels of symbolic links
21479         With the change below and a trivial don't-trim-trailing-slashes
21480         adjustment to remove.c, it does this:
21482             $ env rm -r s/
21483             rm: cannot remove 's/': Not a directory
21485         Improved by: Eric Blake
21487         fts: when there is no risk of overlap, use memcpy, not memmove
21488         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21490 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21492         stdbool: be more compatible with mixed C/C++ compiles
21493         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21494         Define to bool, true, false, respectively, as GCC's builtin
21495         stdbool.h does.  Problem reported by Michael Goffioul in
21496         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21498 2012-08-28  Jim Meyering  <meyering@redhat.com>
21500         revert last change: it was not needed
21501         * tests/test-vc-list-files-git.sh: There's already a test for
21502         a working git, just below.
21504 2012-08-28  Jim Meyering  <meyering@redhat.com>
21506         tests: test-vc-list-files-git.sh: skip if git is not available
21507         * tests/test-vc-list-files-git.sh: Skip this test when git is
21508         not available.
21510 2012-08-26  Bruno Haible  <bruno@clisp.org>
21512         gnulib-tool: Remove no-op option --no-changelog.
21513         * gnulib-tool (func_usage): Don't mention --no-changelog.
21514         (do_changelog): Remove variable.
21515         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21517 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21519         doc: remove fdl-1.2.texi
21520         It is no longer used or maintained, and its use of @acronym
21521         is problematic.  See the thread containing
21522         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21523         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21524         * doc/old-licenses/fdl-1.2.texi: Remove.
21526         execinfo: port to FreeBSD
21527         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21528         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21529         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21530         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21532 2012-08-23  Jim Meyering  <meyering@redhat.com>
21534         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21535         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21536         to placate gcc's -Wold-style-declaration.
21538 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21540         doc: do not use @acronym
21541         * doc/inet_ntoa.texi (inet_ntoa):
21542         * doc/parse-datetime.texi (Seconds since the Epoch)
21543         (Specifying time zone rules):
21544         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
21545         Don't use @acronym.  Problem reported by John Darlington in
21546         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
21548 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21550         stdnoreturn: port to newer GCCs
21551         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
21552         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
21553         Problem reported by Jim Meyering in
21554         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
21555         Also, rename the 'test' function to a void a clash with the
21556         already-supplied 'main' function; this fixes a bug that incorrectly
21557         rejected GCC 4.7.1's <stdnoreturn.h>.
21558         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
21559         Document GCC problem.
21561 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
21563         pipe-filter: fix comment typo
21564         * lib/pipe-filter.h: Mention correct function.
21566 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21568         execinfo: new module
21569         This is for Emacs.  Currently, it provides a no-effect stub
21570         on all platforms where it does not already work.
21571         It already works on glibc-based systems, and on Solaris 11.
21572         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
21573         New files.
21574         * doc/glibc-headers/execinfo.texi (execinfo.h):
21575         * MODULES.html.sh (Misc): Document it.
21577 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21579         extern-inline: support old GCC 'inline'
21580         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
21581         if available.  This applies to GCC versions 2.7 through 4.2, or
21582         when newer GCC is using -fgnu89-inline.  The goal is to address
21583         some of the performance issues mentioned by Bruno Haible in
21584         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
21586 2012-08-20  Eric Blake  <eblake@redhat.com>
21588         maint.mk: avoid redundant file name in message
21589         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21590         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
21591         (sc_makefile_path_separator_check): Remove bogus $(ME).
21593 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
21595         timer-time: fix link order when static linking on glibc
21596         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21597         _after_ -lrt so that it's significant.
21599 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21601         timespec: omit unnecessary AC_C_INLINE
21602         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
21604         stat-time: omit unnecessary AC_C_INLINE
21605         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21606         Do not require AC_C_INLINE.
21608         ignore-value: omit unnecessary AC_C_INLINE
21609         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
21611         sys_select: avoid 'static inline'
21612         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
21614         mktime: avoid 'static inline'
21615         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
21616         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
21618 2012-08-19  Bruno Haible  <bruno@clisp.org>
21620         gnulib-tool: Improve coding style.
21621         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
21622         func_emit_lib_Makefile_am.
21623         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21625 2012-08-19  Bruno Haible  <bruno@clisp.org>
21627         gnulib-tool: Fix indentation.
21628         * gnulib-tool (func_import): Fix indentation.
21630 2012-08-19  Bruno Haible  <bruno@clisp.org>
21632         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
21633         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
21634         on the list of removed files.
21636 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21638         test-parse-datetime: avoid glibc leap-second glitch
21639         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
21640         with the 2012 rules.  Problem reported by Bruce Dubbs in
21641         <http://bugs.gnu.org/12206>.
21643 2012-08-14  Bruno Haible  <bruno@clisp.org>
21645         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
21646         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
21647         from argument.
21648         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21650 2012-08-14  Eric Blake  <eblake@redhat.com>
21652         ldexp: relax license
21653         * modules/ldexp (License): Trivial relax, since the module only
21654         provides a permissively licensed m4 file.
21656 2012-08-13  Bruno Haible  <bruno@clisp.org>
21658         gnulib-tool: Fix persistence of --witness-c-macro option.
21659         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
21660         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21662 2012-08-11  Eric Blake  <eblake@redhat.com>
21664         count-leading-zeros: use a lookup table on non-gcc compilers
21665         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
21666         alternate implementation, suggested by Jim Meyering.
21668 2012-08-10  Eric Blake  <eblake@redhat.com>
21670         count-leading-zeros: new module
21671         * modules/count-leading-zeros: New module.
21672         * m4/count-leading-zeros.m4: New file.
21673         * lib/count-leading-zeros.h: Likewise.
21674         * modules/count-leading-zeros-tests: New test.
21675         * tests/test-count-leading-zeros.c: New file.
21676         * MODULES.html.sh (Integer arithmetic functions): Document it.
21678 2012-08-07  Simon Josefsson  <simon@josefsson.org>
21679             Jim Meyering  <meyering@redhat.com>
21681         maintainer-makefile: Fix syntax error with dash.
21682         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
21683         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
21685 2012-08-05  Jim Meyering  <meyering@redhat.com>
21687         extern-inline: also ignore -Wmissing-declarations
21688         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
21689         required with gcc-4.8.0-to-be.
21691         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
21692         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
21693         for /error ?([^,]*)/.  This avoids false-positives for strings like
21694         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
21696 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
21698         gnumakefile: better interaction with Automake-NG
21699         * modules/gnumakefile [Makefile.am]: The makefiles generated by
21700         Automake-NG always contain a definition of VPATH, even in non-VPATH
21701         builds (its value being simply '.' in that case).  So, in the
21702         'clean-GNUmakefile' rule, to determine whether running under a
21703         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
21704         '$(VPATH)' expands to the empty string.
21706 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
21708         base64: Use extern C scope in header file, for C++.
21709         * lib/base64.h: Add C++ namespace protection.
21711 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21713         stat-time, timespec, u64: support naive out-of-dir builds
21714         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
21715         Use '#include "foo.h"', not '#include <foo.h>', when including
21716         one's own interface.  This works better when configuring with
21717         out-of-directory builds, since packages need not add an
21718         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
21720 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21722         utimens: use extern-inline
21723         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
21724         * lib/utimens.h: Add copyright notice, since this is now large enough
21725         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21726         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
21727         * modules/utimens (Depends-on): Add extern-inline.
21729         u64: use extern-inline
21730         * lib/u64.c: New file.
21731         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21732         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
21733         * modules/u64 (Files): Add lib/u64.c.
21734         (Depends-on): Add extern-inline.
21735         (configure.ac): No need to require AC_C_INLINE, since extern-inline
21736         does that now.
21737         (lib_SOURCES): Add u64.c.
21739         timespec: use extern-inline
21740         * lib/timespec.c: New file.
21741         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21742         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
21743         * modules/timespec (Files): Add lib/timespec.c.
21744         (Depends-on): Add extern-inline.
21745         (lib_SOURCES): Add timespec.c.
21747         stat-time: use extern-inline
21748         * lib/stat-time.c: New file.
21749         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21750         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
21751         * modules/stat-time (Files): Add lib/stat-time.c.
21752         (Depends-on): Add extern-inline.
21753         (lib_SOURCES): Add stat-time.c.
21755         extern-inline: new module
21756         * modules/extern-inline, m4/extern-inline.m4: New files.
21757         This is for better support of 'extern inline' a la ISO C99,
21758         with a portable alternative on compilers that do not support
21759         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
21760         of the Emacs executable, when compiled with debugging disabled,
21761         which is a typical way that Emacs is built while developing.
21763 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
21765         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
21766         * build-aux/do-release-commit-and-tag: Move variable definitions
21767         together.
21768         ($branch): Instead of defaulting to "master", default to the current
21769         branch (as gnu-web-doc-update does).
21770         (help): Display the current values of the option arguments.
21771         * top/maint.mk (release-commit): New.
21772         * top/README-release: Simplify the corresponding step.
21774 2012-07-30  Eric Blake  <eblake@redhat.com>
21776         passfd: fix comment on recvfd
21777         * lib/passfd.c (recvfd): Fix comment.
21778         Reported by Jann Horn <jannhorn@googlemail.com>.
21780 2012-07-30  Jim Meyering  <meyering@redhat.com>
21782         maint.mk: avoid a sub-shell
21783         * top/maint.mk (release-prep): Remove unneeded sub-shell.
21785 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21787         maint.mk: use silent-rules support from Automake
21788         * top/maint.mk (news-check, vc-diff-check, announcement)
21789         (no-submodule-changes, alpha beta stable, release-prep)
21790         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
21792 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21794         maint.mk: provide a web-manual-update target
21795         * top/maint.mk: here.
21796         * top/README-release: Use it to simplify the web manual update step.
21798 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21800         README-release: shorten the circuit to post a news
21801         * top/README-release: Point directly to the news submission form.
21803 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21805         gnu-web-doc-update: fix --help
21806         * build-aux/gnu-web-doc-update: The information "top level" was written
21807         twice.
21809 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21811         maint.mk: absolute VPATH issue
21812         * top/maint.mk (release-prep): Help Git find .git/.
21813         From Jim Meyering.
21815 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21817         gitlog-to-changelog: fix previous change
21818         * build-aux/gitlog-to-changelog: Fix condition.
21819         Add missing ";".
21821 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21823         gitlog-to-changelog: don't expect .git to be in $srcdir
21824         Reported by Bruno Haible.
21825         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
21826         * build-aux/gitlog-to-changelog (&git_dir_option): New.
21827         Use it.
21829 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21831         maint.mk: absolute VPATH build fix
21832         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
21833         $(srcdir) is not a parent of $(builddir).
21835 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
21837         clean-temp: Fix memory leak.
21838         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
21839         'files' members of tmpdir.
21841 2012-07-27  Jim Meyering  <meyering@redhat.com>
21843         maint.mk: new rule: refresh-gnulib-patches
21844         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
21845         Use this rule to refresh them.
21846         * top/maint.mk (refresh-gnulib-patches): New rule.
21848 2012-07-24  Bruno Haible  <bruno@clisp.org>
21850         gnulib-tool: Fix handling of inctests variable.
21851         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
21852         Reported by Nick Bowler <nbowler@elliptictech.com>.
21854 2012-07-22  Bruno Haible  <bruno@clisp.org>
21856         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
21857         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
21858         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21859         Remove exemption for getpass.h.
21860         Suggested by Eric Blake.
21862 2012-07-20  Eric Blake  <eblake@redhat.com>
21864         verify: document conflict with -Wnested-externs
21865         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
21867         maint.mk: forbid exit(-1)
21868         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
21870 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21872         fsusage: port back to Solaris
21873         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
21874         error (fsd not declared) on Solaris 10.  Reported privately by
21875         Andrew Borodin.
21877 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
21879         gnu-web-doc-update: fix error messages
21880         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
21882         gnu-web-doc-update: check the requirements.
21883         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
21884         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
21885         * build-aux/bootstrap (find_tool): Comment change.
21887 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
21889         maint.mk: minor simplication.
21890         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
21891         for default values.
21893 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
21895         gitlog-to-changelog: VPATH build issues
21896         If builddir is not a subdirectory of srcdir, running git from it will
21897         fail.
21898         * build-aux/gitlog-to-changelog (--srcdir): New option.
21900 2012-07-15  Bruno Haible  <bruno@clisp.org>
21902         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
21903         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
21904         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
21905         Remove exemption for fpending.h.
21906         Suggested by Eric Blake.
21908 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
21910         pthread_sigmask: fix bug on FreeBSD 9
21911         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
21912         Include string.h.
21913         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
21914         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
21915         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
21916         but pthread_sigmask (1729, NULL, NULL) returns zero.
21917         See <http://bugs.gnu.org/11884>.
21918         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
21919         by inspecting whether the main call changed the old mask.
21921 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
21923         README-release: make it more legible
21924         * top/README-release: Improve typography slightly.
21926 2012-07-15  Jim Meyering  <meyering@redhat.com>
21928         maint: require that each sc_... command start with "@"
21929         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
21930         "make sc_maint" helps us avoid this nit.
21932 2012-07-15  Jim Meyering  <meyering@redhat.com>
21934         maint.mk: add leading "@" to quiet new "make syntax-check" rule
21935         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
21937 2012-07-13  Eric Blake  <eblake@redhat.com>
21939         maint.mk: new syntax check for HAVE_DECL checks
21940         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
21941         * cfg.mk
21942         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21943         Exempt some false positives.
21944         Based on a report by Karel Zak.
21946         argp: make HAVE_DECL usage consistent
21947         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
21948         macros, not whether they are defined.
21949         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
21950         convention with other declaration checks.
21951         Reported by Karel Zak, with suggestions from Paul Eggert.
21953         stat-time: relax license to LGPLv2+
21954         * modules/stat-time (License): Relax, with consent of all authors.
21956         strndup: fix m4 usage error
21957         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
21958         defined, to either 0 or 1.
21959         Reported by Karel Zak.
21961 2012-07-11  Jim Meyering  <meyering@redhat.com>
21963         maint: enable the sc_avoid_if_before_free syntax-check rule
21964         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
21965         (if_before_free_offenders_): Define.
21966         (if_before_free_basename_re_): Define.
21967         Exempt current files with useless if-before-free.
21969 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
21971         gettext: do not assume '#define ... defined ...' behavior
21972         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
21973         Do not use '#define FOO ... defined BAR ...', as the C standard says
21974         it's not portable to expect that this works after macro expansion.
21975         Problem reported for gzip by Steven M. Schweda in
21976         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
21978 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21980         getloadavg: clean out old Emacs and Autoconf cruft
21981         See Glenn Morris in <http://bugs.gnu.org/11905>.
21982         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
21983         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
21984         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
21985         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
21987 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
21989         bootstrap: let warn be like tests/init.sh's warn_
21990         Reported by Jim Meyering.
21991         * build-aux/bootstrap (warn): Remove, replaced by...
21992         (warnf_, warn_): these.
21993         Adjust callers.
21994         Shorten messages that no longer fit in 80 columns.
21996 2012-07-09  Bruno Haible  <bruno@clisp.org>
21998         getopt: Simplify after Emacs changed.
21999         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
22000         (gl_GETOPT_IFELSE): Remove macro.
22002 2012-07-09  Jim Meyering  <meyering@redhat.com>
22004         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
22005         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
22007         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
22008         Bugs in both of those conspired to make the
22009         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
22010         _sc_search_regexp's handling of non-empty $in_files would filter
22011         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
22012         choice of in_files value meant there would be no match in most
22013         projects, due to the presence of two or more Makefile.in files.
22014         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
22015         Fix a bug in how a non-empty $$in_files was processed:
22016         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
22017         in spite of the name, it's a regexp, not a list of file names.
22019 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22021         getloadavg, getopt: fix commentary re configure.in
22022         Autoconf is deprecating the name 'configure.in', so change it to
22023         to the new name 'configure.ac' in a couple of places.
22024         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
22025         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
22026         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
22027         Emacs has renamed it to configure.ac, and it no longer refers
22028         to these macros anyway.
22030         timespec: mark functions with const attributes
22031         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
22032         Mark with _GL_ATTRIBUTE_CONST.
22034 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22036         canonicalize[-lgpl]: handle "guessing" values when cross-building
22037         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22038         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
22039         matches "*yes" instead of just "yes".  Regression introduced in commit
22040         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
22042 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22043             Bruno Haible  <bruno@clisp.org>
22045         canonicalize: make the right guess when cross-compiling to GNU
22046         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
22047         determine whether cross-compiling to glibc systems, so as to
22048         include GNU/Hurd.
22050 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22052         timespec-sub: avoid duplicate include
22053         * lib/timespec-sub.c: Do not include <config.h> twice.
22054         Reported by Juanma Barranquero.
22056 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
22058         bootstrap: use a more consistent error reporting scheme
22059         * build-aux/bootstrap (warn, die): New.
22060         Use them.
22062 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22064         sys_time: allow too-wide tv_sec
22065         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
22066         timeval even if tv_sec is wider than time_t.  This allows
22067         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
22068         as without this patch gnulib replaces struct timeval
22069         and OpenBSD futimes therefore has a type mismatch.
22070         * doc/posix-headers/sys_time.texi: Mention this.
22072         pthread: check for both pthread_create and pthread_join
22073         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
22074         alter the check so that it tests for both pthread_create and
22075         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
22076         Suggested by Bruno Haible and Richard Yao in
22077         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
22079         parse-datetime: doc tuneup
22080         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
22081         spacing issues.
22083 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
22085         do-release-commit-and-tag: fix the previous commit
22086         * build-aux/do-release-commit-and-tag: Actually the test was right,
22087         but the comment and the error message were misleading.
22088         Fix comment, and improve error message.
22089         Perform check first, so that NEWS is not modified uselessly.
22091         do-release-commit-and-tag: fix typo
22092         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
22093         _not_ start with a stub.
22095 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22097         pthread: check for pthread_create, not pthread_join
22098         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
22099         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
22100         pthread_join in libc.  I hope this removes the need for all the
22101         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
22102         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
22104 2012-07-04  Jim Meyering  <meyering@redhat.com>
22106         parse-datetime: fix failure to diagnose invalid input
22107         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
22108         rather than diagnosing the invalid input.  Now it reports this:
22109         date: invalid date '\260'
22110         * lib/parse-datetime.y (to_uchar): Define.
22111         (yylex): Don't sign-extend "other" bytes.
22112         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
22113         Thanks to Bruno Haible for the patch to this file.
22114         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
22115         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
22117 2012-07-03  Jim Meyering  <meyering@redhat.com>
22119         bootstrap: do not require now-removed build-aux/missing
22120         Now that build-aux/missing is, er, missing, bootstrap would
22121         silently fail.
22122         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
22123         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
22124         no longer part of gnulib.
22125         Diagnose the failure.
22127 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22129         alloca: add support for HP NonStop TNS/E native
22130         * lib/alloca.in.h (alloca): Support the new host.
22131         From a suggestion by Joachim Schmitz in
22132         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
22134 2012-07-02  Pádraig Brady  <P@draigBrady.com>
22136         fsusage: remove code not needed on non GNU/Linux systems.
22138         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22139         Don't include headers no longer needed in this case.
22140         * lib/fsusage.c [STAT_STATVFS &&
22141         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
22142         STAT_STATFS2_FRSIZE to exclude code not used in this case.
22144 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22146         fsusage: include files needed for glibc 2.6 fallback
22147         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22148         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
22149         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
22150         Problem reported by Ludovic Courtès in
22151         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
22153         fsusage: avoid needless check on GNU/Linux
22154         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
22155         on GNU/Linux systems, since it can't possibly work.
22157 2012-07-01  Bruno Haible  <bruno@clisp.org>
22159         log: Fix an autoconf >= 2.64 warning.
22160         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
22161         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22163 2012-06-28  Bruno Haible  <bruno@clisp.org>
22165         log10f: Fix possible configuration problem.
22166         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
22167         $LOGF_LIBM.
22168         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22170 2012-06-28  Bruno Haible  <bruno@clisp.org>
22172         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
22173         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
22174         not gl_cv_func_unlink_works.
22175         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22177 2012-06-27  Eric Blake  <eblake@redhat.com>
22179         config: drop scripts that automake says are not independent
22180         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
22181         * build-aux/elisp-comp: Delete.
22182         * build-aux/missing: Likewise.
22183         * build-aux/ylwrap: Likewise.
22184         * modules/elisp-comp: Likewise.
22185         * MODULES.html.sh: Drop mention of elisp-comp.
22186         * NEWS: Mention this.
22188 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22190         root-uid: new module
22191         This is for portability to Tandem's NonStop Kernel.
22192         * lib/root-uid.h, modules/root-uid: New files.
22193         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
22194         * lib/write-any-file.c, tests/test-sethostname2.c:
22195         Include "root-uid.h".
22196         * lib/euidaccess.c (euidaccess):
22197         * lib/pt_chown.c (main):
22198         * lib/unlinkdir.c (cannot_unlink_dir):
22199         * lib/write-any-file.c (can_write_any_file):
22200         * m4/mknod.m4 (gl_FUNC_MKNOD):
22201         * tests/test-sethostname2.c (geteuid, main):
22202         Don't assume ROOT_UID == 0.
22203         * modules/euidaccess (Depends-on):
22204         * modules/pt_chown (Depends-on):
22205         * modules/sethostname-tests (Depends-on):
22206         * modules/unlinkdir (Depends-on):
22207         * modules/write-any-file (Depends-on):
22208         Add root-uid.
22210         regex: use locale-independent comparison for codeset name
22211         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
22212         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
22213         for codeset name.
22214         * lib/regex_internal.h: Do not include <strings.h>, since we
22215         no longer use strcasecmp.
22216         * modules/regex (Depends-on): Remove strcase.
22218 2012-06-23  Bruno Haible  <bruno@clisp.org>
22220         getopt-posix: No longer guarantee that option processing is resettable.
22221         * doc/posix-functions/getopt.texi: Drop description of problem with
22222         internal state. Fix info about mingw and msvc9.
22223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
22224         option processing by getopt(). Run three test programs instead of one.
22225         Simplify cross-compilation guess.
22226         * NEWS: Mention the change.
22227         Reported by Rich Felker <dalias@aerifal.cx>.
22229 2012-06-26  Bruno Haible  <bruno@clisp.org>
22231         argp, regex: Ensure strcasecmp gets declared.
22232         * lib/argp-help.c: Include <strings.h>.
22233         * lib/regex_internal.h: Likewise.
22234         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
22236 2012-06-24  Bruno Haible  <bruno@clisp.org>
22238         ptsname_r: Make it consistent with ptsname on AIX.
22239         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
22240         implementation as for OSF/1.
22241         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
22242         a pty master.
22244         ptsname_r: Make it consistent with ptsname on OSF/1.
22245         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22246         OSF/1.
22248 2012-06-24  Bruno Haible  <bruno@clisp.org>
22250         ttyname_r: Fix result on OSF/1, Solaris.
22251         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
22253 2012-06-24  Bruno Haible  <bruno@clisp.org>
22255         ptsname_r: Add support for Solaris.
22256         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22257         Solaris.
22259         ptsname_r: Fix test failure on native Windows.
22260         * modules/ptsname_r (Depends-on): Add isatty.
22262         ptsname_r: Fix test failures on IRIX, Solaris.
22263         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
22264         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
22265         accordingly.
22266         * lib/ptsname_r.c: Include <fcntl.h>.
22267         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
22268         set errno if fd is invalid.
22269         * tests/test-isatty.c (main): Update comments.
22271 2012-06-24  Bruno Haible  <bruno@clisp.org>
22273         ptsname test: Extend test.
22274         * tests/test-ptsname.c: Include <errno.h>.
22275         (main): Test behaviour with invalid file descriptor.
22277 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22279         time: fix obsolete comment
22280         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
22281         reference to HAVE_STRUCT_TIMESPEC in comment.
22283 2012-06-23  Bruno Haible  <bruno@clisp.org>
22285         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
22286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
22287         does not handle abbreviated long options with equivalent
22288         disambiguations, set gl_replace_getopt to yes.
22289         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
22291 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22293         time_r: fix typo that always overrode localtime_r decl
22294         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22295         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22296         not in a standard include.
22298 2012-06-22  Bruno Haible  <bruno@clisp.org>
22300         Write "Mac OS X" instead of "MacOS X".
22301         * README: Write "Mac OS X" instead of "MacOS X".
22302         * build-aux/bootstrap: Likewise.
22303         * build-aux/install-reloc: Likewise.
22304         * lib/acl-internal.h: Likewise.
22305         * lib/acl_entries.c: Likewise.
22306         * lib/argp-ba.c: Likewise.
22307         * lib/argp-pv.c: Likewise.
22308         * lib/config.charset: Likewise.
22309         * lib/copy-acl.c: Likewise.
22310         * lib/csharpexec.c: Likewise.
22311         * lib/euidaccess.c: Likewise.
22312         * lib/fbufmode.c: Likewise.
22313         * lib/fflush.c: Likewise.
22314         * lib/file-has-acl.c: Likewise.
22315         * lib/filemode.h: Likewise.
22316         * lib/fpurge.c: Likewise.
22317         * lib/freadable.c: Likewise.
22318         * lib/freadahead.c: Likewise.
22319         * lib/freading.c: Likewise.
22320         * lib/freadptr.c: Likewise.
22321         * lib/freadseek.c: Likewise.
22322         * lib/fseeko.c: Likewise.
22323         * lib/fseterr.c: Likewise.
22324         * lib/fsusage.c: Likewise.
22325         * lib/fwritable.c: Likewise.
22326         * lib/fwriting.c: Likewise.
22327         * lib/get-rusage-as.c: Likewise.
22328         * lib/get-rusage-data.c: Likewise.
22329         * lib/getdomainname.c: Likewise.
22330         * lib/idpriv-drop.c: Likewise.
22331         * lib/idpriv-droptemp.c: Likewise.
22332         * lib/localcharset.c: Likewise.
22333         * lib/locale.in.h: Likewise.
22334         * lib/localename.c: Likewise.
22335         * lib/mbsrtowcs-state.c: Likewise.
22336         * lib/nproc.c: Likewise.
22337         * lib/passfd.c: Likewise.
22338         * lib/posix_openpt.c: Likewise.
22339         * lib/printf-parse.c: Likewise.
22340         * lib/progreloc.c: Likewise.
22341         * lib/safe-read.h: Likewise.
22342         * lib/safe-write.h: Likewise.
22343         * lib/sched.in.h: Likewise.
22344         * lib/set-mode-acl.c: Likewise.
22345         * lib/signal.in.h: Likewise.
22346         * lib/stdint.in.h: Likewise.
22347         * lib/stdio-impl.h: Likewise.
22348         * lib/stdlib.in.h: Likewise.
22349         * lib/strtod.c: Likewise.
22350         * lib/sys_select.in.h: Likewise.
22351         * lib/tcgetsid.c: Likewise.
22352         * lib/unistd.in.h: Likewise.
22353         * lib/unlockpt.c: Likewise.
22354         * lib/vasnprintf.c: Likewise.
22355         * lib/vma-iter.c: Likewise.
22356         * lib/wcsrtombs-state.c: Likewise.
22357         * m4/acl.m4: Likewise.
22358         * m4/acosl.m4: Likewise.
22359         * m4/asinl.m4: Likewise.
22360         * m4/atanl.m4: Likewise.
22361         * m4/c-stack.m4: Likewise.
22362         * m4/cosl.m4: Likewise.
22363         * m4/expl.m4: Likewise.
22364         * m4/extensions.m4: Likewise.
22365         * m4/fdatasync.m4: Likewise.
22366         * m4/fmal.m4: Likewise.
22367         * m4/frexp.m4: Likewise.
22368         * m4/frexpf.m4: Likewise.
22369         * m4/frexpl.m4: Likewise.
22370         * m4/fsusage.m4: Likewise.
22371         * m4/getdomainname.m4: Likewise.
22372         * m4/getloadavg.m4: Likewise.
22373         * m4/getopt.m4: Likewise.
22374         * m4/gettext.m4: Likewise.
22375         * m4/gnulib-common.m4: Likewise.
22376         * m4/intdiv0.m4: Likewise.
22377         * m4/intlmacosx.m4: Likewise.
22378         * m4/largefile.m4: Likewise.
22379         * m4/ldexpl.m4: Likewise.
22380         * m4/link-follow.m4: Likewise.
22381         * m4/locale-ar.m4: Likewise.
22382         * m4/locale-fr.m4: Likewise.
22383         * m4/locale-ja.m4: Likewise.
22384         * m4/locale-tr.m4: Likewise.
22385         * m4/locale-zh.m4: Likewise.
22386         * m4/locale_h.m4: Likewise.
22387         * m4/lock.m4: Likewise.
22388         * m4/logl.m4: Likewise.
22389         * m4/mathfunc.m4: Likewise.
22390         * m4/minus-zero.m4: Likewise.
22391         * m4/mktime.m4: Likewise.
22392         * m4/mmap-anon.m4: Likewise.
22393         * m4/multiarch.m4: Likewise.
22394         * m4/nanosleep.m4: Likewise.
22395         * m4/nocrash.m4: Likewise.
22396         * m4/poll.m4: Likewise.
22397         * m4/printf-frexpl.m4: Likewise.
22398         * m4/printf.m4: Likewise.
22399         * m4/signbit.m4: Likewise.
22400         * m4/sinl.m4: Likewise.
22401         * m4/sqrtl.m4: Likewise.
22402         * m4/strerror_r.m4: Likewise.
22403         * m4/tanl.m4: Likewise.
22404         * m4/threadlib.m4: Likewise.
22405         * m4/ttyname_r.m4: Likewise.
22406         * m4/unlink.m4: Likewise.
22407         * m4/visibility.m4: Likewise.
22408         * m4/wcwidth.m4: Likewise.
22409         * tests/minus-zero.h: Likewise.
22410         * tests/test-alloca-opt.c: Likewise.
22411         * tests/test-copy-acl.sh: Likewise.
22412         * tests/test-copy-file.sh: Likewise.
22413         * tests/test-fdatasync.c: Likewise.
22414         * tests/test-file-has-acl.sh: Likewise.
22415         * tests/test-flock.c: Likewise.
22416         * tests/test-fsync.c: Likewise.
22417         * tests/test-localename.c: Likewise.
22418         * tests/test-malloca.c: Likewise.
22419         * tests/test-nonblocking-pipe.h: Likewise.
22420         * tests/test-nonblocking-socket.h: Likewise.
22421         * tests/test-openpty.c: Likewise.
22422         * tests/test-posix_openpt.c: Likewise.
22423         * tests/test-ptsname.c: Likewise.
22424         * tests/test-ptsname_r.c: Likewise.
22425         * tests/test-sameacls.c: Likewise.
22426         * tests/test-select.h: Likewise.
22427         * tests/test-set-mode-acl.sh: Likewise.
22428         * tests/test-snprintf-posix.h: Likewise.
22429         * tests/test-sprintf-posix.h: Likewise.
22430         * tests/test-strtod.c: Likewise.
22431         * tests/test-time.c: Likewise.
22432         * tests/test-vasnprintf-posix.c: Likewise.
22433         * tests/test-vasprintf-posix.c: Likewise.
22434         * doc/acl-resources.txt: Likewise.
22435         * doc/**/*.texi: Likewise.
22436         Reported by Max Horn <max@quendi.de>.
22438 2012-06-22  Bruno Haible  <bruno@clisp.org>
22440         grantpt: Relax requirement regarding invalid file descriptors.
22441         * lib/grantpt.c: Don't include <fcntl.h>.
22442         (grantpt): Don't verify the validity of the file descriptor.
22443         * modules/grantpt (Depends-on): Remove fcntl-h.
22444         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22445         file descriptors.
22446         * doc/posix-functions/grantpt.texi: Document more platforms on which
22447         grantpt succeeds for invalid file descriptors.
22448         Reported by Rich Felker <dalias@aerifal.cx>.
22450 2012-06-22  Bruno Haible  <bruno@clisp.org>
22452         fbufmode test: Don't test unportable behaviour.
22453         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22454         (main): Invoke it three times.
22455         Reported by Szabolcs Nagy <nsz@port70.net>
22456         and Rich Felker <dalias@aerifal.cx>.
22458 2012-06-21  Bruno Haible  <bruno@clisp.org>
22460         gnulib-tool: Refactor inctests variable.
22461         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22462         (func_modules_transitive_closure,
22463         func_modules_transitive_closure_separately,
22464         func_import, func_create_testdir): Update.
22466         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22467         * gnulib-tool: Accept option --without-tests.
22468         (func_usage): Document --without-tests option. Rearrange.
22469         (inctests): Normalize according to the mode.
22470         * NEWS: Mention the change.
22471         Suggested by Simon Josefsson.
22473 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22475         parse-duration test: Avoid spurious output.
22476         * tests/test-parse-duration.sh: Reindent with leading tabs.
22478 2012-06-21  Jim Meyering  <meyering@redhat.com>
22480         maint: disable the strncpy prohibition
22481         * cfg.mk: Do not prohibit strncpy here.
22483 2012-06-21  Bruno Haible  <bruno@clisp.org>
22485         nonblocking: Avoid compilation error on mingw64.
22486         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22487         fscanf.
22488         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22489         * modules/vfscanf (configure.ac): Likewise.
22490         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22491         definition only if stdio.h has prepared it.
22492         Reported by Daniel P. Berrange <berrange@redhat.com>.
22494 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22496         gnulib-tool: Use readlink if it is available.
22497         * gnulib-tool (func_readlink): Choose function more appropriately.
22499 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22501         posixtm-tests: port to buggy compiler
22502         Problem reported by Simon Josefsson in
22503         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22504         * modules/posixtm-tests (Depends-on): Add stdint.
22505         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22506         Now of type int_least64_t, not int64_t, both because that's
22507         what INT64_C returns and because int_least64_t works even
22508         on 72-bit hosts.
22509         (T): Use INT64_C on constants outside the traditional int range,
22510         to work around compiler bug noted by Simon.
22512         mktime: fix integer overflow in 'configure'-time test
22513         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22514         after integer overflow.  Problem reported by Rich Felker in
22515         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22516         Also, don't look for further instances of a bug if we've already
22517         found one instance; this helps 'configure' run faster.
22519 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22521         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22522         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22523         GetVersionEx correctly.
22524         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22526 2012-06-20  Bruno Haible  <bruno@clisp.org>
22528         fdopen: Allow implementations that don't reject invalid fd arguments.
22529         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22530         succeeds.
22531         Reported by Rich Felker <dalias@aerifal.cx>.
22533 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22535         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22536         bring in LIBINTL.
22538 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22540         init.sh: do not rely on autoupated PWD
22541         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22542         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22543         Although Nelson's bug was not necessarily fixed by this patch,
22544         it seems wise to make the change for safety.
22545         * tests/init.sh (path_prepend_): Do not rely on PWD updating
22546         automagically after 'cd'; this is not reliable on older shells.
22547         (setup_): Fail if we cannot cd to temporary directory.
22549 2012-06-19  Bruno Haible  <bruno@clisp.org>
22551         stat, fstat: Avoid warnings on mingw64.
22552         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
22553         redefining.
22554         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
22555         Reported by Daniel P. Berrange <berrange@redhat.com>.
22557 2012-06-19  Bruno Haible  <bruno@clisp.org>
22559         stdioext: Add support for musl libc.
22561         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
22562         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
22564         * m4/fseterr.m4: New file.
22565         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
22566         function exists.
22567         * modules/fseterr (Files): Add m4/fseterr.m4.
22568         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
22569         __fseterr does not exist.
22570         (Makefile.am): Remove fseterr.c from lib_SOURCES.
22572         * lib/freadable.h: Update comment.
22574         * lib/fwritable.h: Update comment.
22576         * lib/freading.h: Update comment.
22578         * lib/fwriting.h: Update comment.
22580         * m4/freadahead.m4: New file.
22581         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
22582         that function exists.
22583         * modules/freadahead (Files): Add m4/freadahead.m4.
22584         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
22585         __freadahead does not exist.
22586         (Makefile.am): Remove freadahead.c from lib_SOURCES.
22588         * m4/freadptr.m4: New file.
22589         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
22590         function exists.
22591         * modules/freadptr (Files): Add m4/freadptr.m4.
22592         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
22593         __freadptr does not exist.
22594         (Makefile.am): Remove freadptr.c from lib_SOURCES.
22596         * m4/freadseek.m4: New file.
22597         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
22598         exists.
22599         * modules/freadseek (Files): Add m4/freadseek.m4.
22600         (configure.ac): Invoke gl_FUNC_FREADSEEK.
22602         * lib/fpurge.c (fpurge): Update comment.
22604         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
22606 2012-06-19  Bruno Haible  <bruno@clisp.org>
22608         *printf-posix: Put more info into config.log.
22609         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
22610         exit code into config.log.
22612 2012-06-19  Bruno Haible  <bruno@clisp.org>
22614         getopt-gnu: Fix exit code overflow in autoconf test.
22615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
22616         to keep them below < 128.
22618 2012-06-17  Jim Meyering  <meyering@redhat.com>
22620         maint.mk: fix typo in code to derive GPG key at release time
22621         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
22623 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22625         regex: avoid warning when pointers are not long
22626         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
22627         and uintptr_t, not long, for portability to hosts where pointers and
22628         long have different sizes.  Issue noted by Daniel P. Berrange in
22629         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
22630         and fix suggested by Bruno Haible in
22631         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
22633 2012-06-17  Bruno Haible  <bruno@clisp.org>
22635         dummy: Relicense into the public domain.
22636         * modules/dummy (License): Set to "public domain".
22637         Suggested by Reuben Thomas.
22639 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22641         announce-gen: VPATH issues
22642         * build-aux/announce-gen (--srcdir): New option, used to trim the
22643         $srcdir part of the path from $builddir to NEWS.
22644         * top/maint.mk (announcement): Adjust.
22646 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22648         gnu-web-doc-update: VPATH builds
22649         * build-aux/gnu-web-doc-update (--builddir): New option.
22650         Revamp the handling of options.
22651         Prefer $(...) to `...`.
22652         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
22653         the template, and it is GNU mktemp specific.
22654         Prefer set -e to long series of &&.
22655         Restore the initial git branch, not "master".
22656         Properly initialize submodules (don't rely only on bootstrap).
22657         Do not reconfigure blindly, use config.status.
22658         * top/README-release: Update instructions for gnu-web-doc-update.
22660 2012-06-11  Jim Meyering  <meyering@redhat.com>
22662         maint.mk: revert most of the previous change re "all these"
22663         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
22664         For rationale, see the discussion at
22665         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
22667 2012-06-10  Karl Berry  <karl@gnu.org>
22669         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
22671         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
22673 2012-06-10  Bruce Korb  <bkorb@gnu.org>
22675         parse-duration: Relicense under LGPLv2+.
22676         * modules/parse-duration (License): Change to LGPLv2+.
22678 2012-06-10  Jim Meyering  <meyering@redhat.com>
22680         maint.mk: prohibit common grammar error: "all these"
22681         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
22682         the list of prohibited word sequences.  It should be "all of these".
22683         * lib/tempname.c (__gen_tempname): Fix one of them.
22685 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22687         do-release-commit-and-tag: support VPATH builds
22688         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
22689         (noteworthy): Defined earlier to factor its value.
22690         (noteworthy_stub): New.
22691         Use it to factor.
22692         (help_version): Split into...
22693         (help, version): these.
22694         Adjust the option processing part.
22695         Support "--option=value" in addition to "--option value".
22696         (builddir): New.
22697         (--builddir): New option.
22698         * top/README-release: Document this.
22699         Reword slightly so that the reader cannot understand that he
22700         has to do these steps before calling do-release-commit-and-tag.
22702 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22704         readme-release: also require announce-gen and maintainer-makefile
22705         * modules/readme-release (Depends-on): here.
22706         * modules/announce-gen, modules/do-release-commit-and-tag,
22707         modules/gnu-web-doc-update, modules/maintainer-makefile
22708         (Description): Point to readme-release.
22710 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22712         maint.mk: fix VPATH issues.
22713         * top/maint.mk (news-check): GNU Make understand $< very well.
22714         (release-prep): NEWS is in $(srcdir).
22716 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
22718         readme-release: require the promoted modules.
22719         * modules/readme-release (Depends-on): Add
22720         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
22721         in this text.
22723 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22724             Bruno Haible  <bruno@clisp.org>
22726         error, strerror-override: Support mingw64 from Fedora 17.
22727         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
22728         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
22729         EINPROGRESS.
22730         * lib/strerror-override.h (strerror_override): Test it.
22731         * lib/strerror-override.c (strerror_override): Likewise.
22732         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
22734 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22735             Bruno Haible  <bruno@clisp.org>
22737         error, strerror-override: Support mingw64 from Fedora 17.
22738         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
22739         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
22740         * lib/strerror-override.h (strerror_override): Test it.
22741         * lib/strerror-override.c (strerror_override): Likewise.
22743 2012-06-03  Bruno Haible  <bruno@clisp.org>
22745         error, strerror-override: Support new errno values from POSIX:2008.
22746         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
22747         ENOTRECOVERABLE.
22748         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
22749         platforms.
22750         * lib/strerror-override.c (strerror_override): Conditionalize the
22751         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
22752         * lib/strerror-override.h (strerror_override): Declare also if
22753         GNULIB_defined_EOWNERDEAD is defined.
22754         * tests/test-errno.c (e130, e131): New variables.
22755         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
22756         ENOTRECOVERABLE.
22757         Reported by Paolo Bonzini.
22759 2012-05-31  Jim Meyering  <meyering@redhat.com>
22761         savewd: add missing dependency on sys_wait module
22762         * modules/savewd (Depends-on): Add sys_wait, needed at least
22763         for MSVC.  Report and suggested change by Michael Goffioul.
22765 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
22767         system-quote-tests: port to CentOS 5
22768         Problem reported by Tom G. Christensen in
22769         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
22770         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
22772 2012-05-29  Jim Meyering  <meyering@redhat.com>
22774         maint: fix typos in comments and ChangeLog
22775         Culprits identified and fixed mostly automatically using these commands:
22776         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
22777         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
22778         using http://github.com/lyda/misspell-check
22779         * ChangeLog: Fix typos.
22780         * doc/solaris-versions: Likewise.
22781         * lib/regexec.c (re_search_stub): Likewise.
22782         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22784 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22786         manywarnings: remove duplicate -Wmultichar entry
22787         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
22788         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
22789         so keep the entry marked as documented.
22791 2012-05-27  Karl Berry  <karl@gnu.org>
22793         * config/srclist.txt (mktime.c): remove last libc sync,
22794         perhaps just temporarily.
22796 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
22798         regex: don't assume uint64_t or uint32_t
22799         * lib/regcomp.c (init_word_char): Don't assume that the types
22800         uint64_t and uint32_t exist.  The C standard doesn't guarantee
22801         them, and on some 32-bit compilers there is no uint64_t.
22802         Problem reported by Gianluigi Tiesi in
22803         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
22805 2012-05-25  Jim Meyering  <meyering@redhat.com>
22807         maint.mk: add strncpy-prohibiting syntax-check rule
22808         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
22810 2012-05-24  Jim Meyering  <meyering@redhat.com>
22812         maint.mk: compute $(gpg_key_ID) more portably
22813         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
22814         That use of sed is not portable to some fringe systems.
22815         Reported by Paul Eggert in
22816         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
22818 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22820         mktime: sync from glibc
22821         * config/srclist.txt: Uncomment mktime.c.
22822         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
22823         First, indent with tabs, since glibc uses tabs and doesn't want to
22824         change and we'd rather be identical to glibc.  Also, two small
22825         coding changes:
22826         (isdst_differ): Use &&, not &, as && is the usual style.
22827         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
22828         for clarity.
22830 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22832         announce-gen: du -h is more portable than du --human
22833         * build-aux/announce-gen (sizes): Invoke du with -h instead
22834         of --human.  Accept leading white space in its output.
22836 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22838         announce-gen: Improve diagnostics.
22839         * build-aux/announce-gen: When parsing command line options,
22840         prefer "announce-gen: option --release-type requires an argument"
22841         to "Option release-type requires an argument".
22843 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22845         maint.mk: gpg_key_ID: use sed more portably
22846         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
22847         the closing brace.
22848         (refresh-po): Fuse two sed invocations into one.
22850 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
22852         gitlog-to-changelog: support the log message format used in Bison.
22853         * build-aux/gitlog-to-changelog: Support --strip-tab and
22854         --strip-cherry-picked.
22856 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22858         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
22859         the rest of the current time slice to another thread in the current
22860         process. So if the thread that feeds the file decscriptor we're
22861         polling is not in the current process, we get busy-waiting.
22862         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
22863         Patch from Theodore Leblond.
22864         * lib/select.c: Split polling out of the loop that sets the output
22865         fd_sets.  Check for zero result and loop if the wait timeout is
22866         infinite.
22868 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22870         select: Fix build error on IRIX 6.5.
22871         * lib/select.c: Include stddef.h for NULL.
22873 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22875         gc: fix libgcrypt detection on older machines.
22876         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
22877         copyright years because the file has been distributed every year
22878         since it was created.
22880 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
22882         crypto: fix bug in large buffer handling
22883         Problem reported by Serge Belyshev for glibc in
22884         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
22885         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
22886         * lib/md4.c (md4_process_block):
22887         * lib/md5.c (md5_process_block):
22888         * lib/sha1.c (sha1_process_block):
22889         * lib/sha256.c (sha256_process_block):
22890         Don't assume the buffer length is less than 2**32.
22891         * lib/sha512.c (sha512_process_block): Likewise.
22892         Here, the bug is present only in the rare case where the host does
22893         not support uint64_t or where size_t is wider than 64 bits.
22894         Use u64size to work around the problems.
22895         * lib/u64.h (u64size): New macro.
22897 2012-05-15  Pádraig Brady  <P@draigBrady.com>
22899         fsusage: fix block size returned on older Linux 2.6
22901         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
22902         which is available since Linux 2.6.
22903         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
22904         when the member is available so it can be used as a fallback.
22905         * doc/posix-functions/statvfs.texi: Mention the hang issue
22906         on Linux < 2.6.36.
22908 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22910         bootstrap: suppress stderr chatter
22911         * build-aux/bootstrap (insert_sorted_if_absent, main program):
22912         Omit unnecessary chatter to stderr.  The main program chatter
22913         was there only inadvertantly.
22915         bootstrap: .gitignore files created by autopoint, libtool
22916         I ran into this problem when bootstrapping the latest diffutils.
22917         After './bootstrap', 'git status' reported lots of untracked files
22918         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
22919         autopoint and do not need to be version-controlled.
22920         * build-aux/bootstrap: Put into .gitignore the files that
22921         autopoint and libtool create, by keeping track of files that exist
22922         after but not before these programs are run.
22923         (version_controlled_file): Move up.  2nd arg is now full file
22924         name, not base name; this is more convenient.  Put CVS at the end,
22925         as it's now somewhat deprecated.
22927 2012-05-14  Jim Meyering  <meyering@redhat.com>
22929         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
22930         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
22931         definition.  Reported by Bruno Haible.
22933 2012-05-13  Bruno Haible  <bruno@clisp.org>
22934             Paul Eggert  <eggert@cs.ucla.edu>
22936         binary-io: Define set_binary_mode function.
22937         * lib/binary-io.h (set_binary_mode): New function.
22938         (SET_BINARY): Define in terms of set_binary_mode.
22939         * modules/binary-io (configure.ac): Require AC_C_INLINE.
22940         * tests/test-binary-io.c (main): Accept an argument, and test either
22941         set_binary_mode or SET_BINARY depending on the argument.
22942         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
22943         argument. Clean up also t-bin-out0.tmp.
22945 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
22947         bootstrap: take advantage of POSIX shell features
22949         The 'bootstrap' script offered by Gnulib script already uses POSIX
22950         shell features (like $((...)) arithmetic expansions) that are not
22951         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
22952         means that bootstrap must already be run using a proper POSIX shell,
22953         which will thus provide more features, like ${var#pattern} parameter
22954         expansion or inversion of a command exit status with '!'.  We can
22955         thus use these features to improve the clarity and the performances
22956         of the bootstrap script.
22958         Suggested by Eric Blake.
22960         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
22961         of sed/expr plus command substitutions, to save some forks.  While
22962         we are at it, prefer the POSIX $(...) form of command substitution,
22963         rather than the legacy form `...` (since the former is visually
22964         clearer and interacts better with quoting), and prefer the idiom:
22965           "if ! CMD; then ACTION ..."
22966         over the idiom:
22967           "if CMD; then :; else ACTION ..."
22968         which was required by legacy Bourne shells not supporting '!'.
22970 2012-05-12  Bruno Haible  <bruno@clisp.org>
22972         system-quote: Add more comments.
22973         * lib/system-quote.h: Add more comments about wilcards and limitations.
22974         Suggested by Eli Zaretskii <eliz@gnu.org>.
22976         sh-quote, system-quote: Add comments about wildcards.
22977         * lib/sh-quote.h: Clarify what happens with wildcard characters.
22978         * lib/system-quote.h: Likewise.
22979         Reported by Eli Zaretskii <eliz@gnu.org>.
22981 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22983         fsusage: check for GNU/Linux statvfs problem dynamically
22984         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
22985         Define STAT_STATFS2_BSIZE too, since in this case the code now
22986         checks dynamically whether statvfs is reliable, falling back on
22987         Linux-style statfs otherwise.
22988         (statvfs_works): New function, for dynamically testing statvfs.
22989         (get_fs_usage) [STAT_STATVFS]: Use it.
22990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
22991         statvfs on GNU/Linux hosts, since it's now done dynamically.
22993 2012-05-10  Bruno Haible  <bruno@clisp.org>
22995         system-quote, execute, spawn-pipe: Escape '?' on Windows.
22996         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
22997         '?' character.
22998         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
22999         * tests/test-system-quote-main.c (check_all): Check also strings like
23000         "??????????".
23001         Reported by Eli Zaretskii <eliz@gnu.org>.
23003 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23005         _Noreturn: port config.h to gcc -Wundef
23006         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
23007         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
23008         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
23010 2012-05-10  Bruno Haible  <bruno@clisp.org>
23012         system-quote: Refactor.
23013         * lib/system-quote.h (system_quote_copy): Fix comment.
23014         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
23015         New functions, extracted from system_quote_copy.
23016         (system_quote_length, system_quote_copy): Use these functions.
23017         Reported by Paul Eggert.
23019 2012-05-08  Bruno Haible  <bruno@clisp.org>
23021         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
23022         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
23024 2012-05-08  Bruno Haible  <bruno@clisp.org>
23026         Tests for module 'system-quote'.
23027         * modules/system-quote-tests: New file.
23028         * tests/test-system-quote.sh: New file.
23029         * tests/test-system-quote-main.c: New file.
23030         * tests/test-system-quote-child.c: New file.
23032         New module 'system-quote'.
23033         * lib/system-quote.h: New file.
23034         * lib/system-quote.c: New file.
23035         * modules/system-quote: New file.
23037 2012-05-08  Bruno Haible  <bruno@clisp.org>
23039         sh-quote: Make C++ safe and allow multiple inclusion.
23040         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
23041         declarations in extern "C".
23043 2012-05-08  Bruno Haible  <bruno@clisp.org>
23045         sh-quote tests: Make tests stricter.
23046         * tests/test-sh-quote.c (check_one): Check the return value of
23047         shell_quote_copy.
23048         (main): Check a string with a CR character. Check a string that
23049         contains UCHAR_MAX.
23051 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
23053         warnings.m4: provide a means to specify the program to compile.
23054         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
23055         (gl_WARN_ADD): here.
23056         Use gl_AS_VAR_APPEND.
23057         Support an argument to specify the program to compile.
23058         (gl_WARN_ADD): Accept an argument to specify the program to compile.
23059         AC_SUBST the WARN_CFLAGS when they are used.
23060         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
23061         leave this to gl_WARN_ADD.
23063 2012-05-08  Eric Blake  <eblake@redhat.com>
23065         doc: recommendations on gettext version
23066         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
23067         choice between versions.
23068         * DEPENDENCIES (gettext): Cover both approaches.
23070 2012-05-08  Jim Meyering  <meyering@redhat.com>
23072         init.sh: explain why EXEEXT support uses aliases rather than functions
23073         * tests/init.sh: Add a comment.
23075         init.sh: don't let bash aliases interfere with tests
23076         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
23077         is bash.  This avoids problems for those who alias standard commands to
23078         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
23079         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
23081 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
23083         stdint: be more consistent with glibc, SunOS libc
23084         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
23085         (gl_int_fast16_t, gl_uint_fast16_t)
23086         (gl_int_fast32_t, gl_uint_fast32_t)
23087         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
23088         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
23089         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23090         Be consistent with glibc by default, and with SunOS 5.10 and later
23091         if __sun is defined.  This lessens the likelihood of clashes if
23092         code compiled for older hosts is combined with code compiled for
23093         newer ones.  Problem reported by Niels Möller in
23094         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
23096 2012-05-07  Eric Blake  <eblake@redhat.com>
23098         isatty: relax license to LGPLv2+
23099         * modules/isatty (License): Relax license.
23101 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23103         stat-size: comment fix
23104         * lib/stat-size.h: Remove obsolete comment about indenting.
23106 2012-05-06  Bruno Haible  <bruno@clisp.org>
23108         Tests for module 'sh-quote'.
23109         * modules/sh-quote-tests: New file.
23110         * tests/test-sh-quote.c: New file.
23112 2012-05-06  Bruno Haible  <bruno@clisp.org>
23114         sh-quote: Improve shell_quote_argv's signature.
23115         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
23116         * lib/sh-quote.c (shell_quote_argv): Likewise.
23118 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23120         stdint: document issues with int_fast8_t etc.
23121         * doc/posix-headers/stdint.texi (stdint.h): Say that other
23122         stdint.h substitutes may define these types differently.  See
23123         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
23125 2012-05-05  Bruno Haible  <bruno@clisp.org>
23127         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
23128         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
23129         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
23130         or 'guessing no (mishandles large arguments)'.
23132 2012-05-05  Bruno Haible  <bruno@clisp.org>
23134         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
23135         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
23136         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23137         set gl_cv_func_link_follows_symlink to "guessing no".
23139 2012-05-05  Bruno Haible  <bruno@clisp.org>
23141         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
23142         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
23143         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
23144         "guessing no".
23145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
23147 2012-05-05  Bruno Haible  <bruno@clisp.org>
23149         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
23150         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
23151         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23152         set gl_cv_struct_dirent_d_ino to "guessing yes".
23154 2012-05-05  Bruno Haible  <bruno@clisp.org>
23156         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
23157         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
23158         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
23159         "guessing yes".
23161 2012-05-05  Bruno Haible  <bruno@clisp.org>
23163         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
23164         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
23165         compiling to a glibc system, set gl_cv_func_signbit and
23166         gl_cv_func_signbit_gcc to "guessing yes".
23168 2012-05-05  Bruno Haible  <bruno@clisp.org>
23170         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
23171         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
23172         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
23173         to "guessing yes".
23174         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
23175         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
23177 2012-05-05  Bruno Haible  <bruno@clisp.org>
23179         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
23180         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
23181         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
23182         gl_cv_func_realpath_works to "guessing yes".
23184 2012-05-05  Bruno Haible  <bruno@clisp.org>
23186         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
23187         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
23188         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
23190 2012-05-04  Bruno Haible  <bruno@clisp.org>
23192         Tweak last commit.
23193         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
23194         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23196 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23198         unistd_h: make it easier to avoid sys_types_h
23199         This is useful for Emacs, which has its own method of porting to
23200         Windows, and which therefore does not need the sys_types_h module.
23201         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
23202         code moved here from gl_SYS_TYPES_H.
23203         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
23204         using the code directly.
23205         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
23206         gl_SYS_TYPES_H.
23207         * modules/sys_types (Files):
23208         * modules/unistd (Files): Add m4/off_t.m4.
23210 2012-05-03  Bruno Haible  <bruno@clisp.org>
23212         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
23213         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
23214         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
23215         "guessing yes" or "guessing no".
23216         (gl_FUNC_LSTAT): Update.
23217         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
23218         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
23219         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
23221 2012-05-03  Bruno Haible  <bruno@clisp.org>
23223         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
23224         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
23225         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
23226         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
23227         cross-compiling, choose the first alternative on glibc systems.
23228         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
23230 2012-05-03  Bruno Haible  <bruno@clisp.org>
23232         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
23233         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
23234         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
23236 2012-05-03  Bruno Haible  <bruno@clisp.org>
23238         chown: Avoid "guessing no" when cross-compiling to glibc systems.
23239         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
23241 2012-05-03  Bruno Haible  <bruno@clisp.org>
23243         Avoid "guessing no" guesses when cross-compiling to glibc systems.
23244         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
23245         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
23246         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
23247         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
23248         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
23249         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
23250         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
23251         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
23252         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
23253         compiling to glibc systems, set gl_cv_func_chown_slash_works,
23254         gl_cv_func_chown_ctime_works to "guessing yes".
23255         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
23256         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
23257         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23258         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
23259         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
23260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
23261         compiling to glibc systems, set gl_cv_func_open_directory_works to
23262         "guessing yes".
23263         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
23264         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
23265         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
23266         "guessing yes".
23267         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
23268         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
23269         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
23270         compiling to glibc systems, set gl_cv_func_floorf_ieee to
23271         "guessing yes".
23272         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
23273         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
23274         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
23275         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
23276         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
23277         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
23278         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
23279         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
23280         "guessing yes".
23281         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
23282         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
23283         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
23284         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
23285         "guessing yes".
23286         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
23287         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
23288         "guessing yes".
23289         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
23290         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
23291         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
23292         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23293         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23294         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23295         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23296         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23297         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23298         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23299         "guessing yes".
23300         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23301         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23302         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23303         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23304         "guessing yes".
23305         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23306         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23307         "guessing yes".
23308         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23309         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23310         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23311         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23312         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23313         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23314         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23315         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23316         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23317         "guessing yes".
23318         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23319         compiling to glibc systems, set gl_cv_func_mknod_works to
23320         "guessing yes".
23321         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23322         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23323         "guessing yes".
23324         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23325         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23326         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23327         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23328         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23329         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23330         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23331         compiling to glibc systems, set gl_cv_func_svid_putenv to
23332         "guessing yes".
23333         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23334         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23335         "guessing yes".
23336         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23337         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23338         "guessing yes".
23339         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23340         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23341         to "guessing yes".
23342         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23343         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23344         to "guessing yes".
23345         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23346         compiling to glibc systems, set gl_cv_func_rmdir_works to
23347         "guessing yes".
23348         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23349         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23350         gl_cv_func_unlink_parent_fails to "guessing yes".
23351         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23352         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23353         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23354         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23355         gl_cv_func_rename_dest_works to "guessing yes".
23356         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23357         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23358         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23359         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23360         "guessing yes".
23361         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23362         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23363         "guessing yes".
23364         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23365         compiling to glibc systems, set gl_cv_func_setenv_works to
23366         "guessing yes".
23367         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23368         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23369         "guessing yes".
23370         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23371         compiling to glibc systems, set gl_cv_func_sleep_works to
23372         "guessing yes".
23373         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23374         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23375         "guessing yes".
23376         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23377         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23378         "guessing yes".
23379         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23380         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23381         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23382         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23383         "guessing yes".
23384         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23385         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23386         "guessing yes".
23387         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23388         compiling to glibc systems, set gl_cv_func_usleep_works to
23389         "guessing yes".
23390         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23391         compiling to glibc systems, set gl_cv_func_futimesat_works to
23392         "guessing yes".
23394 2012-05-03  Bruno Haible  <bruno@clisp.org>
23396         Say "guessing yes" or "guessing no" when cross-compiling.
23397         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23398         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23399         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23400         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23401         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23402         am_cv_func_working_getline to "guessing yes" or "guessing no".
23403         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23404         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23405         (gl_FUNC_MEMMEM): When cross-compiling, set
23406         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23407         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23408         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23410         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23411         "guessing no".
23412         (gl_FUNC_STRCASESTR): When cross-compiling, set
23413         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23414         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23415         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23416         (gl_FUNC_STRSTR): When cross-compiling, set
23417         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23418         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23419         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23420         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23421         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23423 2012-05-01  Bruno Haible  <bruno@clisp.org>
23425         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23426         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23427         * build-aux/reloc-ldflags: Likewise.
23428         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23430 2012-05-01  Bruno Haible  <bruno@clisp.org>
23432         gnulib-tool: Remove transitional code.
23433         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23434         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23436 2012-05-01  Bruno Haible  <bruno@clisp.org>
23438         getcwd: Fix misindentation.
23439         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23441 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23443         exclude: process exclude and include directives in order
23444         This restores the pre-2009 behavior, and is part of a fix of a
23445         grep bug reported by Quentin Arce in
23446         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23447         * lib/exclude.c (struct exclude): Remove 'tail' member.
23448         (new_exclude_segment): Prepend the new segment instead of appending.
23449         Return void, since that's now more convenient.
23450         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23451         (file_name_matches): Renamed from excluded_file_name_p.
23452         (file_pattern_matches, file_name_matches):
23453         Return true if the pattern matches, not if it excludes.
23454         All callers changed.
23455         (excluded_file_name): Process the list in reverse order;
23456         since the list is now reversed this restores the pre-2009 behavior.
23457         (add_exclude): Adjust to new reversed-order list.  Use local var
23458         rather than macro, for clarity.
23459         * tests/test-exclude7.sh: Adjust to corrected behavior.
23461         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23462         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23463         it's not possible here.  Handle the case of \ at end of pattern
23464         without dumping core.
23465         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23467         _Noreturn: future-proof non-GNU and non-MSVC compilers
23468         * build-aux/snippet/_Noreturn.h (_Noreturn):
23469         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23470         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23471         C11 or later.  This is more likely to work with random future C
23472         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23473         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23475         exclude: handle wildcards with FNM_EXTMATCH
23476         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23477         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23478         comment that "has wildcards" really means "has or may have
23479         wildcards".  Simplify by avoiding the need to call strcspn.
23481 2012-04-29  Bruno Haible  <bruno@clisp.org>
23483         gnulib-tool: Fix list of authors.
23484         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23486 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23488         bootstrap: support Automake-NG in $buildreq
23489         * bootstrap (check_versions): Handle automake and aclocal from
23490         Automake-NG specially.  They can be specified as respectively
23491         the "automake-ng" and "aclocal-ng" requirements.
23493 2012-04-25  Eric Blake  <eblake@redhat.com>
23495         bootstrap: only force latest Makefile.in.in for gettext module
23496         * build-aux/bootstrap (with_gettext): Only install latest
23497         Makefile.in.in for projects requesting bleeding edge gettext.
23499 2012-04-22  Bruno Haible  <bruno@clisp.org>
23501         doc: Mention reason for replacement on glibc/Linux systems.
23502         * doc/posix-functions/dprintf.texi: Mention the problem with special
23503         'long double' values.
23504         * doc/posix-functions/fprintf.texi: Likewise.
23505         * doc/posix-functions/printf.texi: Likewise.
23506         * doc/posix-functions/snprintf.texi: Likewise.
23507         * doc/posix-functions/sprintf.texi: Likewise.
23508         * doc/posix-functions/vdprintf.texi: Likewise.
23509         * doc/posix-functions/vfprintf.texi: Likewise.
23510         * doc/posix-functions/vprintf.texi: Likewise.
23511         * doc/posix-functions/vsnprintf.texi: Likewise.
23512         * doc/posix-functions/vsprintf.texi: Likewise.
23513         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23514         platforms with F_DUPFD_CLOEXEC problems.
23515         * doc/posix-functions/glob.texi: Mention which platforms are affected
23516         by the problem with symbolic links.
23517         * doc/posix-functions/linkat.texi: Mention the problem with
23518         AT_SYMLINK_FOLLOW on Linux.
23520 2012-04-22  Bruno Haible  <bruno@clisp.org>
23522         pwrite: Don't replace on all platforms.
23523         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23525 2012-04-22  Bruno Haible  <bruno@clisp.org>
23527         rint* tests: Avoid gcc warnings.
23528         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23529         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23530         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23532 2012-04-21  Bruno Haible  <bruno@clisp.org>
23534         users.txt: Update.
23535         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23536         switched from CVS to git, bzr, or svn.
23538 2012-04-21  Bruno Haible  <bruno@clisp.org>
23540         Large File Support for native Windows platforms.
23542         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23543         * modules/largefile (configure.ac): Require gl_LARGEFILE.
23545         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
23546         type.
23547         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
23548         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
23549         * doc/posix-headers/sys_types.texi: Mention the effect of the
23550         'largefile' module.
23552         * lib/fcntl.in.h: Add comments about off_t.
23553         * modules/fcntl-h (Depends-on): Add sys_types.
23555         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
23556         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
23557         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
23558         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
23559         * modules/unistd (Depends-on): Add sys_types.
23560         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
23562         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
23563         instead of lseek.
23564         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
23565         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
23566         * modules/lseek (Depends-on): Add sys_types.
23568         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
23569         msvc-nothrow.h.
23570         (SetFileSize): New function.
23571         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
23572         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
23573         if Large File Support is requested.
23574         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
23575         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
23577         * lib/stdio.in.h: Add comments about off_t.
23578         * modules/stdio (Depends-on): Add sys_types.
23580         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
23581         instead of ftello.
23582         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
23583         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
23584         (gl_PREREQ_FTELLO): New macro.
23585         * modules/ftello (Depends-on): Add sys_types.
23586         (configure.ac): Incoke gl_PREREQ_FTELLO.
23588         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
23589         instead of fseeko.
23590         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
23591         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
23592         (gl_PREREQ_FSEEKO): New macro.
23593         * modules/fseeko (Depends-on): Add sys_types.
23594         (configure.ac): Invoke gl_PREREQ_FSEEKO.
23596         * lib/sys_stat.in.h: Add comments about off_t.
23597         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
23598         64-bit integer for st_size in 'struct stat'.
23599         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
23600         Define _GL_WINDOWS_64_BIT_ST_SIZE.
23601         * modules/sys_stat (Depends-on): Add sys_types.
23602         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
23604         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
23605         instead of stat or _stat.
23607         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
23608         'struct _stati64' instead of fstat and 'struct stat'.
23609         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
23610         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
23612         Reported by Ray Satiro <raysatiro@yahoo.com>.
23614 2012-04-19  Eric Blake  <eblake@redhat.com>
23616         bootstrap: accommodate older libtool
23617         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
23618         Reported by Daniel P. Berrange.
23620 2012-04-19  Jim Meyering  <meyering@redhat.com>
23622         announce-gen: avoid failure due to lack of Digest::SHA1
23623         Even with the preferred Digest::SHA available, this script
23624         would fail when the backup module, Digest::SHA1, was not installed.
23625         * build-aux/announce-gen: Quote the conditional use of "use".
23626         Reported by Reuben Thomas in:
23627         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
23629         bootstrap: don't let a user's CDPATH setting affect this script
23630         When CDPATH is set, cd will sometimes generate output.
23631         When "cd" is run in a subshell whose output matters, that
23632         surprising-to-some output can cause malfunction.
23633         Unsetting CDPATH turns off this shell "feature."
23634         * build-aux/bootstrap (CDPATH): Unset.
23635         Reported by Reuben Thomas in:
23636         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
23637         and inspired by his patch here:
23638         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
23640 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
23641         and Jim Meyering  <meyering@redhat.com>
23643         maint.mk: catch "see @xref{}" and similar
23644         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
23645         prohibit "See also @xref{", "Also see @pxref{", and similar.
23647 2012-04-16  Jim Meyering  <meyering@redhat.com>
23649         bootstrap: really use gnulib's po/Makefile.in.in
23650         * build-aux/bootstrap: Correct the source file name in previous change.
23651         Reported by Akim Demaille.
23653         configmake: correct minor inconsistency in Makefile rule
23654         * modules/configmake (Makefile.am): All other rules like this one
23655         run the final "mv -f ..." in the same backslash-continued command
23656         as the one that does everything else.  This one put the mv -f ...
23657         command on a separate, non-backslash-continued line.
23658         Make it like the others.
23660         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
23661         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
23662         the one from gettext.  Reported by Akim Demaille.
23664 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
23666         Fix recursion of install-* into po directories.
23667         Bison's install-pdf bug reported by Hans Aberg at
23668         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
23669         * build-aux/po/Makefile.in.in (install-dvi, install-html)
23670         (install-info, install-pdf, install-ps): New targets.
23672 2012-04-16  Jim Meyering  <meyering@redhat.com>
23674         maint: avoid spurious "make sc_maint" failure
23675         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
23676         exempt all *.class file names, for lib/javaversion.class.
23678 2012-04-15  Bruno Haible  <bruno@clisp.org>
23680         lseek: Make configure test independent of environment.
23681         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
23682         Windows, we know that lseek() on pipes is broken; skip the runtime
23683         test.
23685 2012-04-14  Bruno Haible  <bruno@clisp.org>
23687         stat: Bypass buggy override in mingw64.
23688         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
23689         * lib/stat.c (stat) [mingw64]: Define to _stat.
23690         * doc/posix-functions/stat.texi: Mention mingw64 bug.
23692 2012-04-14  Bruno Haible  <bruno@clisp.org>
23694         pathmax: Fix compilation error on MSVC 9.
23695         * modules/pathmax (Depends-on): Add unistd.
23697 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23699         README: document pointer comparison assumption
23700         * README (Portability guidelines): Document assumption about
23701         pointer comparisons, in response to a recent bug-gnulib comment by
23702         Jeffrey Kegler.
23704 2012-04-12  Bruno Haible  <bruno@clisp.org>
23706         Tests for module 'getrusage'.
23707         * modules/getrusage-tests: New file.
23708         * tests/test-getrusage.c: New file.
23710         New module 'getrusage'.
23711         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
23712         warn-on-use.h.
23713         (getrusage): New declaration.
23714         * lib/getrusage.c: New file.
23715         * m4/getrusage.m4: New file.
23716         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
23717         is declared.
23718         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
23719         HAVE_GETRUSAGE.
23720         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
23721         snippet/c++defs, snippet/warn-on-use.
23722         (Makefile.am): Update generation of sys/resource.h. Substitute
23723         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
23724         * modules/getrusage: New file.
23725         * doc/posix-functions/getrusage.texi: Mention the new module.
23727 2012-04-12  Bruno Haible  <bruno@clisp.org>
23729         Tests for module 'sys_resource'.
23730         * modules/sys_resource-tests: New file.
23731         * tests/test-sys_resource.c: New file.
23733         New module 'sys_resource'.
23734         * lib/sys_resource.in.h: New file.
23735         * m4/sys_resource_h.m4: New file.
23736         * modules/sys_resource: New file.
23737         * doc/posix-headers/sys_resource.texi: Mention the new module.
23739 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
23741         ioctl: Fix compilation error on mingw.
23742         * lib/ioctl.c: Include <windows.h>.
23743         Also reported by Ray Satiro <raysatiro@yahoo.com>.
23745 2012-04-04  Jim Meyering  <meyering@redhat.com>
23747         regex: correct #pragma guard expression
23748         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
23749         not 4.3.  Correct its cpp guard expression.
23751 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23753         regex: remove unnecessary type punning
23754         Problem reported by Vladimir Serbinenko in
23755         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
23756         * lib/regex.h (struct re_pattern_buffer): Change the type of
23757         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
23758         Fix comment to match code.
23759         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
23760         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
23761         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23762         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
23763         (set_regs):
23764         Omit no-longer-necessary casts.
23766 2012-04-03  Bruno Haible  <bruno@clisp.org>
23768         Tests for module 'ilogbl'.
23769         * modules/ilogbl-tests: New file.
23770         * tests/test-ilogbl.c: New file.
23772         New module 'ilogbl'.
23773         * lib/math.in.h (ilogbl): New declaration.
23774         * lib/ilogbl.c: New file.
23775         * m4/ilogbl.m4: New file.
23776         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
23777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
23778         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
23779         Split sed invocation, to avoid the limit of 100 substitutions of
23780         HP-UX 'sed'.
23781         * modules/ilogbl: New file.
23782         * tests/test-math-c++.cc: Check the declaration of ilogbl.
23783         * doc/posix-functions/ilogbl.texi: Mention the new module.
23785 2012-04-03  Bruno Haible  <bruno@clisp.org>
23787         Tests for module 'ilogbf'.
23788         * modules/ilogbf-tests: New file.
23789         * tests/test-ilogbf.c: New file.
23791         New module 'ilogbf'.
23792         * lib/math.in.h (ilogbf): New declaration.
23793         * lib/ilogbf.c: New file.
23794         * m4/ilogbf.m4: New file.
23795         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
23796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
23797         REPLACE_ILOGBF.
23798         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
23799         REPLACE_ILOGBF.
23800         * modules/ilogbf: New file.
23801         * tests/test-math-c++.cc: Check the declaration of ilogbf.
23802         * doc/posix-functions/ilogbf.texi: Mention the new module.
23804 2012-04-03  Bruno Haible  <bruno@clisp.org>
23806         Tests for module 'ilogb'.
23807         * modules/ilogb-tests: New file.
23808         * tests/test-ilogb.c: New file.
23809         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
23810         tests/test-logb-ieee.h.
23812         New module 'ilogb'.
23813         * lib/math.in.h (ilogb): New declaration.
23814         * lib/ilogb.c: New file.
23815         * m4/ilogb.m4: New file.
23816         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
23817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
23818         REPLACE_ILOGB.
23819         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
23820         REPLACE_ILOGB.
23821         * modules/ilogb: New file.
23822         * tests/test-math-c++.cc: Check the declaration of ilogb.
23823         * doc/posix-functions/ilogb.texi: Mention the new module.
23825 2012-04-03  Bruno Haible  <bruno@clisp.org>
23827         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
23828         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
23829         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
23830         (main): Check their values.
23831         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
23832         problem.
23834 2012-04-03  Bruno Haible  <bruno@clisp.org>
23836         Tests for module 'logbl-ieee'.
23837         * modules/logbl-ieee-tests: New file.
23838         * tests/test-logbl-ieee.c: New file.
23840         New module 'logbl-ieee'.
23841         * modules/logbl-ieee: New file.
23843         Tests for module 'logb-ieee'.
23844         * modules/logb-ieee-tests: New file.
23845         * tests/test-logb-ieee.c: New file.
23847         New module 'logb-ieee'.
23848         * modules/logb-ieee: New file.
23850         Tests for module 'logbf-ieee'.
23851         * modules/logbf-ieee-tests: New file.
23852         * tests/test-logbf-ieee.c: New file.
23853         * tests/test-logb-ieee.h: New file.
23855         New module 'logbf-ieee'.
23856         * modules/logbf-ieee: New file.
23858 2012-04-03  Bruno Haible  <bruno@clisp.org>
23860         Tests for module 'logbl'.
23861         * modules/logbl-tests: New file.
23862         * tests/test-logbl.c: New file.
23864         New module 'logbl'.
23865         * lib/math.in.h (logbl): New declaration.
23866         * lib/logbl.c: New file.
23867         * m4/logbl.m4: New file.
23868         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
23869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
23870         REPLACE_LOGBL.
23871         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
23872         REPLACE_LOGBL.
23873         * modules/logbl: New file.
23874         * tests/test-math-c++.cc: Check the declaration of logbl.
23875         * doc/posix-functions/logbl.texi: Mention the new module.
23877 2012-04-02  Bruno Haible  <bruno@clisp.org>
23879         Tests for module 'logbf'.
23880         * modules/logbf-tests: New file.
23881         * tests/test-logbf.c: New file.
23883         New module 'logbf'.
23884         * lib/math.in.h (logbf): New declaration.
23885         * lib/logbf.c: New file.
23886         * m4/logbf.m4: New file.
23887         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
23888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
23889         REPLACE_LOGBF.
23890         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
23891         REPLACE_LOGBF.
23892         * modules/logbf: New file.
23893         * tests/test-math-c++.cc: Check the declaration of logbf.
23894         * doc/posix-functions/logbf.texi: Mention the new module.
23896 2012-04-02  Bruno Haible  <bruno@clisp.org>
23898         logb tests: More tests.
23899         * tests/test-logb.h: New file, based on tests/test-logb.c and
23900         tests/test-frexp.h.
23901         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
23902         (main): Just invoke test_function.
23903         * modules/logb-tests (Files): Add tests/test-logb.h,
23904         tests/minus-zero.h, tests/randomd.c.
23905         (Makefile.am): Add randomd.c to test_logb_SOURCES.
23907         logb: Provide replacement and workarounds.
23908         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
23909         is 1.
23910         * lib/logb.c: New file.
23911         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
23912         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
23913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
23914         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
23915         * modules/logb (Files): Add lib/logb.c.
23916         (Depends-on): Add isfinite, frexp, isnand.
23917         (configure.ac): Compile the replacement code logb.c if needed.
23918         * tests/test-math-c++.cc: Check the declaration of logb.
23919         * doc/posix-functions/logb.texi: Mention the replacement and the bug
23920         with subnormal numbers.
23922 2012-04-02  Bruno Haible  <bruno@clisp.org>
23924         log10* tests: Speed up.
23925         * tests/test-log10.h (test_function): Reduce amount of random numbers
23926         to test.
23928 2012-04-01  Bruno Haible  <bruno@clisp.org>
23930         logf-ieee: Fix test whether logf works.
23931         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
23933 2012-04-01  Bruno Haible  <bruno@clisp.org>
23935         log10l: Work around log10l-ieee test failure on IRIX 6.5.
23936         * lib/log10l.c: Include <float.h>
23937         (log10l): On IRIX, normalize the +Infinity value.
23938         * modules/log10l (Depends-on): Add 'float'.
23939         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
23940         +Infinity.
23942         log10f-ieee: Work around test failure on NetBSD 5.1.
23943         * m4/log10f-ieee.m4: New file.
23944         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
23945         test whether log10f works with a negative argument. Replace it if not.
23946         * lib/log10f.c (log10f): For negative arguments, return NaN.
23947         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
23948         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
23949         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
23951         log10f-ieee: Work around test failure on Solaris 9.
23952         * modules/log10f-ieee (Depends-on): Add log10-ieee.
23953         (configure.ac): Require gl_FUNC_LOG10F.
23955         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
23956         * m4/log10-ieee.m4: New file.
23957         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
23958         whether log10 works with a negative argument. Replace it if not.
23959         * lib/log10.c (log10): For negative arguments, return NaN.
23960         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
23961         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
23962         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
23964         Tests for module 'log10l-ieee'.
23965         * modules/log10l-ieee-tests: New file.
23966         * tests/test-log10l-ieee.c: New file.
23968         New module 'log10l-ieee'.
23969         * modules/log10l-ieee: New file.
23971         Tests for module 'log10-ieee'.
23972         * modules/log10-ieee-tests: New file.
23973         * tests/test-log10-ieee.c: New file.
23975         New module 'log10-ieee'.
23976         * modules/log10-ieee: New file.
23978         Tests for module 'log10f-ieee'.
23979         * modules/log10f-ieee-tests: New file.
23980         * tests/test-log10f-ieee.c: New file.
23981         * tests/test-log10-ieee.h: New file.
23983         New module 'log10f-ieee'.
23984         * modules/log10f-ieee: New file.
23986 2012-04-01  Bruno Haible  <bruno@clisp.org>
23988         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
23989         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
23990         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
23991         workaround.
23992         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
23993         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
23994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
23995         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
23996         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
23997         (Depends-on): Update conditions.
23998         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
23999         IRIX 6.5, OSF/1 5.1 problems.
24001 2012-04-01  Bruno Haible  <bruno@clisp.org>
24003         log10f: Work around OSF/1 5.1 bug.
24004         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
24005         * lib/log10f.c (log10f): If logf exists, use it and provide just the
24006         workaround.
24007         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
24008         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
24009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
24010         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
24011         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
24012         (Depends-on): Update conditions.
24013         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
24015 2012-04-01  Bruno Haible  <bruno@clisp.org>
24017         log10: Work around OSF/1 5.1 bug.
24018         * lib/math.in.h (log10): New declaration.
24019         * lib/log10.c: New file.
24020         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
24021         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
24022         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
24023         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
24024         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
24025         * modules/log10 (Files): Add lib/log10.c.
24026         (Depends-on): Add math.
24027         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
24028         * tests/test-math-c++.cc: Check the declaration of log10.
24029         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
24031 2012-03-31  Bruno Haible  <bruno@clisp.org>
24033         log10l tests: More tests.
24034         * modules/log10l-tests (Files): Add tests/test-log10l.h,
24035         tests/minus-zero.h, tests/randoml.c.
24036         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
24037         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
24038         (main): Invoke test_function.
24040         log10f tests: More tests.
24041         * modules/log10f-tests (Files): Add tests/test-log10.h,
24042         tests/minus-zero.h, tests/randomf.c.
24043         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
24044         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
24045         (main): Invoke test_function.
24047         log10 tests: More tests.
24048         * tests/test-log10.h: New file.
24049         * modules/log10-tests (Files): Add tests/test-log10.h,
24050         tests/minus-zero.h, tests/randomd.c.
24051         (Makefile.am): Add randomd.c to test_log10_SOURCES.
24052         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
24053         (main): Invoke test_function.
24055 2012-03-31  Simon Josefsson  <simon@josefsson.org>
24057         fflush: Fix syntax error.
24058         * lib/fflush.c: Include unused-parameter.h, needed for
24059         _GL_UNUSED_PARAMETER.
24060         * modules/fflush (Depends-on): Add snippet/unused-parameter.
24062 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24064         regex: pacify GCC when compiling GRUB
24065         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
24066         a diagnostic.  Reported by Vladimir Serbinenko in
24067         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
24069 2012-03-29  Eric Blake  <eblake@redhat.com>
24071         stdio: don't assume gets any more
24072         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
24073         support.
24074         * modules/stdio (Makefile.am): Likewise.
24075         * lib/stdio-read.c (gets): Likewise.
24076         * tests/test-stdio-c++.cc: Likewise.
24077         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
24078         * lib/stdio.in.h (gets): Make warning occur in more places.
24079         * doc/posix-functions/gets.texi (gets): Update documentation.
24080         Reported by Christer Solskogen.
24082         maint.mk: fix syntax checks without exclusions
24083         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
24084         Reported by Daniel P. Berrange.
24086         strerror_r: avoid compiler warning
24087         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
24088         level.
24090         fflush: avoid compiler warning
24091         * lib/fflush.c (update_fpos_cache): Mark variables that are
24092         potentially unused.
24094 2012-03-25  Bruno Haible  <bruno@clisp.org>
24096         Tests for module 'localeconv'.
24097         * modules/localeconv-tests: New file.
24098         * tests/test-localeconv.c: New file.
24100         New module 'localeconv'.
24101         * lib/locale.in.h (localeconv): New declaration.
24102         * lib/localeconv.c: New file.
24103         * m4/localeconv.m4: New file.
24104         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
24105         REPLACE_LOCALECONV.
24106         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
24107         REPLACE_LOCALECONV.
24108         * modules/localeconv: New file.
24109         * modules/nl_langinfo (Depends-on): Add localeconv.
24110         * modules/human (Depends-on): Likewise.
24111         * doc/posix-functions/localeconv.texi: Mention the new module.
24113 2012-03-25  Bruno Haible  <bruno@clisp.org>
24115         locale: Provide a complete 'struct lconv'.
24116         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24117         'struct lconv' does not contain int_p_cs_precedes.
24118         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24119         * doc/posix-headers/locale.texi: Update.
24121         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
24122         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
24123         * doc/posix-headers/locale.texi: Update.
24125         locale: Provide a working 'struct lconv'.
24126         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
24127         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24128         'struct lconv' does not even contain decimal_point.
24129         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
24130         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
24131         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24132         * doc/posix-headers/locale.texi: Mention the problems with
24133         'struct lconv'.
24134         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24136 2012-03-24  Bruno Haible  <bruno@clisp.org>
24138         Enable common subexpression optimization in GCC.
24139         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
24140         macros.
24141         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
24142         GCC attribute 'const'.
24143         (uc_locale_language): Declare with GCC attribute 'pure'.
24144         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
24145         with GCC attribute 'const'.
24146         * lib/unictype.in.h (uc_is_general_category_withtable,
24147         uc_combining_class, uc_combining_class_name,
24148         uc_combining_class_long_name, uc_bidi_class_name,
24149         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
24150         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
24151         uc_decimal_value, uc_digit_value, uc_numeric_value,
24152         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
24153         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
24154         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
24155         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
24156         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
24157         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
24158         Declare with GCC attribute 'const'.
24159         (uc_general_category_name, uc_general_category_long_name,
24160         uc_general_category_byname, uc_general_category,
24161         uc_is_general_category, uc_combining_class_byname,
24162         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
24163         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
24164         Declare with GCC attribute 'pure'.
24165         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
24166         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
24167         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
24168         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
24169         with GCC attribute 'pure'.
24170         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
24171         'const'.
24172         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
24173         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
24174         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
24175         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
24176         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
24177         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
24178         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
24179         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
24180         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
24181         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
24182         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
24183         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
24184         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
24185         GCC attribute 'pure'.
24186         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
24187         'const'.
24188         * lib/uniwidth.in.h (uc_width): Simplify declaration.
24189         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
24190         u32_strwidth): Declare with GCC attribute 'pure'.
24192         Enable common subexpression optimization in GCC.
24193         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24194         (alphasort): Declare with GCC attribute 'pure'.
24195         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24196         (atoll): Declare with GCC attribute 'pure'.
24197         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24198         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24199         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
24200         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24201         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
24202         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
24203         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
24205 2012-03-24  Bruno Haible  <bruno@clisp.org>
24207         gnulib-tool: Avoid unintended error output from 'cmp'.
24208         * gnulib-tool (func_add_file, func_update_file, func_import): Use
24209         "cmp -s", not "cmp > /dev/null".
24211 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
24213         gnulib-tool: fix imprecise comments w.r.t. an automake bug
24215         It's not just Automake versions < 1.9b that creates an empty
24216         pkgdatadir at installation time if pkgdata_DATA is specified
24217         to empty; modern automake versions do this as well, at least
24218         until automake 1.11.4 (not yet released at the moment of writing,
24219         but soon to appear).  That behaviour was generally considered a
24220         feature rather than a bug, at least until this discussion:
24221         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
24223         See also automake bugs #10997 and #11030.
24225         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
24226         reference to relevant automake bug numbers.
24227         (func_emit_tests_Makefile_am): Likewise.
24229 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24231         announce-gen: use Digest::SHA when possible
24232         * build-aux/announce-gen: Use Digest::SHA when possible, falling
24233         back to Digest::SHA1 if necessary.
24235 2012-03-20  Jim Meyering  <meyering@redhat.com>
24237         tests: avoid gcc warnings about argv vs. const initializers
24238         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
24239         warnings about discarding 'const' qualifier from pointer target type.
24240         * tests/test-posix_spawn2.c (main): Likewise.
24242 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24244         README-release: simplify slightly
24245         * top/README-release: Run "git checkout master" only once.
24247 2012-03-15  Mark Wielaard  <mark@klomp.org>
24249         git-merge-changelog: add specific example on how to use with hg.
24250         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
24252 2012-03-18  Mark Wielaard  <mark@klomp.org>
24254         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
24256 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
24258         git-version-gen: don't let "prefix" envvar cause trouble
24259         * build-aux/git-version-gen (prefix): Initialize properly,
24260         so as not to use a value specified via the environment.
24261         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
24263 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24265         regex: diagnose too-large repeat counts in EREs
24266         Previously, the code did not diagnose the too-large repeat count
24267         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
24268         as if it were 'b\{1000000000}', which is unexpected.
24269         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
24270         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
24271         is a reasonable one for this problem.  Another option would be to
24272         create a new REG_OVERFLOW error for repeat counts that are too large.
24273         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
24274         count is too large, so that the caller can distinguish the two cases.
24275         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
24276         "Too large" return code, and that repeat counts are one example of this.
24278 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24280         doc: some glibc x32 integer width issues
24281         * doc/posix-headers/sys_types.texi (sys/types.h):
24282         * doc/posix-headers/time.texi (time.h):
24283         Mention that glibc x32 does not conform to POSIX in a couple of
24284         areas related to integer widths.
24286 2012-03-15  Bruno Haible  <bruno@clisp.org>
24288         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
24289         * lib/fma.c (VOLATILE): New macro.
24290         (FUNC): Use it to work around a GCC compiler bug.
24292 2012-03-13  Bruno Haible  <bruno@clisp.org>
24294         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24295         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24296         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24297         REPLACE_HYPOTL to 1.
24298         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24300 2012-03-13  Bruno Haible  <bruno@clisp.org>
24302         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24303         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24304         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24305         REPLACE_REMAINDERL to 1.
24306         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24307         bug.
24309 2012-03-13  Bruno Haible  <bruno@clisp.org>
24311         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24312         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24313         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24314         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24315         too big rounding errors.
24316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24317         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24318         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24319         (Depends-on): Update conditions.
24320         * tests/test-sqrtl.c (my_ldexpl): New function.
24321         (main): Add test of a particular value.
24322         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24324 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24326         doc: Update timer_* platform portability notes.
24327         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24328         that always return ENOSYS.
24329         * doc/posix-functions/timer_delete.texi: Likewise.
24330         * doc/posix-functions/timer_gettime.texi: Likewise.
24331         * doc/posix-functions/timer_settime.texi: Likewise.
24333 2012-03-13  Bruno Haible  <bruno@clisp.org>
24335         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24336         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24337         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24338         REPLACE_CBRTL to 1.
24339         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24341 2012-03-13  Bruno Haible  <bruno@clisp.org>
24343         remainderl: Avoid compilation error on AIX >= 5.2.
24344         * lib/math.in.h (remainderl): Undefine macro from the system header.
24346 2012-03-13  Bruno Haible  <bruno@clisp.org>
24348         Avoid compilation errors with MSVC option -fp:strict.
24349         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24350         * lib/cbrtf.c: Likewise.
24351         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24353 2012-03-12  Bruno Haible  <bruno@clisp.org>
24355         uninorm: Don't crash in out-of-memory conditions.
24356         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24357         gracefully.
24358         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24359         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24361 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24363         quote: fix syntax-check
24364         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24365         also exports quote_quoting_options.
24367 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24369         Collapse list of copyright years to ranges.  See
24370         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24371         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24372         build-aux/csharpexec.sh.in, build-aux/gnupload,
24373         build-aux/install-reloc, build-aux/javacomp.sh.in,
24374         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24375         build-aux/move-if-change, build-aux/reloc-ldflags,
24376         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24378 2012-03-11  Bruno Haible  <bruno@clisp.org>
24380         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24381         * m4/log2f-ieee.m4: New file.
24382         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24383         whether log2f works with a minus zero argument. Replace it if not.
24384         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24385         (Depends-on): Add log2-ieee.
24386         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24387         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24389         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24390         * m4/log2-ieee.m4: New file.
24391         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24392         whether log2 works with a minus zero argument. Replace it if not.
24393         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24394         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24395         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24397         Tests for module 'log2l-ieee'.
24398         * modules/log2l-ieee-tests: New file.
24399         * tests/test-log2l-ieee.c: New file.
24401         New module 'log2l-ieee'.
24402         * modules/log2l-ieee: New file.
24404         Tests for module 'log2-ieee'.
24405         * modules/log2-ieee-tests: New file.
24406         * tests/test-log2-ieee.c: New file.
24408         New module 'log2-ieee'.
24409         * modules/log2-ieee: New file.
24411         Tests for module 'log2f-ieee'.
24412         * modules/log2f-ieee-tests: New file.
24413         * tests/test-log2f-ieee.c: New file.
24414         * tests/test-log2-ieee.h: New file.
24416         New module 'log2f-ieee'.
24417         * modules/log2f-ieee: New file.
24419 2012-03-11  Bruno Haible  <bruno@clisp.org>
24421         Tests for module 'log2l'.
24422         * modules/log2l-tests: New file.
24423         * tests/test-log2l.c: New file.
24425         New module 'log2l'.
24426         * lib/math.in.h (log2l): New declaration.
24427         * lib/log2l.c: New file.
24428         * m4/log2l.m4: New file.
24429         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24431         REPLACE_LOG2L.
24432         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24433         REPLACE_LOG2L.
24434         * modules/log2l: New file.
24435         * tests/test-math-c++.cc: Check the declaration of log2l.
24436         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24437         and OSF/1 problems.
24439 2012-03-11  Bruno Haible  <bruno@clisp.org>
24441         Tests for module 'log2f'.
24442         * modules/log2f-tests: New file.
24443         * tests/test-log2f.c: New file.
24445         New module 'log2f'.
24446         * lib/math.in.h (log2f): New declaration.
24447         * lib/log2f.c: New file.
24448         * m4/log2f.m4: New file.
24449         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24451         REPLACE_LOG2F.
24452         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24453         REPLACE_LOG2F.
24454         * modules/log2f: New file.
24455         * tests/test-math-c++.cc: Check the declaration of log2f.
24456         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24457         and OSF/1 and Cygwin problems.
24459 2012-03-11  Bruno Haible  <bruno@clisp.org>
24461         Tests for module 'log2'.
24462         * modules/log2-tests: New file.
24463         * tests/test-log2.c: New file.
24464         * tests/test-log2.h: New file.
24466         New module 'log2'.
24467         * lib/math.in.h (log2): New declaration.
24468         * lib/log2.c: New file.
24469         * m4/log2.m4: New file.
24470         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24471         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24472         REPLACE_LOG2.
24473         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24474         REPLACE_LOG2.
24475         * modules/log2: New file.
24476         * tests/test-math-c++.cc: Check the declaration of log2.
24477         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24478         and OSF/1 and Cygwin problems.
24480 2012-03-11  Bruno Haible  <bruno@clisp.org>
24482         exp2* tests: More tests.
24483         * tests/test-exp2.h (test_function): Test all integral arguments that
24484         don't need to overflow or denormalized numbers.
24485         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24486         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24487         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24489 2012-03-10  Bruno Haible  <bruno@clisp.org>
24491         log1pl-ieee: Work around test failure on AIX 7.1.
24492         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24494         log1pl-ieee: Work around test failure on IRIX 6.5.
24495         * m4/log1pl-ieee.m4: New file.
24496         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24497         test whether log1pl works with a minus zero argument. Replace it if
24498         not.
24499         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24501         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24502         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24503         (Depends-on): Update conditions.
24504         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24505         m4/signbit.m4.
24506         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24507         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24509         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24510         * m4/log1pf-ieee.m4: New file.
24511         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24512         test whether log1pf works with a minus zero argument. Replace it if
24513         not.
24514         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24515         m4/signbit.m4.
24516         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24517         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24519         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24520         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24521         (configure.ac): Require gl_FUNC_LOG1PF.
24523         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24524         * m4/log1p-ieee.m4: New file.
24525         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24526         whether log1p works with a minus zero argument. Replace it if not.
24527         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24529         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24530         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24531         (Depends-on): Update conditions.
24532         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24533         m4/signbit.m4.
24534         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24535         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24537         Tests for module 'log1pl-ieee'.
24538         * modules/log1pl-ieee-tests: New file.
24539         * tests/test-log1pl-ieee.c: New file.
24541         New module 'log1pl-ieee'.
24542         * modules/log1pl-ieee: New file.
24544         Tests for module 'log1p-ieee'.
24545         * modules/log1p-ieee-tests: New file.
24546         * tests/test-log1p-ieee.c: New file.
24548         New module 'log1p-ieee'.
24549         * modules/log1p-ieee: New file.
24551         Tests for module 'log1pf-ieee'.
24552         * modules/log1pf-ieee-tests: New file.
24553         * tests/test-log1pf-ieee.c: New file.
24554         * tests/test-log1p-ieee.h: New file.
24556         New module 'log1pf-ieee'.
24557         * modules/log1pf-ieee: New file.
24559 2012-03-10  Bruno Haible  <bruno@clisp.org>
24561         Tests for module 'log1pl'.
24562         * modules/log1pl-tests: New file.
24563         * tests/test-log1pl.c: New file.
24565         New module 'log1pl'.
24566         * lib/math.in.h (log1pl): New declaration.
24567         * lib/log1pl.c: New file.
24568         * m4/log1pl.m4: New file.
24569         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
24570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
24571         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
24572         * modules/log1pl: New file.
24573         * tests/test-math-c++.cc: Check the declaration of log1pl.
24574         * doc/posix-functions/log1pl.texi: Mention the new module.
24576 2012-03-10  Bruno Haible  <bruno@clisp.org>
24578         Tests for module 'log1pf'.
24579         * modules/log1pf-tests: New file.
24580         * tests/test-log1pf.c: New file.
24582         New module 'log1pf'.
24583         * lib/math.in.h (log1pf): New declaration.
24584         * lib/log1pf.c: New file.
24585         * m4/log1pf.m4: New file.
24586         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
24587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
24588         REPLACE_LOG1PF.
24589         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
24590         REPLACE_LOG1PF.
24591         * modules/log1pf: New file.
24592         * tests/test-math-c++.cc: Check the declaration of log1pf.
24593         * doc/posix-functions/log1pf.texi: Mention the new module.
24595 2012-03-10  Bruno Haible  <bruno@clisp.org>
24597         log1p tests: More tests.
24598         * tests/test-log1p.h: New file.
24599         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
24600         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
24601         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
24602         (main): Invoke test_function.
24604         log1p: Provide replacement for Minix and MSVC.
24605         * lib/math.in.h (log1p): New declaration.
24606         * lib/log1p.c: New file.
24607         * m4/log1p.m4: New file.
24608         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
24609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
24610         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
24611         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
24612         (Depends-on): Add math, isnand, log, round.
24613         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
24614         HAVE_LOG1P is 0.
24615         * tests/test-math-c++.cc: Check the declaration of log1p.
24616         * doc/posix-functions/log1p.texi: Mention the replacement.
24618 2012-03-10  Bruno Haible  <bruno@clisp.org>
24620         math tests: Small simplification.
24621         * tests/test-exp.h (test_function): Use the same err_bound for
24622         'double' on platforms with sizeof (long double) == sizeof (double)
24623         than on platforms with sizeof (long double) > sizeof (double).
24624         * tests/test-exp2.h (test_function): Likewise.
24625         * tests/test-expm1.h (test_function): Likewise.
24626         * tests/test-log.h (test_function): Likewise.
24628 2012-03-10  Bruno Haible  <bruno@clisp.org>
24630         Fix some comments.
24631         * lib/expl.c: Fix an ambiguous comment.
24632         * lib/expm1.c: Likewise.
24633         * lib/expm1l.c: Likewise.
24634         * lib/exp2.c: Likewise.
24635         * lib/exp2l.c: Likewise.
24637 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
24639         regex: allow inclusion of <regex.h> before <limits.h>
24640         Without this patch, portable programs had to include <limits.h> before
24641         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
24642         I ran into this problem with a test version of GNU grep on Solaris 8.
24643         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
24644         This is done conditionally so that this change can be merged
24645         back to glibc.
24646         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
24647         using the included regex.
24649         fts: depend on fdopendir
24650         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
24651         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
24652         problem was introduced when fdopendir was split out.
24654 2012-03-10  Bruno Haible  <bruno@clisp.org>
24656         Remove unused variables.
24657         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
24658         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24660 2012-03-10  Bruno Haible  <bruno@clisp.org>
24662         isnanf-nolibm: Fix last commit.
24663         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
24665         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
24666         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
24668 2012-03-10  Bruno Haible  <bruno@clisp.org>
24670         logf-ieee: Work around test failure on NetBSD 5.1.
24671         * m4/logf-ieee.m4: New file.
24672         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
24673         whether logf works with a negative argument. Replace it if not.
24674         * lib/logf.c (logf): For negative arguments, return NaN.
24675         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
24676         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
24677         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
24679         logf-ieee: Work around test failure on Solaris 9.
24680         * modules/logf-ieee (Depends-on): Add log-ieee.
24681         (configure.ac): Require gl_FUNC_LOGF.
24683         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24684         * m4/log-ieee.m4: New file.
24685         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
24686         log works with a negative argument. Replace it if not.
24687         * lib/log.c (log): For negative arguments, return NaN.
24688         * modules/log-ieee (Files): Add m4/log-ieee.m4.
24689         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
24690         * doc/posix-functions/log.texi: Mention the log-ieee module.
24692         Tests for module 'logl-ieee'.
24693         * modules/logl-ieee-tests: New file.
24694         * tests/test-logl-ieee.c: New file.
24696         New module 'logl-ieee'.
24697         * modules/logl-ieee: New file.
24699         Tests for module 'log-ieee'.
24700         * modules/log-ieee-tests: New file.
24701         * tests/test-log-ieee.c: New file.
24703         New module 'log-ieee'.
24704         * modules/log-ieee: New file.
24706         Tests for module 'logf-ieee'.
24707         * modules/logf-ieee-tests: New file.
24708         * tests/test-logf-ieee.c: New file.
24709         * tests/test-log-ieee.h: New file.
24711         New module 'logf-ieee'.
24712         * modules/logf-ieee: New file.
24714 2012-03-10  Bruno Haible  <bruno@clisp.org>
24716         log: Fix bug introduced on 2012-03-09.
24717         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
24719 2012-03-10  Pádraig Brady  <P@draigBrady.com>
24721         timer-time: link explicitly with pthreads on glibc
24722         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
24723         to support static linking, when newer glibc is
24724         detected, as that contains pthread emulation of
24725         POSIX timer functions where required.
24726         * modules/timer-time: Depend on threadlib to
24727         pull in the appropriate library to link.
24729 2012-03-10  Bruno Haible  <bruno@clisp.org>
24731         log* tests: More tests.
24732         * tests/test-log.h: New file.
24733         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
24734         (main): Invoke test_function.
24735         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
24736         (main): Invoke test_function.
24737         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
24738         (main): Invoke test_function.
24739         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24740         tests/randomd.c.
24741         (Makefile.am): Add randomd.c to test_log_SOURCES.
24742         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24743         tests/randomf.c.
24744         (Makefile.am): Add randomf.c to test_logf_SOURCES.
24745         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24746         tests/randoml.c.
24747         (Depends-on): Add 'float'.
24748         (Makefile.am): Add randoml.c to test_logl_SOURCES.
24750 2012-03-09  Bruno Haible  <bruno@clisp.org>
24752         logl: Work around OSF/1 5.1 bug.
24753         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
24754         * lib/logl.c (logl): If logl exists, use it and provide just the
24755         workaround.
24756         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
24757         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
24758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
24759         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
24760         * modules/logl (configure.ac): Consider REPLACE_LOGL.
24761         (Depends-on): Update conditions.
24762         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
24764 2012-03-09  Bruno Haible  <bruno@clisp.org>
24766         logf: Work around OSF/1 5.1 bug.
24767         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
24768         * lib/logf.c (logf): If logf exists, use it and provide just the
24769         workaround.
24770         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
24771         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
24772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
24773         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
24774         * modules/logf (configure.ac): Consider REPLACE_LOGF.
24775         (Depends-on): Update conditions.
24776         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
24778 2012-03-09  Bruno Haible  <bruno@clisp.org>
24780         log: Work around OSF/1 5.1 bug.
24781         * lib/math.in.h (log): New declaration.
24782         * lib/log.c: New file.
24783         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
24784         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
24785         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
24786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
24787         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
24788         * modules/log (Files): Add lib/log.c.
24789         (Depends-on): Add math.
24790         (configure.ac): If REPLACE_LOG is 1, compile an override.
24791         * tests/test-math-c++.cc: Check the declaration of log.
24792         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
24794 2012-03-09  Jim Meyering  <meyering@redhat.com>
24796         readtokens.c: adjust wording in a comment
24797         * lib/readtokens.c: Insert omitted "that" in a comment.
24799 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24801         modechange: add notations +40, 00440, etc.
24802         * lib/modechange.c (mode_compile): Support new notations
24803         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
24805 2012-03-08  Bruno Haible  <bruno@clisp.org>
24807         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
24808         * m4/exp2l-ieee.m4: New file.
24809         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
24810         test whether exp2l works with a NaN argument and with a negative
24811         infinity argument. Replace it if not.
24812         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
24813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
24814         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
24815         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
24816         (Depends-on): Update conditions.
24817         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
24818         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
24819         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
24821         Tests for module 'exp2l-ieee'.
24822         * modules/exp2l-ieee-tests: New file.
24823         * tests/test-exp2l-ieee.c: New file.
24825         New module 'exp2l-ieee'.
24826         * modules/exp2l-ieee: New file.
24828         Tests for module 'exp2-ieee'.
24829         * modules/exp2-ieee-tests: New file.
24830         * tests/test-exp2-ieee.c: New file.
24832         New module 'exp2-ieee'.
24833         * modules/exp2-ieee: New file.
24835         Tests for module 'exp2f-ieee'.
24836         * modules/exp2f-ieee-tests: New file.
24837         * tests/test-exp2f-ieee.c: New file.
24838         * tests/test-exp2-ieee.h: New file.
24840         New module 'exp2f-ieee'.
24841         * modules/exp2f-ieee: New file.
24843 2012-03-08  Bruno Haible  <bruno@clisp.org>
24845         Tests for module 'exp2l'.
24846         * modules/exp2l-tests: New file.
24847         * tests/test-exp2l.c: New file.
24849         New module 'exp2l'.
24850         * lib/math.in.h (exp2l): New declaration.
24851         * lib/exp2l.c: New file.
24852         * lib/expl-table.c: New file, extracted from lib/expl.c.
24853         * lib/expl.c (gl_expl_table): New declaration.
24854         (expl): Remove expl_table. Update reference.
24855         * m4/exp2l.m4: New file.
24856         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
24857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
24858         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
24859         * modules/exp2l: New file.
24860         * modules/expl (Files): Add lib/expl-table.c.
24861         (configure.ac): Compile also expl-table.c.
24862         * tests/test-math-c++.cc: Check the declaration of exp2l.
24863         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
24864         problem.
24866 2012-03-08  Bruno Haible  <bruno@clisp.org>
24868         Tests for module 'exp2f'.
24869         * modules/exp2f-tests: New file.
24870         * tests/test-exp2f.c: New file.
24872         New module 'exp2f'.
24873         * lib/math.in.h (exp2f): New declaration.
24874         * lib/exp2f.c: New file.
24875         * m4/exp2f.m4: New file.
24876         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
24877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
24878         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
24879         * modules/exp2f: New file.
24880         * tests/test-math-c++.cc: Check the declaration of exp2f.
24881         * doc/posix-functions/exp2f.texi: Mention the new module and the
24882         IRIX problem.
24884 2012-03-08  Bruno Haible  <bruno@clisp.org>
24886         Tests for module 'exp2'.
24887         * modules/exp2-tests: New file.
24888         * tests/test-exp2.c: New file.
24889         * tests/test-exp2.h: New file.
24891         New module 'exp2'.
24892         * lib/math.in.h (exp2): New declaration.
24893         * lib/exp2.c: New file.
24894         * m4/exp2.m4: New file.
24895         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
24896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
24897         REPLACE_EXP2.
24898         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
24899         REPLACE_EXP2.
24900         * modules/exp2: New file.
24901         * tests/test-math-c++.cc: Check the declaration of exp2.
24902         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
24903         and OpenBSD problems.
24905 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24907         savedir: fix comment typo
24908         * lib/savedir.c (savedirstream): Fix typo in comment.
24910 2012-03-08  Bruno Haible  <bruno@clisp.org>
24912         test-readtokens.c: use const; remove unwarranted cast
24913         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
24915 2012-03-08  Bruno Haible  <bruno@clisp.org>
24917         fmal: Avoid compilation error on AIX.
24918         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
24919         AIX 5.2..7.1.
24921 2012-03-08  Bruno Haible  <bruno@clisp.org>
24923         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
24924         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
24925         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
24926         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
24927         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
24928         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
24929         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
24931 2012-03-08  Bruno Haible  <bruno@clisp.org>
24933         remainderf: Override buggy system function on IRIX 6.5.
24934         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
24935         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
24936         when it exists.
24937         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
24939 2012-03-08  Jim Meyering  <meyering@redhat.com>
24941         test-readtokens.c: avoid const-related compilation warnings
24942         * tests/test-readtokens.c: Avoid const-related compilation warnings.
24944 2012-03-07  Jim Meyering  <meyering@redhat.com>
24945             Bruno Haible  <bruno@clisp.org>
24947         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
24948         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
24949         tests/randomd.c.
24950         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
24951         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
24952         tests/randoml.c.
24953         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
24955 2012-03-07  Bruno Haible  <bruno@clisp.org>
24957         expm1l: Avoid compilation error on AIX.
24958         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
24959         AIX 5.2..7.1.
24961 2012-03-07  Bruno Haible  <bruno@clisp.org>
24963         expm1l: Don't override undeclared system function on IRIX 6.5.
24964         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
24965         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
24966         it exists. Set HAVE_DECL_EXPM1L.
24967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
24968         HAVE_EXPM1L.
24969         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
24970         HAVE_EXPM1L.
24971         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
24973 2012-03-07  Bruno Haible  <bruno@clisp.org>
24975         remainderl: Don't override undeclared system function on IRIX 6.5.
24976         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
24977         HAVE_REMAINDERL.
24978         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
24979         declared when it exists. Set HAVE_DECL_REMAINDERL.
24980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
24981         not HAVE_REMAINDERL.
24982         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
24983         HAVE_REMAINDERL.
24984         * doc/posix-functions/remainderl.texi: Mention missing declaration
24985         problem.
24987 2012-03-07  Bruno Haible  <bruno@clisp.org>
24989         rintf: Don't override undeclared system function on IRIX 6.5.
24990         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
24991         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
24992         exists. Set HAVE_DECL_RINTF.
24993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
24994         HAVE_RINTF.
24995         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
24996         HAVE_RINTF.
24997         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
24999 2012-03-07  Bruno Haible  <bruno@clisp.org>
25001         roundl: Avoid compilation error on AIX.
25002         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
25003         AIX 5.2..7.1.
25005 2012-03-07  Bruno Haible  <bruno@clisp.org>
25007         roundl: Don't override undeclared system function on IRIX 6.5.
25008         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
25009         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
25010         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25011         * modules/roundl (configure.ac): For replacement code, test
25012         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25013         (Depends-on): Update conditions.
25014         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
25016 2012-03-07  Bruno Haible  <bruno@clisp.org>
25018         roundf: Don't override undeclared system function on IRIX 6.5.
25019         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
25020         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
25021         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25022         * modules/roundf (configure.ac): For replacement code, test
25023         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25024         (Depends-on): Update conditions.
25025         * modules/roundf-ieee (Depends-on): Update conditions.
25026         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
25028 2012-03-07  Bruno Haible  <bruno@clisp.org>
25030         round: Don't override undeclared system function on IRIX 6.5.
25031         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
25032         argument.
25033         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
25034         also when it is not declared. Set HAVE_ROUND. For replacement code,
25035         test HAVE_ROUND, not HAVE_DECL_ROUND.
25036         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
25037         not HAVE_DECL_ROUND.
25038         (Depends-on): Update conditions.
25039         * modules/round-ieee (Depends-on): Update conditions.
25040         * doc/posix-functions/round.texi: Mention the IRIX problem.
25042 2012-03-07  Bruno Haible  <bruno@clisp.org>
25044         copysignf: Don't override undeclared system function on IRIX 6.5.
25045         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
25046         HAVE_COPYSIGNF.
25047         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
25048         declared when it exists. Set HAVE_DECL_COPYSIGNF.
25049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
25050         not HAVE_COPYSIGNF.
25051         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
25052         HAVE_COPYSIGNF.
25053         * doc/posix-functions/copysignf.texi: Mention missing declaration
25054         problem.
25056 2012-03-07  Jim Meyering  <meyering@redhat.com>
25058         readtokens: add tests
25059         * modules/readtokens-tests: New file.
25060         * tests/test-readtokens.c: New file.
25062 2012-03-07  Jim Meyering  <meyering@redhat.com>
25064         quotearg: the module must now include quote.h
25065         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
25066         So must the module.
25067         * modules/quotearg (Files): Add quote.h.
25069 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
25071         readtokens: avoid core dumps with unusual calling patterns
25072         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
25073         * lib/readtokens.c: Include limits.h.
25074         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
25075         (readtoken): Don't cache the delimiters; the cache code was buggy
25076         if !delim && saved_delim, or if the new n_delim differs from the old.
25077         Also, it wasn't thread-safe.
25079 2012-03-07  Bruno Haible  <bruno@clisp.org>
25081         quote: Adhere to common module description layout.
25082         * modules/quote (Makefile.am): Add back empty section.
25084 2012-03-06  Akim Demaille  <demaille@gostai.com>
25086         quote: fuse into quotearg
25087         This patch is made for the benefit of Bison.
25088         quote does not leave the choice of the quoting style to the user.
25089         quoting_style provides poor customizability, yet quoting_options,
25090         which is very rich, is hidden inside quotearg.c.  So in order to
25091         allow quote customization, move its implementation to quotearg.c.
25092         * lib/quote.c: Remove.
25093         * modules/quote: Adjust.
25094         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
25095         warning: provide all the members of literal structs.
25096         (quote_quoting_options): New.
25097         (quote, quote_n): Import implementation from quote.c.
25098         * lib/quote.h: Import the comments from quote.c.
25099         (quote_quoting_options): New.
25101 2012-03-06  Bruno Haible  <bruno@clisp.org>
25103         Tests for module 'expm1l-ieee'.
25104         * modules/expm1l-ieee-tests: New file.
25105         * tests/test-expm1l-ieee.c: New file.
25107         New module 'expm1l-ieee'.
25108         * modules/expm1l-ieee: New file.
25110         Tests for module 'expm1f-ieee'.
25111         * modules/expm1f-ieee-tests: New file.
25112         * tests/test-expm1f-ieee.c: New file.
25114         New module 'expm1f-ieee'.
25115         * modules/expm1f-ieee: New file.
25117         Tests for module 'expm1-ieee'.
25118         * modules/expm1-ieee-tests: New file.
25119         * tests/test-expm1-ieee.c: New file.
25120         * tests/test-expm1-ieee.h: New file.
25122         New module 'expm1-ieee'.
25123         * modules/expm1-ieee: New file.
25124         * m4/expm1-ieee.m4: New file.
25125         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
25126         whether expm1 works with a minus zero argument. Replace it if not.
25127         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
25128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
25129         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
25130         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
25131         (Depends-on): Update conditions.
25132         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
25133         AIX problem.
25135 2012-03-06  Bruno Haible  <bruno@clisp.org>
25137         Work around expm1f bug on IRIX 6.5.
25138         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
25139         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
25140         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
25141         not work.
25142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
25143         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
25144         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
25145         (Depends-on): Update conditions.
25146         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
25148 2012-03-06  Bruno Haible  <bruno@clisp.org>
25150         Tests for module 'expm1l'.
25151         * modules/expm1l-tests: New file.
25152         * tests/test-expm1l.c: New file.
25154         New module 'expm1l'.
25155         * lib/math.in.h (expm1l): New declaration.
25156         * lib/expm1l.c: New file.
25157         * m4/expm1l.m4: New file.
25158         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
25159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
25160         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
25161         * modules/expm1l: New file.
25162         * tests/test-math-c++.cc: Check the declaration of expm1l.
25163         * doc/posix-functions/expm1l.texi: Mention the new module.
25165 2012-03-06  Bruno Haible  <bruno@clisp.org>
25167         Tests for module 'expm1f'.
25168         * modules/expm1f-tests: New file.
25169         * tests/test-expm1f.c: New file.
25171         New module 'expm1f'.
25172         * lib/math.in.h (expm1f): New declaration.
25173         * lib/expm1f.c: New file.
25174         * m4/expm1f.m4: New file.
25175         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
25176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
25177         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
25178         * modules/expm1f: New file.
25179         * tests/test-math-c++.cc: Check the declaration of expm1f.
25180         * doc/posix-functions/expm1f.texi: Mention the new module.
25182 2012-03-06  Bruno Haible  <bruno@clisp.org>
25184         Tests for module 'expm1'.
25185         * modules/expm1-tests: New file.
25186         * tests/test-expm1.c: New file.
25187         * tests/test-expm1.h: New file.
25189         New module 'expm1'.
25190         * lib/math.in.h (expm1): New declaration.
25191         * lib/expm1.c: New file.
25192         * m4/expm1.m4: New file.
25193         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
25194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
25195         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
25196         * modules/expm1: New file.
25197         * tests/test-math-c++.cc: Check the declaration of expm1.
25198         * doc/posix-functions/expm1.texi: Mention the new module.
25200 2012-03-06  Bruno Haible  <bruno@clisp.org>
25202         math: Ensure declarations of math functions.
25203         * modules/acosf (Depends-on): Add 'extensions'.
25204         * modules/asinf (Depends-on): Likewise.
25205         * modules/atan2f (Depends-on): Likewise.
25206         * modules/atanf (Depends-on): Likewise.
25207         * modules/cbrt (Depends-on): Likewise.
25208         * modules/cbrtf (Depends-on): Likewise.
25209         * modules/cbrtl (Depends-on): Likewise.
25210         * modules/copysignf (Depends-on): Likewise.
25211         * modules/copysignl (Depends-on): Likewise.
25212         * modules/cosf (Depends-on): Likewise.
25213         * modules/coshf (Depends-on): Likewise.
25214         * modules/expf (Depends-on): Likewise.
25215         * modules/fabsf (Depends-on): Likewise.
25216         * modules/fabsl (Depends-on): Likewise.
25217         * modules/fmaf (Depends-on): Likewise.
25218         * modules/fmal (Depends-on): Likewise.
25219         * modules/fmodf (Depends-on): Likewise.
25220         * modules/fmodl (Depends-on): Likewise.
25221         * modules/frexpf (Depends-on): Likewise.
25222         * modules/frexpl (Depends-on): Likewise.
25223         * modules/hypot (Depends-on): Likewise.
25224         * modules/hypotf (Depends-on): Likewise.
25225         * modules/hypotl (Depends-on): Likewise.
25226         * modules/ldexpf (Depends-on): Likewise.
25227         * modules/ldexpl (Depends-on): Likewise.
25228         * modules/log10f (Depends-on): Likewise.
25229         * modules/log10l (Depends-on): Likewise.
25230         * modules/log1p (Depends-on): Likewise.
25231         * modules/logb (Depends-on): Likewise.
25232         * modules/logf (Depends-on): Likewise.
25233         * modules/modff (Depends-on): Likewise.
25234         * modules/modfl (Depends-on): Likewise.
25235         * modules/powf (Depends-on): Likewise.
25236         * modules/remainderf (Depends-on): Likewise.
25237         * modules/remainderl (Depends-on): Likewise.
25238         * modules/rintf (Depends-on): Likewise.
25239         * modules/rintl (Depends-on): Likewise.
25240         * modules/sinf (Depends-on): Likewise.
25241         * modules/sinhf (Depends-on): Likewise.
25242         * modules/sqrtf (Depends-on): Likewise.
25243         * modules/tanf (Depends-on): Likewise.
25244         * modules/tanhf (Depends-on): Likewise.
25245         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
25246         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
25247         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
25248         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
25249         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
25250         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
25251         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
25252         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
25253         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
25254         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
25255         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
25256         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
25257         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
25258         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
25259         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
25260         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
25261         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
25262         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25263         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
25264         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
25265         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
25266         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
25267         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
25268         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
25269         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25270         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
25271         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
25272         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25273         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
25274         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
25275         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25276         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
25277         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25278         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25279         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25280         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25281         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
25282         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
25283         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
25284         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
25285         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
25287 2012-03-06  Bruno Haible  <bruno@clisp.org>
25289         math: Update module names in warnings.
25290         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25291         tanl): Use specific module name in warn-on-use warning.
25293 2012-03-06  Bruno Haible  <bruno@clisp.org>
25295         expl: Simplify computation.
25296         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25298 2012-03-05  Bruno Haible  <bruno@clisp.org>
25300         exp* tests: More tests.
25301         * tests/test-exp.h: New file.
25302         * tests/test-exp.c: Include <float.h> and test-exp.h.
25303         (main): Invoke test_function.
25304         * tests/test-expf.c: Include <float.h> and test-exp.h.
25305         (main): Invoke test_function.
25306         * tests/test-expl.c: Include <float.h> and test-exp.h.
25307         (main): Invoke test_function.
25308         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25309         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25310         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25311         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25312         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25313         (Depends-on): Add 'float'.
25314         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25316         expl: Fix precision of computed result.
25317         * lib/expl.c: Completely rewritten.
25318         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25319         (Maintainer): Add me.
25320         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25322 2012-03-05  Bruno Haible  <bruno@clisp.org>
25324         cbrt* tests: More tests.
25325         * tests/test-cbrt.h: New file.
25326         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25327         (main): Invoke test_function.
25328         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25329         (main): Invoke test_function.
25330         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25331         (main): Invoke test_function.
25332         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25333         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25334         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25335         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25336         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25337         (Depends-on): Add 'float'.
25338         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25340 2012-03-05  Bruno Haible  <bruno@clisp.org>
25342         hypot* tests: More tests.
25343         * tests/test-hypot.h: New file, partially extracted from
25344         tests/test-hypotl.c.
25345         * tests/test-hypot.c: Include test-hypot.h.
25346         (main): Invoke test_function.
25347         * tests/test-hypotf.c: Include test-hypot.h.
25348         (main): Invoke test_function.
25349         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25350         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25351         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25352         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25353         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25354         tests/randomf.c.
25355         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25356         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25357         tests/randoml.c.
25358         (Depends-on): Add 'fpucw', 'float'.
25359         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25361 2012-03-05  Bruno Haible  <bruno@clisp.org>
25363         fpucw: Doc about FreeBSD.
25364         * lib/fpucw.h: Mention FreeBSD in comments.
25366 2012-03-04  Bruno Haible  <bruno@clisp.org>
25368         sqrt* tests: More tests.
25369         * tests/test-sqrt.h: New file.
25370         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25371         (main): Invoke test_function.
25372         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25373         (main): Invoke test_function.
25374         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25375         (main): Invoke test_function.
25376         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25377         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25378         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25379         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25380         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25381         (Depends-on): Add 'float'.
25382         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25384 2012-03-04  Bruno Haible  <bruno@clisp.org>
25386         remainder* tests: More tests.
25387         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25388         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25389         (main): Invoke test_function.
25390         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25391         (main): Invoke test_function.
25392         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25393         (main): Invoke test_function.
25394         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25395         tests/randomd.c.
25396         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25397         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25398         tests/randomf.c.
25399         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25400         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25401         tests/randoml.c.
25402         (Depends-on): Add 'float'.
25403         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25405 2012-03-04  Bruno Haible  <bruno@clisp.org>
25407         remainder, remainderf, remainderl: Fix computation for large quotients.
25408         * lib/remainder.c: Completely rewritten.
25409         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25410         USE_FLOAT.
25411         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25412         USE_LONG_DOUBLE.
25413         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25414         isnand, isinf. Remove round, fma.
25415         * modules/remainderf (Files): Add lib/remainder.c.
25416         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25417         Remove roundf, fmaf.
25418         * modules/remainderl (Files): Add lib/remainder.c.
25419         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25420         isinf. Remove roundl, fmal.
25421         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25422         REMAINDER_LIBM.
25423         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25424         REMAINDERF_LIBM.
25425         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25426         REMAINDERL_LIBM.
25428 2012-03-04  Bruno Haible  <bruno@clisp.org>
25430         fmod* tests: More tests.
25431         * tests/test-fmod.h (my_ldexp): New function.
25432         (test_function): Reduce amount of random numbers to test. Add tests
25433         of very large quotients x / y.
25434         * tests/test-fmod.c (MAX_EXP): New macro.
25435         * tests/test-fmodf.c (MAX_EXP): Likewise.
25436         * tests/test-fmodl.c (MAX_EXP): Likewise.
25438 2012-03-04  Bruno Haible  <bruno@clisp.org>
25440         fmod, fmodl: Fix computation for large quotients x / y.
25441         * lib/fmod.c: Completely rewritten.
25442         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25443         USE_LONG_DOUBLE.
25444         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25445         isnand. Remove fma.
25446         * modules/fmodl (Files): Add lib/fmod.c.
25447         (Depends-on): Add float, isfinite, signbit, fabsl,
25448         frexpl, ldexpl, isnanl. Remove fma.
25449         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25450         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25452 2012-03-03  Bruno Haible  <bruno@clisp.org>
25454         fmod* tests: More tests.
25455         * tests/test-fmod.h: New file.
25456         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25457         (main): Invoke test_function.
25458         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25459         (main): Invoke test_function.
25460         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25461         (main): Invoke test_function.
25462         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25463         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25464         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25465         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25466         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25467         (Depends-on): Add 'float'.
25468         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25470 2012-03-03  Bruno Haible  <bruno@clisp.org>
25472         rint* tests: More tests.
25473         * tests/test-rint.h: New file, partially extracted from
25474         tests/test-rintl.c.
25475         * tests/test-rint.c: Include test-rint.h.
25476         (main): Invoke test_function.
25477         * tests/test-rintf.c: Include test-rint.h.
25478         (main): Invoke test_function.
25479         * tests/test-rintl.c: Include test-rint.h.
25480         (main): Invoke test_function.
25481         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25482         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25483         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25484         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25485         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25486         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25488 2012-03-03  Bruno Haible  <bruno@clisp.org>
25490         modf* tests: More tests.
25491         * tests/test-modf.h: New file.
25492         * tests/test-modf.c: Include <float.h> and test-modf.h.
25493         (main): Invoke test_function.
25494         * tests/test-modff.c: Include <float.h> and test-modf.h.
25495         (main): Invoke test_function.
25496         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25497         (main): Invoke test_function.
25498         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25499         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25500         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25501         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25502         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25503         (Depends-on): Add 'float'.
25504         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25506 2012-03-03  Bruno Haible  <bruno@clisp.org>
25508         fabs* tests: More tests.
25509         * tests/test-fabs.h: New file, partially extracted from
25510         tests/test-fabsl.c.
25511         * tests/test-fabs.c (RANDOM): New macro.
25512         * tests/test-fabsf.c (RANDOM): New macro.
25513         * tests/test-fabsl.c (RANDOM): New macro.
25514         * modules/fabs-tests (Files): Add tests/randomd.c.
25515         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25516         * modules/fabsf-tests (Files): Add tests/randomf.c.
25517         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25518         * modules/fabsl-tests (Files): Add tests/randoml.c.
25519         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25521 2012-03-03  Bruno Haible  <bruno@clisp.org>
25523         ldexp* tests: More tests.
25524         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25525         * tests/test-ldexp.c (RANDOM): New macro.
25526         * tests/test-ldexpf.c (RANDOM): New macro.
25527         * tests/test-ldexpl.c (RANDOM): New macro.
25528         * modules/ldexp-tests (Files): Add tests/randomd.c.
25529         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25530         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25531         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25532         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25533         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25535 2012-03-03  Bruno Haible  <bruno@clisp.org>
25537         frexp* tests: More tests.
25538         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25539         * tests/test-frexp.c (RANDOM): New macro.
25540         * tests/test-frexpf.c (RANDOM): New macro.
25541         * tests/test-frexpl.c (RANDOM): New macro.
25542         * modules/frexp-tests (Files): Add tests/randomd.c.
25543         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
25544         * modules/frexpf-tests (Files): Add tests/randomf.c.
25545         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
25546         * modules/frexpl-tests (Files): Add tests/randoml.c.
25547         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
25549 2012-03-03  Bruno Haible  <bruno@clisp.org>
25551         Support for pseudo-random numbers in tests.
25552         * tests/randomf.c: New file.
25553         * tests/randomd.c: New file.
25554         * tests/randoml.c: New file.
25555         * tests/macros.h (randomf, randomd, randoml): New declarations.
25557 2012-03-03  Bruno Haible  <bruno@clisp.org>
25559         frexp* tests: Refactor.
25560         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
25561         * tests/test-frexp.c: Include and use it.
25562         * tests/test-frexpf.c: Likewise.
25563         * tests/test-frexpl.c: Likewise.
25564         * modules/frexp-tests (Files): Add tests/test-frexp.h.
25565         * modules/frexpf-tests (Files): Likewise.
25566         * modules/frexpl-tests (Files): Likewise.
25568 2012-03-02  Jim Meyering  <meyering@redhat.com>
25570         maint: don't specify XZ_OPT=-9ev in dist-related rule
25571         Using xz's -9 option is warranted only if you have a very large
25572         tarball (see xz's documentation for the sizes vs. presets), and
25573         requires 64MiB of memory at decompression time.
25574         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
25575         Automake's default of just "-e" is fine.  Override on a
25576         per-package basis by setting XZ_OPT e.g., in cfg.mk.
25578 2012-03-01  Eric Blake  <eblake@redhat.com>
25580         maint.mk: allow announcement for non-gnulib project
25581         * maint.mk (announcement): Skip gnulib version if not used.
25583 2012-03-01  Jim Meyering  <meyering@redhat.com>
25585         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
25586         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
25587         envvar settings cannot interfere.  Otherwise, setting envvars like
25588         prohibit=foo require=bar, etc. would cause spurious test failures.
25590 2012-03-01  Eric Blake  <eblake@redhat.com>
25592         maint.mk: add per-line exclusions to prohibitions
25593         * maint.mk (_sc_search_regexp): Add $exclude parameter.
25594         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
25595         (sc_const_long_option): Use it.
25597 2012-03-01  Bruno Haible  <bruno@clisp.org>
25599         Tests for module 'expl-ieee'.
25600         * modules/expl-ieee-tests: New file.
25601         * tests/test-expl-ieee.c: New file.
25603         New module 'expl-ieee'.
25604         * modules/expl-ieee: New file.
25606         Tests for module 'exp-ieee'.
25607         * modules/exp-ieee-tests: New file.
25608         * tests/test-exp-ieee.c: New file.
25610         New module 'exp-ieee'.
25611         * modules/exp-ieee: New file.
25613         Tests for module 'expf-ieee'.
25614         * modules/expf-ieee-tests: New file.
25615         * tests/test-expf-ieee.c: New file.
25616         * tests/test-exp-ieee.h: New file.
25618         New module 'expf-ieee'.
25619         * modules/expf-ieee: New file.
25621 2012-02-29  Bruno Haible  <bruno@clisp.org>
25623         cbrtl-ieee: Work around test failure on IRIX 6.5.
25624         * m4/cbrtl-ieee.m4: New file.
25625         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
25626         test whether cbrtl works with a minus zero argument. Replace it if not.
25627         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
25628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
25629         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
25630         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
25631         (Depends-on): Update conditions.
25632         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
25633         m4/signbit.m4.
25634         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
25635         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
25636         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
25638         Tests for module 'cbrtl-ieee'.
25639         * modules/cbrtl-ieee-tests: New file.
25640         * tests/test-cbrtl-ieee.c: New file.
25642         New module 'cbrtl-ieee'.
25643         * modules/cbrtl-ieee: New file.
25645         Tests for module 'cbrt-ieee'.
25646         * modules/cbrt-ieee-tests: New file.
25647         * tests/test-cbrt-ieee.c: New file.
25649         New module 'cbrt-ieee'.
25650         * modules/cbrt-ieee: New file.
25652         Tests for module 'cbrtf-ieee'.
25653         * modules/cbrtf-ieee-tests: New file.
25654         * tests/test-cbrtf-ieee.c: New file.
25655         * tests/test-cbrt-ieee.h: New file.
25657         New module 'cbrtf-ieee'.
25658         * modules/cbrtf-ieee: New file.
25660 2012-02-29  Bruno Haible  <bruno@clisp.org>
25662         cbrtf: Work around bug in IRIX 6.5 system function.
25663         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
25664         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
25665         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
25666         work.
25667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
25668         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
25669         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
25670         (Depends-on): Update conditions.
25671         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
25673 2012-02-29  Bruno Haible  <bruno@clisp.org>
25675         Tests for module 'cbrtl'.
25676         * modules/cbrtl-tests: New file.
25677         * tests/test-cbrtl.c: New file.
25679         New module 'cbrtl'.
25680         * lib/math.in.h (cbrtl): New declaration.
25681         * lib/cbrtl.c: New file.
25682         * m4/cbrtl.m4: New file.
25683         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
25684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
25685         HAVE_DECL_CBRTL.
25686         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
25687         HAVE_DECL_CBRTL.
25688         * modules/cbrtl: New file.
25689         * tests/test-math-c++.cc: Check the declaration of cbrtl.
25690         * doc/posix-functions/cbrtl.texi: Mention the new module.
25692 2012-02-29  Bruno Haible  <bruno@clisp.org>
25694         Tests for module 'cbrtf'.
25695         * modules/cbrtf-tests: New file.
25696         * tests/test-cbrtf.c: New file.
25698         New module 'cbrtf'.
25699         * lib/math.in.h (cbrtf): New declaration.
25700         * lib/cbrtf.c: New file.
25701         * m4/cbrtf.m4: New file.
25702         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
25703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
25704         HAVE_DECL_CBRTF.
25705         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
25706         HAVE_DECL_CBRTF.
25707         * modules/cbrtf: New file.
25708         * tests/test-math-c++.cc: Check the declaration of cbrtf.
25709         * doc/posix-functions/cbrtf.texi: Mention the new module.
25711 2012-02-29  Bruno Haible  <bruno@clisp.org>
25713         cbrt: Provide replacement on MSVC and Minix.
25714         * lib/math.in.h (cbrt): New declaration.
25715         * lib/cbrt.c: New file.
25716         * m4/cbrt.m4: New file.
25717         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
25718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
25719         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
25720         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
25721         (Depends-on): Add dependencies.
25722         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
25723         * tests/test-math-c++.cc: Check the declaration of cbrt.
25724         * doc/posix-functions/cbrt.texi: Mention that the module provides a
25725         replacement.
25727 2012-02-29  Bruno Haible  <bruno@clisp.org>
25729         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
25730         * m4/hypotl-ieee.m4: New file.
25731         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
25732         test whether hypotl works with mixed NaN and Infinity arguments.
25733         Replace it if not.
25734         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
25735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
25736         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
25737         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
25738         (Depends-on): Update conditions.
25739         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
25740         (Depends-on): Add hypot-ieee.
25741         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
25742         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
25744         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
25745         * m4/hypotf-ieee.m4: New file.
25746         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
25747         test whether hypotf works with mixed NaN and Infinity arguments.
25748         Replace it if not.
25749         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
25750         (Depends-on): Add hypot-ieee.
25751         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
25752         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
25754         hypot-ieee: Work around test failure on OSF/1 and native Windows.
25755         * lib/math.in.h (hypot): New declaration.
25756         * lib/hypot.c: New file.
25757         * m4/hypot-ieee.m4: New file.
25758         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
25759         whether hypot works with mixed NaN and Infinity arguments. Replace it
25760         if not.
25761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
25762         REPLACE_HYPOT.
25763         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
25764         * modules/hypot (Files): Add lib/hypot.c.
25765         (Depends-on): Add dependencies.
25766         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
25767         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
25768         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
25769         * tests/test-math-c++.cc: Check the declaration of hypot.
25770         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
25772         Tests for module 'hypotl-ieee'.
25773         * modules/hypotl-ieee-tests: New file.
25774         * tests/test-hypotl-ieee.c: New file.
25776         New module 'hypotl-ieee'.
25777         * modules/hypotl-ieee: New file.
25779         Tests for module 'hypot-ieee'.
25780         * modules/hypot-ieee-tests: New file.
25781         * tests/test-hypot-ieee.c: New file.
25783         New module 'hypot-ieee'.
25784         * modules/hypot-ieee: New file.
25786         Tests for module 'hypotf-ieee'.
25787         * modules/hypotf-ieee-tests: New file.
25788         * tests/test-hypotf-ieee.c: New file.
25789         * tests/test-hypot-ieee.h: New file.
25791         New module 'hypotf-ieee'.
25792         * modules/hypotf-ieee: New file.
25794 2012-02-29  Bruno Haible  <bruno@clisp.org>
25796         Remove unused variables.
25797         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
25798         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25799         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
25800         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25802 2012-02-29  Eric Blake  <eblake@redhat.com>
25804         termios: fix pid_t always, not just for tcgetsid
25805         * doc/posix-headers/termios.texi (termios.h): Mention problem.
25806         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
25807         just when building tcgetsid.
25809 2012-02-29  Bruno Haible  <bruno@clisp.org>
25811         Tests for module 'hypotl'.
25812         * modules/hypotl-tests: New file.
25813         * tests/test-hypotl.c: New file.
25815         New module 'hypotl'.
25816         * lib/math.in.h (hypotl): New declaration.
25817         * lib/hypotl.c: New file.
25818         * m4/hypotl.m4: New file.
25819         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
25821         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
25822         * modules/hypotl: New file.
25823         * tests/test-math-c++.cc: Check the hypotl declaration.
25824         * doc/posix-functions/hypotl.texi: Mention the new module.
25826 2012-02-29  Eric Blake  <eblake@redhat.com>
25828         tcgetsid: fix cygwin header bug
25829         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
25831         docs: update cygwin progress
25832         * doc/posix-functions/llround.texi (llround): Added in cygwin
25833         1.7.8.
25834         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
25835         * doc/glibc-functions/program_invocation_name.texi
25836         (program_invocation_name): Likewise.
25837         * doc/glibc-functions/program_invocation_short_name.texi
25838         (program_invocation_short_name): Likewise.
25839         * doc/glibc-functions/madvise.texi (madvise): Likewise.
25840         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
25841         Likewise.
25842         * doc/posix-functions/pthread_spin_destroy.texi
25843         (pthread_spin_destroy): Added in cygwin 1.7.10.
25844         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
25845         Likewise.
25846         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
25847         Likewise.
25848         * doc/posix-functions/pthread_spin_trylock.texi
25849         (pthread_spin_trylock): Likewise.
25850         * doc/posix-functions/pthread_spin_unlock.texi
25851         (pthread_spin_unlock): Likewise.
25852         * doc/posix-functions/pthread_setschedprio.texi
25853         (pthread_setschedprio): Likewise.
25854         * doc/posix-functions/pthread_attr_getstack.texi
25855         (pthread_attr_getstack): Likewise.
25856         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
25857         (pthread_attr_getstackaddr): Likewise.
25858         * doc/glibc-functions/pthread_getattr_np.texi
25859         (pthread_getattr_np): Likewise.
25860         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
25861         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
25862         * doc/posix-functions/clock_settime.texi (clock_settime):
25863         Likewise.
25864         * doc/posix-functions/pthread_attr_getguardsize.texi
25865         (pthread_attr_getguardsize): Likewise.
25866         * doc/posix-functions/pthread_attr_setguardsize.texi
25867         (pthread_attr_setguardsize): Likewise.
25868         * doc/posix-functions/pthread_attr_setstack.texi
25869         (pthread_attr_setstack): Likewise.
25870         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
25871         (pthread_attr_setstackaddr): Likewise.
25872         * doc/posix-functions/clock_getcpuclockid.texi
25873         (clock_getcpuclockid): Likewise.
25874         * doc/posix-functions/pthread_getcpuclockid.texi
25875         (pthread_getcpuclockid): Likewise.
25876         * doc/glibc-functions/error.texi (error): Likewise.
25877         * doc/glibc-functions/error_at_line.texi (error_at_line):
25878         Likewise.
25879         * doc/glibc-functions/error_message_count.texi
25880         (error_message_count): Likewise.
25881         * doc/glibc-functions/error_one_per_line.texi
25882         (error_one_per_line): Likewise.
25883         * doc/glibc-functions/error_print_progname.texi
25884         (error_print_progname): Likewise.
25885         * doc/posix-functions/pthread_condattr_getclock.texi
25886         (pthread_condattr_getclock): Likewise.
25887         * doc/posix-functions/pthread_condattr_setclock.texi
25888         (pthread_condattr_setclock): Likewise.
25889         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
25890         Likewise.
25891         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
25892         * doc/glibc-functions/getpt.texi (getpt): Likewise.
25893         * doc/glibc-functions/get_current_dir_name.texi
25894         (get_current_dir_name): Likewise.
25895         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
25896         Likewise.
25897         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
25898         wrong return type.
25899         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
25900         1.7.11.
25902 2012-02-29  Bruno Haible  <bruno@clisp.org>
25904         Tests for module 'hypotf'.
25905         * modules/hypotf-tests: New file.
25906         * tests/test-hypotf.c: New file.
25908         New module 'hypotf'.
25909         * lib/math.in.h (hypotf): New declaration.
25910         * lib/hypotf.c: New file.
25911         * m4/hypotf.m4: New file.
25912         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
25914         REPLACE_HYPOTF.
25915         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
25916         REPLACE_HYPOTF.
25917         * modules/hypotf: New file.
25918         * tests/test-math-c++.cc: Check the hypotf declaration.
25919         * doc/posix-functions/hypotf.texi: Mention the new module.
25921         hypot: Prepare for hypotf module.
25922         * m4/hypot.m4: New file.
25923         * modules/hypot (Files): Add m4/hypot.m4.
25924         (configure.ac): Invoke gl_FUNC_HYPOT.
25926 2012-02-29  Bruno Haible  <bruno@clisp.org>
25928         hypot tests: More tests.
25929         * tests/test-hypot.c: Include <float.h>.
25930         (main): Add tests about overflow and underflow.
25932 2012-02-29  Bruno Haible  <bruno@clisp.org>
25934         math code: Add comments.
25935         * lib/acosl.c: Add comment about related glibc source files.
25936         * lib/asinl.c: Likewise.
25937         * lib/atanl.c: Likewise.
25938         * lib/expl.c: Likewise.
25939         * lib/logl.c: Likewise.
25940         * lib/sincosl.c: Likewise.
25941         * lib/sinl.c: Likewise.
25942         * lib/tanl.c: Likewise.
25943         * lib/trigl.c: Likewise.
25944         * lib/cosl.c: Likewise. Fix comments.
25946 2012-02-28  Bruno Haible  <bruno@clisp.org>
25948         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
25949         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
25950         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
25951         HUGE_VALL are defined.
25952         (numeric_equald): Renamed from numeric_equal.
25953         (numeric_equalf, numeric_equall): New functions.
25954         (main): Check also HUGE_VALF, HUGE_VALL.
25955         * modules/math-tests (Files): Add tests/macros.h.
25956         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
25957         HUGE_VALL.
25959 2012-02-28  Bruno Haible  <bruno@clisp.org>
25961         doc: Move ISO C11 feature notes into POSIX chapters.
25962         * doc/posix-functions/aligned_alloc.texi: Renamed from
25963         doc/glibc-functions/aligned_alloc.texi.
25964         * doc/posix-functions/quick_exit.texi: Renamed from
25965         doc/glibc-functions/quick_exit.texi.
25966         * doc/posix-headers/uchar.texi: Renamed from
25967         doc/glibc-headers/uchar.texi.
25968         * doc/posix-functions/c16rtomb.texi: Renamed from
25969         doc/glibc-functions/c16rtomb.texi.
25970         * doc/posix-functions/c32rtomb.texi: Renamed from
25971         doc/glibc-functions/c32rtomb.texi.
25972         * doc/posix-functions/mbrtoc16.texi: Renamed from
25973         doc/glibc-functions/mbrtoc16.texi.
25974         * doc/posix-functions/mbrtoc32.texi: Renamed from
25975         doc/glibc-functions/mbrtoc32.texi.
25976         * doc/gnulib.texi: Update.
25977         (Glibc uchar.h): Remove section.
25978         Suggested by Eric Blake.
25980 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
25982         stdnoreturn: port to MSVC better
25983         MSVC standard headers use __declspec(noreturn), so #define noreturn
25984         to empty on that platform.  Reported by Bruno Haible in
25985         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
25986         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
25987         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
25989 2012-02-28  Bruno Haible  <bruno@clisp.org>
25991         doc: Mention new glibc headers and functions.
25992         * doc/glibc-headers/uchar.texi: New file.
25993         * doc/glibc-functions/aligned_alloc.texi: New file.
25994         * doc/glibc-functions/c16rtomb.texi: New file.
25995         * doc/glibc-functions/c32rtomb.texi: New file.
25996         * doc/glibc-functions/clock_adjtime.texi: New file.
25997         * doc/glibc-functions/fanotify_init.texi: New file.
25998         * doc/glibc-functions/fanotify_mark.texi: New file.
25999         * doc/glibc-functions/inet6_opt_append.texi: New file.
26000         * doc/glibc-functions/inet6_opt_find.texi: New file.
26001         * doc/glibc-functions/inet6_opt_finish.texi: New file.
26002         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
26003         * doc/glibc-functions/inet6_opt_init.texi: New file.
26004         * doc/glibc-functions/inet6_opt_next.texi: New file.
26005         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
26006         * doc/glibc-functions/inet6_rth_add.texi: New file.
26007         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
26008         * doc/glibc-functions/inet6_rth_init.texi: New file.
26009         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
26010         * doc/glibc-functions/inet6_rth_segments.texi: New file.
26011         * doc/glibc-functions/inet6_rth_space.texi: New file.
26012         * doc/glibc-functions/login.texi: New file.
26013         * doc/glibc-functions/mbrtoc16.texi: New file.
26014         * doc/glibc-functions/mbrtoc32.texi: New file.
26015         * doc/glibc-functions/name_to_handle_at.texi: New file.
26016         * doc/glibc-functions/ntp_gettimex.texi: New file.
26017         * doc/glibc-functions/open_by_handle_at.texi: New file.
26018         * doc/glibc-functions/prlimit.texi: New file.
26019         * doc/glibc-functions/process_vm_readv.texi: New file.
26020         * doc/glibc-functions/process_vm_writev.texi: New file.
26021         * doc/glibc-functions/recvmmsg.texi: New file.
26022         * doc/glibc-functions/scandirat.texi: New file.
26023         * doc/glibc-functions/sendmmsg.texi: New file.
26024         * doc/glibc-functions/setns.texi: New file.
26025         * doc/glibc-functions/timespec_get.texi: New file.
26026         * doc/gnulib.texi: Include them.
26027         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
26028         sections.
26029         Reported by Eric Blake.
26031 2012-02-28  Bruno Haible  <bruno@clisp.org>
26033         Avoid compilation errors with MSVC option -fp:strict.
26034         * lib/floor.c: Use MSVC specific pragma fenv_access.
26035         * lib/ceil.c: Likewise.
26036         * lib/trunc.c: Likewise.
26037         * lib/round.c: Likewise.
26038         * lib/rint.c: Likewise.
26039         * lib/fma.c: Likewise.
26040         * lib/integer_length.c: Likewise.
26041         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26042         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26043         * tests/test-floor2.c: Likewise.
26044         * tests/test-floorf2.c: Likewise.
26045         * tests/test-ceil2.c: Likewise.
26046         * tests/test-ceilf2.c: Likewise.
26047         * tests/test-trunc2.c: Likewise.
26048         * tests/test-truncf2.c: Likewise.
26049         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26051 2012-02-27  Bruno Haible  <bruno@clisp.org>
26053         Tests for module 'sqrtl-ieee'.
26054         * modules/sqrtl-ieee-tests: New file.
26055         * tests/test-sqrtl-ieee.c: New file.
26057         New module 'sqrtl-ieee'.
26058         * modules/sqrtl-ieee: New file.
26060         Tests for module 'sqrt-ieee'.
26061         * modules/sqrt-ieee-tests: New file.
26062         * tests/test-sqrt-ieee.c: New file.
26064         New module 'sqrt-ieee'.
26065         * modules/sqrt-ieee: New file.
26067         Tests for module 'sqrtf-ieee'.
26068         * modules/sqrtf-ieee-tests: New file.
26069         * tests/test-sqrtf-ieee.c: New file.
26070         * tests/test-sqrt-ieee.h: New file.
26072         New module 'sqrtf-ieee'.
26073         * modules/sqrtf-ieee: New file.
26075 2012-02-27  Bruno Haible  <bruno@clisp.org>
26077         remainderl-ieee: Work around test failure on OSF/1.
26078         * m4/remainderl-ieee.m4: New file.
26079         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
26080         present, test whether remainderl works with a zero second argument.
26081         Replace it if not.
26082         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
26083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
26084         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
26085         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
26086         (Depends-on): Update conditions.
26087         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
26088         (Depends-on): Add remainder-ieee.
26089         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
26090         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
26091         module.
26093         remainderf-ieee: Work around test failure on OSF/1.
26094         * m4/remainderf-ieee.m4: New file.
26095         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
26096         present, test whether remainderf works with a zero second argument.
26097         Replace it if not.
26098         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
26099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
26100         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
26101         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
26102         (Depends-on): Update conditions.
26103         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
26104         (Depends-on): Add remainder-ieee.
26105         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
26106         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
26107         module.
26109         remainder-ieee: Work around test failure on OSF/1.
26110         * m4/remainder-ieee.m4: New file.
26111         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
26112         present, test whether remainder works with a zero second argument.
26113         Replace it if not.
26114         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
26115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
26116         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
26117         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
26118         (Depends-on): Update dependencies.
26119         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
26120         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
26121         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
26123         Tests for module 'remainderl-ieee'.
26124         * modules/remainderl-ieee-tests: New file.
26125         * tests/test-remainderl-ieee.c: New file.
26127         New module 'remainderl-ieee'.
26128         * modules/remainderl-ieee: New file.
26130         Tests for module 'remainder-ieee'.
26131         * modules/remainder-ieee-tests: New file.
26132         * tests/test-remainder-ieee.c: New file.
26134         New module 'remainder-ieee'.
26135         * modules/remainder-ieee: New file.
26137         Tests for module 'remainderf-ieee'.
26138         * modules/remainderf-ieee-tests: New file.
26139         * tests/test-remainderf-ieee.c: New file.
26140         * tests/test-remainder-ieee.h: New file.
26142         New module 'remainderf-ieee'.
26143         * modules/remainderf-ieee: New file.
26145 2012-02-27  Bruno Haible  <bruno@clisp.org>
26147         modff, modfl: Fix configure syntax error.
26148         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
26149         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
26151 2012-02-27  Bruno Haible  <bruno@clisp.org>
26153         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
26154         * m4/fmodl-ieee.m4: New file.
26155         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
26156         whether fmodl works with zero arguments. Replace it if not.
26157         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
26158         (Depends-on): Add fmod-ieee.
26159         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
26160         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
26162         fmodf-ieee: Work around test failure on OSF/1.
26163         * m4/fmodf-ieee.m4: New file.
26164         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
26165         whether fmodf works with zero arguments. Replace it if not.
26166         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
26167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
26168         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
26169         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
26170         (Depends-on): Update dependencies.
26171         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
26172         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
26173         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
26175         fmodf-ieee: Work around test failure on MSVC 9.
26176         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
26177         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
26179         fmod-ieee: Work around test failures on OSF/1, mingw.
26180         * m4/fmod-ieee.m4: New file.
26181         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
26182         whether fmod works with zero arguments. Replace it if not.
26183         * lib/math.in.h (fmod): New declaration.
26184         * lib/fmod.c: New file.
26185         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
26186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
26187         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
26188         * modules/fmod (Files): Add lib/fmod.c.
26189         (Depends-on): Add math, isinf, trunc, fma.
26190         (configure.ac): Arrange to compile lib/fmod.c if needed.
26191         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
26192         m4/signbit.m4.
26193         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
26194         * tests/test-math-c++.cc: Check the declaration of fmod.
26195         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
26197         fmodl-ieee: Fix test failures.
26198         * lib/fmodl.c (fmodl): Treat Inf specially.
26199         * modules/fmodl (Depends-on): Add isinf.
26201         Tests for module 'fmodl-ieee'.
26202         * modules/fmodl-ieee-tests: New file.
26203         * tests/test-fmodl-ieee.c: New file.
26205         New module 'fmodl-ieee'.
26206         * modules/fmodl-ieee: New file.
26208         Tests for module 'fmod-ieee'.
26209         * modules/fmod-ieee-tests: New file.
26210         * tests/test-fmod-ieee.c: New file.
26212         New module 'fmod-ieee'.
26213         * modules/fmod-ieee: New file.
26215         Tests for module 'fmodf-ieee'.
26216         * modules/fmodf-ieee-tests: New file.
26217         * tests/test-fmodf-ieee.c: New file.
26218         * tests/test-fmod-ieee.h: New file.
26220         New module 'fmodf-ieee'.
26221         * modules/fmodf-ieee: New file.
26223 2012-02-27  Bruno Haible  <bruno@clisp.org>
26225         Tests for module 'rintl-ieee'.
26226         * modules/rintl-ieee-tests: New file.
26227         * tests/test-rintl-ieee.c: New file.
26229         New module 'rintl-ieee'.
26230         * modules/rintl-ieee: New file.
26232         Tests for module 'rint-ieee'.
26233         * modules/rint-ieee-tests: New file.
26234         * tests/test-rint-ieee.c: New file.
26236         New module 'rint-ieee'.
26237         * modules/rint-ieee: New file.
26239         Tests for module 'rintf-ieee'.
26240         * modules/rintf-ieee-tests: New file.
26241         * tests/test-rintf-ieee.c: New file.
26242         * tests/test-rint-ieee.h: New file.
26244         New module 'rintf-ieee'.
26245         * modules/rintf-ieee: New file.
26247 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26249         regex: re_search etc. should return -2 when memory exhausted
26250         This bug was uncovered when testing 'grep'.  Without the fix,
26251         re_search and friends return -1 when memory is exhausted, but -1
26252         means no match, and this causes grep to falsely report no-match
26253         instead of memory-exhaustion.  See
26254         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
26255         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
26256         trouble; this can occur if re_search_internal ran out of memory.
26258 2012-02-26  Bruno Haible  <bruno@clisp.org>
26260         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
26261         * m4/modfl-ieee.m4: New file.
26262         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
26263         whether modfl works with Inf. Replace it if not.
26264         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
26265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
26266         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
26267         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
26268         (Depends-on): Update dependencies.
26269         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
26270         m4/signbit.m4.
26271         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
26272         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
26274         modfl-ieee: Fix dependencies.
26275         * modules/modfl-ieee (Depends-on): Add modf-ieee.
26277         modfl-ieee: Fix test failures.
26278         * lib/modfl.c (modfl): Treat NaN and Inf specially.
26279         * modules/modfl (Depends-on): Add isfinite, isinf.
26281         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
26282         * m4/modff-ieee.m4: New file.
26283         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
26284         whether modff works with NaN and Inf. Replace it if not.
26285         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
26286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
26287         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
26288         * modules/modff (configure.ac): Consider REPLACE_MODFF.
26289         (Depends-on): Update dependencies.
26290         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
26291         m4/signbit.m4.
26292         (Depends-on): Add modf-ieee.
26293         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26294         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26296         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26297         * m4/modf-ieee.m4: New file.
26298         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26299         whether modf works with NaN and Inf. Replace it if not.
26300         * lib/math.in.h (modf): New declaration.
26301         * lib/modf.c: New file.
26302         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26304         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26305         * modules/modf (Files): Add lib/modf.c.
26306         (Depends-on): Add math, isfinite, trunc, isinf.
26307         (configure.ac): Addrange to compile lib/modf.c if needed.
26308         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26309         m4/signbit.m4.
26310         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26311         * tests/test-math-c++.cc: Check the declaration of modf.
26312         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26314         Tests for module 'modfl-ieee'.
26315         * modules/modfl-ieee-tests: New file.
26316         * tests/test-modfl-ieee.c: New file.
26318         New module 'modfl-ieee'.
26319         * modules/modfl-ieee: New file.
26321         Tests for module 'modf-ieee'.
26322         * modules/modf-ieee-tests: New file.
26323         * tests/test-modf-ieee.c: New file.
26325         New module 'modf-ieee'.
26326         * modules/modf-ieee: New file.
26328         Tests for module 'modff-ieee'.
26329         * modules/modff-ieee-tests: New file.
26330         * tests/test-modff-ieee.c: New file.
26331         * tests/test-modf-ieee.h: New file.
26333         New module 'modff-ieee'.
26334         * modules/modff-ieee: New file.
26336 2012-02-26  Bruno Haible  <bruno@clisp.org>
26338         Tests for module 'fabsl-ieee'.
26339         * modules/fabsl-ieee-tests: New file.
26340         * tests/test-fabsl-ieee.c: New file.
26342         New module 'fabsl-ieee'.
26343         * modules/fabsl-ieee: New file.
26345         Tests for module 'fabs-ieee'.
26346         * modules/fabs-ieee-tests: New file.
26347         * tests/test-fabs-ieee.c: New file.
26349         New module 'fabs-ieee'.
26350         * modules/fabs-ieee: New file.
26352         Tests for module 'fabsf-ieee'.
26353         * modules/fabsf-ieee-tests: New file.
26354         * tests/test-fabsf-ieee.c: New file.
26355         * tests/test-fabs-ieee.h: New file.
26357         New module 'fabsf-ieee'.
26358         * modules/fabsf-ieee: New file.
26360 2012-02-26  Bruno Haible  <bruno@clisp.org>
26362         Tests for module 'fmal-ieee'.
26363         * modules/fmal-ieee-tests: New file.
26364         * tests/test-fmal-ieee.c: New file.
26366         New module 'fmal-ieee'.
26367         * modules/fmal-ieee: New file.
26369         Tests for module 'fma-ieee'.
26370         * modules/fma-ieee-tests: New file.
26371         * tests/test-fma-ieee.c: New file.
26373         New module 'fma-ieee'.
26374         * modules/fma-ieee: New file.
26376         Tests for module 'fmaf-ieee'.
26377         * modules/fmaf-ieee-tests: New file.
26378         * tests/test-fmaf-ieee.c: New file.
26379         * tests/test-fma-ieee.h: New file.
26381         New module 'fmaf-ieee'.
26382         * modules/fmaf-ieee: New file.
26384 2012-02-26  Bruno Haible  <bruno@clisp.org>
26386         Tests for module 'ldexpl-ieee'.
26387         * modules/ldexpl-ieee-tests: New file.
26388         * tests/test-ldexpl-ieee.c: New file.
26390         New module 'ldexpl-ieee'.
26391         * modules/ldexpl-ieee: New file.
26393         Tests for module 'ldexp-ieee'.
26394         * modules/ldexp-ieee-tests: New file.
26395         * tests/test-ldexp-ieee.c: New file.
26397         New module 'ldexp-ieee'.
26398         * modules/ldexp-ieee: New file.
26400         Tests for module 'ldexpf-ieee'.
26401         * modules/ldexpf-ieee-tests: New file.
26402         * tests/test-ldexpf-ieee.c: New file.
26403         * tests/test-ldexp-ieee.h: New file.
26405         New module 'ldexpf-ieee'.
26406         * modules/ldexpf-ieee: New file.
26408 2012-02-26  Bruno Haible  <bruno@clisp.org>
26410         Refactor frexp*-ieee tests.
26411         * tests/test-frexp-ieee.h: New file.
26412         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26413         (main): Just call test_function.
26414         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26415         (main): Just call test_function.
26416         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26417         (main): Just call test_function.
26418         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26419         * modules/frexp-ieee-tests (Files): Likewise.
26420         * modules/frexpl-ieee-tests (Files): Likewise.
26422         Tests for module 'frexpl-ieee'.
26423         * modules/frexpl-ieee-tests: New file.
26424         * tests/test-frexpl-ieee.c: New file.
26426         New module 'frexpl-ieee'.
26427         * modules/frexpl-ieee: New file.
26429         Tests for module 'frexp-ieee'.
26430         * modules/frexp-ieee-tests: New file.
26431         * tests/test-frexp-ieee.c: New file.
26433         New module 'frexp-ieee'.
26434         * modules/frexp-ieee: New file.
26436         Tests for module 'frexpf-ieee'.
26437         * modules/frexpf-ieee-tests: New file.
26438         * tests/test-frexpf-ieee.c: New file.
26440         New module 'frexpf-ieee'.
26441         * modules/frexpf-ieee: New file.
26443 2012-02-26  Bruno Haible  <bruno@clisp.org>
26445         roundl-ieee tests: More tests.
26446         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26447         (main): Add tests for [MX] shaded specification in POSIX.
26448         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26449         (Depends-on): Add isnanl-nolibm.
26451         round-ieee tests: More tests.
26452         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26453         (main): Add tests for [MX] shaded specification in POSIX.
26454         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26455         (Depends-on): Add isnand-nolibm.
26457         roundf-ieee tests: More tests.
26458         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26459         (main): Add tests for [MX] shaded specification in POSIX.
26460         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26461         (Depends-on): Add isnanf-nolibm.
26463         truncl-ieee tests: More tests.
26464         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26465         (main): Add tests for [MX] shaded specification in POSIX.
26466         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26467         (Depends-on): Add isnanl-nolibm.
26469         trunc-ieee tests: More tests.
26470         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26471         (main): Add tests for [MX] shaded specification in POSIX.
26472         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26473         (Depends-on): Add isnand-nolibm.
26475         truncf-ieee tests: More tests.
26476         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26477         (main): Add tests for [MX] shaded specification in POSIX.
26478         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26479         (Depends-on): Add isnanf-nolibm.
26481         ceill-ieee tests: More tests.
26482         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26483         (main): Add tests for [MX] shaded specification in POSIX.
26484         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26485         (Depends-on): Add isnanl-nolibm.
26487         ceil-ieee tests: More tests.
26488         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26489         (main): Add tests for [MX] shaded specification in POSIX.
26490         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26491         (Depends-on): Add isnand-nolibm.
26493         ceilf-ieee tests: More tests.
26494         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26495         (main): Add tests for [MX] shaded specification in POSIX.
26496         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26497         (Depends-on): Add isnanf-nolibm.
26499         floorl-ieee tests: More tests.
26500         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26501         (main): Add tests for [MX] shaded specification in POSIX.
26502         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26503         (Depends-on): Add isnanl-nolibm.
26505         floor-ieee tests: More tests.
26506         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26507         (main): Add tests for [MX] shaded specification in POSIX.
26508         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26509         (Depends-on): Add isnand-nolibm.
26511         floorf-ieee tests: More tests.
26512         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26513         (main): Add tests for [MX] shaded specification in POSIX.
26514         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26515         (Depends-on): Add isnanf-nolibm.
26517 2012-02-26  Bruno Haible  <bruno@clisp.org>
26519         fpieee: More comments.
26520         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26522 2012-02-25  Bruno Haible  <bruno@clisp.org>
26524         Tests for module 'log10l'.
26525         * modules/log10l-tests: New file.
26526         * tests/test-log10l.c: New file.
26527         * tests/test-math-c++.cc: Check the declaration of log10l.
26529         New module 'log10l'.
26530         * lib/math.in.h (log10l): New declaration.
26531         * lib/log10l.c: New file.
26532         * m4/log10l.m4: New file.
26533         * modules/log10l: New file.
26534         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26536         HAVE_DECL_LOG10L.
26537         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26538         HAVE_DECL_LOG10L.
26539         * doc/posix-functions/log10l.texi: Mention the new module.
26541 2012-02-25  Bruno Haible  <bruno@clisp.org>
26543         fmodl, remainder*: Avoid wrong results due to rounding errors.
26544         * lib/fmodl.c (fmodl): Correct the result if it is not within the
26545         expected bounds.
26546         * lib/remainderf.c (remainderf): Likewise.
26547         * lib/remainder.c (remainder): Likewise.
26548         * lib/remainderl.c (remainderl): Likewise.
26550 2012-02-25  Bruno Haible  <bruno@clisp.org>
26552         Tests for module 'remainderl'.
26553         * modules/remainderl-tests: New file.
26554         * tests/test-remainderl.c: New file.
26555         * tests/test-math-c++.cc: Check the declaration of remainderl.
26557         New module 'remainderl'.
26558         * lib/math.in.h (remainderl): New declaration.
26559         * lib/remainderl.c: New file.
26560         * m4/remainderl.m4: New file.
26561         * modules/remainderl: New file.
26562         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
26563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
26564         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
26565         HAVE_REMAINDERL.
26566         * doc/posix-functions/remainderl.texi: Mention the new module.
26568 2012-02-25  Bruno Haible  <bruno@clisp.org>
26570         Tests for module 'remainderf'.
26571         * modules/remainderf-tests: New file.
26572         * tests/test-remainderf.c: New file.
26573         * tests/test-math-c++.cc: Check the declaration of remainderf.
26575         New module 'remainderf'.
26576         * lib/math.in.h (remainderf): New declaration.
26577         * lib/remainderf.c: New file.
26578         * m4/remainderf.m4: New file.
26579         * modules/remainderf: New file.
26580         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
26581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
26582         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
26583         HAVE_REMAINDERF.
26584         * doc/posix-functions/remainderf.texi: Mention the new module.
26586 2012-02-25  Bruno Haible  <bruno@clisp.org>
26588         remainder: Support for MSVC.
26589         * lib/math.in.h (remainder): New declaration.
26590         * lib/remainder.c: New file.
26591         * m4/remainder.m4: New file.
26592         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
26593         (Depends-on): Add math, round, fma.
26594         (configure.ac): Use results of gl_FUNC_REMAINDER.
26595         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
26596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
26597         HAVE_DECL_REMAINDER.
26598         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
26599         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
26600         * tests/test-math-c++.cc: Check the declaration of remainder.
26601         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
26602         problems are fixed.
26604 2012-02-25  Bruno Haible  <bruno@clisp.org>
26606         Tests for module 'fmodl'.
26607         * modules/fmodl-tests: New file.
26608         * tests/test-fmodl.c: New file.
26609         * tests/test-math-c++.cc: Check the declaration of fmodl.
26611         New module 'fmodl'.
26612         * lib/math.in.h (fmodl): New declaration.
26613         * lib/fmodl.c: New file.
26614         * m4/fmodl.m4: New file.
26615         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
26616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
26617         REPLACE_FMODL.
26618         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
26619         REPLACE_FMODL.
26620         * modules/fmodl: New file.
26621         * doc/posix-functions/fmodl.texi: Mention the new module.
26623 2012-02-25  Bruno Haible  <bruno@clisp.org>
26625         Tests for module 'modfl'.
26626         * modules/modfl-tests: New file.
26627         * tests/test-modfl.c: New file.
26628         * tests/test-math-c++.cc: Check the declaration of modfl.
26630         New module 'modfl'.
26631         * lib/math.in.h (modfl): New declaration.
26632         * lib/modfl.c: New file.
26633         * m4/modfl.m4: New file.
26634         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
26635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
26636         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
26637         * modules/modfl: New file.
26638         * doc/posix-functions/modfl.texi: Mention the new module.
26640 2012-02-25  Bruno Haible  <bruno@clisp.org>
26642         Tests for module 'fabsl'.
26643         * modules/fabsl-tests: New file.
26644         * tests/test-fabsl.c: New file.
26645         * tests/test-math-c++.cc: Check the declaration of fabsl.
26647         New module 'fabsl'.
26648         * lib/math.in.h (fabsl): New declaration.
26649         * lib/fabsl.c: New file.
26650         * m4/fabsl.m4: New file.
26651         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
26652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
26653         REPLACE_FABSL.
26654         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
26655         REPLACE_FABSL.
26656         * modules/fabsl: New file.
26657         * doc/posix-functions/fabsl.texi: Mention the new module.
26659 2012-02-25  Bruno Haible  <bruno@clisp.org>
26661         fabs tests: More tests.
26662         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
26663         (zero): New variable.
26664         (main): Add tests for signed zero.
26665         * modules/fabs-tests (Files): Add tests/minus-zero.h.
26667         fabsf tests: More tests.
26668         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
26669         (zero): New variable.
26670         (main): Add tests for signed zero.
26671         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
26673 2012-02-24  Bruno Haible  <bruno@clisp.org>
26675         atanl: Provide function definition on MSVC.
26676         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
26677         function pointer.
26678         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
26680 2012-02-24  Bruno Haible  <bruno@clisp.org>
26682         acosl: Provide function definition on MSVC.
26683         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
26684         function pointer.
26685         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
26687 2012-02-24  Bruno Haible  <bruno@clisp.org>
26689         asinl: Provide function definition on MSVC.
26690         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
26691         function pointer.
26692         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
26694 2012-02-24  Bruno Haible  <bruno@clisp.org>
26696         tanl: Provide function definition on MSVC.
26697         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
26698         function pointer.
26699         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
26701 2012-02-24  Bruno Haible  <bruno@clisp.org>
26703         cosl: Provide function definition on MSVC.
26704         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
26705         function pointer.
26706         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
26708 2012-02-24  Bruno Haible  <bruno@clisp.org>
26710         sinl: Provide function definition on MSVC.
26711         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
26712         function pointer.
26713         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
26715 2012-02-24  Bruno Haible  <bruno@clisp.org>
26717         logl: Provide function definition on MSVC.
26718         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
26719         function pointer.
26720         * lib/math.in.h (logl): Undefine if it does not exist as a function.
26722 2012-02-24  Bruno Haible  <bruno@clisp.org>
26724         expl: Provide function definition on MSVC.
26725         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
26726         function pointer.
26727         * lib/math.in.h (expl): Undefine if it does not exist as a function.
26729 2012-02-24  Bruno Haible  <bruno@clisp.org>
26731         sqrtl: Provide function definition on MSVC.
26732         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
26733         a function pointer.
26734         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
26736 2012-02-24  Bruno Haible  <bruno@clisp.org>
26738         ceill: Provide function definition on MSVC.
26739         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
26740         used as a function pointer.
26741         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
26743 2012-02-24  Bruno Haible  <bruno@clisp.org>
26745         floorl: Provide function definition on MSVC.
26746         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
26747         used as a function pointer.
26748         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
26750 2012-02-24  Bruno Haible  <bruno@clisp.org>
26752         ceilf: Provide function definition on MSVC.
26753         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
26754         used as a function pointer.
26755         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
26757 2012-02-24  Bruno Haible  <bruno@clisp.org>
26759         floorf: Provide function definition on MSVC.
26760         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
26761         used as a function pointer.
26762         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
26764 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26766         stdnoreturn: new module
26767         This implements a replacement for C11's <stdnoreturn.h>.
26768         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
26769         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
26770         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
26771         * tests/test-stdnoreturn.c: New files.
26773 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
26775         regex: fix false multibyte matches in some regular expressions
26776         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
26777         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
26778         * lib/regex_internal.c (re_string_skip_chars):
26779         Fix miscomputation of remain_len that may cause incomplete
26780         multi-byte character and false match.
26782 2012-02-24  Jim Meyering  <meyering@redhat.com>
26784         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
26785         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
26786         uses with "==" *before* the call, e.g., 0 == strcmp (...)
26787         Remove now-unnecessary str''cmp obfuscation.
26788         Suggested by Akim Demaille.
26790 2012-02-24  Bruno Haible  <bruno@clisp.org>
26792         streq: Rename macro.
26793         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
26794         * NEWS: Mention the change.
26795         * lib/mbrtowc.c (mbrtowc): Update.
26796         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
26797         * lib/wcwidth.c (wcwidth): Update.
26798         Suggested by Akim Demaille and Jim Meyering.
26800 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26802         regex: fix typo in definition of MIN
26803         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
26804         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
26806 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26807             Bruno Haible  <bruno@clisp.org>
26809         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
26810         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
26811         entries into a stack-allocated buffer directly.
26812         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
26814 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26815             Bruno Haible  <bruno@clisp.org>
26817         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
26819          - There were several instances of this pattern:
26821              for (;;) {
26822                n = acl (f, GETACLCNT, 0, NULL);
26823                [ allocate an array A of size N ]
26824                if (acl (f, GETACL, n, a) == n)
26825                  break;
26826              }
26828            This loop might never terminate if some other process is constantly
26829            manipulating the file's ACL.  The loop should be rewritten to
26830            terminate.
26832          - The acl (... GETACLNT ...) call is merely an optimization; its value
26833            is merely a hint as to how big to make the array.  A better
26834            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
26835            and just guess a reasonably-big size, growing the size and trying
26836            again if it's not large enough.  This guarantees termination, and
26837            saves a system call.
26839         * lib/acl-internal.h: Include <limits.h>.
26840         (MIN, SIZE_MAX): New macros.
26841         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
26842         a stack-allocated buffer, and use malloc if it does not fit. Don't
26843         use GETACLCNT.
26844         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26846 2012-02-19  Bruno Haible  <bruno@clisp.org>
26848         acl: Fix endless loop on Solaris with vxfs.
26849         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
26850         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
26851         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26852         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
26853         * tests/test-sameacls.c (main)[Solaris]: Likewise.
26854         Reported by Bill Jones in
26855         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
26857 2012-02-19  Bruno Haible  <bruno@clisp.org>
26859         acl: Fix copy-acl test failure on Solaris 11.0.
26860         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
26861         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
26862         that this function returns 0 in some more cases.
26864 2012-02-19  Bruno Haible  <bruno@clisp.org>
26866         acl: Update doc references.
26867         * doc/acl-resources.txt: Update links to Solaris documentation.
26869 2012-02-19  Bruno Haible  <bruno@clisp.org>
26871         Fix test failure in many locales on Solaris 11.
26872         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
26873         'tr' arguments.
26874         * tests/test-pipe-filter-ii1.c (main): Likewise.
26875         * build-aux/bootstrap (check_versions): Run 'tr' command with range
26876         expressions in the C locale.
26877         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26878         * m4/host-os.m4 (gl_HOST_OS): Likewise.
26880 2012-02-19  Bruno Haible  <bruno@clisp.org>
26882         gnulib-tool: Improve usage message.
26883         * gnulib-tool (func_usage): Move doc of --help and --version to the
26884         section "Operation modes".
26886 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
26888         README-release: make it easier to execute commands
26889         * top/README-release: break commands out on to separate lines.
26891 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
26893         GNUmakefile: simplify detection of unconfigured trees
26894         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
26895         whether the tree make is being run from is already configured or
26896         not.  Related simplifications.
26898 2012-02-13  Simon Josefsson  <simon@josefsson.org>
26900         * gnulib-tool (func_usage): Document --help and --version.
26902 2012-02-11  Jim Meyering  <meyering@redhat.com>
26904         bootstrap: don't exit 0 upon gnulib-tool failure
26905         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
26906         its exit status, not 0.
26908 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
26910         README-release: various improvements
26911         * top/README-release: Give a command to push changes for the
26912         release.  Add "distcheck" to list of other pre-release checks.
26913         Fix instance of "make stable" which should be "make TYPE".
26915 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26917         maint: replace FSF snail-mail addresses with URLs
26918         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
26919         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
26920         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
26921         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
26922         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
26923         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
26924         * lib/check-version.c, lib/check-version.h, lib/config.charset:
26925         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
26926         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
26927         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
26928         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
26929         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
26930         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
26931         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
26932         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
26933         * lib/glthread/thread.c, lib/glthread/thread.h:
26934         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
26935         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
26936         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
26937         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
26938         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
26939         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
26940         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
26941         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
26942         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
26943         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
26944         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
26945         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
26946         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
26947         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
26948         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
26949         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
26950         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
26951         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
26952         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
26953         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
26954         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
26955         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
26956         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
26957         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
26958         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
26959         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
26960         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
26961         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
26962         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
26963         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
26964         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
26965         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
26966         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
26967         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
26968         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
26969         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
26970         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
26971         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
26972         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
26973         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
26974         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
26975         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
26976         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
26977         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
26978         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
26979         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
26980         * tests/test-poll.c, tests/test-quotearg-simple.c:
26981         * tests/test-quotearg.c, tests/test-quotearg.h:
26982         * tests/test-round-ieee.c, tests/test-round1.c:
26983         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
26984         * tests/test-roundl-ieee.c, tests/test-roundl.c:
26985         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
26986         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
26987         * tests/test-strerror.c, tests/test-strerror_r.c:
26988         * tests/test-strsignal.c, tests/test-strverscmp.c:
26989         * tests/test-xmemdup0.c:
26990         Replace FSF snail mail addresses with URLs, as per GNU coding
26991         standards.  See glibc bug
26992         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
26994 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
26996         README-release: capitalize a word and split a line
26997         * top/README-release: Fix punctuation and spacing.
26999 2012-02-08  Akim Demaille  <demaille@gostai.com>
27001         fatal-signal: use C prototypes (with explicit void).
27002         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27003         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
27005 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27007         regex: spelling fix
27008         * lib/regexec.c: spelling fix
27010         regex: rely on stdint.h for SIZE_MAX
27011         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
27013 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27015         regex: merge glibc changes
27017         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
27018         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
27019         (init_word_char): Work even if bitset words are not exactly 32 or
27020         64 bits wide.  Don't assume there are no padding bits.
27021         * lib/regex.c [_LIBC]: Do not include <config.h>.
27022         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
27023         and -Wtype-limits.
27024         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
27025         needless disagreement with glibc.  All uses changed.  Define it to
27026         1 only if _GNU_SOURCE, to match glibc.
27027         (_REG_RM_NAME): Remove; no longer needed, since the names in
27028         question are now all protected by __USE_GNU.
27029         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
27030         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
27031         * lib/regex_internal.h (MIN): New macro.
27033         2012-01-03 Ulrich Drepper <drepper@gmail.com>
27034         * lib/regcomp.c (init_word_char): Optimize regex a bit.
27036         2011-12-30 Jakub Jelinek <jakub@redhat.com>
27037         * lib/regex_internal.c (re_string_fetch_byte_case):
27038         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
27039         is miscompiled, and it turns out it is because of an incorrect
27040         attribute on re_string_fetch_byte_case.  Unlike
27041         re_string_peek_byte_case, this one is really not pure, it modifies
27042         memory (increments pstr->cur_idx), and with the pure attribute GCC
27043         assumed it doesn't and it cached the presumed value of
27044         regexp->cur_idx in a variable across the
27045          for (;; ++i)
27046            {
27047              if (i >= BRACKET_NAME_BUF_SIZE)
27048                return REG_EBRACK;
27049              if (token->type == OP_OPEN_CHAR_CLASS)
27050                ch = re_string_fetch_byte_case (regexp);
27051              else
27052                ch = re_string_fetch_byte (regexp);
27053              if (re_string_eoi(regexp))
27054                return REG_EBRACK;
27055              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
27056                break;
27057              elem->opr.name[i] = ch;
27058            }
27060         2011-11-29 Andreas Schwab <schwab@redhat.com>
27061         * lib/regcomp.c (build_equiv_class):
27062         Fix access after end of search string in regex matcher.
27064         2011-11-12 Ulrich Drepper <drepper@redhat.com>
27065         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
27067         2011-10-12 Ulrich Drepper <drepper@redhat.com>
27068         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
27070         2011-10-11 Ulrich Drepper <drepper@redhat.com>
27071         * lib/regcomp.c (parse_branch, parse_sub_exp):
27072         More regex memory leak fixes and tests.
27073         (parse_sub_exp, parse_bracket_exp):
27074         Fix memory leak for some invalid regular expressions.
27076         2011-05-28 Ulrich Drepper <drepper@gmail.com>
27077         * lib/regex_internal.c, lib/regexec.c:
27078         Fix unnecessary overallocation due to incomplete character.  When
27079         incomplete characters are found at the end of a string the code
27080         ran amok and allocated lots of memory.  Stricter limits are now in
27081         place.
27083         2011-05-20 Reuben Thomas <rrt@sc3d.org>
27084         * lib/regex.h: Update documentation.
27086         2011-05-16 Aharon Robbins <arnold@skeeve.com>
27087         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
27089         2010-05-05 Andreas Schwab <schwab@redhat.com>
27090         * lib/regexec.c (find_collation_sequence_value):
27091         Fix lookup of collation sequence value during regexp matching.
27093         2010-01-22 Ulrich Drepper <drepper@redhat.com>
27094         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
27096         2008-01-16 Ulrich Drepper <drepper@redhat.com>
27097         * lib/regex.h: Cleanup namespace.
27099         2007-11-26 Ulrich Drepper <drepper@redhat.com>
27100         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
27102         2007-08-26 Ulrich Drepper <drepper@redhat.com>
27103         * lib/regex_internal.h: Prevent some declarations and definitions
27104         to be seen when used in tests.
27106         2005-05-06 Ulrich Drepper <drepper@redhat.com>
27107         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
27108         __libc_lock_* macros if not _LIBC.
27109         (struct re_dfa_t): Add lock.
27111 2012-02-07  Eric Blake  <eblake@redhat.com>
27113         maint.mk: also prohibit lower-case @var@
27114         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
27115         lower case, like @top_srcdir@.
27117 2012-02-04  Eric Blake  <eblake@redhat.com>
27119         canonicalize: avoid uninitialized memory use
27120         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
27121         random '/' left in dest.
27122         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
27124 2012-02-04  Bruno Haible  <bruno@clisp.org>
27126         isatty: Fix test failure of ptsname_r on native Windows.
27127         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
27128         and don't set errno.
27129         (isatty): Test first whether fd is valid. Set errno when returning 0.
27131 2012-02-04  Bruno Haible  <bruno@clisp.org>
27133         spawn-pipe tests: Fix a NULL program name in a diagnostic.
27134         * tests/test-spawn-pipe-main.c: Include progname.h.
27135         (main): Invoke set_program_name.
27136         * modules/spawn-pipe-tests (Depends-on): Add progname.
27138         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
27139         * tests/test-nonblocking-socket-main.c: Include progname.h.
27140         (main): Invoke set_program_name.
27141         * modules/nonblocking-socket-tests (Depends-on): Add progname.
27143         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
27144         * tests/test-nonblocking-pipe-main.c: Include progname.h.
27145         (main): Invoke set_program_name.
27146         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
27148 2012-02-04  Eric Blake  <eblake@redhat.com>
27150         canonicalize-lgpl: fix // handling
27151         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
27153         canonicalize: fix // handling
27154         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
27155         /// to //, since only // is special.
27157 2012-02-04  Bruno Haible  <bruno@clisp.org>
27159         ioctl: Fix test failure on native Windows.
27160         * lib/ioctl.c: Include msvc-nothrow.h.
27161         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
27163 2012-02-04  Bruno Haible  <bruno@clisp.org>
27165         fsync: Avoid test failure on native Windows.
27166         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
27167         read-only.
27169 2012-02-04  Bruno Haible  <bruno@clisp.org>
27171         sys_select: Avoid syntax error on OpenBSD 5.0.
27172         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
27173         currently being included, just include the system's <sys/select.h>.
27175 2012-02-04  Bruno Haible  <bruno@clisp.org>
27177         sys_select: Avoid syntax error on OpenBSD 5.0.
27178         * lib/sys_select.in.h: Include <signal.h> only after the include_next
27179         <sys/select.h>, not before.
27180         Reported by Jiri B <jirib@devio.us>.
27182 2012-02-04  Bruno Haible  <bruno@clisp.org>
27184         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
27185         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
27186         global variables.
27187         * tests/test-get-rusage-data.c (main): Likewise.
27188         Reported by Jim Meyering.
27190 2012-02-04  Bruno Haible  <bruno@clisp.org>
27192         stdioext: Fix last commit.
27193         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
27195 2012-02-03  Bruno Haible  <bruno@clisp.org>
27197         stdioext: Add tentative support for Plan9.
27198         * lib/stdio-impl.h: Include <errno.h>.
27199         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
27200         * lib/freadable.c (freadable): Likewise.
27201         * lib/fwritable.c (fwritable): Likewise.
27202         * lib/fbufmode.c (fbufmode): Likewise.
27203         * lib/freading.c (freading): Likewise.
27204         * lib/fwriting.c (fwriting): Likewise.
27205         * lib/freadptr.c (freadptr): Likewise.
27206         * lib/freadseek.c (freadptrinc): Likewise.
27207         * lib/freadahead.c (freadahead): Likewise.
27208         * lib/fpurge.c (fpurge): Likewise.
27209         * lib/fseeko.c (rpl_fseeko): Likewise.
27210         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
27211         Reported by Jens Staal <staal1978@gmail.com>.
27213 2012-02-02  Jim Meyering  <meyering@redhat.com>
27215         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
27216         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
27217         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
27218         not even to try to add the attribute.  Instead, add a pragma to suppress
27219         the suggestion/warning.
27221 2012-01-31  Karl Berry  <karl@gnu.org>
27223         setstate doc: typo.
27224         * doc/posix-functions/setstate.texi (setstate): { not (.
27226 2012-01-31  Bruno Haible  <bruno@clisp.org>
27228         popen: Make more robust on Windows.
27229         * lib/popen.c: On native Windows, use the _popen based code even if
27230         HAVE_POPEN is set.
27231         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
27232         environment variable on native Windows.
27234 2012-01-30  Bruno Haible  <bruno@clisp.org>
27236         pclose: Fix typo.
27237         * lib/stdio.in.h (pclose): Fix typo in warning message.
27239 2012-01-30  Bruno Haible  <bruno@clisp.org>
27241         doc about getlogin_r, setstate.
27242         * doc/posix-functions/getlogin_r.texi: List the incompatible
27243         declaration problem under "not fixed by gnulib".
27244         * doc/posix-functions/setstate.texi: Mention incompatible declaration
27245         problem on Solaris 11 and other platforms.
27247 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
27248             Bruno Haible  <bruno@clisp.org>
27250         poll tests: Make test more robust.
27251         * tests/test-poll.c: Include macros.h.
27252         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
27253         return value of various I/O operations.
27254         * modules/poll-tests (Files): Add tests/macros.h.
27256 2012-01-30  Bruno Haible  <bruno@clisp.org>
27258         sys_stat: Fix support for mingw64 and MSVC.
27259         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
27260         header files already do it.
27261         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
27262         stat itself.
27263         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27265 2012-01-30  Bruno Haible  <bruno@clisp.org>
27267         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
27268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
27269         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
27271 2012-01-29  Bruno Haible  <bruno@clisp.org>
27273         quotearg: Fix test failure on MacOS X 10.5.
27274         * tests/test-quotearg-simple.c: Include localcharset.h.
27275         (main): If the locale encoding is not ASCII, bypass the tests of
27276         locale_quoting_style and clocale_quoting_style.
27277         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
27279 2012-01-29  Jim Meyering  <meyering@redhat.com>
27281         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
27282         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
27283         detect uses of canonicalize_file_name.
27285 2012-01-28  Bruno Haible  <bruno@clisp.org>
27287         test-framework-sh: Fix test failure with AIX 7.1 diff.
27288         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
27289         in column 1, like 'diff -c' does.
27290         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
27291         whether 'diff -u' is used. Instead, test whether the output contains
27292         some '@' character.
27294 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27296         strtoimax: eliminate need for stdint.h, inttypes.h checks
27297         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27298         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27299         the prerequisites for a recently-introduced strtoimax test.
27300         I guess this might cause strtoimax to be replaced when not
27301         strictly necessary on older hosts, but this shouldn't introduce
27302         any bugs and it should make Emacs 'configure' faster on typical
27303         modern hosts.  Problem discovered when importing the latest gnulib
27304         to an Emacs test version.
27305         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27307 2012-01-28  Bruno Haible  <bruno@clisp.org>
27309         sys_time: Override 'struct timeval' on some native Windows platforms.
27310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27311         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27312         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27313         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27314         needs to be overridden.
27315         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27316         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27317         * tests/test-sys_select.c: Check that the tv_sec member has the same
27318         size as a 'time_t'.
27319         * tests/test-sys_time.c: Likewise.
27320         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27321         is set, set also REPLACE_GETTIMEOFDAY.
27322         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27323         convert the resulting 'struct timeval' before returning.
27324         * lib/select.c: Include <sys/time.h>.
27325         (select, timeval): Undefine at the right place.
27326         * modules/select (Depends-on): Add sys_time.
27327         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27328         some Windows platforms.
27329         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27331 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27333         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27334         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27335         an integer.
27336         * lib/fcntl.c (dupfd): Likewise.
27337         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27339 2012-01-28  Bruno Haible  <bruno@clisp.org>
27341         fcntl: Avoid compilation error on native Windows.
27342         * modules/fcntl (Depends-on): Add 'close'.
27344 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27346         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27347         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27348         pointer to an integer.
27349         * lib/poll.c (IsConsoleHandle): Likewise.
27350         * lib/isatty.c (IsConsoleHandle): Likewise.
27352 2012-01-28  Jim Meyering  <meyering@redhat.com>
27354         doc: clarify README-release
27355         * top/README-release: Clarify: you should make a point to have
27356         the latest stable versions of build tools in your PATH, and the
27357         reference to buildreq is solely for its list of tool names, not
27358         for its minimal-functional version numbers.
27359         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27361         maint.mk: use more readable (yet functionally equivalent) quoting
27362         It is common to quote a single quote in a single quoted string like
27363         this:  '...'\''...'.  Unless you know the idiom, that looks like
27364         gibberish, so prefer to double-quote the string when possible.
27365         Then you can use a more readable, lone single quote: "...'..."
27366         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27367         "don't" is more readable than the equivalent 'don'\''t'.
27368         (sc_cast_of_x_alloc_return_value): Likewise.
27369         (sc_cast_of_alloca_return_value): Likewise.
27370         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27371         rather than '\'':'\''.
27373 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27375         stdalign: relax _Alignof and tighten _Alignas test
27376         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27377         as it was too strict: alignof must divide offsetof, but it need
27378         not equal offsetof.  Inspired by Joseph S. Myers's comment
27379         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27380         Conversely, tighten the _Alignas test a bit, as the resulting
27381         alignment must be exactly 8.
27383 2012-01-27  Bruno Haible  <bruno@clisp.org>
27385         stdalign: Document the last change.
27386         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27388 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27390         stdalign: check that alignof and offsetof are consistent
27391         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27392         Problem reported for gnulib by Richard W.M. Jones in
27393         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27395 2012-01-27  Jim Meyering  <meyering@redhat.com>
27397         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27398         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27399         convert a sequence with gaps to the minimal containing range.
27400         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27401         * tests/test-update-copyright.sh: Test for this.
27402         The FSF confirmed it is ok to do this, assuming there is at
27403         least one significant change per year in the affected range:
27404         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27406 2012-01-26  Bruno Haible  <bruno@clisp.org>
27408         pipe2: refine doc about thread-safety
27409         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27410         multithread-safety problem.
27411         * doc/glibc-functions/accept4.texi: Likewise.
27413 2012-01-26  Bruno Haible  <bruno@clisp.org>
27415         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27416         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27417         In the test program, include <fcntl.h>, for O_RDONLY.
27419 2012-01-26  Eric Blake  <eblake@redhat.com>
27421         pipe2: document lack of thread-safety in replacement
27422         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27423         issue in replacement.
27424         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27425         Based on a report by Eric Wong.
27427 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27428             Bruno Haible  <bruno@clisp.org>
27430         malloca: Avoid warnings on x86_64 mingw64.
27431         * lib/malloca.c: Include <stdint.h>.
27432         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27433         * modules/malloca (Depends-on): Add stdint.
27434         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27436 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27438         obstack: remove __STDC__ conditionals
27439         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27440         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27441         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27442         m4/include_next.m4 as the only gnulib-maintained places that still
27443         refer to __STDC__.
27445 2012-01-24  Bruno Haible  <bruno@clisp.org>
27447         havelib: Modern quoting.
27448         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27449         the recent change to the GNU coding standards.
27451 2012-01-24  Bruno Haible  <bruno@clisp.org>
27453         stdint: Improve support for Android.
27454         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27455         Reported by Simon Josefsson <simon@josefsson.org>.
27457 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27459         doc: omit trailing empty lines from INSTALL etc.
27460         * doc/Makefile (INSTALL): Omit trailing empty lines.
27461         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27462         omit trailing empty lines.  This simplifies the build procedure.
27464 2012-01-23  Jim Meyering  <meyering@redhat.com>
27466         tests: avoid spurious warnings about gl_sockets_startup
27467         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27468         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27469         reporting a "statement with no effect".
27470         * tests/test-accept.c (main): Mark as "(void)".
27471         * tests/test-accept4.c (main): Likewise.
27472         * tests/test-bind.c (main): Likewise.
27473         * tests/test-connect.c (main): Likewise.
27474         * tests/test-getpeername.c (main): Likewise.
27475         * tests/test-getsockname.c (main): Likewise.
27476         * tests/test-getsockopt.c (main): Likewise.
27477         * tests/test-listen.c (main): Likewise.
27478         * tests/test-recv.c (main): Likewise.
27479         * tests/test-recvfrom.c (main): Likewise.
27480         * tests/test-send.c (main): Likewise.
27481         * tests/test-sendto.c (main): Likewise.
27482         * tests/test-setsockopt.c (main): Likewise.
27483         * tests/test-shutdown.c (main): Likewise.
27485 2012-01-21  Bruno Haible  <bruno@clisp.org>
27487         locale-fr.m4: Fix for Android.
27488         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27489         failure of the test program on Bionic libc.
27491 2012-01-21  Jim Meyering  <meyering@redhat.com>
27493         bootstrap: fail when bootstrap_post_import_hook fails
27494         Otherwise, it's far too easy to miss diagnostics emitted
27495         between gnulib-tool's output and that of running configure.
27496         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27498 2012-01-17  Jim Meyering  <meyering@redhat.com>
27500         maint: enable sc_trailing_blank
27501         * build-aux/pmccabe.css: Remove trailing blanks.
27502         * doc/acl-cygwin.txt: Likewise.
27503         * doc/gnu-oids.texi: Likewise
27504         * cfg.mk: Enable sc_trailing_blank.
27505         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27507 2012-01-17  Jim Meyering  <meyering@redhat.com>
27509         maint: enable sc_prohibit_openat_without_use
27510         * cfg.mk: Enable sc_prohibit_openat_without_use.
27511         Exempt lib/selinux-at.c.
27513 2012-01-17  Jim Meyering  <meyering@redhat.com>
27515         maint: enable sc_prohibit_cloexec_without_use
27516         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27517         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27519 2012-01-17  Jim Meyering  <meyering@redhat.com>
27521         maint: enable sc_prohibit_intprops_without_use
27522         * cfg.mk: Enable sc_prohibit_intprops_without_use
27523         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27525 2012-01-17  Jim Meyering  <meyering@redhat.com>
27527         maint: enable sc_prohibit_hash_pjw_without_use
27528         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27529         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27530         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27531         following " (".
27533 2012-01-17  Jim Meyering  <meyering@redhat.com>
27535         maint: enable double-word-prohibiting rule
27536         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27537         Exempt three files.
27539 2012-01-17  Jim Meyering  <meyering@redhat.com>
27541         maint: remove empty lines at EOF, but excluding modules/*
27542         Apply syntax rules at home as well as abroad.  Most changes
27543         were induced by running this:
27544           make srcdir=. _build-aux=build-aux -f top/maint.mk \
27545             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
27546             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
27547         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
27548         Exempt modules/* and two binary files.
27549         Also exempt doc/INSTALL*, per request from Bruno Haible.
27550         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
27551         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
27552         * doc/Copyright/request-assign.future: Likewise.
27553         * doc/Copyright/request-disclaim.changes: Likewise.
27554         * doc/INSTALL: Likewise.
27555         * doc/INSTALL.ISO: Likewise.
27556         * doc/INSTALL.UTF-8: Likewise.
27557         * doc/acl-cygwin.txt: Likewise.
27558         * doc/acl-resources.txt: Likewise.
27559         * doc/fdl-1.2.texi: Likewise.
27560         * doc/fdl-1.3.texi: Likewise.
27561         * doc/fdl.texi: Likewise.
27562         * lib/argp-pin.c: Likewise.
27563         * lib/round.c: Likewise.
27564         * lib/unicase/u16-totitle.c: Likewise.
27565         * lib/unictype/block_test.c: Likewise.
27566         * lib/uninorm/canonical-decomposition.c: Likewise.
27567         * m4/README: Likewise.
27568         * m4/relocatable-lib.m4: Likewise.
27569         * tests/test-isnand-nolibm.c: Likewise.
27570         * tests/test-isnand.c: Likewise.
27571         * tests/uninorm/NormalizationTest.txt: Likewise.
27573 2012-01-17  Jim Meyering  <meyering@redhat.com>
27575         maint: add framework to run syntax-check rules against gnulib sources
27576         * cfg.mk: New file, to disable all currently-failing tests.
27577         We'll enable them one by one, as they are made to pass.
27578         * Makefile (sc_maint): New rule.
27580 2012-01-21  Bruno Haible  <bruno@clisp.org>
27582         stdint: Add support for Android.
27583         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
27584         include the system's <stdint.h>.
27585         Reported by Simon Josefsson <simon@josefsson.org>.
27587 2012-01-19  Jim Meyering  <meyering@redhat.com>
27589         bootstrap: add bootstrap_post_import_hook
27590         Bison does still need something like the gnulib_mk_hook whose
27591         invocation I had to remove along with slurp in commit 767ccd40.
27592         Technically, we could get along without it, but doing so would
27593         have required living with a warning and a mandatory post-bootstrap
27594         automake rerun.
27595         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
27596         (bootstrap_post_import_hook): New function.
27597         Invoke it after gnulib-tool --import and before autoreconf.
27599 2012-01-18  Jim Meyering  <meyering@redhat.com>
27601         gitlog-to-changelog: don't use "no_"-prefixed variable name
27602         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
27603         to enable both --cluster and --no-cluster.  Change variable name,
27604         s/\$no_cluster/$cluster/, and reverse usage to match.
27606         gitlog-to-changelog: use "||", not "or" in expressions
27607         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
27608         expressions.
27610 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
27612         gitlog-to-changelog: new option --no-cluster
27613         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
27614         clustering of adjacent commit messages.
27616 2012-01-17  Jim Meyering  <meyering@redhat.com>
27618         maint: spell file systems with two words, not one
27619         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
27620         two words, not one.
27622 2012-01-16  Jim Meyering  <meyering@redhat.com>
27624         bootstrap: add a FIXME comment to ensure we eventually remove the hack
27625         * build-aux/bootstrap (gnulib_tool_options): Add comment.
27627 2012-01-16  Eric Blake  <eblake@redhat.com>
27629         bootstrap: cater to autoconf 2.59
27630         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
27631         is not available.
27633         bootstrap: properly check for libtool
27634         * build-aux/bootstrap (libtoolize): Also run libtool when older
27635         usage is detected.
27637 2012-01-15  Bruno Haible  <bruno@clisp.org>
27639         Improve support for MSVC 9.
27640         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
27641         clashes on MSVC.
27642         * lib/fcntl.in.h: Likewise.
27643         * lib/stdlib.in.h: Likewise.
27644         * lib/sys_stat.in.h: Likewise.
27646 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
27648         gnupload: we hold the master copy of this script now
27649         For motivation and more information, see:
27650         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
27651         * build-aux/gnupload: Make it clear in the heading comments that the
27652         master copy of this file is maintained by gnulib.  Since we are at
27653         it, bump its copyright year and ...
27654         ($scriptversion): ... the date in its version.
27655         ($usage): Patches and bug reports should be sent to the gnulib list,
27656         not the automake one.
27657         * config/srclist.txt: Don't try to sync 'gnupload' from automake
27658         anymore.
27660 2012-01-15  Bruno Haible  <bruno@clisp.org>
27662         Fix module 'random'.
27663         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
27664         initstate, setstate are declared.
27666 2012-01-14  Bruno Haible  <bruno@clisp.org>
27668         Tests for module 'random'.
27669         * modules/random-tests: New file.
27670         * tests/test-random.c: New file, based on tests/test-random_r.c.
27672         New module 'random'.
27673         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
27674         declarations.
27675         * lib/random.c: New file, based on glibc/stdlib/random.c.
27676         * m4/random.m4: New file.
27677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
27678         HAVE_RANDOM.
27679         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
27680         * modules/random: New file.
27681         * config/srclist.txt: Add an entry for random.c.
27682         * doc/posix-functions/random.texi: Mention the 'random' module.
27683         * doc/posix-functions/initstate.texi: Likewise.
27684         * doc/posix-functions/setstate.texi: Likewise.
27685         * doc/posix-functions/srandom.texi: Likewise.
27687 2012-01-12  Bruno Haible  <bruno@clisp.org>
27689         random_r: Use common idioms.
27690         * lib/random_r.c: Include <stdlib.h> first.
27692         random_r: Override incompatible API on AIX, OSF/1.
27693         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
27694         Override the system function if REPLACE_RANDOM_R is 1.
27695         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
27696         and OSF/1, set REPLACE_RANDOM_R.
27697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
27698         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
27699         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
27700         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
27701         * doc/glibc-functions/random_r.texi: Likewise.
27702         * doc/glibc-functions/setstate_r.texi: Likewise.
27704         random_r: Support for MSVC 9.
27705         * lib/random_r.c: Include stdint.h, not inttypes.h.
27707 2012-01-12  Eric Blake  <eblake@redhat.com>
27709         inet_ntop: guard extra work by IF_LINT
27710         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
27711         better code generation when not checking for warnings.
27712         Suggested by Paul Eggert and Jim Meyering.
27714         strptime: fix regression on mingw
27715         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
27716         Fix regression.  Reported by Bruno Haible.
27718 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
27719             Bruno Haible  <bruno@clisp.org>
27721         copy-file: add error-code-returning variant.
27722         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
27723         (qcopy_file_preserving): New declaration.
27724         * lib/copy-file.c (qcopy_file_preserving): Renamed from
27725         copy_file_preserving. Change return type to 'int'. Don't emit an error
27726         message here.
27727         (copy_file_preserving): New function.
27728         * tests/test-copy-file.c: Include <stdlib.h>.
27729         (main): Test qcopy_file_preserving if the environment variable
27730         NO_STDERR_OUTPUT is set.
27731         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
27732         with NO_STDERR_OUTPUT
27733         * tests/test-copy-file-2.sh: Likewise.
27735 2012-01-10  Bruno Haible  <bruno@clisp.org>
27737         copy-file: Use 'quote' module consistently.
27738         * lib/copy-file.c (copy_file_preserving): Use quote().
27740         copy-file: Refactor.
27741         * lib/copy-file.c: Include quote.h.
27742         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
27743         message here.
27744         * modules/copy-file (Depends-on): Add quote.
27746         acl: Export qcopy_acl.
27747         * lib/acl.h (qcopy_acl): New declaration.
27748         * lib/copy-acl.c (qcopy_acl): Make non-static.
27750         acl: Rename a local variable.
27751         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
27753         acl: Align return values of copy_acl and qcopy_acl.
27754         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
27755         maybe < -1.
27757 2012-01-11  Eric Blake  <eblake@redhat.com>
27759         strptime: silence gcc warnings
27760         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
27761         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
27762         Reported by Daniel P. Berrange.
27764         inet_ntop: silence gcc warning
27765         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
27766         Reported by Daniel P. Berrange.
27768 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
27770         getloadavg test: skip the test on GNU/Linux without /proc mounted
27771         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
27772         file.  When /proc is not mounted, it always fails with ENOENT.
27773         * tests/test-getloadavg.c (main): Treat ENOENT return code from
27774         getloadavg(3) the same way as ENOSYS and ENOTSUP.
27776 2012-01-10  Bruno Haible  <bruno@clisp.org>
27778         regex: Avoid link error on MSVC 9.
27779         * modules/regex (Depends-on): Add wctype.
27781 2012-01-10  Bruno Haible  <bruno@clisp.org>
27783         doc: Mention --with-tests option.
27784         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
27785         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
27786         --with-tests.
27787         Reported by Reuben Thomas.
27789 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
27791         users.txt: order package names lexicographically.
27792         * users.txt: Order package names lexicographically.
27794 2012-01-10  Jim Meyering  <meyering@redhat.com>
27796         maint.mk: fix description in comment
27797         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
27799         ignore-value: remove deprecated ignore_ptr function
27800         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
27801         * NEWS: Note this.
27803 2012-01-09  Jim Meyering  <meyering@redhat.com>
27805         test-init.sh: avoid a subshell
27806         * tests/test-init.sh: Remove protective subshell.
27807         Suggested by Bernhard Voelker.  While a subshell is normally
27808         required to protect against older shells (Solaris, FreeBSD) that
27809         warn about a missing program before performing redirection, the
27810         shell-selection tests performed by init.sh probably exclude any
27811         offending shell.
27813 2012-01-08  Bruno Haible  <bruno@clisp.org>
27815         setlocale tests: Avoid test failure on Solaris 11.0.
27816         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
27817         variable.
27819 2012-01-08  Bruno Haible  <bruno@clisp.org>
27821         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
27822         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27823         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27824         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
27825         macro.
27826         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
27827         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27828         * lib/spawn_faction_addopen.c: Add workaround implementation if
27829         HAVE_WORKING_POSIX_SPAWN.
27830         * modules/spawn (Makefile): Substitute
27831         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27832         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
27833         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
27834         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27835         (Depends-on): Update conditions.
27836         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27837         the Solaris 11 bug.
27839 2012-01-08  Bruno Haible  <bruno@clisp.org>
27841         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
27842         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27843         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27844         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
27845         macro.
27846         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
27847         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27848         * lib/spawn_faction_adddup2.c: Add workaround implementation if
27849         HAVE_WORKING_POSIX_SPAWN.
27850         * modules/spawn (Makefile): Substitute
27851         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27852         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
27853         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
27854         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27855         (Depends-on): Update conditions.
27856         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27857         the Solaris 11 bug.
27859 2012-01-08  Bruno Haible  <bruno@clisp.org>
27861         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
27862         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27863         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27864         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
27865         HAVE_WORKING_POSIX_SPAWN.
27866         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
27867         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
27868         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27869         * lib/spawn_faction_addclose.c: Add workaround implementation if
27870         HAVE_WORKING_POSIX_SPAWN.
27871         * modules/spawn (Makefile): Substitute
27872         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27873         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
27874         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
27875         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27876         (Depends-on): Update conditions.
27877         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27878         the Solaris 11 bug.
27880 2012-01-08  Bruno Haible  <bruno@clisp.org>
27882         doc: Update for Solaris 11.0.
27883         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
27884         * m4/printf.m4: Update comments.
27886 2012-01-08  Bruno Haible  <bruno@clisp.org>
27888         mktime: Avoid compilation error on Solaris 11.
27889         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
27891 2012-01-08  Bruno Haible  <bruno@clisp.org>
27893         doc: Small fix.
27894         * doc/posix-headers/nl_types.texi: Correct platforms list.
27896 2012-01-08  Simon Josefsson  <simon@josefsson.org>
27898         Add lgpl-3.0 module.
27899         * MODULES.html.sh (Support for building documentation): Add
27900         lgpl-3.0.
27901         * modules/lgpl-3.0: New file.
27903 2012-01-08  Jim Meyering  <meyering@redhat.com>
27905         select.c: indent with spaces, not TABs
27906         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
27908 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27910         quotearg: do not use grave accent for left quote
27911         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
27912         locale_quoting_style.
27913         (quotearg_buffer_restyled): Fix example.
27914         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
27916 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27918         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
27919         Most programs do not have translation catalogs for English and much
27920         less separate catalogs for British and American English.  Drop the
27921         suggestion to translators about these two, and provide it
27922         automatically for Unicode locales.  Like most programs, even those
27923         using American English, we use single quotation marks.  This conflicts
27924         with the American typographic convention, but works better when you
27925         cite the entire error message within double quotes.  It also tries not
27926         to clash with established practice and with what non-gnulib programs
27927         will usually do.
27928         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
27929         using an UTF-8 or GB-18030 locale.  The list of other locales with
27930         quotes was provided by Bruno Haible.
27931         (quotearg_buffer_restyled): Adjust instructions to translators.
27932         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
27933         text, since this would be wrong when using Unicode.
27934         * modules/quotearg: Depend on c-strcaseeq.
27936 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27938         quotearg: fix Wikipedia link
27939         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
27941 2012-01-07  Simon Josefsson  <simon@josefsson.org>
27943         Fix for mingw with MSVC9.
27944         * m4/ld-version-script.m4: Check that compiler rejects version
27945         scripts with syntax errors.  Reported by Bruno Haible
27946         <bruno@clisp.org>.
27948 2012-01-06  Bruno Haible  <bruno@clisp.org>
27950         Talk about "native Windows API", not "Woe32".
27951         * lib/accept4.c: Update comments to mention native Windows.
27952         * lib/execute.c: Likewise.
27953         * lib/fatal-signal.c: Likewise.
27954         * lib/localcharset.c: Likewise.
27955         * lib/nanosleep.c: Likewise.
27956         * lib/nl_langinfo.c: Likewise.
27957         * lib/pclose.c: Likewise.
27958         * lib/pipe-filter-gi.c: Likewise.
27959         * lib/pipe-filter-ii.c: Likewise.
27960         * lib/pipe.c: Likewise.
27961         * lib/pipe2.c: Likewise.
27962         * lib/popen.c: Likewise.
27963         * lib/progreloc.c: Likewise.
27964         * lib/relocatable.c: Likewise.
27965         * lib/sigaction.c: Likewise.
27966         * lib/sigprocmask.c: Likewise.
27967         * lib/spawn-pipe.h: Likewise.
27968         * lib/spawn-pipe.c: Likewise.
27969         * lib/spawni.c: Likewise.
27970         * lib/stat-time.h: Likewise.
27971         * lib/w32spawn.h: Likewise.
27972         * tests/test-isatty.c: Likewise.
27973         * lib/config.charset: More comments.
27974         * doc/gnulib-intro.texi: Mention native Windows.
27975         * doc/posix-functions/_Exit_C99.texi: Likewise.
27976         * doc/posix-headers/fcntl.texi: Likewise.
27978 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
27980         argp: Avoid crash if translator uses % characters in a translation.
27981         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
27982         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
27984 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27986         doc: C11 and C++11 are now official
27987         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
27988         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
27989         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
27990         * modules/stdalign:
27991         Replace references to draft C1X to C11, and to draft C++0X to C++11.
27993 2012-01-06  Bruno Haible  <bruno@clisp.org>
27995         uc-is-grapheme-break tests: Tweak.
27996         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
27997         message.
27999 2012-01-06  Bruno Haible  <bruno@clisp.org>
28001         test-init.sh: correct the test for diff -u
28002         * tests/test-init.sh: Also redirect stdout to /dev/null.
28004 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28006         Use ', not `, for quoting output.
28007         * build-aux/announce-gen (usage, sizes, print_news_deltas)
28008         (print_changelog_deltas, get_tool_versions, main program):
28009         * build-aux/git-version-gen:
28010         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
28011         * build-aux/move-if-change (help):
28012         * build-aux/useless-if-before-free (usage, main program):
28013         * check-module (parse_module_file, usage)
28014         (find_included_lib_files, check_module):
28015         * lib/argmatch.c (main) [TEST]:
28016         * lib/argp-help.c (_help):
28017         * lib/getopt1.c (main) [TEST]:
28018         * lib/git-merge-changelog.c (usage):
28019         * lib/xstrtol-error.c (xstrtol_error):
28020         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
28021         * m4/argz.m4 (gl_FUNC_ARGZ):
28022         * m4/bison.m4 (gl_BISON):
28023         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
28024         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28025         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28026         * m4/fpending.m4 (gl_PREREQ_FPENDING):
28027         * m4/gc-random.m4 (gl_GC_RANDOM):
28028         * m4/intl.m4 (gt_CHECK_DECL):
28029         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
28030         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
28031         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
28032         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
28033         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
28034         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
28035         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
28036         * tests/test-dirname.c (main):
28037         * tests/test-getpass.c (main):
28038         * tests/test-iconvme.c (main):
28039         * tests/test-parse-datetime.c (LOG):
28040         * tests/test-xstrtoimax.sh:
28041         * tests/test-xstrtol.sh:
28042         * tests/test-xstrtoll.sh:
28043         * tests/test-xstrtoumax.sh:
28044         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
28045         * top/GNUmakefile (abort-due-to-no-makefile):
28046         Quote 'like this', not `like this', as per the recent change to
28047         the GNU coding standards.
28049 2012-01-05  Bruno Haible  <bruno@clisp.org>
28051         strtoimax: Don't force a replacement on systems where intmax_t is int.
28052         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
28053         'intmax_t' is not larger than 'int'.
28054         Reported by Pádraig Brady <P@draigBrady.com>.
28056 2012-01-05  Bruno Haible  <bruno@clisp.org>
28058         doc: Mention NetBSD bugs.
28059         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
28060         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
28062 2012-01-05  Bruno Haible  <bruno@clisp.org>
28064         strtoumax tests: Enhance tests.
28065         * tests/test-strtoumax.c (main): Add tests for large values.
28067 2012-01-05  Bruno Haible  <bruno@clisp.org>
28069         strtoimax: Work around AIX 5.1 bug.
28070         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
28071         definition.
28072         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
28073         Set HAVE_STRTOIMAX.
28074         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
28075         REPLACE_STRTOIMAX.
28076         * modules/inttypes-incomplete (Makefile.am): Substitute
28077         REPLACE_STRTOIMAX.
28078         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28079         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
28080         (Depends-on): Update conditions.
28081         * tests/test-strtoimax.c (main): Add tests for large values.
28082         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
28084 2012-01-05  Bruno Haible  <bruno@clisp.org>
28086         inttypes: Modernize.
28087         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
28088         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
28089         (Makefile.am): Update inttypes.h rule.
28091 2012-01-05  Jim Meyering  <meyering@redhat.com>
28093         init.sh: don't waste a subshell just to redirect stderr
28094         * tests/init.sh: In testing for diff -u and diff -c, use a
28095         stderr-redirecting exec inside `...` rather than a subshell.
28097         test-init.sh: avoid failure on HP-UX 11.00
28098         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
28099         resolves to diff -c or cmp.  Reported by Bruno Haible.
28101 2012-01-05  Bruno Haible  <bruno@clisp.org>
28103         Tests for module 'strtoull'.
28104         * modules/strtoull-tests: New file.
28105         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
28107 2012-01-05  Bruno Haible  <bruno@clisp.org>
28109         Tests for module 'strtoll'.
28110         * modules/strtoll-tests: New file.
28111         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
28113 2012-01-05  Bruno Haible  <bruno@clisp.org>
28115         Tests for module 'strtoul'.
28116         * modules/strtoul-tests: New file.
28117         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
28119 2012-01-05  Bruno Haible  <bruno@clisp.org>
28121         Tests for module 'strtol'.
28122         * modules/strtol-tests: New file.
28123         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
28125 2012-01-04  Jim Meyering  <meyering@redhat.com>
28127         test-init.sh: accommodate Solaris 5.10's different diff -u output
28128         * tests/test-init.sh: Also exempt @@ lines from the comparison
28129         of diff output, since Solaris 5.10 and GNU diff formats differ.
28130         Reported by Stefano Lattarini.
28132 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28134         test-posixtm: don't assume signed integer wraparound
28135         * tests/test-posixtm.c (main): Don't assume wraparound semantics
28136         after signed integer overflow.  Inspired by (though it may not
28137         fix) Bruno Haible's bug report in
28138         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
28140         Spell out "Windows 9x" and "Windows XP".
28141         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
28142         "Windows 9x" and "WinXP" with "Windows XP".
28144 2012-01-04  Jim Meyering  <meyering@redhat.com>
28146         test-vc-list-files-cvs.sh: remove obsolete comment
28147         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
28148         double exit.  Now that's all encapsulated via skip_ and Exit.
28150 2012-01-04  Bruno Haible  <bruno@clisp.org>
28152         Talk about "native Windows API", not "Win32".
28153         * lib/classpath.c: Update comments to mention native Windows.
28154         * lib/csharpexec.c: Likewise.
28155         * lib/dup2.c: Likewise.
28156         * lib/error.c: Likewise.
28157         * lib/fcntl.c: Likewise.
28158         * lib/filename.h: Likewise.
28159         * lib/findprog.c: Likewise.
28160         * lib/get-rusage-as.c: Likewise.
28161         * lib/get-rusage-data.c: Likewise.
28162         * lib/getpagesize.c: Likewise.
28163         * lib/javaexec.c: Likewise.
28164         * lib/msvc-inval.c: Likewise.
28165         * lib/msvc-nothrow.c: Likewise.
28166         * lib/nanosleep.c: Likewise.
28167         * lib/nonblocking.c: Likewise.
28168         * lib/printf-parse.c: Likewise.
28169         * lib/setlocale.c: Likewise.
28170         * lib/sigaction.c: Likewise.
28171         * lib/strerror_r.c: Likewise.
28172         * lib/tmpdir.c: Likewise.
28173         * lib/vasnprintf.c: Likewise.
28174         * lib/w32spawn.h: Likewise.
28175         * lib/waitpid.c: Likewise.
28176         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
28177         * m4/locale-ar.m4: Likewise.
28178         * m4/locale-fr.m4: Likewise.
28179         * m4/locale-ja.m4: Likewise.
28180         * m4/locale-tr.m4: Likewise.
28181         * m4/locale-zh.m4: Likewise.
28182         * m4/printf.m4: Likewise.
28183         * tests/test-cloexec.c: Likewise.
28184         * tests/test-copy-acl.sh: Likewise.
28185         * tests/test-copy-file.sh: Likewise.
28186         * tests/test-file-has-acl.sh: Likewise.
28187         * tests/test-set-mode-acl.sh: Likewise.
28188         * tests/test-dup-safer.c: Likewise.
28189         * tests/test-dup2.c: Likewise.
28190         * tests/test-dup3.c: Likewise.
28191         * tests/test-fcntl.c: Likewise.
28192         * tests/test-nonblocking-pipe.h: Likewise.
28193         * tests/test-nonblocking-socket.h: Likewise.
28194         * tests/test-pipe.c: Likewise.
28195         * tests/test-pipe2.c: Likewise.
28196         * tests/test-spawn-pipe-child.c: Likewise.
28197         * doc/acl-resources.txt: Likewise.
28198         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28199         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
28200         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
28201         * lib/localcharset.c: Update comments to mention native Windows.
28202         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28203         * lib/localename.c: Likewise.
28204         * lib/progreloc.c: Likewise.
28205         * lib/relocatable.c: Likewise.
28206         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28207         (windows_compute_revents): Renamed from win32_compute_revents.
28208         (windows_compute_revents_socket): Renamed from
28209         win32_compute_revents_socket.
28210         * lib/select.c: Update comments to mention native Windows.
28211         (windows_poll_handle): Renamed from win32_poll_handle.
28212         * m4/threadlib.m4: Update comments to mention native Windows.
28213         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
28214         --enable-threads=windows instead of --enable-threads=win32. Set
28215         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
28216         * lib/glthread/lock.h: Update comments to mention native Windows.
28217         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
28218         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
28219         USE_WIN32_THREADS.
28220         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
28221         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
28222         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
28223         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
28224         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
28225         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
28226         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
28227         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
28228         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
28229         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
28230         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
28231         * tests/test-tls.c: Likewise.
28232         Rationale:
28233         Microsoft renamed the "Win32 API" to "Windows API", as it is available
28234         on both 32-bit and 64-bit Windows systems.
28235         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
28236         line of distinction is between "native Windows" on one side and Unix/
28237         POSIX systems on the other side. More details in
28238         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
28239         Suggested by Paul Eggert.
28241 2012-01-03  Bruno Haible  <bruno@clisp.org>
28243         isatty: Support for MSVC 9.
28244         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
28245         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
28246         (_isatty_nothrow): New function.
28247         (isatty): Use it instead of _isatty.
28248         (IsConsoleHandle): Add comment, from Paolo Bonzini.
28249         * lib/poll.c (IsConsoleHandle): Likewise.
28250         * lib/select.c (IsConsoleHandle): Likewise.
28251         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
28252         (gl_PREREQ_ISATTY): New macro.
28253         * modules/isatty (Depends-on): Add msvc-inval.
28254         (configure.ac): Invoke gl_PREREQ_ISATTY.
28256 2012-01-03  Jim Meyering  <meyering@redhat.com>
28258         maint.mk: remove temporary transition aid from over 1.5 years ago
28259         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
28260         purpose was to aid in the transition (avoiding silent malfunction)
28261         from that old name to the new _sc_search_regexp.  This shim was
28262         added by commit 219c504b.
28264         init.sh: do not try to accommodate compare arguments starting with "-"
28265         * tests/init.sh (compare_dev_null_): Do not try to accommodate
28266         compare arguments that start with "-".  Besides, we do not worry
28267         about this when invoking diff or cmp; why start now with sed?
28268         Using "--" to separate options from argument would trigger sed
28269         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
28270         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
28272 2012-01-02  Bruno Haible  <bruno@clisp.org>
28274         Enhance tests for module 'isatty'.
28275         * modules/isatty-tests (Depends-on): Add pipe-posix.
28276         * tests/test-isatty.c: Include <fcntl.h>.
28277         (DEV_NULL): New macro.
28278         (main): Test the resut of isatty() also on regular files, pipes, and
28279         /dev/null.
28281         New module 'isatty'.
28282         * lib/unistd.in.h (isatty): New declaration.
28283         * lib/isatty.c: New file, based on an idea of
28284         Bastien Roucariès <roucaries.bastien@gmail.com>.
28285         * m4/isatty.m4: New file.
28286         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
28287         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
28288         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
28289         REPLACE_ISATTY.
28290         * modules/isatty: New file.
28291         * doc/posix-functions/isatty.texi: Mention the new module.
28292         Suggested by Paolo Bonzini.
28294 2012-01-02  Bruno Haible  <bruno@clisp.org>
28296         canonicalize: Tweak 2011-12-29 commit.
28297         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28298         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28300 2012-01-02  Jim Meyering  <meyering@redhat.com>
28302         gitlog-to-changelog: describe input syntax in --help output
28303         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28305         gitlog-to-changelog: fix typo in --help: show backslash before email @
28306         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28307         in sources, but not in actual output.
28309 2011-12-30  Jim Meyering  <meyering@redhat.com>
28311         gitlog-to-changelog: don't malfunction when name contains %-directive
28312         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28313         in a name string cause trouble.  E.g., with a user name of "%s",
28314         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28316 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28318         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28319         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28320         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28321         the "  (tiny change)" notation that is appended to the standard
28322         ChangeLog "date  name  email" header line.
28324 2012-01-01  Jim Meyering  <meyering@redhat.com>
28326         test-framework-sh: init.sh: fix "make dist" failure
28327         When using gnulib-tool's --with-tests option and any module that
28328         depends on test-framework-sh, "make dist" would fail due to the
28329         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28330         in the gltests directory, and not in the gllib/ directory.
28331         One way to work around that is to move the EXTRA_DIST += init.sh
28332         from the primary module to the -tests one:
28333         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28334         * modules/test-framework-sh (Makefile.am): ...not here.
28335         Reported by Tom G. Christensen in
28336         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28338         version-etc: update copyright year reported by --version
28339         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28341 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28343         canonicalize: only stat() if required
28344         * lib/canonicalize.c (canonicalize_filename_mode):
28345         Avoid calling l?stat() when both CAN_MISSING,
28346         and CAN_NOLINKS are set, as we neither need
28347         to resolve symlinks or test component existence.
28349 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28351         doc: cover st_ino issues once; add OpenVMS etc.
28352         * doc/posix-functions/stat.texi (stat):
28353         * doc/posix-functions/lstat.texi (lstat):
28354         * doc/posix-functions/fstatat.texi (fstatat):
28355         * doc/posix-functions/fstat.texi (fstat):
28356         Move general 'struct stat' stuff to sys_stat.texi,
28357         leaving behind a pointer.
28358         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28359         Merge duplicate info about 'struct stat' problems into here.
28360         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28361         and suggest partial workarounds.
28363         same-inode: port to OpenVMS
28364         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28365         three st_ino values.
28367 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28369         canonicalize: fix references to stat() and lstat()
28370         * lib/canonicalize.c (canonicalize_filename_mode):
28371         Ensure references always resolve to a replacement
28372         function if required (even via a macro).
28374 2011-12-30  Jim Meyering  <meyering@redhat.com>
28376         gitlog-to-changelog: remove a little duplication
28377         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28378         rather than twice.
28380 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28382         canonicalize: add support for not resolving symlinks
28383         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28384         indicate we don't want to follow symlinks.  Also
28385         provide CAN_MODE_MASK to aid setting these existing
28386         mutually exclusive values.
28387         * lib/canonicalize.c (canonicalize_filename_mode):
28388         Extract the flags from can_mode parameter, which
28389         are currently just used to select between stat()
28390         and lstat().  Also ensure that mutually exclusive
28391         values are flagged immediately as invalid.
28392         * tests/test-canonicalize.c: Verify symlinks are
28393         not followed, and that invalid flag combinations
28394         are diagnosed.
28396 2011-12-25  Jim Meyering  <meyering@redhat.com>
28398         gitlog-to-changelog: do not clump multi-paragraph entries
28399         Identical header lines (date,name,email+coauthors) are suppressed,
28400         thus putting all entries with those same characteristics under
28401         a single header.  However, when a log entry consists of two or
28402         more paragraphs, it may not be clear where it starts and ends.
28403         This change makes it so that such an entry is always separated
28404         from others by a header line, even when that header would
28405         otherwise be suppressed.
28406         * build-aux/gitlog-to-changelog: Implement the above.
28407         Inspired by a related request from Stefano Lattarini in
28408         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28410 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28412         announce-gen: fix `cmd' typo in diagnostic
28413         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28414         diagnostic: a missing '$' meant that the command was not output.
28416 2011-12-23  Jim Meyering  <meyering@redhat.com>
28418         test-framework-sh: distribute init.sh
28419         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28420         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28421         fail due to the lack of init.sh.
28423         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28424         * modules/atexit-tests: Rather than listing tests/init.sh,
28425         now that there's a module for it, simply depend on that new module.
28426         * modules/closein-tests: Likewise.
28427         * modules/exclude-tests: Likewise.
28428         * modules/getcwd-tests: Likewise.
28429         * modules/perror-tests: Likewise.
28430         * modules/pread-tests: Likewise.
28431         * modules/pwrite-tests: Likewise.
28432         * modules/vc-list-files-tests: Likewise.
28433         * modules/verify-tests: Likewise.
28434         * modules/xalloc-die-tests: Likewise.
28435         * modules/xstrtoimax-tests: Likewise.
28436         * modules/xstrtol-tests: Likewise.
28437         * modules/xstrtoll-tests: Likewise.
28438         * modules/xstrtoumax-tests: Likewise.
28439         * modules/yesno-tests: Likewise.
28441 2011-12-22  Jim Meyering  <meyering@redhat.com>
28443         test-framework-sh: add minimal tests of init.sh's compare function
28444         * modules/test-framework-sh-tests: New file.
28445         * tests/test-init.sh: New file.
28447         test-framework-sh: new module
28448         * modules/test-framework-sh: New file.
28449         * MODULES.html.sh (Support for maintaining and releasing projects):
28450         List it.
28452         init.sh: do not emit simulated diff output to stderr
28453         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28455 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28457         .gitignore: ignore gnulib.dvi and regex.info
28458         * doc/.gitignore:add gnulib.dvi and regex.info
28460 2011-12-22  Jim Meyering  <meyering@redhat.com>
28462         init.sh: correct previous change
28463         * tests/init.sh (compare): My previous change was wrong.
28464         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28466         init.sh: avoid unwarranted test failure when using "set -e"
28467         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28468         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28469         a use like "compare exp out" would get evoke an unconditional failure.
28471 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28473         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28474         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28475         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28476         autoreconf that did not.
28477         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28478         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28480 2011-12-17  Jim Meyering  <meyering@redhat.com>
28482         bootstrap: remove some now-unneeded code
28483         This script arose back when gnulib-tool was young.
28484         Since then, it has seen improvements that render much of this
28485         script unnecessary.  In particular, it can now make symlinks
28486         to the files it uses.  Also, I no longer see as much value in
28487         marking files as read-only via comments.
28488         If you relied on the symlink-creation feature of the preceding
28489         version of this script, you can get most of that functionality
28490         by adding the --symlink option to the definition of
28491         gnulib_tool_option_extras in your bootstrap.conf file.
28492         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28493         Run autopoint and libtoolize *before* gnulib-tool.
28494         After it, run an abbreviated autoreconf, rather than a loop around
28495         all tools.
28496         (slirp, bt_mark_as_generated): Remove functions.
28498 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28500         ftoastr: fix typo
28501         * lib/ftoastr.h: Fix misspelling in comment.
28503 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28505         * top/README-release: fix punctuation.
28507 2011-12-17  Jim Meyering  <meyering@redhat.com>
28509         bootstrap: correct the recent buildreq change
28510         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28511         had no effect.
28512         * build-aux/bootstrap (buildreq): Bracket each search term with
28513         "*...*", so that the shell "case" statement works as intended.
28514         Add comments.
28516 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28518         build: let bootstrap resort to wget when downloading .po files
28519         * build-aux/bootstrap (download_po_files): Fallback to wget when
28520         downloading the .po files via rsync fails.  This is necessary to
28521         bootstrap from behind a strict firewall.
28523 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28525         stdint: don't assume C++11 when compiling with g++
28526         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28527         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28528         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28529         work also in C++ before C++11, as that improperly inhibits
28530         generating a substitute stdint.h for that case.
28532 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28534         alloca: protect comment from gnulib-tool
28535         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28536         that gnulib-tool doesn't think it's a license, and munge it to
28537         say "GCC version 3".
28539 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28541         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28542         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28543         $(abs_top_builddir) instead of $(top_builddir).
28545 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
28547         strftime-tests: also test nanoseconds
28548         * tests/test-strftime.c (T): Add a test of %N.
28550 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
28552         inttypes, stdint: add C++11 support
28553         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
28554         when including inttypes.h and stdint.h.  Support this change to
28555         the standard.
28556         * doc/posix-headers/inttypes.texi (inttypes.h):
28557         * doc/posix-headers/stdint.texi (stdint.h): Document this.
28558         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28559         Define if not defined already, for the benefit of pre-C++11 hosts.
28560         Define the standard format macros (e.g., PRId8) always.
28561         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
28562         Likewise, if __cpluspus.  Define the standard constant and limit
28563         macros (e.g., INT8_C, INT8_MAX) always.
28564         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
28565         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28566         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
28567         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
28568         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
28569         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
28570         Likewise.
28572 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28574         nonblocking tests: Fix test failure on Linux/PPC.
28575         Suggested by Prerna Saxena in
28576         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
28577         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
28578         Set to 1100000.
28580 2011-12-12  Jim Meyering  <meyering@redhat.com>
28582         argmatch: don't hard-code `' when listing valid option arguments
28583         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
28584         use the quote function to add quotes.  Use fputs rather than
28585         fprintf for the format string with no format directive.
28587 2011-12-07  Eric Blake  <eblake@redhat.com>
28589         bootstrap: detect tools required by gnulib-tool
28590         * build-aux/bootstrap (buildreq): Provide minimum implicit
28591         dependencies.
28592         * DEPENDENCIES: Mention patch as a prereq.
28594 2011-12-04  Bruno Haible  <bruno@clisp.org>
28596         sethostname: Port to Windows platforms.
28597         * lib/sethostname.c: Provide an alternate implementation for Windows
28598         platforms.
28599         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
28600         (main): Skip the test if sethostname() fails with EPERM. On Windows
28601         platforms, don't check the result of gethostname().
28603 2011-12-04  Bruno Haible  <bruno@clisp.org>
28604             Jim Meyering  <meyering@redhat.com>
28606         tests: Avoid spurious error message on platforms without mktemp program.
28607         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
28609 2011-12-04  Bruno Haible  <bruno@clisp.org>
28611         sethostname: Fix documentation.
28612         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
28613         "not fixed" section.
28615 2011-12-03  Bruno Haible  <bruno@clisp.org>
28617         gnulib-tool: Verify that the License field is present and non-empty.
28618         * gnulib-tool (func_get_license_raw): New function, extracted from
28619         func_get_license.
28620         (func_get_license): Use it. Warn if the module is not a test module and
28621         has no license.
28622         Suggested by Jim Meyering.
28624 2011-12-03  Bruno Haible  <bruno@clisp.org>
28626         sethostname tests: Fix link error on mingw.
28627         * tests/test-sethostname1.c: New file, extracted from
28628         tests/test-sethostname.c.
28629         * tests/test-sethostname2.c: New file, extracted from
28630         tests/test-sethostname.c.
28631         * tests/test-sethostname.c: Remove file.
28632         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
28633         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
28634         (Depends-on): Add gethostname.
28635         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
28636         Link the latter with $(GETHOSTNAME_LIB).
28638         sethostname tests: Fix compilation error on mingw.
28639         * tests/test-sethostname.c: Don't include <sys/types.h>.
28640         (geteuid): Use a dummy value without uid_t.
28641         * modules/sethostname-tests (Depends-on): Remove sys_types.
28643         sethostname tests: Avoid a gcc warning.
28644         * tests/test-sethostname.c (main): Remove an unused variable.
28646         Tweak last commit.
28647         * modules/sethostname-tests (Files): Sort by decreasing importance.
28648         (configure.ac): Check for geteuid.
28649         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
28650         the test when there's nothing to test. Drop an unnecessary cast.
28651         Improve an error message. Verify that the final sethostname() call
28652         succeeds.
28654 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28656         Add a test suite for the sethostname module.
28657         * modules/sethostname-tests: New file.  A test program
28658         for the sethostname module.
28659         * tests/test-sethostname.c: Likewise.
28661 2011-12-03  Bruno Haible  <bruno@clisp.org>
28663         Tweak last commit.
28664         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
28665         Fix preprocessor directives indentation. Fix typos.
28666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
28667         * modules/unistd (Makefile): Likewise.
28669 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28671         Integrate the sethostname module into unistd.
28672         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
28673         into the unistd.h header.
28674         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
28675         preprocessor directives.
28676         * modules/unistd: Setup the Makefile substitutions of the
28677         SETHOSTNAME preprocessor directives.
28679 2011-12-03  Bruno Haible  <bruno@clisp.org>
28681         Tweak last commit.
28682         * lib/sethostname.c: Don't include <string.h>.
28683         (sethostname): No need to copy the argument string to the stack. Don't
28684         call clearerr. Preserve errno when fprintf failed.
28685         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
28686         Don't invoke AC_REPLACE_FUNCS.
28687         * modules/sethostname (Link): Remove empty section.
28688         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
28689         failure problem.
28691 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28693         New module 'sethostname'.
28694         * lib/sethostname.c (sethostname): New file.  Provide sethostname
28695         for systems that lack it.
28696         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
28697         sethostname declaration and function.
28698         * modules/sethostname: New file.  Define the sethostname module.
28700 2011-12-03  Bruno Haible  <bruno@clisp.org>
28702         Tweak last commit.
28703         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
28705 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28707         Split the HOST_NAME_MAX detection into a separate m4 macro.
28708         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
28709         macro so it can be used by the pending sethostname module.
28711 2011-12-03  Bruno Haible  <bruno@clisp.org>
28713         Fix module descriptions syntax.
28714         * modules/argv-iter (License): Fix syntax.
28715         * modules/di-set (License): Likewise.
28716         * modules/ino-map (License): Likewise.
28717         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
28719 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
28721         stdalign: port to Clang 3.0
28722         Problem reported by Simon Josefsson in
28723         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
28724         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
28725         which has <stdalign.h> but which does not define alignof.
28726         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
28728 2011-12-01  Eric Blake  <eblake@redhat.com>
28730         mktempd: silence dd usage
28731         * build-aux/mktempd (rand_bytes): Silence dd.
28733 2011-11-30  Simon Josefsson  <simon@josefsson.org>
28735         manywarnings: Don't mention gcc version in docstring.
28736         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
28737         Jim Meyering <meyering@redhat.com>.
28739 2011-11-30  Jim Meyering  <meyering@redhat.com>
28741         hash: mark a few floating point constants with "f" suffix
28742         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
28743         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
28744         floating point constants with "f", since they're destined to be
28745         saved/used as "float"s.
28747 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
28749         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
28750         * tests/test-float.c (test_long_double): Correct and re-enable the
28751         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
28753 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
28755         Avoid subtracting two pointers that don't point into the same block.
28756         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
28757         only pointers into the same memory block are subtracted. We cannot
28758         assume that sizeof (ptrdiff_t) == sizeof (void *).
28760 2011-11-29  Eric Blake  <eblake@redhat.com>
28762         maint.mk: add syntax check for use of compare from init.sh
28763         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
28764         moved here from coreutils.
28766         manywarnings: drop -Wunsuffixed-float-constants
28767         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
28768         '1.0D', which is the only way to silence this warning for 'double'.
28770 2011-11-29  Jim Meyering  <meyering@redhat.com>
28772         hash: mark compute_bucket_size with the pure attribute
28773         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
28775         quotearg, propername: correct pragma guard expression
28776         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
28777         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
28779 2011-11-28  Jim Meyering  <meyering@redhat.com>
28781         propername: do not mark proper_name with the const attribute
28782         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
28783         since it examines data pointed to by its parameter.
28784         * lib/propername.c (proper_name): Instead, add a pragma to suppress
28785         the suggestion from -Wsuggest-attribute=const.
28787         propername: mark one more function as const
28788         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
28790 2011-11-27  Jim Meyering  <meyering@redhat.com>
28792         mark functions with const and pure attributes
28794         Mark functions per suggestions from gcc-4.6 when using these options:
28795         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
28796         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
28797         Follow these guidelines: when possible, apply the attribute to
28798         an extern declaration, not to its definition.  Apply it to the
28799         definition only when the definition is static.
28800         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
28801         * lib/argv-iter.h (argv_iter_n_args): Likewise.
28802         * lib/base64.h (isbase64): Likewise.
28803         * lib/basename-lgpl.c (last_component, base_len): Likewise.
28804         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
28805         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
28806         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
28807         (c_tolower, c_toupper): Likewise.
28808         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
28809         * lib/chdir-long.c (find_non_slash): Likewise.
28810         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
28811         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
28812         * lib/file-type.h (file_type): Likewise.
28813         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
28814         * lib/filevercmp.c (verrevcmp): Likewise.
28815         * lib/freadahead.h (freadahead): Likewise.
28816         * lib/fts.c (fts_maxarglen): Likewise.
28817         * lib/hash-pjw.h (hash_pjw): Likewise.
28818         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
28819         * lib/hash.c (is_prime, next_prime): Likewise.
28820         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
28821         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
28822         (hash_table_ok, hash_get_first, hash_string): Likewise.
28823         (compute_bucket_size): Likewise.
28824         * lib/i-ring.h (i_ring_empty): Likewise.
28825         * lib/isnan.c (isnanl): Likewise.
28826         * lib/math.h (isnanl, rpl_isnanl): Likewise.
28827         * lib/memcasecmp.h (memcasecmp): Likewise.
28828         * lib/memchr2.h (memchr2): Likewise.
28829         * lib/memcmp2.h (memcmp2): Likewise.
28830         * lib/parse-datetime.y (lookup_zone): Likewise.
28831         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
28832         [!WINDOWS_SOCKETS]: Likewise.
28833         * lib/strnlen1.h (strnlen1): Likewise.
28834         * lib/uniwidth.in.h (uc_width): Likewise.
28835         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
28836         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
28837         (quoting_options_from_style): Add a comment.
28838         * lib/propername.h (proper_name): Add a comment.
28840 2011-11-27  Bruno Haible  <bruno@clisp.org>
28842         Remove unused macros from !_LIBC code in glibc-borrowed files.
28843         * lib/fnmatch.c (STRCOLL): Remove macro.
28844         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
28845         * lib/glob.c (__stat, __readdir64): Remove macros.
28846         * lib/tempname.c (__open64, __xstat64): Remove macros.
28847         Suggested by Paul Eggert.
28849 2011-11-27  Bruno Haible  <bruno@clisp.org>
28851         getcwd: Fix link error on MSVC 9.
28852         * modules/getcwd (Depends-on): Add readdir, rewinddir.
28854 2011-11-27  Bruno Haible  <bruno@clisp.org>
28856         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
28857         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
28858         HAVE_OPENDIR is 0.
28859         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
28860         HAVE_CLOSEDIR is 0.
28861         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
28862         is 0.
28863         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
28865 2011-11-27  Bruno Haible  <bruno@clisp.org>
28867         getcwd: Fix bug from 2011-08-17.
28868         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
28869         platforms that need it.
28870         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
28871         code of 4 to be a failure, not a success. This ensures that
28872         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
28874 2011-11-27  Bruno Haible  <bruno@clisp.org>
28876         binary-io tests: Avoid test failure on mingw when libtool is used.
28877         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
28878         Don't verify the size of t-bin-out1.tmp here.
28879         * tests/test-binary-io.sh: Verify it here.
28880         Reported by Simon Josefsson.
28882 2011-11-26  Bruno Haible  <bruno@clisp.org>
28884         Fix conflict between two instantiations of module 'unistd'.
28885         * gnulib-tool (func_emit_autoconf_snippet): Substitute
28886         ${include_guard_prefix} also in the autoconf snippet.
28887         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
28888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
28889         GNULIB_UNISTD_H_GETOPT.
28890         * modules/getopt-posix (configure.ac): Set the
28891         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
28892         * modules/getopt-gnu (configure.ac): Likewise.
28893         * modules/unistd (Makefile.am): Change the substitution value of
28894         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
28895         Reported by Simon Josefsson.
28897 2011-11-25  Bruno Haible  <bruno@clisp.org>
28899         pagealign_alloc: Doc and comments.
28900         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
28901         module.
28902         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
28904 2011-11-25  Jim Meyering  <meyering@redhat.com>
28906         test-update-copyright.sh: avoid false-positive failure
28907         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
28908         around false positive failure on Cygwin/Windows.  The latter was
28909         matching erroneously-created files with names like
28910         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
28912 2011-11-25  Simon Josefsson  <simon@josefsson.org>
28914         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
28915         * m4/valgrind-tests.m4: Check that the parameters that will be
28916         used works, not just a subset of them.  Reported by Bruno Haible
28917         <bruno@clisp.org>.
28919 2011-11-24  Jim Meyering  <meyering@redhat.com>
28921         test-stdalign.c: comment out long double tests
28922         * tests/test-stdalign.c: Don't try to reduce alignment of long double
28923         variables.  That provokes errors like this from gcc-4.7.0 20111124:
28924         error: '_Alignas' specifiers cannot reduce alignment of \
28925         'static_longdouble_alignas'.
28927 2011-11-22  Jim Meyering  <meyering@redhat.com>
28929         init.sh: make "compare /dev/null FILE" output more readable
28930         * tests/init.sh (compare_): Document the preferred order of arguments.
28931         (emit_diff_u_header_): New function.
28932         (compare_dev_null_): Emit a simulated diff, rather than just the
28933         contents of the unexpected file.  Suggestion from Bruno Haible.
28935 2011-11-21  Jim Meyering  <meyering@redhat.com>
28936             Eric Blake  <eblake@redhat.com>
28938         init.sh: work around OSF/1 5.1's mishandling of /dev/null
28939         * tests/init.sh: Make our compare function slightly more portable.
28940         Reported by Bruno Haible in
28941         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
28943 2011-11-21  Simon Josefsson  <simon@josefsson.org>
28945         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
28946         before using it, in code that ends up in config.h.
28948 2011-11-20  Bruno Haible  <bruno@clisp.org>
28950         getcwd: Work around getcwd bug on AIX 5..7.
28951         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
28952         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
28953         Use a different value for gl_cv_func_getcwd_path_max. Move the
28954         definition of HAVE_PARTLY_WORKING_GETCWD from here...
28955         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
28956         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
28957         Define HAVE_MINIMALLY_WORKING_GETCWD.
28958         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
28959         where it is not even minimally working, that is, on AIX.
28960         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
28961         m4/getcwd-path-max.m4.
28962         (main): Update exit code computation.
28963         * doc/posix-functions/getcwd.texi: Mention list of platforms where
28964         getcwd does not handle long file names.
28966 2011-11-20  Bruno Haible  <bruno@clisp.org>
28968         getcwd: Fix bug from 2009-09-10.
28969         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
28970         like "no".
28972 2011-11-20  Simon Josefsson  <simon@josefsson.org>
28974         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
28976 2011-11-20  Bruno Haible  <bruno@clisp.org>
28978         fma tests: Avoid shadowing local variables.
28979         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
28980         expected.
28982 2011-11-20  Bruno Haible  <bruno@clisp.org>
28984         copysignf tests: Fix.
28985         * tests/test-copysignf.c: Fix signature check.
28987 2011-11-20  Bruno Haible  <bruno@clisp.org>
28989         fma: Remove unused code.
28990         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
28991         unused macros.
28993 2011-11-20  Bruno Haible  <bruno@clisp.org>
28995         sethostname: Fix doc about AIX.
28996         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
28997         sethostname; it has it.
28999         sethostname: Mention more portability problems.
29000         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
29001         problem.
29002         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29004 2011-11-19  Bruno Haible  <bruno@clisp.org>
29006         Depend on module fcntl-h when AT_FDCWD is used.
29007         * modules/utimens (Depends-on): Add fcntl-h.
29008         * modules/areadlinkat (Depends-on): Likewise.
29009         * modules/areadlinkat-with-size (Depends-on): Likewise.
29010         * modules/faccessat (Depends-on): Likewise.
29011         * modules/fchmodat (Depends-on): Likewise.
29012         * modules/fchownat (Depends-on): Likewise.
29013         * modules/getcwd (Depends-on): Likewise.
29014         * modules/mkdirat (Depends-on): Likewise.
29015         * modules/mkfifoat (Depends-on): Likewise.
29016         * modules/readlinkat (Depends-on): Likewise.
29017         * modules/symlinkat (Depends-on): Likewise.
29018         * modules/dup2-tests (Depends-on): Likewise.
29019         * modules/fdutimensat-tests (Depends-on): Likewise.
29020         * modules/futimens-tests (Depends-on): Likewise.
29022 2011-11-19  Bruno Haible  <bruno@clisp.org>
29024         euidaccess: Update a comment.
29025         * lib/euidaccess.c: Update comment about platforms with faccessat.
29027 2011-11-19  Bruno Haible  <bruno@clisp.org>
29029         openat: Fix file list.
29030         * modules/openat (Files): Remove lib/at-func.c.
29032 2011-11-19  Bruno Haible  <bruno@clisp.org>
29034         fstatat: Simplify.
29035         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
29036         gnulib should define rpl_fstatat, there is a
29037         "#define fstatat rpl_fstatat" in <sys/stat.h>.
29039 2011-11-19  Bruno Haible  <bruno@clisp.org>
29041         Ensure 'inline' can be used in tests/test-utimens-common.h.
29042         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
29043         * modules/futimens-tests (configure.ac): Likewise.
29044         * modules/utimens-tests (configure.ac): Likewise.
29045         * modules/utimensat-tests (configure.ac): Likewise.
29047 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29049         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
29050         not hash_insert0.
29051         (hash_insert_if_absent): Doc fix.
29053 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29055         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
29057 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29059         test-getcwd: disambiguate exit status
29060         * tests/test-getcwd.c (test_long_name): Return 0..7.
29061         (main): Exit with an unambiguous exit status.  The old
29062         code yielded a mysterious mixture of two failure codes.
29064         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
29065         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
29066         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
29067         rpl_fstatat or fstatat.  This should fix the other problem
29068         reported by Kai Habel in
29069         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29070         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
29071         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
29072         and I reproduced it on a Solaris 8 host we still have in production.
29074 2011-11-18  Jim Meyering  <meyering@redhat.com>
29076         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
29077         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
29078         Add a sentence to the comment.
29079         (hash_insert0): New function that simply calls hash_insert_if_absent.
29080         * lib/hash.h (hash_insert_if_absent): Declare it.
29081         (hash_insert0): Add deprecation attribute.
29082         (_GL_ATTRIBUTE_DEPRECATED): Define.
29083         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
29084         not hash_insert0.
29085         * NEWS: Mention it, even though it's not really an incompatible change.
29087 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
29089         openat: avoid compilation failure due to lack of <errno.h> inclusion
29090         * lib/openat.c: Include <errno.h>.
29092 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29094         * modules/getcwd (Depends-on): Add fdopendir.
29095         This fixes one of the two problems reported by Kai Habel in
29096         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29098         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
29099         stdalign problem reported by Ian Beckwith in
29100         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
29101         * modules/crypto/gc-arcfour (Depends-on):
29102         Depend conditionally on crypto/arcfour.
29103         * modules/crypto/gc-arctwo (Depends-on):
29104         Depend conditionally on crypto/arctwo.
29105         * modules/crypto/gc-des (Depends-on):
29106         Depend conditionally on crypto/des.
29107         * modules/crypto/gc-hmac-md5 (Depends-on):
29108         Depend conditionally on crypto/hmac-md5.
29109         * modules/crypto/gc-hmac-sha1 (Depends-on):
29110         Depend conditionally on crypto/hmac-sha1.
29111         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
29112         * modules/crypto/gc-md4 (Depends-on):
29113         Depend conditionally on crypto/md4.
29114         * modules/crypto/gc-md5 (Depends-on):
29115         Depend conditionally on crypto/md5.
29116         * modules/crypto/gc-rijndael (Depends-on):
29117         Depend conditionally on crypto/rijndael.
29118         * modules/crypto/gc-sha1 (Depends-on):
29119         Depend conditionally on crypto/sha1.
29120         * modules/crypto/gc-arcfour:
29121         * modules/crypto/gc-arctwo:
29122         * modules/crypto/gc-des:
29123         * modules/crypto/gc-hmac-md5:
29124         * modules/crypto/gc-hmac-sha1:
29125         * modules/crypto/gc-md2:
29126         * modules/crypto/gc-md4:
29127         * modules/crypto/gc-md5:
29128         * modules/crypto/gc-rijndael:
29129         * modules/crypto/gc-sha1:
29130         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
29131         now that the conditional dependencies do the work for us.
29133 2011-11-17  Jim Meyering  <meyering@redhat.com>
29135         tests: factor st_ctime-comparison out of two headers
29136         * tests/test-utimens-common.h (ctime_compare): Define.
29137         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
29138         * tests/test-lutimens.h (test_lutimens): Likewise.
29139         * tests/test-utimens.h (test_utimens): Likewise.
29141         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
29142         Invoke the test program via an init.sh-using wrapper.
29143         * tests/test-getcwd.sh: New file.
29144         * modules/getcwd-tests (Files): Add it.
29145         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
29147 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
29149         gitlog-to-changelog: support multi-author commits.
29150         The FSF cares about keeping track of all authors of patches to its
29151         projects, but Git doesn't provide obvious support for multi-author
29152         changesets. Consensus seems to be forming around the use of extra
29153         Signed-off-by inspired lines in the log message formatted as
29154         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
29155         multi-author commits between version control systems.
29156         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
29157         log message and output in standard ChangeLog multi-author format.
29158         Reported by Peter Rosin <peda@lysator.liu.se>
29160 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29161             Bruno Haible  <bruno@clisp.org>
29163         Fix some modules' file list.
29164         * modules/fstatat (Files): Add m4/lstat.m4.
29165         * modules/openat (Files): Likewise.
29166         * modules/unlinkat (Files): Likewise.
29168 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
29170         maint.mk: fix tight-scope.mk generation in VPATH builds.
29171         * top/maint.mk (tight-scope.mk): Make sure to prefix file
29172         reference with $(srcdir) so that the file is found correctly even
29173         when running `make syntax-check' in a VPATH build.
29175 2011-11-13  Bruno Haible  <bruno@clisp.org>
29176             Jim Meyering  <meyering@redhat.com>
29178         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
29179         * tests/init.sh (compare): Remove "No differences encountered" or
29180         synonymous output from the 'diff' program.
29182 2011-11-13  Bruno Haible  <bruno@clisp.org>
29184         Makefile: Tweak indentation.
29185         * Makefile: Use tab as first character in every line that contains rule
29186         commands.
29188 2011-11-13  Bruno Haible  <bruno@clisp.org>
29190         Syntax check for copyright statements.
29191         * check-copyright: New file.
29192         * Makefile (sc_check_copyright): New rule.
29194 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29196         * build-aux/git-version-gen: Add --prefix to configure the tag
29197         match string.
29199 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29201         * build-aux/git-version-gen: Add --help and --version.
29203 2011-11-12  Jim Meyering  <meyering@redhat.com>
29205         revamp the other test-exclude?.sh scripts to use init.sh, too
29206         * tests/test-exclude1.sh: Use init.sh.
29207         * tests/test-exclude2.sh: Likewise.
29208         * tests/test-exclude3.sh: Likewise.
29209         * tests/test-exclude4.sh: Likewise.
29210         * tests/test-exclude5.sh: Likewise.
29211         * tests/test-exclude6.sh: Likewise.
29212         * tests/test-exclude7.sh: Likewise.
29213         * tests/test-exclude8.sh: Likewise.
29214         * modules/exclude-tests (Files): List init.sh.
29216         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
29217         These shell scripts ignored failure of the binary test-exclude,
29218         so making the latter return 77 didn't cause them to be skipped.
29219         * tests/test-exclude5.sh: Exit with test-exclude's error status
29220         when that program fails.  Revamp to use init.sh.
29221         * tests/test-exclude2.sh: Likewise.
29223         test-exclude: fix a typo
29224         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
29226 2011-11-11  Bruno Haible  <bruno@clisp.org>
29228         obstack: Fix compilation error on MSVC 9.
29229         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
29231 2011-11-11  Jim Meyering  <meyering@redhat.com>
29233         test-exclude: skip tests rather than failing on deficient systems
29234         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
29235         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
29236         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
29237         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
29239 2011-11-10  Bruno Haible  <bruno@clisp.org>
29241         ptsname_r test: Avoid gcc warning on glibc systems.
29242         * tests/test-ptsname_r.c (null_ptr): New function.
29243         (test_errors): Use it.
29245 2011-11-10  Bruno Haible  <bruno@clisp.org>
29247         ptsname_r: Avoid compilation error on OSF/1 5.1.
29248         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
29249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
29250         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
29251         function is not declared or incompatibly declared.
29252         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
29253         * modules/ptsname_r (Depends-on, configure.ac): Update.
29254         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
29256 2011-11-10  Bruno Haible  <bruno@clisp.org>
29258         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29259         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
29260         When cross-compiling, guess yes on all platforms except AIX.
29261         Reported by Ludovic Courtès <ludo@gnu.org>.
29263 2011-11-09  Bruno Haible  <bruno@clisp.org>
29265         ptsname_r tests: Fix bugs.
29266         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
29267         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
29269 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29271         fstatat: work with cross-compilation
29272         Problem reported by Ludovic Courtès in
29273         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
29274         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
29275         "cross-compiling" and assume the bug is present.  Replace
29276         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
29277         an inverted sense, to be more conservative about our assumptions.
29278         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
29280 2011-11-09  Bruno Haible  <bruno@clisp.org>
29282         Improve MODULES.html output.
29283         * modules/mkfifoat (Description): Use the word "function".
29284         * modules/readlinkat (Description): Likewise.
29285         * modules/symlinkat (Description): Likewise.
29287 2011-11-09  Eric Blake  <eblake@redhat.com>
29289         ptsname_r-tests: new test module
29290         * modules/ptsname_r-tests: New module.
29291         * tests/test-ptsname_r.c: New file.
29293         ptsname_r: new module
29294         * modules/ptsname_r: New module.
29295         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29296         * lib/ptsname.c (__ptsname_r): Split...
29297         * lib/ptsname_r.c: ...into new file.
29298         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29299         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29300         * modules/stdlib (Makefile.am): Substitute witnesses.
29301         * lib/stdlib.in.h (ptsname_r): Declare it.
29302         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29303         * MODULES.html.sh (Misc): Likewise.
29304         * modules/ptsname (Depends-on): Alter dependency.
29305         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29307 2011-11-09  Jim Meyering  <meyering@redhat.com>
29309         announce-gen: be more concise when there's only one URL+tarball
29310         * build-aux/announce-gen (get_tool_versions): When you distribute
29311         only one type of tarball, combine the first two "Here are..."
29312         sections and make the key-checking grammar independent of
29313         how many tarballs there are.
29315 2011-11-09  Eric Blake  <eblake@redhat.com>
29317         openpty: provide a stub on mingw
29318         * lib/pty.in.h (includes): Provide forward declarations.
29319         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29321         raise: fix mingw handling of SIGPIPE
29322         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29324 2011-11-08  Bruno Haible  <bruno@clisp.org>
29326         More conditional dependencies.
29327         * modules/faccessat (Depends-on): Add conditions.
29328         * modules/fchmodat (Depends-on): Likewise.
29329         * modules/fchownat (Depends-on): Likewise.
29330         * modules/fstatat (Depends-on): Likewise.
29331         * modules/mkfifoat (Depends-on): Likewise.
29332         * modules/readlinkat (Depends-on): Likewise.
29333         * modules/symlinkat (Depends-on): Likewise.
29334         * modules/unlinkat (Depends-on): Likewise.
29335         * modules/utimensat (Depends-on): Likewise.
29336         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29337         * modules/linkat (Depends-on): Refine the conditions.
29338         * modules/renameat (Depends-on): Likewise.
29340 2011-11-08  Bruno Haible  <bruno@clisp.org>
29342         faccessat: Move AC_LIBOBJ invocation to module description.
29343         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29344         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29345         invocation from here...
29346         * modules/faccessat (configure.ac): ... to here. Invoke
29347         gl_PREREQ_FACCESSAT.
29349 2011-11-08  Bruno Haible  <bruno@clisp.org>
29351         faccessat: Simplify autoconf macro.
29352         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29353         gl_FUNC_EUIDACCESS.
29355 2011-11-08  Bruno Haible  <bruno@clisp.org>
29357         renameat: Fix dependencies.
29358         * modules/renameat (Depends-on): Add stdbool.
29360 2011-11-08  Bruno Haible  <bruno@clisp.org>
29362         mkfifoat: Fix module description.
29363         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29364         not gl_UNISTD_MODULE_INDICATOR.
29366 2011-11-08  Bruno Haible  <bruno@clisp.org>
29368         fstatat: Remove unused dependency.
29369         * modules/fstatat (Depends-on): Remove fstat.
29371 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29373         GNUmakefile: behave when Makefile is missing.
29374         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29376 2011-11-08  Bruno Haible  <bruno@clisp.org>
29378         openat: Conditionalize dependencies.
29379         * lib/openat.c: Reduce the scope of some #includes.
29380         * modules/openat (Depends-on): Add conditions.
29382 2011-11-07  Jim Meyering  <meyering@redhat.com>
29384         maint.mk: extract GPG key ID without using a temporary file
29385         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29386         without using a temporary file.  Based on a suggestion from Werner Koch
29387         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29389 2011-11-07  Eric Blake  <eblake@redhat.com>
29391         grantpt: fix typo
29392         * lib/stdlib.in.h (grantpt): Check correct function.
29394         maint.mk: silence new syntax check
29395         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29397 2011-11-06  Bruno Haible  <bruno@clisp.org>
29399         Doc about floating-point and math API.
29400         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29401         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29403 2011-11-06  Bruno Haible  <bruno@clisp.org>
29405         stdalign tests: Skip the test when compiled by Sun C.
29406         * tests/test-stdalign.c (main): Skip the test on Sun C.
29408 2011-11-06  Bruno Haible  <bruno@clisp.org>
29410         ansi-c++-opt: Complete the 2011-06-05 change.
29411         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29412         does not support namespaces, set the variable to "no", not to ":".
29414 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29416         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29418 2011-11-06  Bruno Haible  <bruno@clisp.org>
29420         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29421         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29422         (minus_zerol) [HP-UX]: New macro.
29423         (unary_minus) [HP-UX]: New function.
29424         (copysignl) [HP-UX]: Use unary_minus function.
29426 2011-11-06  Bruno Haible  <bruno@clisp.org>
29428         ldexp, ldexpf, ldexpl: Enhance tests.
29429         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29430         and tests/test-ldexpl.c.
29431         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29432         LDEXP, MIN_EXP, MAX_EXP): New macros.
29433         Include test-ldexp.h.
29434         (main): Just call test_function.
29435         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29436         infinity.h, nan.h.
29437         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29438         MAX_EXP): New macros.
29439         Include test-ldexp.h.
29440         (x, y): Remove variables.
29441         (main): Just call test_function.
29442         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29443         infinity.h, nan.h.
29444         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29445         MAX_EXP): New macros.
29446         Include test-ldexp.h.
29447         (x, y): Remove variables.
29448         (main): Just call test_function.
29449         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29450         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29451         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29452         (Depends-on): Add isnand-nolibm, signbit, float.
29453         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29454         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29455         (Depends-on): Add isnanf-nolibm, signbit, float.
29457 2011-11-06  Bruno Haible  <bruno@clisp.org>
29459         math tests: Cosmetics.
29460         * tests/test-math-c++.cc: Reorder declarations.
29462 2011-11-05  Bruno Haible  <bruno@clisp.org>
29464         fma*: Simplify test.
29465         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29466         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29468         Tests for module 'fmal'.
29469         * modules/fmal-tests: New file.
29470         * tests/test-fmal1.c: New file.
29471         * tests/test-fmal2.c: New file.
29473         New module 'fmal'.
29474         * lib/math.in.h (fmal): New declaration.
29475         * lib/fmal.c: New file.
29476         * m4/fmal.m4: New file.
29477         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29479         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29480         REPLACE_FMAL.
29481         * modules/fmal: New file.
29482         * doc/posix-functions/fmal.texi: Mention the new module and the various
29483         bugs.
29485         Tests for module 'fmaf'.
29486         * modules/fmaf-tests: New file.
29487         * tests/test-fmaf1.c: New file.
29488         * tests/test-fmaf2.c: New file.
29490         New module 'fmaf'.
29491         * lib/math.in.h (fmaf): New declaration.
29492         * lib/fmaf.c: New file.
29493         * m4/fmaf.m4: New file.
29494         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29496         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29497         REPLACE_FMAF.
29498         * modules/fmaf: New file.
29499         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29500         bugs.
29502         Tests for module 'fma'.
29503         * modules/fma-tests: New file.
29504         * tests/test-fma1.c: New file.
29505         * tests/test-fma1.h: New file.
29506         * tests/test-fma2.c: New file.
29507         * tests/test-fma2.h: New file.
29509         New module 'fma'.
29510         * lib/math.in.h (fma): New declaration.
29511         * lib/fma.c: New file.
29512         * m4/fma.m4: New file.
29513         * m4/fegetround.m4: New file.
29514         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29516         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29517         REPLACE_FMA.
29518         * modules/fma: New file.
29519         * doc/posix-functions/fma.texi: Mention the new module and the various
29520         bugs.
29522         Extend gl_MATHFUNC.
29523         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29524         Support 'void' as argument type.
29525         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29527 2011-11-05  Jim Meyering  <meyering@redhat.com>
29529         maint.mk: also prohibit inclusion of dirent.h without use
29530         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29532 2011-11-05  Bruno Haible  <bruno@clisp.org>
29534         ldexpl tests: Avoid test failure on MSVC 9.
29535         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29536         value. Needed in order to enforce the conversion from a value greater
29537         than LDBL_MAX to Infinity.
29539 2011-11-05  Bruno Haible  <bruno@clisp.org>
29541         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29542         * modules/at-internal: New file, extracted from modules/openat.
29543         * modules/openat-h: New file.
29544         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
29545         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
29546         * modules/openat (Description): Add reference to POSIX function.
29547         (Files): Remove lib/openat.h, lib/openat-proc.c.
29548         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
29549         intprops, unistd.
29550         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
29551         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
29552         gl_FCNTL_MODULE_INDICATOR.
29553         (Include): Remove unistd.h, openat.h.
29554         * modules/areadlinkat (Files): Add lib/at-func.c.
29555         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29556         openat-die, openat-h, save-cwd.
29557         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
29558         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29559         openat-die, openat-h, save-cwd, unistd.
29560         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
29561         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29562         openat-h, save-cwd. Remove fcntl-h, openat.
29563         * modules/fchmodat (Files): Remove lib/openat.h.
29564         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29565         openat, stdbool, unistd.
29566         * modules/fchownat (Files): Remove lib/openat.h.
29567         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29568         openat, stdbool, sys_stat.
29569         * modules/fdopendir (Files): Remove lib/openat-priv.h,
29570         lib/openat-proc.c.
29571         (Depends-on): Add at-internal.
29572         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
29573         * modules/fstatat (Files): Remove lib/openat.h.
29574         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29575         stdbool, unistd.
29576         * modules/fts (Depends-on): Add openat-h.
29577         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
29578         openat.
29579         * modules/mkdirat (Files): Remove lib/openat.h.
29580         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29581         openat, stdbool, sys_stat.
29582         * modules/mkfifoat (Files): Add lib/at-func.c.
29583         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29584         openat-h, save-cwd. Remove fcntl-h, openat.
29585         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
29586         * modules/readlinkat (Files): Add lib/at-func.c.
29587         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29588         openat-h, save-cwd. Remove fcntl-h, openat.
29589         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
29590         openat.
29591         * modules/selinux-at (Files): Add lib/at-func.c.
29592         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29593         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
29594         * modules/symlinkat (Files): Add lib/at-func.c.
29595         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29596         openat-h, save-cwd. Remove fcntl-h, openat.
29597         * modules/unlinkat (Files): Remove lib/openat.h.
29598         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29599         stdbool.
29600         * modules/utimensat (Files): Add lib/at-func.c.
29601         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
29602         openat-die, openat-h, save-cwd.
29603         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
29604         * modules/fdutimensat-tests (Depends-on): Add openat.
29605         * modules/fstatat-tests (Depends-on): Add openat-h.
29606         * modules/readlinkat-tests (Depends-on): Add openat.
29607         * modules/symlinkat-tests (Depends-on): Add openat.
29609 2011-11-05  Bruno Haible  <bruno@clisp.org>
29611         openat: Include <stdbool.h>.
29612         * lib/openat.c: Include <stdbool.h>.
29614 2011-11-04  Bruno Haible  <bruno@clisp.org>
29616         fchownat, renameat, unlinkat: Fix dependencies.
29617         * modules/fchownat (Depends-on): Add fstatat.
29618         * modules/renameat (Depends-on): Likewise.
29619         * modules/unlinkat (Depends-on): Likewise.
29621 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29623         openat: remove direct dependency on dirent
29624         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
29625         and hasn't been needed ever since fdopendir was split into its own
29626         module on 2009-08-31.
29627         * modules/openat (Depends-on): Remove dirent.
29629 2011-11-04  Bruno Haible  <bruno@clisp.org>
29631         renameat: Optimize code size.
29632         * modules/renameat (configure.ac): Don't compile at-func2.c if
29633         REPLACE_RENAMEAT is 1.
29635 2011-11-04  Bruno Haible  <bruno@clisp.org>
29637         openat tests: Fix file list.
29638         * modules/openat-tests (Files): Add tests/test-open.h.
29640 2011-11-04  Bruno Haible  <bruno@clisp.org>
29642         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
29643         * modules/fchmodat (Depends-on): Add openat-die.
29644         * modules/fchownat (Depends-on): Likewise.
29645         * modules/linkat (Depends-on): Likewise.
29646         * modules/renameat (Depends-on): Likewise.
29647         * modules/openat (Depends-on): Add dirent.
29649 2011-11-04  Jim Meyering  <meyering@redhat.com>
29651         at-func*.c: fix comments
29652         * lib/at-func2.c: Correct/improve first-line comment.
29653         * lib/at-func.c: Correct grammar in first-line comment.
29655 2011-11-04  Bruno Haible  <bruno@clisp.org>
29657         New module 'mkdirat', split off from module 'openat'.
29658         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
29659         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
29660         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
29661         * modules/mkdirat: New file, extracted from modules/openat.
29662         * modules/openat (Files): Remove lib/mkdirat.c.
29663         (Depends-on): Remove mkdir.
29664         (configure.ac): Remove AC_LIBOBJ of mkdirat.
29665         (Include): Remove <sys/stat.h>.
29666         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
29667         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
29668         tests/test-mkdir.h.
29669         (Depends-on): Remove ignore-value.
29670         (Makefile.am): Remove rules for test-mkdirat.
29671         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
29672         of module 'openat'.
29673         * NEWS: Mention the change.
29675 2011-11-04  Bruno Haible  <bruno@clisp.org>
29677         closedir: Avoid warning on mingw.
29678         * lib/closedir.c: Include <unistd.h>.
29680 2011-11-04  Bruno Haible  <bruno@clisp.org>
29682         New module 'fstatat', split off from module 'openat'.
29683         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
29684         defined.
29685         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
29686         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
29687         gl_FUNC_FSTATAT.
29688         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
29689         * modules/fstatat: New file, extracted from modules/openat.
29690         * modules/openat (Files): Remove lib/fstatat.c.
29691         (Depends-on): Remove lstat.
29692         (configure.ac): Remove AC_LIBOBJ of fstatat.
29693         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
29694         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
29695         tests/test-lstat.h, tests/test-stat.h.
29696         (Depends-on): Remove getcwd-lgpl.
29697         (Makefile.am): Remove rules for test-fstatat.
29698         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
29699         of module 'openat'.
29700         * NEWS: Mention the change.
29701         * modules/getcwd (Depends-on): Add fstatat.
29702         * modules/linkat (Depends-on): Likewise.
29703         * modules/mkfifoat-tests (Depends-on): Likewise.
29704         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
29706 2011-11-03  Bruno Haible  <bruno@clisp.org>
29708         New module 'unlinkat', split off from module 'openat'.
29709         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
29710         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
29711         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
29712         * modules/unlinkat: New file, extracted from modules/openat. Correct
29713         the dependency conditions.
29714         * modules/openat (Files): Remove lib/unlinkat.c.
29715         (Depends-on): Remove rmdir, unlink.
29716         (configure.ac): Remove AC_LIBOBJ of unlinkat.
29717         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
29718         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
29719         tests/test-rmdir.h, tests/test-unlink.h.
29720         (Depends-on): Remove unlinkdir.
29721         (Makefile.am): Remove rules for test-unlinkat.
29722         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
29723         of module 'openat'.
29724         * NEWS: Mention the change.
29725         * modules/linkat-tests (Depends-on): Add unlinkat.
29726         * modules/mkfifoat-tests (Depends-on): Likewise.
29727         * modules/readlinkat-tests (Depends-on): Likewise.
29729 2011-11-02  Bruno Haible  <bruno@clisp.org>
29731         New module 'fchmodat', split off from module 'openat'.
29732         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
29733         defined.
29734         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
29735         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
29736         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
29737         * modules/fchmodat: New file, extracted from modules/openat.
29738         * modules/openat (Files): Remove lib/fchmodat.c.
29739         (configure.ac): Remove AC_LIBOBJ of fchmodat.
29740         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
29741         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
29742         (Makefile.am): Remove rules for test-fchmodat.
29743         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
29744         of module 'openat'.
29745         * NEWS: Mention the change.
29747 2011-11-02  Jim Meyering  <meyering@redhat.com>
29749         putenv: indent #definition of "environ" to placate cppi
29750         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
29752         gitlog-to-changelog: provide a ChangeLog-repair mechanism
29753         Git logs are often treated as immutable, because editing them
29754         changes the SHA1 checksums of all descendants.  Thus, errors in
29755         git logs tend to stay there forever.  However, when we generate
29756         a ChangeLog file -- typically for distribution -- from that git log,
29757         we can actually make corrections in the generated file.  The key
29758         lies in recording in machine-readable/applicable form the desired
29759         corrections.  See --help for description and an example.
29760         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
29761         (usage): Describe it; alphabetize option descriptions.
29762         (main): Honor the new option, carefully.
29764 2011-11-01  Jim Meyering  <meyering@redhat.com>
29766         gitlog-to-changelog: avoid an infloop
29767         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
29768         that ends up being empty.
29770 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29772         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
29773         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
29774         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
29775         contains (possibly-quoted) backslashes.  This should avoid
29776         all-too-common shell bugs if COMPLICATED contains backslashes in
29777         the "wrong" places.  Reported by David Evans in
29778         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
29779         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
29780         because we want ASCII ranges.  Is there some reason we don't use
29781         the C locale everywhere in this script?
29782         (func_module, top level): Avoid unwanted pathname expansion when
29783         $repo_url_prefix or $repo_url_suffix_repl contain shell
29784         metacharacters like '?' and '*'.
29786 2011-11-01  Bruno Haible  <bruno@clisp.org>
29788         fchownat: Improve description.
29789         * modules/fchownat (Description): Add link to function.
29791 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29793         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
29794         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
29795         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
29796         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
29798 2011-11-01  Bruno Haible  <bruno@clisp.org>
29800         alignof: Avoid collision with stdalign module.
29801         * lib/alignof.h (alignof): Remove macro.
29802         * NEWS: Mention the change.
29803         Reported by Paul Eggert.
29805 2011-11-01  Bruno Haible  <bruno@clisp.org>
29807         New module 'fchownat', split off from module 'openat'.
29808         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
29809         defined.
29810         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
29811         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
29812         invoke gl_FUNC_FCHOWNAT.
29813         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
29814         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
29815         * modules/fchownat: New file, extracted from modules/openat.
29816         * modules/openat (Files): Remove lib/fchownat.c.
29817         (Depends-on): Remove lchown.
29818         (configure.ac): Remove AC_LIBOBJ of fchownat.
29819         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
29820         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
29821         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
29822         (Depends-on): Remove mgetgroups, usleep, stat-time.
29823         (configure.ac): Remove test for getegid.
29824         (Makefile.am): Remove rules for test-fchownat.
29825         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
29826         of module 'openat'.
29827         * NEWS: Mention the change.
29829 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29831         stdalign: port better to MSVC and to Sun C 5.11
29832         This fixes some of the problems reported by Bruno Haible in
29833         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
29834         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
29835         shortcomings of MSVC and of Sun C 5.11.
29836         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
29837         around __declspec arg.
29838         * modules/stdalign-tests (Files): Add tests/macros.h.
29839         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
29840         Include macros.h, for ASSERT.
29841         (DECLARE_ALIGNED): Remove.
29842         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
29843         to catch bug), and to 1 if not (simplifies the rest of the code).
29844         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
29845         (CHECK_AUTO): Remove.
29846         (CHECK_ALIGNED): Check only the alignment of the static vars,
29847         since auto var alignment isn't supported by Sun C 5.11.
29848         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
29849         ASSERT failures are easier to diagnose.
29851 2011-10-31  Bruno Haible  <bruno@clisp.org>
29853         doc about some IRIX 5.3 problems.
29854         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
29855         on IRIX 5.3.
29856         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
29857         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
29858         5.3.
29859         * doc/posix-functions/grantpt.texi: Likewise.
29860         * doc/posix-functions/unlockpt.texi: Likewise.
29861         * doc/posix-functions/lgamma.texi: Likewise.
29862         * doc/posix-functions/nextafter.texi: Likewise.
29863         * doc/posix-functions/remainder.texi: Likewise.
29864         * doc/posix-functions/select.texi: Mention misplaced declaration on
29865         IRIX 5.3.
29866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29868 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
29870         gitlog-to-changelog: fix git-log invocation.
29871         git-log mishandles date strings before 1970-01-01 UTC, and there is
29872         no use to specify --since=1970-01-01 by default anyway.
29873         * build-aux/gitlog-to-changelog: By default, when no --since option
29874         was given, do not specify explicit --since option to git-log.
29876 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
29878         gitlog-to-changelog: new option --append-dot.
29879         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
29880         first non-blank line of each commit message terminated with a dot.
29882 2011-10-30  Bruno Haible  <bruno@clisp.org>
29884         ffsl, ffsll: Avoid compilation error due to 'restrict'.
29885         * lib/ffsl.h: Include <config.h>.
29886         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
29888 2011-10-30  Jim Meyering  <meyering@redhat.com>
29890         GNUmakefile: reenable "make syntax-check" for most projects
29891         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
29892         build-aux variable", "syntax-check" would do nothing but succeed with
29893         the "No version control files detected..." diagnostic (unless you
29894         happened to override _build-aux via cfg.mk).
29895         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
29896         to precede inclusion of maint.mk.  Otherwise, these variables would
29897         be used undefined in any project that does not override the default.
29899 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
29901         gitlog-to-changelog: treat a message with only blank lines as empty.
29902         * build-aux/gitlog-to-changelog: Move the code that removes leading and
29903         trailing blank lines before the code that issues a warning about an
29904         empty commit message.
29906 2011-10-30  Jim Meyering  <meyering@redhat.com>
29908         test-parse-datetime.c: avoid new DST-related false positive test failure
29909         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
29910         based on the time/date we'll convert, not the current time.
29911         Otherwise, the moment we cross a DST boundary like today's in
29912         Europe, (CEST to CET), that offset ends up being one hour off.
29914 2011-10-27  Bruno Haible  <bruno@clisp.org>
29916         fstat: Tweak documentation.
29917         * modules/fstat (Description): More precise description.
29919 2011-10-27  Bruno Haible  <bruno@clisp.org>
29921         Update documentation regarding 'largefile' module.
29922         * doc/posix-functions/fstat.texi: Tweak wording.
29923         * doc/posix-functions/opendir.texi: Mention that the module fixes the
29924         problems with huge directories and/or small ino_t types.
29925         * doc/posix-functions/readdir.texi: Likewise.
29926         * doc/posix-functions/rewinddir.texi: Likewise.
29928 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
29930         maint.mk: don't maintain a second build-aux variable.
29931         * maint.mk (build_aux): Removed.  The maintainer-makefile module
29932         depends on GNUmakefile, which already maintains a cfg.mk
29933         overridable $(_build-aux) for projects with a non-standard
29934         build-aux directory location, although without the $(srcdir)
29935         prefix.  Use that variable consistently instead of introducing a
29936         second one.  Adjust all call sites.
29938 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29940         Add stdalign module and use it in other modules.
29941         This is based on a previous proposal by Bruno Haible
29942         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
29944         stdalign: new module
29945         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
29946         * modules/stdalign: New files.
29947         * MODULES.html.sh (c1x_core_properties): Add stdalign.
29948         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
29950         stdalign-tests: new module
29951         * modules/stdalign-tests, tests/test-stdalign.c: New files.
29953         argp: use stdalign
29954         * lib/argp-parse.c: Include <stdalign.h>.
29955         (alignof): Remove.
29956         * modules/argp (Depends-on): Add stdalign.
29958         crypto libraries: use stdalign
29959         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
29960         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
29961         Do not include <stdlib.h> twice, in md4.c.
29962         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
29963         because we are accessing a pointer's bit-pattern, not a size.
29964         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
29965         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
29966         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
29967         * modules/crypto/sha512: Likewise.
29969         sys_socket: use stdalign, not alignof
29970         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
29971         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
29973 2011-10-27  Bruno Haible  <bruno@clisp.org>
29975         raise test: Avoid a test failure on Linux/MIPS.
29976         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
29977         because 99 is a valid signal on Linux/MIPS.
29979 2011-10-27  Bruno Haible  <bruno@clisp.org>
29981         nonblocking tests: Fix test failure on Linux/MIPS.
29982         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
29983         Set to 270000.
29985 2011-10-27  Bruno Haible  <bruno@clisp.org>
29987         utimensat: Work around problem on Linux/hppa.
29988         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
29989         values.
29990         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
29992 2011-10-25  Jim Meyering  <meyering@redhat.com>
29994         maint.mk: fix a bug in sc_prohibit_stddef_without_use
29995         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
29996         after symbols like NULL, size_t, etc.
29997         Reported by Alfred M. Szmidt.
29999         maint.mk: exempt ENODATA from a syntax-check rule
30000         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
30001         from the sc_prohibit_always-defined_macros syntax-check rule.
30002         Add a comment.  See this for more details:
30003         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
30005 2011-10-23  Jim Meyering  <meyering@redhat.com>
30007         fts: close parent dir FD before returning from post-traversal fts_read
30008         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
30009         unlink A, even though an FD open on A remained.  This is suboptimal
30010         (holding a file descriptor open longer than needed), but otherwise not
30011         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
30012         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
30013         that represents a real problem: it causes the removal of A to fail
30014         with e.g., "rm: cannot remove `A': Device or resource busy"
30016         fts visits each directory twice and keeps a cache (fts_fd_ring) of
30017         directory file descriptors.  After completing the final, FTS_DP,
30018         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
30019         cache, but then proceeded to add a new FD to it via the subsequent
30020         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
30021         final file descriptor would be closed only via fts_close's call to
30022         fd_ring_clear.  Now, it is usually closed earlier, via the final
30023         FTS_DP-returning fts_read call.
30024         * lib/fts.c (restore_initial_cwd): New function, converted from
30025         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
30026         Update callers.
30027         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
30028         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
30030 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
30031             Bruno Haible  <bruno@clisp.org>
30032             Jim Meyering  <jim@meyering.net>
30034         readme-release: improve safety of release prep instructions.
30035         * README-release: Don't git pull all branches when only master
30036         is needed for the release process.
30037         Run make maintainer-clean before changing trees and merging.
30038         Don't try to run ./configure right after git pull in case files
30039         that influence the bootstrap process have changed, move the
30040         ./configure step to after running ./bootstrap.
30041         Don't bootstrap "one last time"... it's the first time!
30043 2011-10-22  Bruno Haible  <bruno@clisp.org>
30045         errno, strerror-override: Support for MSVC 10.
30046         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
30047         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
30048         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
30049         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
30050         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
30051         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
30052         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
30053         Assign values compatible with MSVC 10.
30054         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
30055         New macros.
30056         (GNULIB_defined_EWINSOCK): New macro.
30057         * lib/strerror-override.c (strerror_override): Update accordingly.
30058         * lib/strerror-override.h: Likewise.
30059         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
30060         longer equal to the corresponding errno value.
30061         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30063 2011-10-22  Bruno Haible  <bruno@clisp.org>
30065         perror: Recognize when test program crashes.
30066         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
30067         strerror, set gl_cv_func_perror_works to no.
30068         Reported by Daniel Richard G. <skunk@iskunk.org>.
30070         perror: Fix indentation.
30071         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
30073 2011-10-22  Bruno Haible  <bruno@clisp.org>
30075         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
30076         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
30077         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
30078         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
30079         functions, not as a macro.
30080         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
30081         macros.
30082         (isfinite, isinf, isnan, signbit): Check overloaded functions and
30083         absence of macro.
30084         Suggested by Eric Blake.
30085         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30087 2011-10-21  Bruno Haible  <bruno@clisp.org>
30089         relocatable-prog-wrapper: Don't leave object files behind.
30090         * build-aux/install-reloc: Re-synchronize list of .o files to be
30091         removed with list of compilation units.
30093 2011-10-20  Bruno Haible  <bruno@clisp.org>
30095         openpty, posix_openpt: Remove code duplication.
30096         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
30097         * lib/openpty.c: Include <stdlib.h>.
30098         (openpty): Use posix_openpt on all platforms except IRIX.
30099         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
30101 2011-10-20  Bruno Haible  <bruno@clisp.org>
30103         unlockpt: Detect invalid argument.
30104         * lib/unlockpt.c: Include <fcntl.h>.
30105         (unlockpt): Check whether fd is valid, using fcntl().
30106         * modules/unlockpt (Depends-on): Add fcntl-h.
30108 2011-10-20  Bruno Haible  <bruno@clisp.org>
30110         openpty: Avoid compilation error on AIX 6.1.
30111         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
30113 2011-10-20  Bruno Haible  <bruno@clisp.org>
30115         posix_openpt: Support for OpenBSD.
30116         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
30117         (posix_openpt) [OpenBSD]: New code.
30118         * lib/grantpt.c: Include <fcntl.h>.
30119         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
30120         * modules/grantpt (Depends-on): Add fcntl-h.
30122 2011-10-20  Bruno Haible  <bruno@clisp.org>
30124         posix_openpt test: Coding style.
30125         * tests/test-posix_openpt.c: Use GNU coding style.
30127 2011-10-20  Bruno Haible  <bruno@clisp.org>
30129         grantpt: Support --avoid=pt_chown.
30130         * modules/grantpt (Files): Add lib/pty-private.h.
30132 2011-10-20  Bruno Haible  <bruno@clisp.org>
30134         posix_openpt: Fix autoconf macro.
30135         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
30136         unneeded check for _getpty.
30138 2011-10-20  Bruno Haible  <bruno@clisp.org>
30140         openpty: Update comments.
30141         * lib/openpty.c: Add comments about Minix.
30143 2011-10-19  Eric Blake  <eblake@redhat.com>
30145         openpty: relax license
30146         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
30148         pt_chown: use configmake to simplify build
30149         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
30151         ptsname and others: relax license
30152         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
30153         * modules/unlockpt (License): Likewise.
30154         * modules/pt_chown (License): Likewise.
30155         * modules/ptsname (License): Likewise.
30156         * modules/ttyname_r (License): Likewise.
30158 2011-10-19  Jim Meyering  <meyering@redhat.com>
30160         posix_openpt: remove spurious #endif
30161         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
30163 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
30165         maint.mk: Respect $(build_aux) in web-manual rule.
30166         * top/maint.mk (web-manual): Find gen-announce script in user's
30167         $(build_aux) directory instead of hard-coding 'build-aux'.
30169 2011-10-19  Bruno Haible  <bruno@clisp.org>
30171         posix_openpt: Fix compilation error.
30172         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
30173         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
30174         Mention the openpty module as an alternative.
30176 2011-10-19  Bruno Haible  <bruno@clisp.org>
30178         Support for old NeXTstep 3.3 frexp().
30179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
30180         execution time of the test to 5 seconds.
30181         Reported by Daniel Richard G. <skunk@iskunk.org>.
30183 2011-10-19  Bruno Haible  <bruno@clisp.org>
30185         Support for old NeXTstep 3.3 sed.
30186         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
30187         part, use /.../, not \|...|. Escape periods in the header file name.
30188         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30189         Reported by Daniel Richard G. <skunk@iskunk.org>.
30191 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30193         Support for old NeXTstep 3.3 gcc.
30194         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
30195         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
30196         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
30197         * lib/spawn.in.h (_Restrict_arr_): Likewise.
30198         * lib/regex.h (_Restrict_arr_): Likewise.
30199         * lib/regex_internal.h (re_token_t): Likewise.
30200         * lib/regexec.c (check_node_accept_bytes): Likewise.
30201         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
30203 2011-10-18  Eric Blake  <eblake@redhat.com>
30205         posix_openpt: new module
30206         * modules/posix_openpt: New module.
30207         * m4/posix_openpt.m4: New file.
30208         * lib/posix_openpt.c: Likewise.
30209         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
30210         (gl_STDLIB_H_DEFAULTS): Set defaults.
30211         * modules/stdlib (Makefile.am): Substitute macros.
30212         * lib/stdlib.in.h (posix_openpt): Declare.
30213         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
30214         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
30215         * modules/posix_openpt-tests: New test module.
30216         * tests/test-posix_openpt.c: New test.
30218 2011-10-15  Bruno Haible  <bruno@clisp.org>
30220         xstrtoll: Fix compilation failure.
30221         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
30222         from lib/strtol.c.
30223         * doc/posix-headers/limits.texi: Mention missing numerical limits on
30224         some platforms.
30225         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30227 2011-10-15  Bruno Haible  <bruno@clisp.org>
30229         vasnprintf: Optimize bit search operation.
30230         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
30231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
30232         gl_DOUBLE_EXPONENT_LOCATION.
30233         * modules/vasnprintf (Files): Add m4/exponentd.m4.
30234         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30235         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30236         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30237         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30238         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30239         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30240         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30241         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
30243 2011-10-15  Bruno Haible  <bruno@clisp.org>
30245         vasnprintf: Fix comments.
30246         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
30248 2011-10-14  Bruno Haible  <bruno@clisp.org>
30250         Tests for module 'integer_length_ll'.
30251         * modules/integer_length_ll-tests: New file.
30252         * tests/test-integer_length_ll.c: New file.
30254         New module 'integer_length_ll'.
30255         * lib/integer_length_ll.c: New file.
30256         * modules/integer_length_ll: New file.
30258 2011-10-14  Bruno Haible  <bruno@clisp.org>
30260         Tests for module 'integer_length_l'.
30261         * modules/integer_length_l-tests: New file.
30262         * tests/test-integer_length_l.c: New file.
30264         New module 'integer_length_l'.
30265         * lib/integer_length_l.c: New file.
30266         * modules/integer_length_l: New file.
30268 2011-10-14  Bruno Haible  <bruno@clisp.org>
30270         Tests for module 'integer_length'.
30271         * modules/integer_length-tests: New file.
30272         * tests/test-integer_length.c: New file.
30274         New module 'integer_length'.
30275         * lib/integer_length.h: New file.
30276         * lib/integer_length.c: New file.
30277         * modules/integer_length: New file.
30279 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30281         popen: Fix dependency conditions.
30282         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
30284 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30286         perror: Fix autoconf test.
30287         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
30288         <stdlib.h> and <string.h>.
30290 2011-10-14  Bruno Haible  <bruno@clisp.org>
30292         ffsl: Optimize on 64-bit platforms.
30293         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30294         unrolling.
30296 2011-10-13  Bruno Haible  <bruno@clisp.org>
30298         ffsl: Optimize on 32-bit platforms.
30299         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30300         use ffs() without a loop.
30302         ffsl, ffsll: Optimize for GCC.
30303         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30304         * lib/ffsl.c (GCC_BUILTIN): New macro.
30305         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30307 2011-10-13  Bruno Haible  <bruno@clisp.org>
30309         ffs, bcopy, memset: Support symbol renaming via config.h.
30310         * lib/ffs.c: Include <config.h>.
30311         * lib/bcopy.c: Likewise.
30312         * lib/memset.c: Likewise.
30314 2011-10-10  Bruno Haible  <bruno@clisp.org>
30316         atanl: Simplify for platforms where 'long double' == 'double'.
30317         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30318         alternative implementation.
30319         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30320         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30321         * modules/atanl (Depends-on): Add atan. Update conditions.
30323 2011-10-10  Bruno Haible  <bruno@clisp.org>
30325         acosl: Simplify for platforms where 'long double' == 'double'.
30326         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30327         alternative implementation.
30328         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30329         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30330         * modules/acosl (Depends-on): Add acos. Update conditions.
30332 2011-10-10  Bruno Haible  <bruno@clisp.org>
30334         asinl: Simplify for platforms where 'long double' == 'double'.
30335         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30336         alternative implementation.
30337         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30338         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30339         * modules/asinl (Depends-on): Add asin. Update conditions.
30341 2011-10-10  Bruno Haible  <bruno@clisp.org>
30343         tanl: Simplify for platforms where 'long double' == 'double'.
30344         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30345         implementation.
30346         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30347         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30348         * modules/tanl (Depends-on): Add tan. Update conditions.
30349         (configure.ac): Don't compile trigl.c if
30350         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30352 2011-10-10  Bruno Haible  <bruno@clisp.org>
30354         cosl: Simplify for platforms where 'long double' == 'double'.
30355         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30356         implementation.
30357         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30358         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30359         * modules/cosl (Depends-on): Add cos. Update conditions.
30360         (configure.ac): Don't compile sincosl.c and trigl.c if
30361         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30363 2011-10-10  Bruno Haible  <bruno@clisp.org>
30365         sinl: Simplify for platforms where 'long double' == 'double'.
30366         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30367         implementation.
30368         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30369         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30370         * modules/sinl (Depends-on): Add sin. Update conditions.
30371         (configure.ac): Don't compile sincosl.c and trigl.c if
30372         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30374 2011-10-10  Bruno Haible  <bruno@clisp.org>
30376         logl: Simplify for platforms where 'long double' == 'double'.
30377         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30378         implementation.
30379         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30380         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30381         * modules/logl (Depends-on): Add log. Update conditions.
30383 2011-10-10  Bruno Haible  <bruno@clisp.org>
30385         expl: Simplify for platforms where 'long double' == 'double'.
30386         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30387         implementation.
30388         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30389         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30390         * modules/expl (Depends-on): Add exp. Update conditions.
30392 2011-10-10  Bruno Haible  <bruno@clisp.org>
30394         sqrtl: Simplify for platforms where 'long double' == 'double'.
30395         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30396         alternative implementation.
30397         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30398         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30399         * modules/sqrtl (Depends-on): Update conditions.
30401 2011-10-10  Bruno Haible  <bruno@clisp.org>
30403         ldexpl: Simplify for platforms where 'long double' == 'double'.
30404         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30405         alternative implementation.
30406         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30407         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30408         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30410 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30412         ffsll: set correct witness
30413         * modules/ffsll (configure.ac): Fix typo.
30415 2011-10-10  Bruno Haible  <bruno@clisp.org>
30417         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30418         * lib/printf-frexpl.c: Include <config.h>.
30419         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30420         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30421         second time.
30422         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30423         gl_LONG_DOUBLE_VS_DOUBLE.
30424         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30425         conditions.
30427 2011-10-10  Bruno Haible  <bruno@clisp.org>
30429         frexpl: Simplify for platforms where 'long double' == 'double'.
30430         * lib/frexpl.c: Include <config.h>.
30431         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30432         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30433         time.
30434         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30435         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30436         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30437         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30438         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30439         conditions.
30441 2011-10-10  Jim Meyering  <meyering@redhat.com>
30443         test-renameat: don't leave behind a temporary file
30444         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30445           ERROR: files left in build directory after distclean:
30446           ./gltests/test-renameat.too
30447           make[1]: *** [distcleancheck] Error 1
30448         Reported by Tom G. Christensen.
30450 2011-10-09  Bruno Haible  <bruno@clisp.org>
30452         rint: Determine RINT_LIBM correctly on AIX 7.
30453         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30454         directly, not only through a function pointer. Also accept an optional
30455         4th argument with extra code.
30456         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30457         rintf() call by gcc when optimizing.
30459         mathfunc.m4: Refactor.
30460         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30461         m4 variable.
30463 2011-10-09  Bruno Haible  <bruno@clisp.org>
30465         rintl: Simplify for platforms where 'long double' == 'double'.
30466         * lib/rintl.c: Include <config.h>.
30467         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30468         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30469         time.
30470         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30471         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30472         * modules/rintl (Depends-on): Add rint. Update conditions.
30474 2011-10-09  Bruno Haible  <bruno@clisp.org>
30476         roundl: Simplify for platforms where 'long double' == 'double'.
30477         * lib/roundl.c: Include <config.h>.
30478         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30479         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30480         time.
30481         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30482         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30483         * modules/roundl (Depends-on): Add round. Update conditions.
30485 2011-10-09  Bruno Haible  <bruno@clisp.org>
30487         truncl: Simplify for platforms where 'long double' == 'double'.
30488         * lib/truncl.c: Include <config.h>.
30489         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30490         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30491         time.
30492         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30493         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30494         * modules/truncl (Depends-on): Add trunc. Update conditions.
30496 2011-10-09  Bruno Haible  <bruno@clisp.org>
30498         ceill: Simplify for platforms where 'long double' == 'double'.
30499         * lib/ceill.c: Include <config.h>.
30500         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30501         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30502         time.
30503         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30504         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30505         * modules/ceill (Depends-on): Add ceil. Update conditions.
30507 2011-10-09  Bruno Haible  <bruno@clisp.org>
30509         floorl: Simplify for platforms where 'long double' == 'double'.
30510         * lib/floorl.c: Include <config.h>.
30511         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30512         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30513         time.
30514         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30515         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30516         * modules/floorl (Depends-on): Add floor. Update conditions.
30518 2011-10-09  Bruno Haible  <bruno@clisp.org>
30520         rint: Fix ordering constraints.
30521         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30522         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30523         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30525 2011-10-09  Bruno Haible  <bruno@clisp.org>
30527         copysignl: Simplify for platforms where 'long double' == 'double'.
30528         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30529         alternative.
30530         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30531         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30532         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30534 2011-10-09  Bruno Haible  <bruno@clisp.org>
30536         Tests for module 'rintl'.
30537         * modules/rintl-tests: New file.
30538         * tests/test-rintl.c: New file.
30540         New module 'rintl'.
30541         * lib/math.in.h (rintl): New declaration.
30542         * lib/rintl.c: New file.
30543         * m4/rintl.m4: New file.
30544         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
30545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
30546         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
30547         * modules/rintl: New file.
30548         * tests/test-math-c++.cc: Check the declaration of rintl.
30549         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30550         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
30551         * doc/posix-functions/rintl.texi: Mention the new module.
30553 2011-10-09  Bruno Haible  <bruno@clisp.org>
30555         Tests for module 'rintf'.
30556         * modules/rintf-tests: New file.
30557         * tests/test-rintf.c: New file.
30559         New module 'rintf'.
30560         * lib/math.in.h (rintf): New declaration.
30561         * lib/rintf.c: New file.
30562         * m4/rintf.m4: New file.
30563         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
30564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
30565         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
30566         * modules/rintf: New file.
30567         * tests/test-math-c++.cc: Check the declaration of rintf.
30568         * doc/posix-functions/rintf.texi: Mention the new module.
30570 2011-10-09  Bruno Haible  <bruno@clisp.org>
30572         rint: Support for MSVC.
30573         * lib/math.in.h (rint): New declaration.
30574         * lib/rint.c: New file.
30575         * m4/rint.m4: New file.
30576         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
30577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
30578         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
30579         * modules/rint (Description): Fix.
30580         (Files): Add lib/rint.c, m4/rint.m4.
30581         (Depends-on): Add math.
30582         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
30583         gl_MATH_MODULE_INDICATOR.
30584         * tests/test-math-c++.cc: Check the declaration of rint.
30585         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30586         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
30587         * doc/posix-functions/rint.texi: Mention the replacement provided by
30588         the module.
30590         rint tests: More tests.
30591         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
30592         minus-zero.h, infinity.h, nan.h.
30593         (main): Skip the test if the current rounding mode is not standard. Add
30594         tests for negative numbers, minus zero, infinity, NaN.
30595         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
30596         tests/nan.h.
30597         (Depends-on): Add isnand-nolibm.
30599 2011-10-09  Bruno Haible  <bruno@clisp.org>
30601         Tests for module 'copysignl'.
30602         * modules/copysignl-tests: New file.
30603         * tests/test-copysignl.c: New file.
30605         New module 'copysignl'.
30606         * lib/math.in.h (copysignl): New declaration.
30607         * lib/copysignl.c: New file.
30608         * m4/copysignl.m4: New file.
30609         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
30610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
30611         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
30612         HAVE_COPYSIGNL.
30613         * modules/copysignl: New file.
30614         * tests/test-math-c++.cc: Check the declaration of copysignl.
30615         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30616         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
30617         * doc/posix-functions/copysignl.texi: Mention the new module.
30619 2011-10-09  Bruno Haible  <bruno@clisp.org>
30621         Tests for module 'copysignf'.
30622         * modules/copysignf-tests: New file.
30623         * tests/test-copysignf.c: New file.
30625         New module 'copysignf'.
30626         * lib/math.in.h (copysignf): New declaration.
30627         * lib/copysignf.c: New file.
30628         * m4/copysignf.m4: New file.
30629         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
30630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
30631         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
30632         HAVE_COPYSIGNF.
30633         * modules/copysignf: New file.
30634         * tests/test-math-c++.cc: Check the declaration of copysignf.
30635         * doc/posix-functions/copysignf.texi: Mention the new module.
30637 2011-10-09  Bruno Haible  <bruno@clisp.org>
30639         Ensure that HAVE_* variables are set to 1 before they are set to 0.
30640         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
30641         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
30642         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30643         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
30644         gl_SIGNAL_H_DEFAULTS.
30646 2011-10-09  Bruno Haible  <bruno@clisp.org>
30648         poll: Make macro safer.
30649         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
30650         ac_cv_header_poll_h is not set.
30652 2011-10-09  Bruno Haible  <bruno@clisp.org>
30654         copysign: Provide replacement.
30655         * lib/math.in.h (copysign): New declaration.
30656         * lib/copysign.c: New file.
30657         * m4/copysign.m4: New file.
30658         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
30659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
30660         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
30661         HAVE_COPYSIGN.
30662         * modules/copysign (Description): Clarify.
30663         (Files): Add lib/copysign.c, m4/copysign.m4.
30664         (Depends-on): Add math, signbit.
30665         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
30666         gl_MATH_MODULE_INDICATOR.
30667         * tests/test-math-c++.cc: Check the declaration of copysign.
30668         * doc/posix-functions/copysign.texi: Mention the effects of the module
30669         on Minix and MSVC.
30671 2011-10-09  Bruno Haible  <bruno@clisp.org>
30673         isinf: Ensure macro on AIX 5.1.
30674         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
30675         macro.
30676         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
30678 2011-10-09  Bruno Haible  <bruno@clisp.org>
30680         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
30681         * modules/snprintf-posix-tests (configure.ac): Require
30682         gl_LONG_DOUBLE_VS_DOUBLE.
30683         * modules/sprintf-posix-tests (configure.ac): Likewise.
30684         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
30685         * modules/vasprintf-posix-tests (configure.ac): Likewise.
30686         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
30687         * modules/vsprintf-posix-tests (configure.ac): Likewise.
30688         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
30689         tests on platforms where 'long double' is the same as 'double'.
30690         * tests/test-sprintf-posix.h (test_function): Likewise.
30691         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30692         * tests/test-vasprintf-posix.c (test_function): Likewise.
30694         *printf: Fix for platforms where 'long double' == 'double'.
30695         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30696         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
30697         * modules/dprintf-posix (Files): Add m4/math_h.m4.
30698         * modules/fprintf-posix (Files): Likewise.
30699         * modules/obstack-printf-posix (Files): Likewise.
30700         * modules/snprintf-posix (Files): Likewise.
30701         * modules/sprintf-posix (Files): Likewise.
30702         * modules/vasnprintf (Files): Likewise.
30703         * modules/vasnprintf-posix (Files): Likewise.
30704         * modules/vasprintf-posix (Files): Likewise.
30705         * modules/vdprintf-posix (Files): Likewise.
30706         * modules/vfprintf-posix (Files): Likewise.
30707         * modules/vsnprintf-posix (Files): Likewise.
30708         * modules/vsprintf-posix (Files): Likewise.
30709         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30710         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30711         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30712         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30713         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30714         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30715         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30717         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
30718         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
30719         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30720         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
30721         'long double'.
30722         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
30724         isinf: Fix for platforms where 'long double' == 'double'.
30725         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30726         Don't blindly assume 80-bit 'long double'.
30728         isfinite: Fix for platforms where 'long double' == 'double'.
30729         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30730         Don't blindly assume 80-bit 'long double'.
30732         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
30733         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
30734         * modules/isfinite-tests (configure.ac): Require
30735         gl_LONG_DOUBLE_VS_DOUBLE.
30736         * modules/isinf-tests (configure.ac): Likewise.
30737         * modules/isnan-tests (configure.ac): Likewise.
30738         * modules/isnanl-tests (configure.ac): Likewise.
30739         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
30740         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
30741         tests on platforms where 'long double' is the same as 'double'.
30742         * tests/test-isinf.c (test_isinfl): Likewise.
30743         * tests/test-isnan.c (test_long_double): Likewise.
30744         * tests/test-isnanl.h (main): Likewise.
30746 2011-10-08  Bruno Haible  <bruno@clisp.org>
30748         Tests for module 'tanhf'.
30749         * modules/tanhf-tests: New file.
30750         * tests/test-tanhf.c: New file.
30752         New module 'tanhf'.
30753         * lib/math.in.h (tanhf): New declaration.
30754         * lib/tanhf.c: New file.
30755         * m4/tanhf.m4: New file.
30756         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
30757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
30758         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
30759         * modules/tanhf: New file.
30760         * tests/test-math-c++.cc: Check the declaration of tanhf.
30761         * doc/posix-functions/tanhf.texi: Mention the new module.
30763         tanh: Use a .m4 file.
30764         * m4/tanh.m4: New file.
30765         * modules/tanh (Files): Add it.
30766         (configure.ac): Just invoke gl_FUNC_TANH.
30768 2011-10-08  Bruno Haible  <bruno@clisp.org>
30770         Tests for module 'coshf'.
30771         * modules/coshf-tests: New file.
30772         * tests/test-coshf.c: New file.
30774         New module 'coshf'.
30775         * lib/math.in.h (coshf): New declaration.
30776         * lib/coshf.c: New file.
30777         * m4/coshf.m4: New file.
30778         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
30779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
30780         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
30781         * modules/coshf: New file.
30782         * tests/test-math-c++.cc: Check the declaration of coshf.
30783         * doc/posix-functions/coshf.texi: Mention the new module.
30785         cosh: Use a .m4 file.
30786         * m4/cosh.m4: New file.
30787         * modules/cosh (Files): Add it.
30788         (configure.ac): Just invoke gl_FUNC_COSH.
30790 2011-10-08  Bruno Haible  <bruno@clisp.org>
30792         Tests for module 'sinhf'.
30793         * modules/sinhf-tests: New file.
30794         * tests/test-sinhf.c: New file.
30796         New module 'sinhf'.
30797         * lib/math.in.h (sinhf): New declaration.
30798         * lib/sinhf.c: New file.
30799         * m4/sinhf.m4: New file.
30800         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
30801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
30802         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
30803         * modules/sinhf: New file.
30804         * tests/test-math-c++.cc: Check the declaration of sinhf.
30805         * doc/posix-functions/sinhf.texi: Mention the new module.
30807         sinh: Use a .m4 file.
30808         * m4/sinh.m4: New file.
30809         * modules/sinh (Files): Add it.
30810         (configure.ac): Just invoke gl_FUNC_SINH.
30812 2011-10-08  Bruno Haible  <bruno@clisp.org>
30814         Tests for module 'atan2f'.
30815         * modules/atan2f-tests: New file.
30816         * tests/test-atan2f.c: New file.
30818         New module 'atan2f'.
30819         * lib/math.in.h (atan2f): New declaration.
30820         * lib/atan2f.c: New file.
30821         * m4/atan2f.m4: New file.
30822         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
30823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
30824         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
30825         * modules/atan2f: New file.
30826         * tests/test-math-c++.cc: Check the declaration of atan2f.
30827         * doc/posix-functions/atan2f.texi: Mention the new module.
30829         atan2: Use a .m4 file.
30830         * m4/atan2.m4: New file.
30831         * modules/atan2 (Files): Add it.
30832         (configure.ac): Just invoke gl_FUNC_ATAN2.
30834 2011-10-08  Bruno Haible  <bruno@clisp.org>
30836         Tests for module 'atanf'.
30837         * modules/atanf-tests: New file.
30838         * tests/test-atanf.c: New file.
30840         New module 'atanf'.
30841         * lib/math.in.h (atanf): New declaration.
30842         * lib/atanf.c: New file.
30843         * m4/atanf.m4: New file.
30844         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
30845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
30846         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
30847         * modules/atanf: New file.
30848         * tests/test-math-c++.cc: Check the declaration of atanf.
30849         * doc/posix-functions/atanf.texi: Mention the new module.
30851         atan: Use a .m4 file.
30852         * m4/atan.m4: New file.
30853         * modules/atan (Files): Add it.
30854         (configure.ac): Just invoke gl_FUNC_ATAN.
30856 2011-10-08  Bruno Haible  <bruno@clisp.org>
30858         Tests for module 'acosf'.
30859         * modules/acosf-tests: New file.
30860         * tests/test-acosf.c: New file.
30862         New module 'acosf'.
30863         * lib/math.in.h (acosf): New declaration.
30864         * lib/acosf.c: New file.
30865         * m4/acosf.m4: New file.
30866         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
30867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
30868         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
30869         * modules/acosf: New file.
30870         * tests/test-math-c++.cc: Check the declaration of acosf.
30871         * doc/posix-functions/acosf.texi: Mention the new module.
30873         acos: Use a .m4 file.
30874         * m4/acos.m4: New file.
30875         * modules/acos (Files): Add it.
30876         (configure.ac): Just invoke gl_FUNC_ACOS.
30878 2011-10-08  Bruno Haible  <bruno@clisp.org>
30880         Tests for module 'asinf'.
30881         * modules/asinf-tests: New file.
30882         * tests/test-asinf.c: New file.
30884         New module 'asinf'.
30885         * lib/math.in.h (asinf): New declaration.
30886         * lib/asinf.c: New file.
30887         * m4/asinf.m4: New file.
30888         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
30889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
30890         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
30891         * modules/asinf: New file.
30892         * tests/test-math-c++.cc: Check the declaration of asinf.
30893         * doc/posix-functions/asinf.texi: Mention the new module.
30895         asin: Use a .m4 file.
30896         * m4/asin.m4: New file.
30897         * modules/asin (Files): Add it.
30898         (configure.ac): Just invoke gl_FUNC_ASIN.
30900 2011-10-08  Bruno Haible  <bruno@clisp.org>
30902         Tests for module 'tanf'.
30903         * modules/tanf-tests: New file.
30904         * tests/test-tanf.c: New file.
30906         New module 'tanf'.
30907         * lib/math.in.h (tanf): New declaration.
30908         * lib/tanf.c: New file.
30909         * m4/tanf.m4: New file.
30910         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
30911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
30912         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
30913         * modules/tanf: New file.
30914         * tests/test-math-c++.cc: Check the declaration of tanf.
30915         * doc/posix-functions/tanf.texi: Mention the new module.
30917         tan: Use a .m4 file.
30918         * m4/tan.m4: New file.
30919         * modules/tan (Files): Add it.
30920         (configure.ac): Just invoke gl_FUNC_TAN.
30922 2011-10-08  Bruno Haible  <bruno@clisp.org>
30924         Tests for module 'cosf'.
30925         * modules/cosf-tests: New file.
30926         * tests/test-cosf.c: New file.
30928         New module 'cosf'.
30929         * lib/math.in.h (cosf): New declaration.
30930         * lib/cosf.c: New file.
30931         * m4/cosf.m4: New file.
30932         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
30933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
30934         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
30935         * modules/cosf: New file.
30936         * tests/test-math-c++.cc: Check the declaration of cosf.
30937         * doc/posix-functions/cosf.texi: Mention the new module.
30939         cos: Use a .m4 file.
30940         * m4/cos.m4: New file.
30941         * modules/cos (Files): Add it.
30942         (configure.ac): Just invoke gl_FUNC_COS.
30944 2011-10-08  Bruno Haible  <bruno@clisp.org>
30946         Tests for module 'sinf'.
30947         * modules/sinf-tests: New file.
30948         * tests/test-sinf.c: New file.
30950         New module 'sinf'.
30951         * lib/math.in.h (sinf): New declaration.
30952         * lib/sinf.c: New file.
30953         * m4/sinf.m4: New file.
30954         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
30955         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
30956         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
30957         * modules/sinf: New file.
30958         * tests/test-math-c++.cc: Check the declaration of sinf.
30959         * doc/posix-functions/sinf.texi: Mention the new module.
30961         sin: Use a .m4 file.
30962         * m4/sin.m4: New file.
30963         * modules/sin (Files): Add it.
30964         (configure.ac): Just invoke gl_FUNC_SIN.
30966 2011-10-08  Bruno Haible  <bruno@clisp.org>
30968         Tests for module 'powf'.
30969         * modules/powf-tests: New file.
30970         * tests/test-powf.c: New file.
30972         New module 'powf'.
30973         * lib/math.in.h (powf): New declaration.
30974         * lib/powf.c: New file.
30975         * m4/powf.m4: New file.
30976         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
30977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
30978         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
30979         * modules/powf: New file.
30980         * tests/test-math-c++.cc: Check the declaration of powf.
30981         * doc/posix-functions/powf.texi: Mention the new module.
30983         pow: Use a .m4 file.
30984         * m4/pow.m4: New file.
30985         * modules/pow (Files): Add it.
30986         (configure.ac): Just invoke gl_FUNC_POW.
30988 2011-10-08  Bruno Haible  <bruno@clisp.org>
30990         Tests for module 'log10f'.
30991         * modules/log10f-tests: New file.
30992         * tests/test-log10f.c: New file.
30994         New module 'log10f'.
30995         * lib/math.in.h (log10f): New declaration.
30996         * lib/log10f.c: New file.
30997         * m4/log10f.m4: New file.
30998         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
30999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
31000         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
31001         * modules/log10f: New file.
31002         * tests/test-math-c++.cc: Check the declaration of log10f.
31003         * doc/posix-functions/log10f.texi: Mention the new module.
31005         log10: Use a .m4 file.
31006         * m4/log10.m4: New file.
31007         * modules/log10 (Files): Add it.
31008         (configure.ac): Just invoke gl_FUNC_LOG10.
31010 2011-10-08  Bruno Haible  <bruno@clisp.org>
31012         Tests for module 'logf'.
31013         * modules/logf-tests: New file.
31014         * tests/test-logf.c: New file.
31016         New module 'logf'.
31017         * lib/math.in.h (logf): New declaration.
31018         * lib/logf.c: New file.
31019         * m4/logf.m4: New file.
31020         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
31021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
31022         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
31023         * modules/logf: New file.
31024         * tests/test-math-c++.cc: Check the declaration of logf.
31025         * doc/posix-functions/logf.texi: Mention the new module.
31027         log: Use a .m4 file.
31028         * m4/log.m4: New file.
31029         * modules/log (Files): Add it.
31030         (configure.ac): Just invoke gl_FUNC_LOG.
31032 2011-10-08  Bruno Haible  <bruno@clisp.org>
31034         Tests for module 'expf'.
31035         * modules/expf-tests: New file.
31036         * tests/test-expf.c: New file.
31038         New module 'expf'.
31039         * lib/math.in.h (expf): New declaration.
31040         * lib/expf.c: New file.
31041         * m4/expf.m4: New file.
31042         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
31043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
31044         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
31045         * modules/expf: New file.
31046         * tests/test-math-c++.cc: Check the declaration of expf.
31047         * doc/posix-functions/expf.texi: Mention the new module.
31049         exp: Use a .m4 file.
31050         * m4/exp.m4: New file.
31051         * modules/exp (Files): Add it.
31052         (configure.ac): Just invoke gl_FUNC_EXP.
31054 2011-10-08  Bruno Haible  <bruno@clisp.org>
31056         Tests for module 'sqrtf'.
31057         * modules/sqrtf-tests: New file.
31058         * tests/test-sqrtf.c: New file.
31060         New module 'sqrtf'.
31061         * lib/math.in.h (sqrtf): New declaration.
31062         * lib/sqrtf.c: New file.
31063         * m4/sqrtf.m4: New file.
31064         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
31065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
31066         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
31067         * modules/sqrtf: New file.
31068         * tests/test-math-c++.cc: Check the declaration of sqrtf.
31069         * doc/posix-functions/sqrtf.texi: Mention the new module.
31071 2011-10-08  Bruno Haible  <bruno@clisp.org>
31073         Tests: Avoid link failures w.r.t. libintl.
31074         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
31075         $(LIBINTL).
31076         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
31077         $(LIBINTL).
31078         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
31079         against $(LIBINTL).
31080         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
31081         $(LIBINTL).
31082         * modules/openat-tests (Makefile.am): Link test-fchmodat against
31083         $(LIBINTL).
31084         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
31086 2011-10-08  Bruno Haible  <bruno@clisp.org>
31088         pow tests: Defeat compiler optimizations.
31089         * tests/test-pow.c (main): Assign arguments to x and y before use.
31091 2011-10-08  Bruno Haible  <bruno@clisp.org>
31093         gnulib-tool: Improve last commit.
31094         * gnulib-tool (func_modules_transitive_closure): Simplify code.
31095         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
31096         ignore dependencies that are not among the modules list.
31098 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
31100         gnulib-tool: don't follow dependencies to avoided modules
31101         This fixes a bug that is related to the previous one.
31102         * gnulib-tool (func_modules_transitive_closure)
31103         (func_emit_autoconf_snippets):
31104         Check whether a dependency is acceptable before using it.
31105         (--extract-dependencies): Report an error if --avoid is also used,
31106         since this combination of options is not yet supported.
31108         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
31109         Problem reported by Peter Dyballa in
31110         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
31111         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
31112         when echoing "$condition".
31114 2011-10-07  Bruno Haible  <bruno@clisp.org>
31116         Fix documentation about math functions on MacOS X.
31117         * doc/posix-functions/exp2.texi: Don't say the function is missing on
31118         MacOS X 10.5.
31119         * doc/posix-functions/fdim.texi: Likewise.
31120         * doc/posix-functions/feclearexcept.texi: Likewise.
31121         * doc/posix-functions/fegetenv.texi: Likewise.
31122         * doc/posix-functions/fegetround.texi: Likewise.
31123         * doc/posix-functions/feholdexcept.texi: Likewise.
31124         * doc/posix-functions/feraiseexcept.texi: Likewise.
31125         * doc/posix-functions/fesetenv.texi: Likewise.
31126         * doc/posix-functions/fesetround.texi: Likewise.
31127         * doc/posix-functions/fetestexcept.texi: Likewise.
31128         * doc/posix-functions/feupdateenv.texi: Likewise.
31129         * doc/posix-functions/fmax.texi: Likewise.
31130         * doc/posix-functions/fmin.texi: Likewise.
31131         * doc/posix-functions/log2.texi: Likewise.
31132         * doc/posix-functions/modff.texi: Likewise.
31133         * doc/posix-functions/nan.texi: Likewise.
31134         * doc/posix-functions/nanf.texi: Likewise.
31135         * doc/posix-functions/nextafterf.texi: Likewise.
31136         * doc/posix-functions/remquo.texi: Likewise.
31138 2011-10-07  Bruno Haible  <bruno@clisp.org>
31140         modff: Drop assumption about library that defines modff.
31141         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
31142         AC_CHECK_FUNCS.
31143         * modules/modff (Files): Add m4/mathfunc.m4.
31145 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
31147         raise tests: Avoid a GCC warning.
31148         * tests/test-raise.c (handler): Use _Noreturn.
31150 2011-10-07  Bruno Haible  <bruno@clisp.org>
31152         Tests for module 'ldexpf'.
31153         * modules/ldexpf-tests: New file.
31154         * tests/test-ldexpf.c: New file.
31156         New module 'ldexpf'.
31157         * lib/math.in.h (ldexpf): New declaration.
31158         * lib/ldexpf.c: New file.
31159         * m4/ldexpf.m4: New file.
31160         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
31161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
31162         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
31163         * modules/ldexpf: New file.
31164         * tests/test-math-c++.cc: Check the declaration of ldexpf.
31165         * doc/posix-functions/ldexpf.texi: Mention the new module.
31167 2011-10-06  Bruno Haible  <bruno@clisp.org>
31169         frexpf: Work around problems on IRIX and mingw.
31170         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
31171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
31172         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
31173         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
31174         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
31175         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
31176         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
31178 2011-10-06  Bruno Haible  <bruno@clisp.org>
31180         fabsf: Drop assumption about library that defines fabsf.
31181         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
31182         AC_CHECK_FUNCS.
31183         * modules/fabsf (Files): Add m4/mathfunc.m4.
31185 2011-10-06  Bruno Haible  <bruno@clisp.org>
31187         frexpf: Drop assumption about library that defines frexpf.
31188         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
31189         'int *', 'float *', 'long double *', 'float', 'long double'.
31190         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
31191         AC_CHECK_FUNCS.
31192         * modules/frexpf (Files): Add m4/mathfunc.m4.
31194         Tests for module 'frexpf'.
31195         * modules/frexpf-tests: New file.
31196         * tests/test-frexpf.c: New file.
31198         New module 'frexpf'.
31199         * lib/math.in.h (frexpf): New declaration.
31200         * lib/frexpf.c: New file.
31201         * m4/frexpf.m4: New file.
31202         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
31203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
31204         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
31205         * modules/frexpf: New file.
31206         * tests/test-math-c++.cc: Check the declaration of frexpf.
31207         * doc/posix-functions/frexpf.texi: Mention the new module.
31209 2011-10-06  Bruno Haible  <bruno@clisp.org>
31211         math: Sort function declarations of math.in.h.
31212         * lib/math.in.h (frexp, logb): Move declarations.
31214 2011-10-05  Bruno Haible  <bruno@clisp.org>
31216         Tests for module 'modff'.
31217         * modules/modff-tests: New file.
31218         * tests/test-modff.c: New file.
31220         New module 'modff'.
31221         * lib/math.in.h (modff): New declaration.
31222         * lib/modff.c: New file.
31223         * m4/modff.m4: New file.
31224         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
31225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
31226         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
31227         * modules/modff: New file.
31228         * tests/test-math-c++.cc: Check the declaration of modff.
31229         * doc/posix-functions/modff.texi: Mention the new module.
31231         modf tests: Make test sharper.
31232         * tests/test-modf.c (main): Strengthen upper bound.
31234         modf: Use a .m4 file.
31235         * m4/modf.m4: New file.
31236         * modules/modf (Files): Add it.
31237         (configure.ac): Just invoke gl_FUNC_MODF.
31239 2011-10-05  Bruno Haible  <bruno@clisp.org>
31241         Tests for module 'fmodf'.
31242         * modules/fmodf-tests: New file.
31243         * tests/test-fmodf.c: New file.
31245         New module 'fmodf'.
31246         * lib/math.in.h (fmodf): New declaration.
31247         * lib/fmodf.c: New file.
31248         * m4/fmodf.m4: New file.
31249         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
31250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
31251         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
31252         * modules/fmodf: New file.
31253         * tests/test-math-c++.cc: Check the declaration of fmodf.
31254         * doc/posix-functions/fmodf.texi: Mention the new module.
31256         fmod: Use a .m4 file.
31257         * m4/fmod.m4: New file.
31258         * modules/fmod (Files): Add it.
31259         (configure.ac): Just invoke gl_FUNC_FMOD.
31261 2011-10-05  Bruno Haible  <bruno@clisp.org>
31263         Tests for module 'fabsf'.
31264         * modules/fabsf-tests: New file.
31265         * tests/test-fabsf.c: New file.
31267         New module 'fabsf'.
31268         * lib/math.in.h (fabsf): New declaration.
31269         * lib/fabsf.c: New file.
31270         * m4/fabsf.m4: New file.
31271         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
31272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
31273         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
31274         * modules/fabsf: New file.
31275         * tests/test-math-c++.cc: Check the declaration of fabsf.
31276         * doc/posix-functions/fabsf.texi: Mention the new module.
31278         fabs: Use a .m4 file.
31279         * m4/fabs.m4: New file.
31280         * modules/fabs (Files): Add it.
31281         (configure.ac): Just invoke gl_FUNC_FABS.
31283 2011-10-05  Jim Meyering  <meyering@redhat.com>
31285         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
31286         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
31287         ls -lL regression introduced in coreutils-8.12, it does so at the
31288         cost of an additional stat call in the common case.  Besides, now
31289         that the kernel change that prompted commit 95f7c57f has been reverted
31290         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
31291         we have no use for commit 95f7c57f, "file-has-acl: use
31292         acl_extended_file_nofollow if available".
31294 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31296         file-has-acl: revert unintended change in behavior of ls -L
31297         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31298         derived from...
31299         (file_has_acl): ...code here.  Call it.
31300         This problem was introduced with 2011-07-22 commit 95f7c57f,
31301         "file-has-acl: use acl_extended_file_nofollow if available".
31302         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31304 2011-10-03  Bruno Haible  <bruno@clisp.org>
31306         poll: Avoid link errors on MSVC.
31307         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31308         * modules/poll (Depends-on): Add sockets.
31309         (Link): New section.
31310         * NEWS: Mention the change.
31311         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31312         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31313         $(LIB_POLL) instead of $(LIBSOCKET).
31315 2011-10-03  Bruno Haible  <bruno@clisp.org>
31317         sys_select tests: Fix link error on MSVC 9.
31318         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31319         with $(LIB_SELECT) instead of $(LIBSOCKET).
31321 2011-10-03  Bruno Haible  <bruno@clisp.org>
31323         sys_select: Fix compilation error on mingw.
31324         * lib/sys_select.in.h: On native Windows, include <io.h>.
31326 2011-10-03  Bruno Haible  <bruno@clisp.org>
31328         wmemset: Support for MSVC.
31329         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31330         whether wmemset() exists.
31332 2011-10-03  Bruno Haible  <bruno@clisp.org>
31334         wmemmove: Support for MSVC.
31335         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31336         whether wmemmove() exists.
31338 2011-10-03  Bruno Haible  <bruno@clisp.org>
31340         wmemcpy: Support for MSVC.
31341         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31342         whether wmemcpy() exists.
31344 2011-10-03  Bruno Haible  <bruno@clisp.org>
31346         wmemcmp: Support for MSVC.
31347         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31348         whether wmemcmp() exists.
31350 2011-10-03  Bruno Haible  <bruno@clisp.org>
31352         wmemchr: Support for MSVC.
31353         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31354         whether wmemchr() exists.
31356 2011-10-03  Bruno Haible  <bruno@clisp.org>
31358         glthread/*, strsignal: Support for MSVC.
31359         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31360         including <winsock.h> on MSVC 9.
31361         * lib/glthread/lock.h: Likewise.
31362         * lib/glthread/thread.h: Likewise.
31363         * lib/glthread/tls.h: Likewise.
31364         * lib/glthread/yield.h: Likewise.
31365         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31366         if HAVE_UNISTD_H is false.
31367         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31369 2011-10-03  Bruno Haible  <bruno@clisp.org>
31371         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31372         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31373         Set to 100000.
31375 2011-10-03  Bruno Haible  <bruno@clisp.org>
31377         acl: Fix specification.
31378         * lib/file-has-acl.c (file_has_acl): Fix specification.
31380 2011-10-03  Bruno Haible  <bruno@clisp.org>
31382         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31383         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31384         (compute_curr_prefix, shared_library_fullname,
31385         find_shared_library_fullname, get_shared_library_fullname, relocate):
31386         Use it together with PIC && INSTALLDIR.
31387         Reported by <jojelino@gmail.com>
31388         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31390 2011-10-01  Jim Meyering  <meyering@redhat.com>
31392         maint.mk: adjust a release-related rule not to require use of gzip
31393         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31394         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31395         projects that build only .tar.xz files.  Also fix an erroneous test.
31397         test-linkat: don't leave behind a temporary file
31398         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31399         Otherwise, coreutils' "make distcheck" would fail with this:
31400           Only in /c/cu/tests/torture/coreutils/test/\
31401             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31402           make[2]: *** [my-distcheck] Error 1
31404         float, math: add omitted file
31405         * lib/itold.c: Add file, required for yesterday's float change.
31407 2011-10-01  Bruno Haible  <bruno@clisp.org>
31409         isinf: Fix for OpenBSD/x86.
31410         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31411         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31412         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31414 2011-10-01  Bruno Haible  <bruno@clisp.org>
31416         isfinite: Fix syntax error in configure test.
31417         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31419         isfinite: Fix typo.
31420         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31421         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31423 2011-10-01  Bruno Haible  <bruno@clisp.org>
31425         nonblocking tests: Fix test failure on Linux/IA-64.
31426         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31427         Set to 270000.
31429 2011-10-01  Bruno Haible  <bruno@clisp.org>
31431         mkfifoat tests: Fix a test failure on mingw.
31432         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31433         with error ENOSYS.
31435 2011-09-30  Bruno Haible  <bruno@clisp.org>
31437         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31438         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31439         'long double'. Set REPLACE_ITOLD.
31440         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31441         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31442         * lib/itold.c: New file.
31443         * modules/float (Files): Add lib/itold.c.
31444         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31445         (Makefile.am): Substitute REPLACE_ITOLD.
31446         * modules/math (Depends-on): Add float.
31447         (Makefile.am): Substitute REPLACE_ITOLD.
31448         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31449         * doc/posix-headers/math.texi: Likewise.
31450         * doc/posix-functions/logl.texi: Likewise.
31452 2011-09-30  Bruno Haible  <bruno@clisp.org>
31454         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31455         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31456         Set to 140000.
31458 2011-09-30  Bruno Haible  <bruno@clisp.org>
31460         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31461         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31462         invocation, say "right after AC_PROG_CC_STDC", not "right after
31463         AC_PROG_CC".
31464         Reported by Gary V. Vaughan <gary@gnu.org>.
31466 2011-09-30  Bruno Haible  <bruno@clisp.org>
31468         Centralize C99 requirement.
31469         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31470         * modules/stdarg (configure.ac-early): Invoke it instead of
31471         AC_PROG_CC_STDC.
31472         Reported by Gary V. Vaughan and Paul Eggert.
31474 2011-09-29  Bruno Haible  <bruno@clisp.org>
31476         float: Fix LDBL_MAX value on Linux/PowerPC.
31477         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31478         on Linux/PowerPC.
31479         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31480         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31481         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31482         platform.
31483         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31485 2011-09-29  Bruno Haible  <bruno@clisp.org>
31487         doc: Improve doc about gl_EARLY.
31488         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31489         AC_PROG_CC_STDC invocation.
31490         Reported by Gary V. Vaughan <gary@gnu.org>.
31492 2011-09-28  Bruno Haible  <bruno@clisp.org>
31494         fgetc, fputc, fread, fwrite tests: Fix link error.
31495         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31496         on non-MSVC platforms.
31497         * tests/test-fputc.c (main): Likewise.
31498         * tests/test-fread.c (main): Likewise.
31499         * tests/test-fwrite.c (main): Likewise.
31500         Reported by Jim Meyering.
31502 2011-09-27  Bruno Haible  <bruno@clisp.org>
31504         fputc, fwrite tests: Avoid test failure on MSVC.
31505         * tests/test-fgetc.c: Include msvc-inval.h.
31506         (main): Invoke gl_msvc_inval_ensure_handler.
31507         * tests/test-fputc.c: Include msvc-inval.h.
31508         (main): Invoke gl_msvc_inval_ensure_handler.
31509         * tests/test-fread.c: Include msvc-inval.h.
31510         (main): Invoke gl_msvc_inval_ensure_handler.
31511         * tests/test-fwrite.c: Include msvc-inval.h.
31512         (main): Invoke gl_msvc_inval_ensure_handler.
31513         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31514         * modules/fputc-tests (Depends-on): Likewise.
31515         * modules/fread-tests (Depends-on): Likewise.
31516         * modules/fwrite-tests (Depends-on): Likewise.
31518 2011-09-27  Bruno Haible  <bruno@clisp.org>
31520         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31521         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31522         (raise): Remove older, duplicated declaration.
31523         (_gl_raise_SIGPIPE): New declaration.
31524         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31525         (rpl_raise): Remove function.
31526         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31527         a gnulib-defined SIGPIPE here.
31528         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31529         'sigprocmask' has detected missing signal-blocking and the module
31530         'sigpipe' is enabled.
31531         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31533 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31535         base64-tests: avoid memory leak
31536         * tests/test-base64.c (main): Plug memory leak.
31538         base32: new module
31539         * modules/base32: New module.
31540         * lib/base32.c: New file.
31541         * lib/base32.h: Likewise.
31542         * m4/base32.m4: Likewise.
31543         * modules/base32-tests: New test.
31544         * tests/test-base32.c: Likewise.
31545         * MODULES.html.sh (Misc): Mention it.
31547 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31549         gnulib: use more-standard license notice wording
31550         * gnulib-tool (func_emit_copyright_notice): When emitting a
31551         license notice into a file, use the standard wording as suggested
31552         by the current information for GNU maintainers, except say "file"
31553         rather than "program".  The new wording gives a license version
31554         number, which addresses an issue raised by Glenn Morris in
31555         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
31556         * m4/onceonly.m4: Use that same wording here, too.
31558         dup2: minor simplification
31559         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
31560         as lib/dup2.c no longer uses 'inline'.
31562 2011-09-25  Bruno Haible  <bruno@clisp.org>
31564         strings: Fix compilation error on MSVC.
31565         * lib/strings.in.h: Include <stddef.h> for size_t.
31567 2011-09-25  Bruno Haible  <bruno@clisp.org>
31569         fflush et al.: Document limitation on MSVC.
31570         * doc/posix-functions/fflush.texi: Document possible crash in handling
31571         mode other than DEFAULT_HANDLING.
31572         * doc/posix-functions/fgetc.texi: Likewise.
31573         * doc/posix-functions/fputc.texi: Likewise.
31574         * doc/posix-functions/fread.texi: Likewise.
31575         * doc/posix-functions/fwrite.texi: Likewise.
31577 2011-09-25  Bruno Haible  <bruno@clisp.org>
31579         msvc-inval: Allow three invalid parameter handling modes.
31580         * lib/msvc-inval.h: Don't include <stdlib.h> here.
31581         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
31582         macros.
31583         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
31584         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
31585         SANE_LIBRARY_HANDLING as a no-op.
31586         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
31587         <stdlib.h>.
31588         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
31590 2011-09-25  Bruno Haible  <bruno@clisp.org>
31592         msvc-inval: Make handler multithread-safe.
31593         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
31594         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
31595         declarations.
31596         (gl_msvc_inval_current): New declaration.
31597         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31598         Operate on the structure returned by gl_msvc_inval_current().
31599         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
31600         Remove varaiables.
31601         (tls_index, tls_initialized): New variables.
31602         (not_per_thread): New variable.
31603         (gl_msvc_inval_current): New function.
31604         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
31605         returned by gl_msvc_inval_current().
31607 2011-09-25  Bruno Haible  <bruno@clisp.org>
31609         msvc-inval: Install handler globally.
31610         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
31611         !_MSC_VER.
31612         (gl_msvc_invalid_parameter_handler): Remove declaration.
31613         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
31614         declarations.
31615         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31616         Install the handler globally, don't uninstall it.
31617         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
31618         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
31619         currently valid, call RaiseException instead.
31620         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
31621         for !_MSC_VER.
31623 2011-09-25  Bruno Haible  <bruno@clisp.org>
31625         strerror_r-posix: Fix for MSVC 9.
31626         * lib/strerror_r.c (local_snprintf): New function.
31627         (snprintf): Define to local_snprintf, not to _snprintf.
31629 2011-09-25  Bruno Haible  <bruno@clisp.org>
31631         ftruncate: Support for MSVC 9.
31632         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
31633         (chsize_nothrow): New function.
31634         (chsize): Redefine as a macro.
31635         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
31636         * modules/ftruncate (Depends-on): Add msvc-inval.
31638 2011-09-25  Bruno Haible  <bruno@clisp.org>
31640         New module 'fstat'.
31641         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
31642         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
31643         * lib/fchdir.c (rpl_fstat): Remove function.
31644         * m4/fstat.m4: New file.
31645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
31646         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
31647         declared.
31648         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
31649         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
31650         * modules/fstat: New file.
31651         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
31652         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
31653         is set.
31654         * doc/posix-functions/fstat.texi: Mention the new module and the
31655         problem on MSVC.
31656         * NEWS: Mention the change.
31657         * modules/acl (Depends-on): Add fstat.
31658         * modules/chdir-safer (Depends-on): Likewise.
31659         * modules/chown (Depends-on): Likewise.
31660         * modules/copy-file (Depends-on): Likewise.
31661         * modules/fchdir (Depends-on): Likewise.
31662         * modules/fdopendir (Depends-on): Likewise.
31663         * modules/fopen (Depends-on): Likewise.
31664         * modules/fts (Depends-on): Likewise.
31665         * modules/getcwd (Depends-on): Likewise.
31666         * modules/isapipe (Depends-on): Likewise.
31667         * modules/linkat (Depends-on): Likewise.
31668         * modules/lseek (Depends-on): Likewise.
31669         * modules/mkdir-p (Depends-on): Likewise.
31670         * modules/open (Depends-on): Likewise.
31671         * modules/openat (Depends-on): Likewise.
31672         * modules/read-file (Depends-on): Likewise.
31673         * modules/renameat (Depends-on): Likewise.
31674         * modules/utimens (Depends-on): Likewise.
31676 2011-09-25  Bruno Haible  <bruno@clisp.org>
31678         linkat: Fix compilation on MSVC 9.
31679         * lib/linkat.c: Don't include <stdint.h>.
31681 2011-09-25  Bruno Haible  <bruno@clisp.org>
31683         fclose: Support for MSVC 9.
31684         * lib/fclose.c: Include msvc-inval.h.
31685         (fclose_nothrow): New function.
31686         (rpl_fclose): Use it.
31687         * modules/fclose (Depends-on): Add msvc-inval.
31688         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
31690 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31692         dup2: minor simplifications
31693         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
31694         that it's a performance win.
31695         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
31696         ! defined __CYGWIN__)" to "ifdef F_GETFL".
31698 2011-09-24  Jim Meyering  <meyering@redhat.com>
31700         test-futimens: avoid a warning from gcc -Wshadow
31701         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
31702         to avoid a shadowing warning.
31704 2011-09-24  Bruno Haible  <bruno@clisp.org>
31706         fdopen: Support for MSVC 9.
31707         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
31708         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
31709         * lib/fdopen.c: Include msvc-inval.h.
31710         (fdopen_nothrow): New function.
31711         (rpl_fdopen): Use it.
31712         * modules/fdopen (Depends-on): Add msvc-inval.
31713         * modules/fclose-tests (Depends-on): Add fdopen.
31714         * modules/fflush-tests (Depends-on): Likewise.
31715         * modules/fgetc-tests (Depends-on): Likewise.
31716         * modules/fputc-tests (Depends-on): Likewise.
31717         * modules/fread-tests (Depends-on): Likewise.
31718         * modules/freopen-tests (Depends-on): Likewise.
31719         * modules/fseeko-tests (Depends-on): Likewise.
31720         * modules/ftello-tests (Depends-on): Likewise.
31721         * modules/fwrite-tests  (Depends-on): Likewise.
31722         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
31724 2011-09-24  Bruno Haible  <bruno@clisp.org>
31726         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
31727         * modules/fgetc-tests (Depends-on): Add unistd.
31728         * modules/fputc-tests (Depends-on): Likewise.
31729         * modules/fread-tests (Depends-on): Likewise.
31730         * modules/fwrite-tests (Depends-on): Likewise.
31732 2011-09-24  Bruno Haible  <bruno@clisp.org>
31734         dup: Simplify autoconf test.
31735         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
31736         on gl_MSVC_INVAL's result.
31738 2011-09-24  Bruno Haible  <bruno@clisp.org>
31740         Tests for function fwrite().
31741         * modules/fwrite-tests: New file.
31742         * tests/test-fwrite.c: New file.
31743         * modules/stdio-tests (Depends-on): Add fwrite-tests.
31745         Tests for function fread().
31746         * modules/fread-tests: New file.
31747         * tests/test-fread.c: New file.
31748         * modules/stdio-tests (Depends-on): Add fread-tests.
31750         Activate fputc tests.
31751         * modules/stdio-tests (Depends-on): Add fputc-tests.
31753         Enhance fgetc, fputc tests.
31754         * tests/test-fgetc.c (main): Also test the stream's error indicator.
31755         * tests/test-fputc.c (main): Likewise.
31757 2011-09-24  Bruno Haible  <bruno@clisp.org>
31759         write: Support for MSVC 9.
31760         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31761         is not 1.
31762         * lib/write.c (write_nothrow): New function.
31763         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
31764         not 1. Use write_nothrow.
31765         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
31766         invalid parameter handler.
31767         (gl_PREREQ_WRITE): New macro.
31768         * modules/write (Depends-on): Add msvc-inval.
31769         (configure.ac): Invoke gl_PREREQ_WRITE.
31770         * doc/posix-functions/write.texi: Mention the problem on MSVC.
31772 2011-09-24  Bruno Haible  <bruno@clisp.org>
31774         read: Fix last commit.
31775         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
31777 2011-09-24  Bruno Haible  <bruno@clisp.org>
31779         dup2: Fix last commit.
31780         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
31781         (rpl_dup2): Disable fcntl workaround on native Windows.
31783         sigprocmask: Make code safer.
31784         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
31785         section that changes macro definitions for this compilation unit.
31787 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31789         dup2: clarify by coalescing Windows-specific material
31790         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
31791         "msvc-nothrow.h"' to the Windows-specific section, so that the
31792         Emacs source need not contain these include files.
31793         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
31794         Windows-specific fixes into this function rather than just the
31795         nothrow fix, as this shortens and clarifies the code.  Always
31796         define as a function, as that's a bit cleaner than having it be
31797         sometimes a function and sometimes a macro.
31798         (rpl_dup2): Move the Windows-specific stuff out of here and into
31799         ms_windows_dup2.  Don't protect the Haiku-related fix with
31800         "#if !defined __linux__", as the same code also works around
31801         a Linux kernel bug, and it doesn't add any system calls on any
31802         platform.  Add comment about FreeBSD 6.1.
31804         sigprocmask: move #include directive
31805         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
31806         Windows-specific section, so that the Emacs source need not
31807         contain msvc-inval.h.
31809 2011-09-23  Bruno Haible  <bruno@clisp.org>
31811         read: Support for MSVC 9.
31812         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31813         is not 1.
31814         * lib/read.c (read_nothrow): New function.
31815         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
31816         read_nothrow.
31817         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
31818         invalid parameter handler.
31819         (gl_PREREQ_READ): New macro.
31820         * modules/read (Depends-on): Add msvc-inval.
31821         (configure.ac): Invoke gl_PREREQ_READ.
31822         * doc/posix-functions/read.texi: Mention the problem on MSVC.
31824 2011-09-23  Bruno Haible  <bruno@clisp.org>
31826         close: Support for MSVC 9.
31827         * lib/close.c: Include <errno.h>, msvc-inval.h.
31828         (close_nothrow): New function.
31829         (rpl_close): Use it.
31830         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
31831         invalid parameter handler.
31832         * modules/close (Depends-on): Add msvc-inval.
31833         * modules/dup2-tests (Depends-on): Add close.
31834         * modules/dup3-tests (Depends-on): Likewise.
31835         * modules/fcntl-tests (Depends-on): Likewise.
31836         * modules/spawn-pipe-tests (Depends-on): Likewise.
31837         * modules/unistd-safer-tests (Depends-on): Likewise.
31838         * doc/posix-functions/close.texi: Mention the problem on MSVC.
31840 2011-09-23  Bruno Haible  <bruno@clisp.org>
31842         New module 'dup'.
31843         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
31844         Allow replacement.
31845         * lib/dup.c: New file.
31846         * lib/fchdir.c (rpl_dup): Remove function.
31847         * m4/dup.m4: New file.
31848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
31849         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
31850         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
31851         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
31852         * modules/dup: New file.
31853         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
31854         'dup' module is in use.
31855         * modules/fdopendir (Depends-on): Add dup.
31856         * modules/fdutimensat-tests (Depends-on): Likewise.
31857         * modules/fts (Depends-on): Likewise.
31858         * modules/futimens-tests (Depends-on): Likewise.
31859         * modules/posix_spawnp-tests (Depends-on): Likewise.
31860         * modules/unistd-safer-tests (Depends-on): Likewise.
31861         * modules/utimens-tests (Depends-on): Likewise.
31862         * doc/posix-functions/dup.texi: Mention the new module and the problem
31863         on MSVC.
31865 2011-09-23  Bruno Haible  <bruno@clisp.org>
31867         getdtablesize: Support for MSVC 9.
31868         * lib/getdtablesize.c: Include msvc-inval.h.
31869         (_setmaxstdio_nothrow): New function.
31870         (_setmaxstdio): Redefine it.
31871         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
31872         * modules/getdtablesize (Depends-on): Add msvc-inval.
31873         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
31875 2011-09-23  Bruno Haible  <bruno@clisp.org>
31877         signal-h: Rename from signal.
31878         * modules/signal-h: Renamed from modules/signal.
31879         * modules/pthread_sigmask (Depends-on): Update.
31880         * modules/raise (Depends-on): Likewise.
31881         * modules/sigaction (Depends-on): Likewise.
31882         * modules/sigpipe (Depends-on): Likewise.
31883         * modules/sigprocmask (Depends-on): Likewise.
31884         * modules/sys_select (Depends-on): Likewise.
31885         * modules/signal-h-tests: Renamed from modules/signal-tests.
31886         (Files, Depends-on, Makefile.am): Update.
31887         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
31888         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
31889         (Files, Makefile.am): Update.
31890         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
31891         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
31892         * modules/signal: New placeholder file.
31893         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
31894         * doc/posix-headers/signal.texi: Update.
31895         * NEWS: Mention the change.
31897 2011-09-23  Bruno Haible  <bruno@clisp.org>
31899         sigprocmask: Avoid crashes through signal() on MSVC 9.
31900         * lib/sigprocmask.c: Include msvc-inval.h.
31901         (signal_nothrow): New function.
31902         (signal): Redefine it.
31903         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
31904         * modules/sigprocmask (Depends-on): Add msvc-inval.
31905         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
31907 2011-09-23  Bruno Haible  <bruno@clisp.org>
31909         Tests for module 'raise'.
31910         * modules/raise-tests: New file.
31911         * tests/test-raise.c: New file.
31913         raise: Support for MSVC.
31914         * lib/signal.in.h (raise): New declaration.
31915         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
31916         for native Windows platforms.
31917         * m4/raise.m4: New file.
31918         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
31919         HAVE_RAISE, REPLACE_RAISE.
31920         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
31921         REPLACE_RAISE.
31922         * modules/raise (Status, Notice): Remove fields.
31923         (Files): Add m4/raise.m4.
31924         (Depends-on): Add signal, msvc-inval.
31925         (configure.ac): Use the common idioms.
31926         (Maintainer): Add me.
31927         * tests/test-signal-c++.cc: Check the signature of raise.
31928         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
31930 2011-09-23  Bruno Haible  <bruno@clisp.org>
31932         pipe2: Fix compilation on pre-C99 compilers.
31933         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
31935 2011-09-23  Bruno Haible  <bruno@clisp.org>
31937         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
31938         * lib/msvc-nothrow.h: New file.
31939         * lib/msvc-nothrow.c: New file.
31940         * m4/msvc-nothrow.m4: New file.
31941         * modules/msvc-nothrow: New file.
31942         * lib/dup2.c: Include msvc-nothrow.h.
31943         (rpl_dup2): No need to protect _get_osfhandle call here.
31944         * lib/accept4.c: Include msvc-nothrow.h.
31945         * lib/error.c: Likewise.
31946         * lib/fcntl.c: Likewise.
31947         * lib/lseek.c: Likewise.
31948         * lib/nonblocking.c: Likewise.
31949         * lib/poll.c: Likewise.
31950         * lib/read.c: Likewise.
31951         * lib/select.c: Likewise.
31952         * lib/sockets.h: Likewise.
31953         * lib/sockets.c: Likewise.
31954         * lib/stdio-read.c: Likewise.
31955         * lib/stdio-write.c: Likewise.
31956         * lib/write.c: Likewise.
31957         * lib/w32sock.h: Likewise.
31958         * lib/w32spawn.h: Likewise.
31959         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
31960         * lib/fsync.c: Likewise.
31961         * lib/isapipe.c: Likewise.
31962         * modules/dup2 (Depends-on): Add msvc-nothrow.
31963         * modules/accept4 (Depends-on): Likewise.
31964         * modules/error (Depends-on): Likewise.
31965         * modules/fcntl (Depends-on): Likewise.
31966         * modules/lseek (Depends-on): Likewise.
31967         * modules/nonblocking (Depends-on): Likewise.
31968         * modules/poll (Depends-on): Likewise.
31969         * modules/read (Depends-on): Likewise.
31970         * modules/select (Depends-on): Likewise.
31971         * modules/sockets (Depends-on): Likewise.
31972         * modules/sigpipe (Depends-on): Likewise.
31973         * modules/write (Depends-on): Likewise.
31974         * modules/accept (Depends-on): Likewise.
31975         * modules/bind (Depends-on): Likewise.
31976         * modules/connect (Depends-on): Likewise.
31977         * modules/gethostname (Depends-on): Likewise.
31978         * modules/getpeername (Depends-on): Likewise.
31979         * modules/getsockname (Depends-on): Likewise.
31980         * modules/getsockopt (Depends-on): Likewise.
31981         * modules/ioctl (Depends-on): Likewise.
31982         * modules/listen (Depends-on): Likewise.
31983         * modules/recv (Depends-on): Likewise.
31984         * modules/recvfrom (Depends-on): Likewise.
31985         * modules/send (Depends-on): Likewise.
31986         * modules/sendto (Depends-on): Likewise.
31987         * modules/setsockopt (Depends-on): Likewise.
31988         * modules/shutdown (Depends-on): Likewise.
31989         * modules/socket (Depends-on): Likewise.
31990         * modules/execute (Depends-on): Likewise.
31991         * modules/spawn-pipe (Depends-on): Likewise.
31992         * modules/flock (Depends-on): Likewise.
31993         * modules/fsync (Depends-on): Likewise.
31994         * modules/isapipe (Depends-on): Likewise.
31995         * tests/test-cloexec.c: Include msvc-nothrow.h.
31996         * tests/test-dup-safer.c: Likewise.
31997         * tests/test-dup2.c: Likewise.
31998         * tests/test-dup3.c: Likewise.
31999         * tests/test-fcntl.c: Likewise.
32000         * tests/test-pipe.c: Likewise.
32001         * tests/test-pipe2.c: Likewise.
32002         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
32003         * modules/unistd-safer-tests (Depends-on): Likewise.
32004         * modules/dup2-tests (Depends-on): Likewise.
32005         * modules/dup3-tests (Depends-on): Likewise.
32006         * modules/fcntl-tests (Depends-on): Likewise.
32007         * modules/pipe-posix-tests (Depends-on): Likewise.
32008         * modules/pipe2-tests (Depends-on): Likewise.
32010 2011-09-23  Bruno Haible  <bruno@clisp.org>
32012         dup2: Make code more maintainable.
32013         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
32014         (rpl_dup2): Use it.
32015         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
32016         * modules/dup2 (configure.ac): Invoke it.
32017         Reported by Paul Eggert.
32019 2011-09-23  Bruno Haible  <bruno@clisp.org>
32021         msvc-inval: Fix compilation error.
32022         * lib/msvc-inval.h: Include <excpt.h>.
32024 2011-09-23  Bruno Haible  <bruno@clisp.org>
32026         mkdir: Tweak for MSVC 9.
32027         * lib/sys_stat.in.h: Update comments.
32028         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
32030         Tests for module 'chdir'.
32031         * modules/chdir-tests: New file.
32032         * tests/test-chdir.c: New file.
32034         New module 'chdir'.
32035         * modules/chdir: New file.
32036         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
32037         (chdir): New declaration.
32038         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
32039         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
32040         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
32041         * tests/test-unistd-c++.cc: Check signature of chdir.
32042         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
32043         * modules/chdir-long (Depends-on): Add chdir.
32044         * modules/fchdir (Depends-on): Likewise.
32045         * modules/rename (Depends-on): Likewise.
32046         * modules/savewd (Depends-on): Likewise.
32048         rmdir: Support for mingw, MSVC 9.
32049         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
32050         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
32052         getcwd: Tweak for MSVC 9.
32053         * lib/unistd.in.h: Update comments.
32054         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
32056 2011-09-22  Bruno Haible  <bruno@clisp.org>
32058         strerror_r-posix: Avoid a link error on MSVC.
32059         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
32060         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
32062 2011-09-22  Bruno Haible  <bruno@clisp.org>
32064         select: Avoid link errors on MSVC.
32065         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
32066         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
32067         * modules/pselect (Link): Likewise.
32068         * NEWS: Mention the change.
32069         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
32070         test-select-stdin against $(LIB_SELECT).
32071         * modules/pselect-tests (Makefile.am): Link test-pselect against
32072         $(LIB_SELECT).
32074 2011-09-22  Bruno Haible  <bruno@clisp.org>
32076         select: Avoid compilation error on MSVC.
32077         * lib/select.c: Don't include <stdbool.h>.
32079 2011-09-21  Bruno Haible  <bruno@clisp.org>
32081         Consolidate all uses of PATH_MAX in *.m4 files.
32082         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
32083         macros.
32084         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
32085         and gl_PATHMAX_SNIPPET.
32086         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32087         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32088         * modules/chdir-long (Files): Add m4/pathmax.m4.
32089         * modules/getcwd (Files): Likewise.
32091 2011-09-21  Bruno Haible  <bruno@clisp.org>
32093         ftruncate: Un-deprecate, concentrate on Win32 support.
32094         * modules/ftruncate (Status, Notice): Remove sections.
32095         (Depends-on): Add largefile.
32096         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
32097         non-mingw platforms.
32098         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
32099         include <io.h>.
32100         * modules/perror-tests (Depends-on): Add ftruncate.
32101         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
32102         'ftruncate' module.
32104 2011-09-21  Bruno Haible  <bruno@clisp.org>
32106         Add dependencies to new dirent related modules.
32107         * modules/opendir (Depends-on): Add closedir.
32108         * modules/getcwd (Depends-on): Add opendir, closedir.
32109         * modules/dirent-safer-tests (Depends-on): Likewise.
32110         * modules/fdopendir-tests (Depends-on): Likewise.
32111         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
32112         * modules/renameat-tests (Depends-on): Likewise.
32114 2011-09-21  Bruno Haible  <bruno@clisp.org>
32116         opendir: Avoid compilation error on mingw.
32117         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
32118         * modules/opendir (Depends-on): Add unistd.
32120 2011-09-21  Bruno Haible  <bruno@clisp.org>
32122         ftruncate tests: Avoid a test failure on mingw.
32123         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
32125 2011-09-21  Bruno Haible  <bruno@clisp.org>
32127         select tests: Avoid test failures on OSF/1 5.1 and mingw.
32128         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
32129         native Windows.
32131 2011-09-21  Bruno Haible  <bruno@clisp.org>
32133         New module 'fdopen'.
32134         * lib/stdio.in.h (fdopen): New declaration.
32135         * lib/fdopen.c: New file.
32136         * m4/fdopen.m4: New file.
32137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
32138         REPLACE_FDOPEN.
32139         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
32140         REPLACE_FDOPEN.
32141         * modules/fdopen: New file.
32142         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
32143         * tests/test-stdio-c++.cc: Check signature of fdopen.
32144         * doc/posix-functions/fdopen.texi: Mention the new module.
32146 2011-09-21  Bruno Haible  <bruno@clisp.org>
32148         unlockpt tests: Avoid test failure on NetBSD 5.1.
32149         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
32150         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
32152 2011-09-21  Bruno Haible  <bruno@clisp.org>
32154         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
32155         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
32156         * tests/test-getlogin_r.c (main): Likewise.
32158 2011-09-20  Bruno Haible  <bruno@clisp.org>
32160         time tests: Don't require pid_t.
32161         * doc/posix-headers/time.texi: Revert last change.
32162         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
32163         * tests/test-time.c: Comment out the check for pid_t.
32165 2011-09-20  Bruno Haible  <bruno@clisp.org>
32167         fsync tests: Avoid a test failure on mingw.
32168         * tests/test-fsync.c (main): Allow a failure with EIO.
32170 2011-09-20  Bruno Haible  <bruno@clisp.org>
32172         euidaccess: Update comments.
32173         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
32175 2011-09-20  Bruno Haible  <bruno@clisp.org>
32177         Ensure EBADF returns for socket functions on mingw.
32178         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
32179         descriptor is invalid.
32180         * lib/bind.c (rpl_bind): Likewise.
32181         * lib/connect.c (rpl_connect): Likewise.
32182         * lib/getpeername.c (rpl_getpeername): Likewise.
32183         * lib/getsockname.c (rpl_getsockname): Likewise.
32184         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32185         * lib/listen.c (rpl_listen): Likewise.
32186         * lib/recv.c (rpl_recv): Likewise.
32187         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32188         * lib/send.c (rpl_send): Likewise.
32189         * lib/sendto.c (rpl_sendto): Likewise.
32190         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32191         * lib/shutdown.c (rpl_shutdown): Likewise.
32193 2011-09-20  Bruno Haible  <bruno@clisp.org>
32195         select tests: EBADF tests.
32196         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
32197         test_bad_fd): New functions.
32198         (test_function): Invoke also test_bad_fd.
32200 2011-09-20  Bruno Haible  <bruno@clisp.org>
32202         Tests for module 'posix_spawn_file_actions_addopen.
32203         * modules/posix_spawn_file_actions_addopen-tests: New file.
32204         * tests/test-posix_spawn_file_actions_addopen.c: New file.
32206         Tests for module 'posix_spawn_file_actions_adddup2'.
32207         * modules/posix_spawn_file_actions_adddup2-tests: New file.
32208         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
32210         Tests for module 'posix_spawn_file_actions_addclose'.
32211         * modules/posix_spawn_file_actions_addclose-tests: New file.
32212         * tests/test-posix_spawn_file_actions_addclose.c: New file.
32214 2011-09-20  Bruno Haible  <bruno@clisp.org>
32216         Tests for module 'unlockpt'.
32217         * modules/unlockpt-tests: New file.
32218         * tests/test-unlockpt.c: New file.
32219         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
32221         Tests for module 'grantpt'.
32222         * modules/grantpt-tests: New file.
32223         * tests/test-grantpt.c: New file.
32224         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
32226 2011-09-20  Bruno Haible  <bruno@clisp.org>
32228         freopen tests: EBADF tests.
32229         * tests/test-freopen.c: Include errno.h, unistd.h.
32230         (main): Add tests for EBADF, commented out for the moment.
32232         fclose tests: EBADF tests.
32233         * tests/test-fclose.c (main): Add tests for EBADF.
32235         fflush tests: EBADF tests.
32236         * tests/test-fflush.c: Include errno.h, macros.h.
32237         (main): Add tests for EBADF.
32239         ftello tests: EBADF tests.
32240         * tests/test-ftello4.sh: New file.
32241         * tests/test-ftello4.c: New file.
32242         * modules/ftello-tests (Files): Add them.
32243         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
32245         fseeko tests: EBADF tests.
32246         * tests/test-fseeko4.sh: New file.
32247         * tests/test-fseeko4.c: New file.
32248         * modules/fseeko-tests (Files): Add them.
32249         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
32251         Tests for function fputc().
32252         * modules/fputc-tests: New file.
32253         * tests/test-fputc.c: New file.
32254         * modules/stdio-tests (Depends-on): Add fputc-tests.
32256         Tests for function fgetc().
32257         * modules/fgetc-tests: New file.
32258         * tests/test-fgetc.c: New file.
32259         * modules/stdio-tests (Depends-on): Add fgetc-tests.
32261         Tests for function fdopen().
32262         * modules/fdopen-tests: New file.
32263         * tests/test-fdopen.c: New file.
32264         * modules/stdio-tests (Depends-on): Add fdopen-tests.
32266         Tests for module 'vdprintf'.
32267         * modules/vdprintf-tests: New file.
32268         * tests/test-vdprintf.c: New file.
32270         Tests for module 'dprintf'.
32271         * modules/dprintf-tests: New file.
32272         * tests/test-dprintf.c: New file.
32274 2011-09-20  Bruno Haible  <bruno@clisp.org>
32276         Tests for module 'ioctl'.
32277         * modules/ioctl-tests: New file.
32278         * tests/test-ioctl.c: New file.
32280 2011-09-20  Bruno Haible  <bruno@clisp.org>
32282         fcntl tests: EBADF tests.
32283         * tests/test-fcntl.c (main): Add more tests for EBADF.
32285 2011-09-20  Bruno Haible  <bruno@clisp.org>
32287         utimensat tests: EBADF tests.
32288         * tests/test-utimensat.c (main): Add tests for EBADF.
32290         renameat tests: EBADF tests.
32291         * tests/test-renameat.c (main): Add tests for EBADF.
32293         mkfifoat tests: EBADF tests.
32294         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32296         readlinkat tests: EBADF tests.
32297         * tests/test-readlinkat.c (main): Add tests for EBADF.
32299         symlinkat tests: EBADF tests.
32300         * tests/test-symlinkat.c (main): Add tests for EBADF.
32302         linkat tests: EBADF tests.
32303         * tests/test-linkat.c (main): Add tests for EBADF.
32305         Tests for module 'faccessat'.
32306         * modules/faccessat-tests: New file.
32307         * tests/test-faccessat.c: New file.
32309         fdopendir tests: EBADF tests.
32310         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32312         openat tests: EBADF tests.
32313         * tests/test-fchownat.c (main): Add tests for EBADF.
32314         * tests/test-fstatat.c (main): Likewise.
32315         * tests/test-mkdirat.c (main): Likewise.
32316         * tests/test-openat.c (main): Likewise.
32317         * tests/test-unlinkat.c (main): Likewise.
32318         * tests/test-fchmodat.c: New file.
32319         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32320         (Makefile.am): Also run 'test-fchmodat'.
32322 2011-09-20  Bruno Haible  <bruno@clisp.org>
32324         utimens, futimens, fdutimensat tests: EBADF tests.
32325         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32327         Tests for function fstat().
32328         * modules/fstat-tests: New file.
32329         * tests/test-fstat.c: New file.
32330         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32332 2011-09-20  Bruno Haible  <bruno@clisp.org>
32334         test-ttyname_r tests: EBADF tests.
32335         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32337         Tests for module 'isatty'.
32338         * modules/isatty-tests: New file.
32339         * tests/test-isatty.c: New file.
32341         Tests for module 'write'.
32342         * modules/write-tests: New file.
32343         * tests/test-write.c: New file.
32345         Tests for module 'read'.
32346         * modules/read-tests: New file.
32347         * tests/test-read.c: New file.
32349         pwrite tests: EBADF tests.
32350         * tests/test-pwrite.c (main): Add tests for EBADF.
32352         pread tests: EBADF tests.
32353         * tests/test-pread.c (main): Add tests for EBADF.
32355         lseek tests: EBADF tests.
32356         * tests/test-lseek.c (main): Add more tests for EBADF.
32358         Tests for module 'ftruncate'.
32359         * modules/ftruncate-tests: New file.
32360         * tests/test-ftruncate.sh: New file.
32361         * tests/test-ftruncate.c: New file.
32363         fsync tests: EBADF tests.
32364         * tests/test-fsync.c (main): Add more tests for EBADF.
32366         fdatasync tests: EBADF tests.
32367         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32369         Tests for module 'fchown'.
32370         * modules/fchown-tests: New file.
32371         * tests/test-fchown.c: New file.
32373         Tests for module 'fchmod'.
32374         * modules/fchmod-tests: New file.
32375         * tests/test-fchmod.c: New file.
32377         fchdir tests: EBADF tests.
32378         * tests/test-fchdir.c (main): Add more tests for EBADF.
32380         dup2 tests: EBADF tests.
32381         * tests/test-dup2.c (main): Add more tests for EBADF.
32383         Tests for module 'dup'.
32384         * modules/dup-tests: New file.
32385         * tests/test-dup.c: New file.
32387         Tests for module 'close'.
32388         * modules/close-tests: New file.
32389         * tests/test-close.c: New file.
32391 2011-09-20  Bruno Haible  <bruno@clisp.org>
32393         Tests for module 'shutdown'.
32394         * modules/shutdown-tests: New file.
32395         * tests/test-shutdown.c: New file.
32397         Tests for module 'setsockopt'.
32398         * modules/setsockopt-tests: New file.
32399         * tests/test-setsockopt.c: New file.
32401         Tests for module 'sendto'.
32402         * modules/sendto-tests: New file.
32403         * tests/test-sendto.c: New file.
32405         Tests for module 'send'.
32406         * modules/send-tests: New file.
32407         * tests/test-send.c: New file.
32409         Tests for module 'recvfrom'.
32410         * modules/recvfrom-tests: New file.
32411         * tests/test-recvfrom.c: New file.
32413         Tests for module 'recv'.
32414         * modules/recv-tests: New file.
32415         * tests/test-recv.c: New file.
32417         Tests for module 'listen'.
32418         * modules/listen-tests: New file.
32419         * tests/test-listen.c: New file.
32421         Tests for module 'getsockopt'.
32422         * modules/getsockopt-tests: New file.
32423         * tests/test-getsockopt.c: New file.
32425         Tests for module 'getsockname'.
32426         * modules/getsockname-tests: New file.
32427         * tests/test-getsockname.c: New file.
32429         Tests for module 'getpeername'.
32430         * modules/getpeername-tests: New file.
32431         * tests/test-getpeername.c: New file.
32433         Tests for module 'connect'.
32434         * modules/connect-tests: New file.
32435         * tests/test-connect.c: New file.
32437         Tests for module 'bind'.
32438         * modules/bind-tests: New file.
32439         * tests/test-bind.c: New file.
32441         accept4 tests: Fix for native Windows.
32442         * tests/test-accept4.c: Include sockets.h.
32443         (main): Invoke gl_sockets_startup.
32444         * modules/accept4-tests (Depends-on): Add sockets.
32446         accept tests: Fix for native Windows.
32447         * tests/test-accept.c: Include sockets.h.
32448         (main): Invoke gl_sockets_startup.
32449         * modules/accept-tests (Depends-on): Add sockets.
32451 2011-09-19  Bruno Haible  <bruno@clisp.org>
32453         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32454         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32455         do...while(0).
32456         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32457         Suggested by Paul Eggert.
32459 2011-09-19  Bruno Haible  <bruno@clisp.org>
32461         sched: Ensure pid_t is defined.
32462         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32463         not define pid_t.
32464         * lib/sched.in.h: Include <sys/types.h>.
32465         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32468 2011-09-19  Bruno Haible  <bruno@clisp.org>
32470         msvc-inval: Ensure the entire expansion is a single statement.
32471         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32472         of braces.
32474 2011-09-19  Jim Meyering  <meyering@redhat.com>
32476         tests: use printf, not echo in init.sh's warn_ function
32477         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32478         misbehave when given strings containing a backslash or starting
32479         with e.g., -n.  James Youngman suggested setting IFS.
32481 2011-09-19  Eric Blake  <eblake@redhat.com>
32483         futimens: enhance test
32484         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32485         closed non-negative fd.
32487         date: accept 'hence' as opposite of 'ago'
32488         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32489         * tests/test-parse-datetime.c (main): Enhance test.
32490         Suggested by Jesse Wilson.
32492 2011-09-19  Jim Meyering  <meyering@redhat.com>
32494         getcwd: don't fail in a deep directory on a system without openat
32495         Before this change, getcwd would fail when called from a directory
32496         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32497         the non-openat implementation used "..", "../..", "../../..", etc.
32498         to access ancestor directories.  With too many, that string would
32499         be longer than PATH_MAX.
32500         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32501         using gnulib's openat replacement.
32502         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32503         we're using the replacement function.
32505 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32507         maint.mk: avoid warnings from perl about missing files
32508         * top/maint.mk (def_sym_regex): Ignore files listed in
32509         $(gl_other_headers_) that do not exist, say because a project
32510         does not use a corresponding module.
32512 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32514         stat: use pathmax.h only if needed
32515         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32516         This is better for Emacs, which does not have a mingw port and
32517         therefore can avoid the pathmax module.
32519         utimens: remove dependency on dup2
32520         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32521         to work around the Linux kernel bug.
32522         * modules/utimens (Depends-on): Remove dup2.
32524 2011-09-18  Bruno Haible  <bruno@clisp.org>
32526         inet_ntop, inet_pton: Look for it also in libresolv.
32527         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32528         libnsl, search for it in libresolv.
32529         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32530         Needed on Solaris 7.
32532 2011-09-18  Bruno Haible  <bruno@clisp.org>
32534         accept, accept4 tests: Avoid link error on Solaris.
32535         * modules/accept-tests (Makefile.am): Link test-accept against
32536         $(LIBSOCKET).
32537         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32538         $(LIBSOCKET).
32540         accept4: Avoid link error on Solaris.
32541         * modules/accept4 (Link): New section.
32543         socket functions: Avoid link errors on Solaris.
32544         * modules/accept (Depends-on): Add socketlib.
32545         (Link): New section.
32546         * modules/bind (Depends-on): Add socketlib.
32547         (Link): New section.
32548         * modules/connect (Depends-on): Add socketlib.
32549         (Link): New section.
32550         * modules/getpeername (Depends-on): Add socketlib.
32551         (Link): New section.
32552         * modules/getsockname (Depends-on): Add socketlib.
32553         (Link): New section.
32554         * modules/getsockopt (Depends-on): Add socketlib.
32555         (Link): New section.
32556         * modules/listen (Depends-on): Add socketlib.
32557         (Link): New section.
32558         * modules/recv (Depends-on): Add socketlib.
32559         (Link): New section.
32560         * modules/recvfrom (Depends-on): Add socketlib.
32561         (Link): New section.
32562         * modules/send (Depends-on): Add socketlib.
32563         (Link): New section.
32564         * modules/sendto (Depends-on): Add socketlib.
32565         (Link): New section.
32566         * modules/setsockopt (Depends-on): Add socketlib.
32567         (Link): New section.
32568         * modules/shutdown (Depends-on): Add socketlib.
32569         (Link): New section.
32570         * modules/socket (Depends-on): Add socketlib.
32571         (Link): New section.
32573 2011-09-18  Bruno Haible  <bruno@clisp.org>
32575         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
32576         * tests/test-ptsname.c (main): Terminate the test if it takes longer
32577         than 5 seconds.
32578         * modules/ptsname-tests (configure.ac): Test for alarm.
32580 2011-09-18  Bruno Haible  <bruno@clisp.org>
32582         posix_spawn_file_actions_add*: Fix module dependencies.
32583         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
32584         posix_spawn_file_actions_init.
32585         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
32586         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
32588 2011-09-18  Bruno Haible  <bruno@clisp.org>
32590         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
32591         * tests/test-rename.h (test_rename): Allow error code EEXIST.
32592         * tests/test-renameat.c (main): Likewise.
32594 2011-09-18  Bruno Haible  <bruno@clisp.org>
32596         Tests for module 'accept4'.
32597         * modules/accept4-tests: New file.
32598         * tests/test-accept4.c: New file.
32600 2011-09-18  Bruno Haible  <bruno@clisp.org>
32602         Tests for module 'accept'.
32603         * modules/accept-tests: New file.
32604         * tests/test-accept.c: New file.
32606 2011-09-18  Bruno Haible  <bruno@clisp.org>
32608         dup2: Support for MSVC.
32609         * lib/dup2.c: Include msvc-inval.h.
32610         (rpl_dup2): Handle invalid parameter notifications during dup2 and
32611         _get_osfhandle calls.
32612         * modules/dup2 (Depends-on): Add msvc-inval.
32613         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
32615         New module 'msvc-inval'.
32616         * lib/msvc-inval.h: New file.
32617         * lib/msvc-inval.c: New file.
32618         * m4/msvc-inval.m4: New file.
32619         * modules/msvc-inval: New file.
32621 2011-09-17  Bruno Haible  <bruno@clisp.org>
32623         Tests for module 'pclose'.
32624         * modules/pclose-tests: New file.
32626         New module 'pclose'.
32627         * lib/stdio.in.h (pclose): New declaration.
32628         * lib/pclose.c: New file.
32629         * m4/pclose.m4: New file.
32630         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
32631         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
32632         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
32633         * modules/pclose: New file.
32634         * modules/popen-tests (Depends-on): Add pclose.
32635         * modules/popen-safer-tests (Depends-on): Likewise.
32636         * doc/posix-functions/pclose.texi: Mention the new module.
32638 2011-09-17  Bruno Haible  <bruno@clisp.org>
32640         popen: Support for MSVC.
32641         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
32642         * lib/popen.c (popen): Provide alternate definition for native Windows.
32643         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
32644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
32645         * modules/popen (Depends-on, configure.ac): Update condition.
32646         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
32647         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
32648         fixed.
32650 2011-09-17  Bruno Haible  <bruno@clisp.org>
32652         isnanl, isnand, isnanf: Work around MSVC bug.
32653         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
32655 2011-09-17  Bruno Haible  <bruno@clisp.org>
32657         sys_socket tests: Fix recent mistake.
32658         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
32660 2011-09-17  Bruno Haible  <bruno@clisp.org>
32662         putenv: Support for MSVC.
32663         * modules/putenv (Depends-on): Add environ.
32664         * lib/putenv.c (environ): Disable declaration.
32665         * lib/unistd.in.h: Update comment.
32667 2011-09-17  Bruno Haible  <bruno@clisp.org>
32669         math: Avoid macro redefinition warnings on MSVC.
32670         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
32671         Undefine before redefining.
32673 2011-09-17  Bruno Haible  <bruno@clisp.org>
32675         doc: Mention functions which are declared as macros.
32676         * doc/posix-functions/*[fl].texi: Mention that some functions are
32677         defined as macros with arguments only.
32679 2011-09-17  Bruno Haible  <bruno@clisp.org>
32681         Add dependencies to new dirent related modules.
32682         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
32683         * modules/fts (Depends-on): Likewise.
32684         * modules/glob (Depends-on): Likewise.
32685         * modules/savedir (Depends-on): Likewise.
32686         * modules/scandir (Depends-on): Likewise.
32687         * modules/dirent-safer (Depends-on): Add opendir, closedir.
32688         * modules/fdopendir (Depends-on): Add opendir.
32690 2011-09-17  Bruno Haible  <bruno@clisp.org>
32692         inet_pton: Support for MSVC on Windows Vista or newer.
32693         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
32694         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
32695         HAVE_DECL_INET_PTON is defined.
32696         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32697         On platforms with <winsock2.h>, test whether inet_pton is declared in
32698         <ws2tcpip.h>. If so, arrange to replace it.
32699         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32700         REPLACE_INET_PTON.
32701         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
32702         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
32703         (Depends-on, configure.ac): Update condition.
32704         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
32706 2011-09-17  Bruno Haible  <bruno@clisp.org>
32708         inet_ntop: Support for MSVC on Windows Vista or newer.
32709         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
32710         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
32711         HAVE_DECL_INET_NTOP is defined.
32712         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32713         On platforms with <winsock2.h>, test whether inet_ntop is declared in
32714         <ws2tcpip.h>. If so, arrange to replace it.
32715         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32716         REPLACE_INET_NTOP.
32717         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
32718         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
32719         (Depends-on, configure.ac): Update condition.
32720         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
32722 2011-09-16  Eric Blake  <eblake@redhat.com>
32724         test-fsync: yet another enhancement
32725         * tests/test-fsync.c (main): Also test behavior on read-only text
32726         file.
32728 2011-09-16  Bruno Haible  <bruno@clisp.org>
32730         Enhance fsync, fdatasync tests.
32731         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
32732         * tests/test-fdatasync.c (main): Likewise.
32734 2011-09-16  Bruno Haible  <bruno@clisp.org>
32736         Support for MSVC compiler: Ensure mode_t gets defined.
32737         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
32738         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32740         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
32741         * tests/test-fcntl-h.c: Check that mode_t is defined.
32742         * tests/test-sys_stat.c: Likewise.
32743         * tests/test-sys_types.c: Likewise.
32744         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
32745         * doc/posix-headers/sys_stat.texi: Likewise.
32746         * doc/posix-headers/sys_types.texi: Likewise.
32748 2011-09-16  Bruno Haible  <bruno@clisp.org>
32750         sys_stat: Support for MSVC.
32751         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
32752         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
32753         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
32754         MSVC.
32756 2011-09-16  Bruno Haible  <bruno@clisp.org>
32758         Support for MSVC compiler: Ensure off_t gets defined.
32759         * lib/unistd.in.h: Include <sys/types.h>.
32760         * tests/test-fcntl-h.c: Check that off_t is defined.
32761         * tests/test-sys_stat.c: Likewise.
32762         * tests/test-sys_types.c: Likewise.
32764 2011-09-16  Eric Blake  <eblake@redhat.com>
32766         fdatasync: port to Solaris
32767         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
32768         * modules/fdatasync (Link): Document it.
32769         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
32771         fdatasync: port to MacOS X 10.7
32772         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
32773         declared.
32774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
32775         * modules/unistd (Makefile.am): Substitute it.
32776         * lib/unistd.in.h (fdatasync): Declare on MacOS.
32777         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
32779         fdatasync: minor improvements
32780         * modules/fdatasync (Depends-on): Add condition for fsync.
32781         * lib/fdatasync.c (fdatasync): Add comment.
32782         * tests/test-unistd-c++.cc: Test fdatasync.
32784         unistd: update refs to newer POSIX
32785         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
32786         Suggested by Bruno Haible.
32788         fdatasync: new module
32789         * modules/fsync (Description): Document difference to fdatasync.
32790         * modules/fdatasync: New module.
32791         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
32792         * lib/fdatasync.c (fdatasync): Likewise.
32793         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
32794         defaults.
32795         * modules/unistd (Makefile.am): Set witnesses.
32796         * lib/unistd.in.h (fdatasync): Declare.
32797         * MODULES.html.sh: Document it.
32798         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
32799         * modules/fdatasync-tests: New test.
32800         * tests/test-fdatasync.c: Likewise.
32802 2011-09-16  Eric Blake  <eblake@redhat.com>
32804         test-fsync: enhance tests
32805         * modules/fsync-tests (Depends-on): Add errno, for mingw.
32806         * tests/test-fsync.c (main): Enhance test.
32808 2011-09-15  Bruno Haible  <bruno@clisp.org>
32810         Support for MSVC compiler: Ensure ssize_t gets defined.
32811         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
32812         * doc/posix-headers/stdio.texi: Likewise.
32813         * modules/stdio (Depends-on): Add ssize_t.
32814         * modules/sys_socket (Depends-on): Likewise.
32815         * modules/sys_types (Depends-on): Likewise.
32816         * modules/sys_uio (Depends-on): Likewise.
32817         * modules/unistd (Depends-on): Likewise.
32818         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
32819         * tests/test-sys_types.c: Check that ssize_t is defined.
32821 2011-09-14  Bruno Haible  <bruno@clisp.org>
32823         Avoid using #, the m4 comment starter character, near brackets.
32824         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
32825         delimiter character in sed expressions.
32826         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
32827         Suggested by Eric Blake.
32829         Properly quote AC_CHECK_DECLS' 4th argument.
32830         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
32831         argument.
32832         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32833         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32834         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32835         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32836         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32837         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
32838         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
32839         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
32840         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
32841         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32842         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
32843         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32844         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32845         * m4/isinf.m4 (gl_ISINF): Likewise.
32846         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32847         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32848         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32849         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32850         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32851         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32852         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32853         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
32854         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
32855         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32856         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32857         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
32859         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32860         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32861         Reported by Eric Blake.
32863         Properly quote AC_CHECK_DECL's 4th argument.
32864         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
32865         argument.
32866         * m4/argp.m4 (gl_ARGP): Likewise.
32867         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
32868         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32869         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
32870         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
32871         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
32872         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
32873         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
32874         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32875         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32876         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32877         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32878         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32879         Reported by Eric Blake.
32881 2011-09-14  Eric Blake  <eblake@redhat.com>
32883         opendir: avoid compile warning
32884         * lib/opendir.c (includes): Always include errno.h.
32885         Reported by Tatsuro MATSUOKA.
32887 2011-09-14  Jim Meyering  <meyering@redhat.com>
32889         maint.mk: sc_tight_scope: propagate failure from sub-make
32890         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
32891         Reported by Martin von Gagern.
32893 2011-09-13  Bruno Haible  <bruno@clisp.org>
32895         tempname: Support for MSVC.
32896         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
32897         MSVC.
32898         * modules/tempname (Depends-on): Add fcntl-h.
32900 2011-09-13  Bruno Haible  <bruno@clisp.org>
32902         sys_time: Support for MSVC.
32903         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
32904         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
32905         include <winsock2.h>.
32906         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
32907         function declarations that collide with POSIX.
32908         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
32909         (Makefile.am): Substitute HAVE_WINSOCK2_H.
32911 2011-09-13  Bruno Haible  <bruno@clisp.org>
32913         stat: Support for MSVC.
32914         * lib/stat.c: Include pathmax.h.
32915         * modules/stat (Depends-on): Add pathmax.
32917         pathmax: Support for native Windows.
32918         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
32920 2011-09-12  Bruno Haible  <bruno@clisp.org>
32922         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
32923         * lib/dirent.in.h (struct dirent): New type.
32924         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
32925         DT_WHT): New macros.
32926         (DIR): New type.
32927         (opendir, closedir): Declare only if the module 'opendir' is enabled.
32928         (readdir, rewinddir): New declarations.
32929         * lib/dirent-private.h: New file.
32930         * lib/opendir.c: New file.
32931         * lib/readdir.c: New file.
32932         * lib/rewinddir.c: New file.
32933         * lib/closedir.c: New file.
32934         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
32935         * m4/opendir.m4: New file.
32936         * m4/readdir.m4: New file.
32937         * m4/rewinddir.m4: New file.
32938         * m4/closedir.m4: New file.
32939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
32940         REPLACE_CLOSEDIR here.
32941         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
32942         readdir, rewinddir are declared.
32943         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
32944         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
32945         HAVE_REWINDDIR, HAVE_CLOSEDIR.
32946         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
32947         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
32948         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
32949         * modules/opendir: New file.
32950         * modules/readdir: New file.
32951         * modules/rewinddir: New file.
32952         * modules/closedir: New file.
32953         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
32954         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
32955         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
32956         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
32957         * NEWS: Mention the 'fchdir' change.
32959 2011-09-11  Bruno Haible  <bruno@clisp.org>
32961         asm-underscore.m4: Support for MSVC.
32962         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
32963         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
32965 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
32967         Doc about crypt functions.
32968         * doc/posix-functions/crypt.texi: Expand range of glibc versions
32969         needing for _GNU_SOURCE to get crypt.
32970         * doc/posix-functions/encrypt.texi: Likewise.
32971         * doc/posix-functions/setkey.texi: Likewise.
32973 2011-09-11  Bruno Haible  <bruno@clisp.org>
32975         doc: Update regarding MSVC 9.
32976         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
32977         tested".
32978         * doc/posix-functions/*.texi: Update with info about MSVC 9.
32979         * doc/posix-headers/*.texi: Likewise.
32980         * doc/pastposix-functions/*.texi: Likewise.
32981         * doc/glibc-functions/*.texi: Likewise.
32982         * doc/glibc-headers/*.texi: Likewise.
32984 2011-09-11  Bruno Haible  <bruno@clisp.org>
32986         unistd et al.: Don't assume <unistd.h> exists.
32987         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
32988         does not exist.
32989         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
32990         exist. But include <stdlib.h>.
32991         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
32992         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
32993         symlink() does not exist.
32994         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
32995         include <io.h> instead.
32996         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
32997         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
32998         include <direct.h> instead.
32999         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
33000         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33001         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
33002         <io.h> instead.
33003         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
33004         correctly if the system does not have hard links.
33005         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
33006         <direct.h> instead.
33007         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
33008         it when looking for function declarations.
33009         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
33010         <direct.h> and <io.h> instead.
33011         * doc/posix-headers/unistd.texi: More details about MSVC problem.
33013 2011-09-11  Bruno Haible  <bruno@clisp.org>
33015         strcase: Support for MSVC.
33016         * modules/strcase (Status, Notice): Remove obsoletion mark.
33017         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
33018         * doc/posix-functions/strncasecmp.texi: Likewise.
33020         strings: Don't assume <strings.h> exists.
33021         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
33022         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
33023         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
33024         * doc/posix-headers/strings.texi: Mention the MSVC problem.
33026 2011-09-11  Bruno Haible  <bruno@clisp.org>
33028         dirent: Don't assume <dirent.h> exists.
33029         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
33030         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
33031         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
33032         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
33034 2011-09-11  Bruno Haible  <bruno@clisp.org>
33036         Fix wint_t on MSVC.
33037         * lib/wchar.in.h (wint_t): On MSVC, override it.
33038         * lib/wctype.in.h (wint_t): Likewise.
33039         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
33040         MSVC.
33041         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
33042         * doc/posix-headers/wctype.texi: Likewise.
33044 2011-09-11  Bruno Haible  <bruno@clisp.org>
33046         sys_types: Fix typo.
33047         * lib/sys_types.in.h: Fix typo in comment.
33048         Reported by Paul Eggert.
33050         Support for MSVC compiler: Ensure size_t gets defined.
33051         * modules/strings (Depends-on): Add 'sys_types'.
33052         * modules/sys_uio (Depends-on): Likewise.
33053         * lib/sys_uio.in.h: Update comment.
33055         C++ tests for module 'sys_types'.
33056         * modules/sys_types-c++-tests: New file.
33057         * tests/test-sys_types-c++.cc: New file.
33059         Tests for module 'sys_types'.
33060         * modules/sys_types-tests: New file.
33061         * tests/test-sys_types.c: New file.
33063         New module 'sys_types'.
33064         * lib/sys_types.in.h: New file.
33065         * m4/sys_types_h.m4: New file.
33066         * modules/sys_types: New file.
33067         * doc/posix-headers/sys_types.texi: Mention the new module and the
33068         size_t problem on MSVC 9.
33070 2011-09-11  Bruno Haible  <bruno@clisp.org>
33072         Support for MSVC compiler: Avoid division by a literal 0.
33073         * lib/math.in.h (NAN): Define through a function call also on MSVC.
33074         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
33075         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
33076         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
33077         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
33078         * tests/infinity.h: New file.
33079         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
33080         on MSVC.
33081         * tests/test-ceilf1.c: Include infinity.h.
33082         (main): Use Infinityf.
33083         * tests/test-ceil1.c: Include infinity.h.
33084         (main): Use Infinityd.
33085         * tests/test-ceill.c: Include infinity.h.
33086         (main): Use Infinityl.
33087         * tests/test-dprintf-posix.c: Include infinity.h.
33088         (test_function): Use Infinityd.
33089         * tests/test-floorf1.c: Include infinity.h.
33090         (main): Use Infinityf.
33091         * tests/test-floor1.c: Include infinity.h.
33092         (main): Use Infinityd.
33093         * tests/test-floorl.c: Include infinity.h.
33094         (main): Use Infinityl.
33095         * tests/test-fprintf-posix.c: Include infinity.h.
33096         (test_function): Use Infinityd.
33097         * tests/test-frexp.c: Include infinity.h.
33098         (main): Use Infinityd.
33099         * tests/test-frexpl.c: Include infinity.h.
33100         (main): Use Infinityl.
33101         * tests/test-isfinite.c: Include infinity.h.
33102         (test_isfinitef): Use Infinityf.
33103         (test_isfinited): Use Infinityd.
33104         (test_isfinitel): Use Infinityl.
33105         * tests/test-isinf.c: Include infinity.h.
33106         (test_isinff): Use Infinityf.
33107         (test_isinfd): Use Infinityd.
33108         (test_isinfl): Use Infinityl.
33109         * tests/test-isnan.c: Include infinity.h.
33110         (test_float): Use Infinityf.
33111         (test_double): Use Infinityd.
33112         (test_long_double): Use Infinityl.
33113         * tests/test-isnanf.h: Include infinity.h.
33114         (main): Use Infinityf.
33115         * tests/test-isnand.h: Include infinity.h.
33116         (main): Use Infinityd.
33117         * tests/test-isnanl.h: Include infinity.h.
33118         (main): Use Infinityl.
33119         * tests/test-ldexpl.c: Include infinity.h.
33120         (main): Use Infinityl.
33121         * tests/test-printf-posix.h: Include infinity.h.
33122         (test_function): Use Infinityd.
33123         * tests/test-roundf1.c: Include infinity.h.
33124         (main): Use Infinityf.
33125         * tests/test-round1.c: Include infinity.h.
33126         (main): Use Infinityd.
33127         * tests/test-roundl.c: Include infinity.h.
33128         (main): Use Infinityl.
33129         * tests/test-signbit.c: Include infinity.h.
33130         (test_signbitf): Use Infinityf.
33131         (test_signbitd): Use Infinityd.
33132         (test_signbitl): Use Infinityl.
33133         * tests/test-snprintf-posix.h: Include infinity.h.
33134         (test_function): Use Infinityd, Infinityl.
33135         * tests/test-sprintf-posix.h: Include infinity.h.
33136         (test_function): Use Infinityd, Infinityl.
33137         * tests/test-truncf1.c: Include infinity.h.
33138         (main): Use Infinityf.
33139         * tests/test-trunc1.c: Include infinity.h.
33140         (main): Use Infinityd.
33141         * tests/test-truncl.c: Include infinity.h.
33142         (main): Use Infinityl.
33143         * tests/test-vasnprintf-posix.c: Include infinity.h.
33144         (test_function): Use Infinityd, Infinityl.
33145         * tests/test-vasprintf-posix.c: Include infinity.h.
33146         (test_function): Use Infinityd, Infinityl.
33147         * modules/ceilf-tests (Files): Add tests/infinity.h.
33148         * modules/ceil-tests (Files): Likewise.
33149         * modules/ceill-tests (Files): Likewise.
33150         * modules/dprintf-posix-tests (Files): Likewise.
33151         * modules/floorf-tests (Files): Likewise.
33152         * modules/floor-tests (Files): Likewise.
33153         * modules/floorl-tests (Files): Likewise.
33154         * modules/fprintf-posix-tests (Files): Likewise.
33155         * modules/frexp-tests (Files): Likewise.
33156         * modules/frexp-nolibm-tests (Files): Likewise.
33157         * modules/frexpl-tests (Files): Likewise.
33158         * modules/frexpl-nolibm-tests (Files): Likewise.
33159         * modules/isfinite-tests (Files): Likewise.
33160         * modules/isinf-tests (Files): Likewise.
33161         * modules/isnan-tests (Files): Likewise.
33162         * modules/isnanf-tests (Files): Likewise.
33163         * modules/isnanf-nolibm-tests (Files): Likewise.
33164         * modules/isnand-tests (Files): Likewise.
33165         * modules/isnand-nolibm-tests (Files): Likewise.
33166         * modules/isnanl-tests (Files): Likewise.
33167         * modules/isnanl-nolibm-tests (Files): Likewise.
33168         * modules/ldexpl-tests (Files): Likewise.
33169         * modules/printf-posix-tests (Files): Likewise.
33170         * modules/roundf-tests (Files): Likewise.
33171         * modules/round-tests (Files): Likewise.
33172         * modules/roundl-tests (Files): Likewise.
33173         * modules/signbit-tests (Files): Likewise.
33174         * modules/snprintf-posix-tests (Files): Likewise.
33175         * modules/sprintf-posix-tests (Files): Likewise.
33176         * modules/truncf-tests (Files): Likewise.
33177         * modules/trunc-tests (Files): Likewise.
33178         * modules/truncl-tests (Files): Likewise.
33179         * modules/vasnprintf-posix-tests (Files): Likewise.
33180         * modules/vasprintf-posix-tests (Files): Likewise.
33181         * modules/vdprintf-posix-tests (Files): Likewise.
33182         * modules/vfprintf-posix-tests (Files): Likewise.
33183         * modules/vprintf-posix-tests (Files): Likewise.
33184         * modules/vsnprintf-posix-tests (Files): Likewise.
33185         * modules/vsprintf-posix-tests (Files): Likewise.
33186         * modules/xprintf-posix-tests (Files): Likewise.
33188 2011-09-11  Bruno Haible  <bruno@clisp.org>
33190         Ensure pid_t gets defined.
33191         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
33192         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
33193         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33194         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33195         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33196         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
33197         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33198         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33199         * tests/test-fcntl-h.c: Check that pid_t is defined.
33200         * tests/test-sched.c: Likewise.
33201         * tests/test-termios.c: Likewise.
33202         * tests/test-time.c: Likewise.
33203         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
33204         * doc/posix-headers/signal.texi: Likewise.
33205         * doc/posix-headers/sys_types.texi: Likewise.
33206         * doc/posix-headers/time.texi: Likewise.
33208 2011-09-11  Bruno Haible  <bruno@clisp.org>
33210         acl: Fix compilation on Solaris 10 (older version).
33211         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
33212         of ACE_EVERYONE.
33213         * lib/set-mode-acl.c (qset_acl): Likewise.
33214         Reported by Christian Jullien <eligis@orange.fr>.
33216 2011-09-10  Bruno Haible  <bruno@clisp.org>
33218         iconv, unsetenv: Add support for MSVC compiler.
33219         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
33220         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
33222 2011-09-10  Bruno Haible  <bruno@clisp.org>
33224         *printf: Add support for MSVC compiler.
33225         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
33226         handles the exception caused by the %n directive. When cross-compiling,
33227         guess no on native Windows.
33228         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
33229         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
33230         emulate it through vsnprintf.
33231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
33232         * doc/posix-functions/dprintf.texi: Update documentation regarding
33233         MSVC 9.
33234         * doc/posix-functions/fprintf.texi: Likewise.
33235         * doc/posix-functions/printf.texi: Likewise.
33236         * doc/posix-functions/snprintf.texi: Likewise.
33237         * doc/posix-functions/sprintf.texi: Likewise.
33238         * doc/posix-functions/swprintf.texi: Likewise.
33239         * doc/posix-functions/vdprintf.texi: Likewise.
33240         * doc/posix-functions/vfprintf.texi: Likewise.
33241         * doc/posix-functions/vprintf.texi: Likewise.
33242         * doc/posix-functions/vsnprintf.texi: Likewise.
33243         * doc/posix-functions/vsprintf.texi: Likewise.
33244         * doc/glibc-functions/asprintf.texi: Likewise.
33245         * doc/glibc-functions/obstack_printf.texi: Likewise.
33246         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33247         * doc/glibc-functions/vasprintf.texi: Likewise.
33249 2011-09-10  Bruno Haible  <bruno@clisp.org>
33251         nocrash: Add support for native Windows.
33252         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
33254 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
33255             Bruno Haible  <bruno@clisp.org>
33257         absolute-header, include-next: Add support for MSVC compiler.
33258         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
33259         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
33260         directory separator in #line directives.
33261         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
33262         recognize also backslash as directory separator in #line directives.
33264 2011-09-08  Jim Meyering  <meyering@redhat.com>
33266         maint.mk: mark the post-release commit log with "maint: " prefix
33267         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
33268         one-line commit-log summary.
33270 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
33271             Bruno Haible  <bruno@clisp.org>
33273         Doc about crypt functions.
33274         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
33275         systems.
33276         * doc/posix-functions/encrypt.texi: Likewise.
33277         * doc/posix-functions/setkey.texi: Likewise.
33279 2011-09-08  Simon Josefsson  <simon@josefsson.org>
33281         * lib/gc.h: Fix copyright header.
33283 2011-09-07  Bruno Haible  <bruno@clisp.org>
33285         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
33286         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
33287         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
33289 2011-09-07  Bruno Haible  <bruno@clisp.org>
33291         openat: Work around compilation error with OSF/1 5.1 DTK cc.
33292         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33293         * lib/freopen.c: Likewise.
33294         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33295         * lib/lstat.c: Likewise.
33296         * lib/stat.c: Likewise.
33297         * lib/open.c: Use different syntax for include of <fcntl.h>.
33298         * lib/openat.c: Include fcntl.h again, explicitly.
33300 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33302         parse-datetime: document the newly accepted format
33303         * doc/parse-datetime.texi (Combined date and time of day items):
33304         New section.
33306 2011-09-06  Bruno Haible  <bruno@clisp.org>
33308         acl: Fix a test failure on newer Solaris 10 with ZFS.
33309         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33310         ENOSYS as no ACL.
33311         Reported by Jim Meyering.
33313 2011-09-06  Bruno Haible  <bruno@clisp.org>
33315         acl: Update for AIX >= 5.3 with NFS.
33316         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33317         ENOSYS as no ACL.
33319         acl: Fix a test failure on AIX >= 5.3 with NFS.
33320         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33321         as no ACL.
33323 2011-09-06  Bruno Haible  <bruno@clisp.org>
33325         acl: Fix a test failure on IRIX 6.5 with NFS.
33326         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33327         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33328         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33329         * lib/copy-acl.c (qcopy_acl): Likewise.
33331 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33333         openat: port to AIX 7.1 with large files
33334         AIX 7.1 does a "#define openat open64at" if large files are in use,
33335         so we can't simply #undef openat.  Use the orig_openat trick (similar
33336         to orig_open in lib/open.c) to work around the problem.  Problem
33337         reported by Kevin Brott for GNU tar, in the thread containing
33338         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33339         * lib/openat.c (__need_system_fcntl_h): Define first.
33340         Include <fcntl.h> and <sys/types.h> before undefining.
33341         (orig_openat) [HAVE_OPENAT]: New inline function.
33342         (openat) [HAVE_OPENAT]: Do not undef.
33343         (rpl_openat): Use orig_openat, not openat.
33345 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33346             Bruno Haible  <bruno@clisp.org>
33348         acl: Avoid errors on NonStop Kernel.
33349         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33350         ENOTSUP errors.
33352 2011-09-05  Bruno Haible  <bruno@clisp.org>
33354         acl: Clean up Solaris code.
33355         * lib/acl-internal.h: Remove no-op #if.
33356         * lib/file-has-acl.c: Likewise.
33357         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33358         * lib/copy-acl.c (qcopy_acl): Likewise.
33360 2011-09-05  Bruno Haible  <bruno@clisp.org>
33362         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33363         binaries built on the original Solaris 10.
33364         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33365         trivial.
33367 2011-09-05  Bruno Haible  <bruno@clisp.org>
33369         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33370         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33371         10.
33372         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33373         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33374         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33375         instead of acl_get, facl_get, acl_set, facl_set.
33377 2011-09-05  Bruno Haible  <bruno@clisp.org>
33379         copy-file: Try unit tests on more file systems.
33380         * tests/test-copy-file-1.sh: New file.
33381         * tests/test-copy-file-2.sh: New file.
33382         * modules/copy-file-tests (Files): Add them.
33383         (Makefile.am): Add them to TESTS.
33385         acl: Try unit tests on more file systems.
33386         * tests/test-file-has-acl-1.sh: New file.
33387         * tests/test-file-has-acl-2.sh: New file.
33388         * tests/test-set-mode-acl-1.sh: New file.
33389         * tests/test-set-mode-acl-2.sh: New file.
33390         * tests/test-copy-acl-1.sh: New file.
33391         * tests/test-copy-acl-2.sh: New file.
33392         * modules/acl-tests (Files): Add them.
33393         (Makefile.am): Add them to TESTS.
33395 2011-09-04  Bruno Haible  <bruno@clisp.org>
33397         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33398         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33399         10.
33400         (OLD_ALLOW, OLD_DENY): New macros.
33401         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33402         ACE_ACCESS_ALLOWED_ACE_TYPE.
33403         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33404         ACE_ACCESS_DENIED_ACE_TYPE.
33405         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33406         (NEW_ACE_EXECUTE): Fix value.
33407         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33408         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33409         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33410         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33411         NEW_ACE_SYNCHRONIZE): New macros.
33412         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33413         instead of acl_fromtext, acl_set, facl_set.
33414         Fixes a coreutils/tests/cp/perm failure.
33416 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33418         openat: test for fstatat (..., 0) bug
33419         Further testing with tar suggests that fstatat (..., 0)
33420         does not work in general, on AIX 7.1; see
33421         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33422         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33423         replacement fstatat (which is what older AIX releases were using
33424         anyway).
33425         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33426         use is now changed to orig_fstatat.  This was probably the right
33427         thing to do anyway.
33428         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33429         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33430         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33431         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33432         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33433         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33434         if the bug is found.
33436         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33437         This tests for another fstatat bug on AIX 7.1:
33438         fstatat (AT_FDCWD, ..., 0) does not work.  See
33439         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33440         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33441         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33442         (rpl_fstatat): Adjust so that it works around either (or both)
33443         bugs if present.
33444         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33446 2011-09-03  Karl Berry  <karl@gnu.org>
33448         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33449         in index entries.
33451 2011-09-02  Bruno Haible  <bruno@clisp.org>
33453         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33454         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33455         values of AR, ARFLAGS, RANLIB.
33456         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33458 2011-09-02  Bruno Haible  <bruno@clisp.org>
33460         Find 'ar' program that fits with --host argument.
33461         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33463 2011-09-02  Bruno Haible  <bruno@clisp.org>
33465         tests: init.sh: Support any non-GNU diff.
33466         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33467         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33468         Solaris 8.
33470 2011-09-02  Bruno Haible  <bruno@clisp.org>
33472         tests: init.sh: work also with any non-GNU diff that supports -u
33473         * tests/init.sh: Relax check for diff -u support.
33474         Rather than checking for GNU diff via --version, simply check
33475         for support for -u itself.  Useful at least on OpenBSD 4.9,
33476         AIX 7.1, IRIX 6.5, and Solaris 10.
33478 2011-09-01  Bruno Haible  <bruno@clisp.org>
33480         strtoimax, strtoumax: Document problem on HP-UX 11.
33481         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33482         * doc/posix-functions/strtoumax.texi: Likewise.
33484 2011-09-01  Bruno Haible  <bruno@clisp.org>
33486         strtoumax: Avoid link error on OSF/1 with DTK cc.
33487         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33488         defined as a function.
33489         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33490         strtoumax is defined, not whether it is declared.
33492 2011-09-01  Bruno Haible  <bruno@clisp.org>
33494         strtoimax: Avoid link error on OSF/1 with DTK cc.
33495         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33496         defined as a function.
33497         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33498         strtoimax is defined, not whether it is declared.
33500 2011-09-01  Bruno Haible  <bruno@clisp.org>
33502         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33503         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33504         as a function.
33505         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33506         whether it is declared.
33508 2011-09-01  Bruno Haible  <bruno@clisp.org>
33510         imaxabs: Avoid link error on OSF/1 with DTK cc.
33511         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33512         as a function.
33513         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33514         whether it is declared.
33516 2011-09-01  Bruno Haible  <bruno@clisp.org>
33518         Tests for module 'strtoumax'.
33519         * modules/strtoumax-tests: New file.
33520         * tests/test-strtoumax.c: New file.
33522         Tests for module 'strtoimax'.
33523         * modules/strtoimax-tests: New file.
33524         * tests/test-strtoimax.c: New file.
33526         Tests for module 'imaxdiv'.
33527         * modules/imaxdiv-tests: New file.
33528         * tests/test-imaxdiv.c: New file.
33530         Tests for module 'imaxabs'.
33531         * modules/imaxabs-tests: New file.
33532         * tests/test-imaxabs.c: New file.
33534 2011-09-01  Bruno Haible  <bruno@clisp.org>
33536         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33537         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33538         pthread_create.
33540 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33542         openat: work around AIX 7.1 fstatat issue
33543         This should fix the problem that was not properly fixed
33544         in the previous change, dated 2011-08-30.
33545         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
33546         __need_system_stat_h defined.
33547         (orig_fstatat) [HAVE_FSTATAT]: New function.
33548         (rpl_fstatat): Go back to the old way of doing things,
33549         except call orig_fstatat instead of fstatat.
33550         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
33551         Remove unnecessary check whether fstatat fills in st_size etc.
33553 2011-09-01  Bruno Haible  <bruno@clisp.org>
33555         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
33556         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
33557         just include the system's header.
33559 2011-08-31  Jim Meyering  <meyering@redhat.com>
33561         tests: avoid spurious assertion failure in test-float.c on ppc64
33562         * tests/test-float.c (test_long_double): Comment out an assertion,
33563         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
33564         with gcc-4.4.4.
33566         maint: indent with spaces, not TABs
33567         I need to get in the habit of running gnulib's "make check".
33568         Both of these would have been caught.
33569         * m4/largefile.m4: Indent with spaces, not TABs.
33570         * lib/parse-datetime.y (iso_8601_time): Likewise.
33571         Spotted by Pádraig Brady.
33573         test-parse-datetime.c: accommodate a relatively strict gcc warning
33574         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
33575         to avoid a warning from gcc's -Werror=missing-declarations.
33576         Insert a few spaces-before-funcall-parenthesis.
33578 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
33580         parse-datetime: accept ISO 8601 date and time rep with "T" separator
33581         The parser now accepts ISO 8601 date-time strings with "T" as the
33582         separator.  It has long parsed dates like "2004-02-29 16:21:42"
33583         with a space between the date and time strings.  Now it also parses
33584         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
33585         variants like "2004-02-29T16:21:42.333-07:00"
33586         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
33587         of day representation using the 'T' separator character.
33588         * doc/parse-datetime.texi (General date syntax): replace use of
33589         deprecated --iso-8601 option with --rfc-3339 in example of date
33590         command output formats that can be parsed.
33591         * tests/test-parse-datetime.c (tm_diff): New function, taken from
33592         lib/parse-datetime.y.
33593         (gmt_offset): New function.
33594         (main): Add additional test cases to validate ISO8601 extended
33595         date and time of day parsing.
33597 2011-08-31  Bruno Haible  <bruno@clisp.org>
33599         freopen: Documentation.
33600         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
33601         name.
33602         Reported by Claudio Bley <claudio.bley@gmail.com>.
33604 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
33606         freopen: Don't crash if the filename argument is NULL.
33607         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
33608         NULL.
33610 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33612         openat: work around AIX 7.1 fstatat bug
33613         Problem reported by Kevin Brott for GNU tar, in the thread containing
33614         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
33615         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
33616         FSTATAT_ST_SIZE_ETC_BROKEN.
33617         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
33618         rpl_fstatat.
33619         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
33620         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
33621         AC_CHECK_FUNCS_ONCE for fstatat.
33622         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
33623         fchmodat, mkdirat, openat and unlinkat.
33625 2011-08-30  Bruno Haible  <bruno@clisp.org>
33627         Avoid endless recursions if config.h includes some header files.
33628         * lib/fopen.c (__need_FILE): Define already before including config.h.
33629         * lib/freopen.c (__need_FILE): Likewise.
33630         * lib/open.c (__need_system_fcntl_h): Likewise.
33631         * lib/stat.c (__need_system_sys_stat_h): Likewise.
33632         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
33633         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
33635 2011-08-25  Karl Berry  <karl@gnu.org>
33637         * config/srclist.txt (ylwrap): new try.
33638         * build-aux/ylwrap: new file.
33640 2011-08-23  Bruno Haible  <bruno@clisp.org>
33642         tmpdir: Use a good default directory on native Windows.
33643         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
33644         (P_tmpdir): Default to _P_tmpdir on native Windows.
33645         (path_search): On native Windows, try the value returned by GetTempPath
33646         before trying P_tmpdir.
33647         * modules/tmpdir (Depends-on): Add pathmax.
33648         Suggested by John Darrington <john@darrington.wattle.id.au>.
33650 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
33652         doc: fix typo in README-release
33653         * top/README-release: Capitalize first word of a sentence.
33655 2011-08-19  Jim Meyering  <meyering@redhat.com>
33657         fts: do not exhaust memory when processing million-entry directories
33658         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
33659         directory would require about 256*N bytes of memory.  Thus, it was
33660         easy to construct a directory too large to be processed by any of
33661         those tools.  With this change, fts' maximum memory utilization is
33662         now limited to around 30MB.
33663         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
33664         (fts_read): When we've processed the final entry (i.e., when
33665         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
33666         using the parent entry to read any remaining entries.  Dispatch
33667         depending on what fts_build returns:
33668         - NULL+stop, aka failure: stop
33669         - NULL otherwise: move up in the dir hierarchy
33670         - non-NULL: handle this new entry
33671         (fts_build): Declare and use new local, continue_readdir.
33672         Prepare to be called from fts_read, when the entries
33673         from a partially-read directory have just been exhausted.
33674         In that case, we'll skip the opendir and instead use the parent's
33675         fts_dirp and derive dir_fd from that.
33676         Finally, in the readdir loop, if we read max_entries entries,
33677         exit the loop ensuring *not* to call closedir.  This is required
33678         so that fts_dirp can be reused on a subsequent call.
33679         Prompted by Ben England's report of memory exhaustion in find
33680         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
33682         maint: fts: move decl of `dp' down into while loop; split a long line
33683         * lib/fts.c (fts_build): No semantic change.
33685         fts: add/use new struct member, fts_dirp
33686         We are about to use this to manage any directory with
33687         too many entries to read all of them into memory at once.
33688         To do that, we'll need to save the DIR* pointer in each
33689         affected FTSENT struct.
33690         * lib/fts_.h: Include <dirent.h>.
33691         (struct FTSENT) [fts_dirp]: New member.
33692         * lib/fts.c (closedir_and_clear): Define.
33693         Use it in place of closedir so that we are sure to
33694         clear the new fts_dirp member when done with it.
33695         (fts_alloc): Initialize the new member.
33696         (fts_lfree): Free, if needed.
33698         maint: fts: give __opendir2 a new parameter and rename
33699         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
33700         than surreptitiously using sole caller's "dir_fd".
33701         (fts_opendir): Rename from __opendir2.
33703         maint: fts.c: remove __opendir2's now-unused parameter, oflag
33704         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
33706         maint: fts.c: correct off-by-one indentation
33707         * lib/fts.c (fts_build): Correct indentation, change style
33708         of a couple of block comments, and bracing style.
33710         maint: fts.c: move __opendir2 #define "up" out of function body
33711         * lib/fts.c (__opendir2): Move "up".  No semantic change.
33713         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
33714         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
33715         out for a long time and besides was useful only on BSD systems.
33717 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33719         regex: port to Stratus OpenVOS
33720         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
33721         define to empty, rather than attempting nonportable optimizations.
33722         Problem reported by Paul Green in:
33723         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
33724         and fix suggested by Eric Blake in:
33725         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
33727 2011-08-17  Eric Blake  <eblake@redhat.com>
33729         getcwd: fix test failures on mingw
33730         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
33731         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
33732         test if long directory cannot be created, and allow mingw errno.
33734         getcwd-lgpl: fix m4 to match relaxed test for BSD
33735         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
33736         (gl_FUNC_GETCWD_SIGNATURE): New macro.
33737         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
33738         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
33739         signature problem.
33741         getcwd: fix compilation on mingw64
33742         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
33743         getcwd.
33744         Reported by Marc-André Lureau.
33746         pipe2: silence compiler warning
33747         * lib/pipe2.c (pipe2): Hide label if it is not used.
33749 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
33751         relocatable-prog: fix link error
33752         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
33753         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
33754         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
33755         into modules/relocatable-lib without noticing that
33756         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
33757         also needs to build relocatable.c.
33759 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33761         getaddrinfo: fix sh typo in gai_strerrorA decl checking
33762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
33763         shell code: it contained a 'break' that was not in a loop.
33764         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
33765         via a shell-language loop; this may have been true in old Autoconf
33766         versions, but it's not true in Autoconf 2.68.  I found this bug
33767         when testing coreutils git on Solaris 8, whose shell complains
33768         about the syntax error.
33770 2011-08-12  Simon Josefsson  <simon@josefsson.org>
33772         * lib/base64.c: Fix comment to reference RFC 4648.
33773         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
33774         <gvtulder@gmail.com>.
33776 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33778         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
33780         po/Makefile.in.in: fix make -q problem
33781         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
33782         rule, since there's no file named 'check-macro-version' and its
33783         use as a file breaks make -q.
33784         (all): Don't depend on check-macro-version.
33785         (CHECK_MACRO_VERSION): New macro.
33786         (stamp-po): Use it.
33788         configmake: fix make -q problem
33789         * modules/configmake (configmake.h): Update configmake.h's time stamp
33790         even if the file does not change.  Otherwise, 'make -q' fails.
33791         Problem reported by Simon Josefsson in
33792         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
33794 2011-08-11  Jim Meyering  <meyering@redhat.com>
33796         git-version-gen: correct the advice in a comment
33797         * build-aux/git-version-gen: Correct comment.
33798         Don't recommend to list .tarball-version in .gitignore.
33800 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33802         base64: fix off-by-one buffer size bug
33803         Problem and (trivial) fix reported by Gijs van Tulder in
33804         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
33805         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
33806         * tests/test-base64.c (main): Catch the bug.
33808 2011-08-10  Eric Blake  <eblake@redhat.com>
33810         closein: correct comments
33811         * lib/closein.c (close_stdin): Improve comments.
33813 2011-08-09  Bruno Haible  <bruno@clisp.org>
33815         More tests for 'fseeko'.
33816         * tests/test-fseeko3.c: New file, from Eric Blake.
33817         * tests/test-fseeko3.sh: New file.
33818         * modules/fseeko-tests (Files): Add them.
33819         (TESTS): Add test-fseeko3.sh.
33820         (check_PROGRAMS): Add test-fseeko3.
33822 2011-08-09  Eric Blake  <eblake@redhat.com>
33824         fseeko: remove unneeded hack
33825         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
33827         fseeko: fix bug on glibc
33828         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
33829         Reported by John W. Eaton.
33831 2011-08-08  Bruno Haible  <bruno@clisp.org>
33833         unictype/base: Fix interoperability with preinstalled libunistring.
33834         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
33835         Reported by Simon Josefsson.
33837 2011-08-08  Bruno Haible  <bruno@clisp.org>
33839         iswblank: Detect declaration correctly.
33840         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
33841         AC_CHECK_DECLS invocation.
33843 2011-08-08  Bruno Haible  <bruno@clisp.org>
33845         tcgetsid: Detect declaration correctly.
33846         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
33847         AC_CHECK_DECLS invocation.
33848         Reported by Simon Josefsson.
33850 2011-08-08  Eric Blake  <eblake@redhat.com>
33852         largefile: fix typo that regressed large file support
33853         * modules/largefile (configure.ac-early): Fix section name.
33855 2011-08-06  Karl Berry  <karl@gnu.org>
33857         * MODULES.html.sh (func_all_files): _Noreturn is no longer
33858         a separate module.
33860 2011-08-05  Simon Josefsson  <simon@josefsson.org>
33862         openat: Fix warnings and commens when building unlinkat.c on Hurd.
33863         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
33864         get prototype for free.
33866 2011-08-04  Bruno Haible  <bruno@clisp.org>
33868         Tests for module 'pathmax'.
33869         * modules/pathmax-tests: New file.
33870         * tests/test-pathmax.c: New file.
33872         canonicalize-lgpl: Support larger filenames on the Hurd.
33873         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
33874         Reported by Paul Eggert.
33876         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
33877         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
33878         * lib/chdir-long.h: Include pathmax.h.
33879         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
33880         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
33881         (PATH_MAX): Remove code that is done by pathmax.h.
33882         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
33883         * lib/tmpfile.c: Add a comment.
33884         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
33885         * modules/chdir-long (Depends-on): Add pathmax.
33886         * modules/getcwd (Depends-on): Add pathmax.
33887         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
33888         is not defined.
33889         * doc/posix-headers/limits.texi: Mention the pathmax module.
33890         * NEWS: Mention the change.
33892 2011-08-02  Bruno Haible  <bruno@clisp.org>
33894         pthread_sigmask: Actually use results of gl_THREADLIB.
33895         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
33896         gl_THREADLIB, not gl_[]THREADLIB.
33897         Reported by Eric Blake.
33899 2011-08-02  Jim Meyering  <meyering@redhat.com>
33901         maint.mk: relax the default _gl_TS_function_match regexp
33902         * top/maint.mk (_gl_TS_function_match): Don't require at least one
33903         space between function name and "(" in an "extern" declaration.
33904         That would fail to match a decl with no space there: extern void foo();
33906 2011-07-31  Iain Nicol  <iain@thenicols.net>
33908         git-version-gen: document that EXTRA_DIST must include .version
33909         * build-aux/git-version-gen: In the how-to-use comment, document
33910         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
33911         will fail when run from an unpacked distribution tarball.
33913 2011-08-01  Bruno Haible  <bruno@clisp.org>
33915         wctype-h: Fix last change.
33916         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
33917         REPLACE_TOWLOWER to 0.
33918         Reported by Sam Steingold <sds@gnu.org>.
33920 2011-07-31  Bruno Haible  <bruno@clisp.org>
33922         frexpl: Update autoconf test.
33923         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
33924         according to changes of 2011-06-20.
33926 2011-07-31  Bruno Haible  <bruno@clisp.org>
33928         sys_utsname: Add support for Minix.
33929         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
33930         <sys/utsname.h>.
33931         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33932         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
33934 2011-07-31  Bruno Haible  <bruno@clisp.org>
33936         strings: Add support for Minix.
33937         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
33938         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33939         * doc/posix-headers/strings.texi: Document the Minix problem.
33941 2011-07-31  Bruno Haible  <bruno@clisp.org>
33943         wctype-h: Add support for Minix.
33944         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
33945         REPLACE_TOWLOWER.
33946         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
33947         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
33948         REPLACE_ISWCNTRL.
33950 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
33952         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
33953         This is a performance improvement for 64-bit hosts: it causes the
33954         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
33956 2011-07-31  Bruno Haible  <bruno@clisp.org>
33958         stdioext: Add support for Minix.
33959         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
33960         * lib/fpurge.c (fpurge): Likewise.
33961         * lib/freadahead.c (freadahead): Likewise.
33962         * lib/freadable.c (freadable): Likewise.
33963         * lib/freading.c (freading): Likewise.
33964         * lib/freadptr.c (freadptr): Likewise.
33965         * lib/freadseek.c (freadptrinc): Likewise.
33966         * lib/fseeko.c (rpl_fseeko): Likewise.
33967         * lib/fseterr.c (fseterr): Likewise.
33968         * lib/fwritable.c (fwritable): Likewise.
33969         * lib/fwriting.c (fwriting): Likewise.
33970         * lib/fflush.c (clear_ungetc_buffer): Update comment.
33971         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
33973 2011-07-31  Bruno Haible  <bruno@clisp.org>
33975         errno: Port to Minix.
33976         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
33977         ECONNABORTED are defined.
33978         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
33979         GNULIB_defined_ECONNABORTED): New macros.
33980         * lib/strerror-override.h (strerror_override): Test also
33981         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
33982         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
33983         ECONNABORTED.
33984         * doc/posix-headers/errno.texi: Mention the Minix problem.
33986 2011-07-31  Bruno Haible  <bruno@clisp.org>
33988         Work around declaration collisions on Minix.
33989         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
33990         defined, set REPLACE_MBSINIT.
33991         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
33992         defined, set REPLACE_MBRTOWC.
33993         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
33994         set REPLACE_MBRLEN.
33995         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
33996         defined, set REPLACE_MBSRTOWCS.
33997         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
33998         defined, set REPLACE_WCRTOMB.
33999         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
34000         defined, set REPLACE_WCSRTOMBS.
34002 2011-07-31  Bruno Haible  <bruno@clisp.org>
34004         Add support for Minix with ACK compiler.
34005         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
34006         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
34007         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
34009 2011-07-31  Bruno Haible  <bruno@clisp.org>
34011         Documentation about Minix.
34012         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
34013         * doc/glibc-headers/*.texi: Likewise.
34014         * doc/posix-functions/*.texi: Likewise.
34015         * doc/glibc-functions/*.texi: Likewise.
34017 2011-07-31  Bruno Haible  <bruno@clisp.org>
34019         snippet/warn-on-use: Fix indentation.
34020         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
34022 2011-07-25  Jim Meyering  <meyering@redhat.com>
34024         tests: test-update-copyright.sh: remove unnecessary "rm" commands
34025         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
34026         commands.
34028 2011-07-27  Jim Meyering  <meyering@redhat.com>
34030         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
34031         * top/maint.mk (gl_extract_significant_defines_): Now that
34032         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
34033         gnulib/lib/signal.in.h, and now that we recommend to
34034         define-if-undefined those two symbols in application code,
34035         we must filter them out of the "significant" list.
34036         This avoids a "make syntax-check" failure in coreutils.
34038 2011-07-26  Eric Blake  <eblake@redhat.com>
34040         warnings: add comments about previous patch
34041         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
34042         * m4/include_next.m4: Likewise.
34043         * m4/warn-on-use.m4: Likewise.
34044         * m4/warnings.m4: Likewise, and simplify use.
34045         Suggested by Stefano Lattarini.
34047         include-next, warnings: support older autoconf
34048         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
34049         AS_VAR_PUSHDEF in a way that works with older autoconf.
34050         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
34051         Reported by Daniel P. Berrange.
34053 2011-07-25  Bruno Haible  <bruno@clisp.org>
34055         fseek, ftell: Fix doc.
34056         * doc/posix-functions/fseek.texi: Reword statement about
34057         AC_SYS_LARGEFILE.
34058         * doc/posix-functions/ftell.texi: Likewise.
34060 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34061             Bruno Haible  <bruno@clisp.org>
34063         Add dependencies to the 'largefile' module.
34064         * modules/fopen (Depends-on): Add 'largefile'.
34065         * modules/freopen (Depends-on): Likewise.
34066         * modules/fseeko (Depends-on): Likewise.
34067         * modules/ftello (Depends-on): Likewise.
34068         * modules/glob (Depends-on): Likewise.
34069         * modules/lseek (Depends-on): Likewise.
34070         * modules/lstat (Depends-on): Likewise.
34071         * modules/mkostemp (Depends-on): Likewise.
34072         * modules/mkostemps (Depends-on): Likewise.
34073         * modules/mkstemp (Depends-on): Likewise.
34074         * modules/mkstemps (Depends-on): Likewise.
34075         * modules/open (Depends-on): Likewise.
34076         * modules/openat (Depends-on): Likewise.
34077         * modules/pread (Depends-on): Likewise.
34078         * modules/pwrite (Depends-on): Likewise.
34079         * modules/scandir (Depends-on): Likewise.
34080         * modules/stat (Depends-on): Likewise.
34081         * modules/tmpfile (Depends-on): Likewise.
34082         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
34083         since the containing module now depends on the largefile module.
34084         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
34085         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
34086         off_t is fixed by gnulib.
34087         * doc/posix-functions/freopen.texi: Likewise.
34088         * doc/posix-functions/fseeko.texi: Likewise.
34089         * doc/posix-functions/fstatat.texi: Likewise.
34090         * doc/posix-functions/ftello.texi: Likewise.
34091         * doc/posix-functions/glob.texi: Likewise.
34092         * doc/posix-functions/lseek.texi: Likewise.
34093         * doc/posix-functions/lstat.texi: Likewise.
34094         * doc/posix-functions/mkstemp.texi: Likewise.
34095         * doc/posix-functions/open.texi: Likewise.
34096         * doc/posix-functions/openat.texi: Likewise.
34097         * doc/posix-functions/pread.texi: Likewise.
34098         * doc/posix-functions/pwrite.texi: Likewise.
34099         * doc/posix-functions/scandir.texi: Likewise.
34100         * doc/posix-functions/stat.texi: Likewise.
34101         * doc/posix-functions/tmpfile.texi: Likewise.
34102         * doc/glibc-functions/mkostemp.texi: Likewise.
34103         * doc/glibc-functions/mkostemps.texi: Likewise.
34104         * doc/glibc-functions/mkstemps.texi: Likewise.
34106 2011-07-25  Bruno Haible  <bruno@clisp.org>
34108         fcntl: Move AC_LIBOBJ invocation to module description.
34109         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
34110         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
34112         fcntl: Remove call-in from fchdir.m4.
34113         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
34114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
34116         dup3: Remove potential call-in from fchdir.m4.
34117         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
34118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
34120         dup2: Move AC_LIBOBJ invocation to module description.
34121         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
34122         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
34123         Don't invoke AC_LIBOBJ.
34124         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
34126         dup2: Remove call-in from fchdir.m4.
34127         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
34128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
34130         fclose: Move AC_LIBOBJ invocation to module description.
34131         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
34132         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
34133         to 1.
34134         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
34136         fclose: Remove call-in from close.m4.
34137         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
34138         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
34140         close: Move AC_LIBOBJ invocation to module description.
34141         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
34142         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
34143         1.
34144         * modules/close (configure.ac): Invoke AC_LIBOBJ.
34146         close: Remove call-in from fchdir.m4.
34147         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
34148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
34150         open: Move AC_LIBOBJ invocation to module description.
34151         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
34152         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
34153         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
34155         open: Remove call-in from fchdir.m4.
34156         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
34157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
34159         fchdir: Start to remove gl_REPLACE_* idiom.
34160         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
34161         (gl_FUNC_FCHDIR): Invoke it.
34163 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34165         * lib/ftell.c (ftell): Comment out cast.
34167         close: use gl_REPLACE_FCLOSE only if defined
34168         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
34169         is defined.  The close module doesn't depend on the fclose module
34170         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
34171         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
34172         I reproduced the problem with "./gnulib-tool --test close sys_socket".
34174 2011-07-24  Jim Meyering  <meyering@redhat.com>
34176         test-select.h: avoid warning when using gcc's -Wmissing-declarations
34177         * tests/test-select.h (test_function): Declare as "static".
34179 2011-07-24  Bruno Haible  <bruno@clisp.org>
34181         doc: Mention the effects of AC_SYS_LARGEFILE.
34182         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
34183         on this function.
34184         * doc/posix-functions/aio_error.texi: Likewise.
34185         * doc/posix-functions/aio_fsync.texi: Likewise.
34186         * doc/posix-functions/aio_read.texi: Likewise.
34187         * doc/posix-functions/aio_return.texi: Likewise.
34188         * doc/posix-functions/aio_suspend.texi: Likewise.
34189         * doc/posix-functions/aio_write.texi: Likewise.
34190         * doc/posix-functions/fgetpos.texi: Likewise.
34191         * doc/posix-functions/fopen.texi: Likewise.
34192         * doc/posix-functions/freopen.texi: Likewise.
34193         * doc/posix-functions/fsetpos.texi: Likewise.
34194         * doc/posix-functions/fstatvfs.texi: Likewise.
34195         * doc/posix-functions/ftruncate.texi: Likewise.
34196         * doc/posix-functions/ftw.texi: Likewise.
34197         * doc/posix-functions/getrlimit.texi: Likewise.
34198         * doc/posix-functions/glob.texi: Likewise.
34199         * doc/posix-functions/lio_listio.texi: Likewise.
34200         * doc/posix-functions/lockf.texi: Likewise.
34201         * doc/posix-functions/mkstemp.texi: Likewise.
34202         * doc/posix-functions/mmap.texi: Likewise.
34203         * doc/posix-functions/nftw.texi: Likewise.
34204         * doc/posix-functions/openat.texi: Likewise.
34205         * doc/posix-functions/opendir.texi: Likewise.
34206         * doc/posix-functions/posix_fadvise.texi: Likewise.
34207         * doc/posix-functions/posix_fallocate.texi: Likewise.
34208         * doc/posix-functions/pread.texi: Likewise.
34209         * doc/posix-functions/pwrite.texi: Likewise.
34210         * doc/posix-functions/readdir.texi: Likewise.
34211         * doc/posix-functions/readdir_r.texi: Likewise.
34212         * doc/posix-functions/rewinddir.texi: Likewise.
34213         * doc/posix-functions/scandir.texi: Likewise.
34214         * doc/posix-functions/seekdir.texi: Likewise.
34215         * doc/posix-functions/setrlimit.texi: Likewise.
34216         * doc/posix-functions/statvfs.texi: Likewise.
34217         * doc/posix-functions/telldir.texi: Likewise.
34218         * doc/posix-functions/tmpfile.texi: Likewise.
34219         * doc/posix-functions/truncate.texi: Likewise.
34220         * doc/glibc-functions/fallocate.texi: Likewise.
34221         * doc/glibc-functions/fstatfs.texi: Likewise.
34222         * doc/glibc-functions/fts_children.texi: Likewise.
34223         * doc/glibc-functions/fts_read.texi: Likewise.
34224         * doc/glibc-functions/getdirentries.texi: Likewise.
34225         * doc/glibc-functions/mkostemp.texi: Likewise.
34226         * doc/glibc-functions/mkostemps.texi: Likewise.
34227         * doc/glibc-functions/mkstemps.texi: Likewise.
34228         * doc/glibc-functions/preadv.texi: Likewise.
34229         * doc/glibc-functions/pwritev.texi: Likewise.
34230         * doc/glibc-functions/sendfile.texi: Likewise.
34231         * doc/glibc-functions/statfs.texi: Likewise.
34233 2011-07-24  Bruno Haible  <bruno@clisp.org>
34235         doc: Fix typo.
34236         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
34238 2011-07-24  Bruno Haible  <bruno@clisp.org>
34240         doc: Mention fsusage.
34241         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
34243 2011-07-24  Bruno Haible  <bruno@clisp.org>
34245         doc: Mention new glibc headers and functions.
34246         * doc/glibc-headers/gshadow.texi: New file.
34247         * doc/glibc-functions/endsgent.texi: New file.
34248         * doc/glibc-functions/fgetsgent.texi: New file.
34249         * doc/glibc-functions/fgetsgent_r.texi: New file.
34250         * doc/glibc-functions/getsgent.texi: New file.
34251         * doc/glibc-functions/getsgent_r.texi: New file.
34252         * doc/glibc-functions/getsgnam.texi: New file.
34253         * doc/glibc-functions/getsgnam_r.texi: New file.
34254         * doc/glibc-functions/putsgent.texi: New file.
34255         * doc/glibc-functions/setsgent.texi: New file.
34256         * doc/glibc-functions/sgetsgent.texi: New file.
34257         * doc/glibc-functions/sgetsgent_r.texi: New file.
34258         * doc/glibc-functions/malloc_info.texi: New file.
34259         * doc/glibc-functions/preadv.texi: New file.
34260         * doc/glibc-functions/pwritev.texi: New file.
34261         * doc/glibc-functions/register_printf_modifier.texi: New file.
34262         * doc/glibc-functions/register_printf_specifier.texi: New file.
34263         * doc/glibc-functions/register_printf_type.texi: New file.
34264         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
34265         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
34266         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
34267         * doc/glibc-functions/pthread_getname_np.texi: New file.
34268         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
34269         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
34270         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34271         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
34272         * doc/glibc-functions/pthread_setname_np.texi: New file.
34273         * doc/glibc-functions/pthread_sigqueue.texi: New file.
34274         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
34275         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
34276         * doc/glibc-functions/qsort_r.texi: New file.
34277         * doc/glibc-functions/quick_exit.texi: New file.
34278         * doc/glibc-functions/syncfs.texi: New file.
34279         * doc/gnulib.texi: Include them.
34280         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
34281         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
34282         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
34283         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
34284         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
34285         * doc/glibc-functions/execvpe.texi: Likewise.
34287 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34289         ftell: don't include <unistd.h>
34290         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
34291         guaranteed to define off_t, and the ftell module depends on the
34292         stdio module.
34294         ftell: do not assume wraparound signed arithmetic
34295         * lib/ftell.c: Include <limits.h>.
34296         (ftell): Don't assume wraparound signed arithmetic.
34298 2011-07-24  Bruno Haible  <bruno@clisp.org>
34300         close: No longer depend on module 'fclose'.
34301         * modules/close (Depends-on): Remove fclose.
34302         * NEWS: Mention the change.
34303         Suggested by Sam Steingold <sds@gnu.org>.
34305 2011-07-24  Bruno Haible  <bruno@clisp.org>
34307         fsusage: Enable large volume support on AIX >= 5.2.
34308         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34309         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34310         instead of STAT_STATVFS.
34311         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34313         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34314         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34315         f_blocks field only on MacOS X.
34317         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34318         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34319         * modules/fsusage (Depends-on): Add largefile.
34321 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34323         * README: Modernize discussion of signed integers.
34324         Assuming overflow wraparound is no longer safe.
34325         Mention ones' complement and signed magnitude.
34327 2011-07-22  Bruno Haible  <bruno@clisp.org>
34329         select tests, pselect tests: Refactor.
34330         * tests/test-select.h: New file, extracted from tests/test-select.c.
34331         (select_fn): New type.
34332         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34333         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34334         test_pipe): Add my_select argument.
34335         (test_function): Renamed from main. Add my_select argument.
34336         * tests/test-select.c: Move most code to tests/test-select.h. Include
34337         test-select.h.
34338         * modules/select-tests (Files): Add tests/test-select.h.
34339         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34340         (my_select, main): New functions.
34341         * modules/pselect-tests (Files): Add tests/test-select.h,
34342         tests/macros.h, tests/signature.h.
34343         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34344         (configure.ac): Check for <sys/wait.h>.
34346 2011-07-22  Bruno Haible  <bruno@clisp.org>
34348         sys_select tests: Check the signature of FD_*.
34349         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34350         signature tests from here...
34351         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34352         here.
34353         * modules/sys_select-tests (Files): Add tests/signature.h.
34355 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34357         largefile: new module, replacing large-inode
34358         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34359         * MODULES.html.sh: Add largefile, remove large-inode.
34360         * modules/largefile, m4/largefile.m4: New files.
34361         * modules/large-inode, m4/large-inode.m4: Remove.
34363         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34364         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34365         implementations that use only 32 bits to count blocks.
34366         On typical hosts with 1024-byte blocks, this fails with file
34367         systems as small as 4 TiB.  Problem reported by Herb Wartens
34368         <http://debbugs.gnu.org/9140> and this should also fix a similar
34369         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34371         large-inode: New module
34372         * MODULES.html.sh: Add it.
34373         * modules/large-inode, m4/large-inode.m4: New files.
34375         extensions: Enable extensions on MacOS X 10.5 and later.
34376         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34378 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34380         file-has-acl: use acl_extended_file_nofollow if available
34381         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34382         (acl_extended_file): New macro.
34383         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34384         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34386 2011-07-21  Bruno Haible  <bruno@clisp.org>
34388         Declare system functions in a way that works with C++.
34389         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34390         declare fdopendir as extern "C".
34391         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34392         declare frexpl as extern "C".
34393         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34394         declare gai_strerror as extern "C".
34395         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34396         programs, declare gai_strerror as extern "C".
34397         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34398         declare getlogin_r as extern "C".
34399         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34400         as extern "C".
34401         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34402         declare ldexpl as extern "C".
34403         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34404         as extern "C".
34405         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34406         program, declare getmntinfo as extern "C".
34407         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34408         stpncpy as extern "C".
34409         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34410         program, declare __xpg_strerror_r as extern "C".
34411         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34412         strndup as extern "C".
34413         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34414         declare memset and bzero as extern "C".
34415         Reported by Sam Steingold <sds@gnu.org>.
34417 2011-07-12  Jim Meyering  <meyering@redhat.com>
34419         maint.mk: prohibit inclusion of "verify.h" without use
34420         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34422 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34424         timer-time: A new module to check for timer_settime()
34425         * m4/timer_time.m4: Check for the posix function.
34426         * modules/timer-time: Add the new module.
34427         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34428         Mention it.
34430 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34431             Bruno Haible  <bruno@clisp.org>
34433         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34434         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34435         not defined, assume POSIX threads and look for pthread_sigmask in
34436         $LIBS, without changing $CPPFLAGS.
34438 2011-07-19  Bruno Haible  <bruno@clisp.org>
34440         strstr: Update cross-compilation guess.
34441         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34442         CPUs, guess no, in view of glibc
34443         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34444         Suggested by Eric Blake. Reported by Reuben Thomas.
34446 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34448         getopt-gnu: suppress core dumps from detection code
34449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34450         to suppress core dumps that may well occur on glibc systems.
34451         * modules/getopt-gnu: Depend on nocrash.
34453 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34455         pthread_sigmask: ensure usleep is declared
34456         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34457         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34459 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34461         doc: Document NonStop portability issues.
34462         * doc/posix-functions/sigaction.texi (sigaction):
34463         * doc/posix-headers/signal.texi (signal.h):
34464         Document NonStop.  See Joachim Schmitz in
34465         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34467 2011-07-15  Bruno Haible  <bruno@clisp.org>
34469         ffsl, ffsll: Avoid unportable behaviour.
34470         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34472 2011-07-15  Bruno Haible  <bruno@clisp.org>
34474         ffs: More tests.
34475         * tests/test-ffs.c (NBITS): New macro.
34476         (main): Add more tests.
34477         * tests/test-ffsl.c (NBITS): New macro.
34478         (main): Add more tests.
34479         * tests/test-ffsll.c (NBITS): New macro.
34480         (main): Add more tests.
34482 2011-07-15  Eric Blake  <eblake@redhat.com>
34484         ffsl, ffsll: new modules
34485         * modules/ffsl: New file.
34486         * modules/ffsll: Likewise.
34487         * m4/ffsl.m4: Likewise.
34488         * m4/ffsll.m4: Likewise.
34489         * lib/ffsl.c: Likewise.
34490         * lib/ffsl.h: Likewise.
34491         * lib/ffsll.c: Likewise.
34492         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34493         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34494         * modules/string (Makefile.am): Substitute witnesses.
34495         * lib/strings.in.h (ffsl, ffsll): Declare.
34496         * modules/ffsl-tests: New test file.
34497         * modules/ffsll-tests: Likewise.
34498         * tests/test-ffsl.c: Likewise.
34499         * tests/test-ffsll.c: Likewise.
34500         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34501         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34502         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34504         ffs: fix m4 prerequisite
34505         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34507         ffs: avoid undefined behavior
34508         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34509         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34510         Reported by Bruno Haible.
34512 2011-07-12  Bruno Haible  <bruno@clisp.org>
34514         pthread_sigmask: Rely on module 'threadlib'.
34515         * modules/pthread_sigmask (Depends-on): Add threadlib.
34516         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34517         is defined.
34519 2011-07-12  Bruno Haible  <bruno@clisp.org>
34521         regex: Depend on module 'strcase'.
34522         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34524 2011-07-12  Jim Meyering  <meyering@redhat.com>
34526         warn-on-use: fix typo in file name
34527         * modules/snippet/warn-on-use (Files): Correct file name:
34528         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34530 2011-07-12  Bruno Haible  <bruno@clisp.org>
34532         strings: Document module.
34533         * doc/posix-headers/strings.texi: Mention module 'strings'.
34535 2011-07-12  Bruno Haible  <bruno@clisp.org>
34537         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34538         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34539         (Files, Makefile.am): Update.
34540         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34541         * modules/stdlib (Depends-on): Update.
34543 2011-07-12  Bruno Haible  <bruno@clisp.org>
34545         * NEWS: Mention the changes.
34547         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
34548         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
34549         (Files, Makefile.am): Update.
34550         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
34551         * modules/arpa_inet (Depends-on): Update.
34552         * modules/ctype (Depends-on): Update.
34553         * modules/dirent (Depends-on): Update.
34554         * modules/fcntl-h (Depends-on): Update.
34555         * modules/glob (Depends-on): Update.
34556         * modules/iconv-h (Depends-on): Update.
34557         * modules/inttypes-incomplete (Depends-on): Update.
34558         * modules/langinfo (Depends-on): Update.
34559         * modules/locale (Depends-on): Update.
34560         * modules/math (Depends-on): Update.
34561         * modules/netdb (Depends-on): Update.
34562         * modules/poll-h (Depends-on): Update.
34563         * modules/pty (Depends-on): Update.
34564         * modules/search (Depends-on): Update.
34565         * modules/signal (Depends-on): Update.
34566         * modules/spawn (Depends-on): Update.
34567         * modules/stdio (Depends-on): Update.
34568         * modules/stdlib (Depends-on): Update.
34569         * modules/string (Depends-on): Update.
34570         * modules/strings (Depends-on): Update.
34571         * modules/sys_file (Depends-on): Update.
34572         * modules/sys_ioctl (Depends-on): Update.
34573         * modules/sys_select (Depends-on): Update.
34574         * modules/sys_socket (Depends-on): Update.
34575         * modules/sys_stat (Depends-on): Update.
34576         * modules/sys_time (Depends-on): Update.
34577         * modules/sys_times (Depends-on): Update.
34578         * modules/sys_utsname (Depends-on): Update.
34579         * modules/sys_wait (Depends-on): Update.
34580         * modules/termios (Depends-on): Update.
34581         * modules/time (Depends-on): Update.
34582         * modules/unistd (Depends-on): Update.
34583         * modules/wchar (Depends-on): Update.
34584         * modules/wctype-h (Depends-on): Update.
34585         * MODULES.html.sh (Support for building libraries and executables):
34586         Update.
34588         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
34589         * modules/snippet/unused-parameter: Renamed from
34590         modules/unused-parameter.
34591         (Files, Makefile.am): Update.
34592         * build-aux/snippet/unused-parameter.h: Renamed from
34593         build-aux/unused-parameter.h.
34594         * modules/selinux-h (Depends-on): Update.
34595         * modules/unistr/base (Depends-on): Update.
34596         * MODULES.html.sh (Core language properties): Update.
34598         Rename module 'link-warning' to 'snippet/link-warning'.
34599         * modules/snippet/link-warning: Renamed from modules/link-warning.
34600         (Files, Makefile.am): Update.
34601         * build-aux/snippet/link-warning.h: Renamed from
34602         build-aux/link-warning.h.
34603         * MODULES.html.sh (Support for building libraries and executables):
34604         Update.
34606         Rename module 'c++defs' to 'snippet/c++defs'.
34607         * modules/snippet/c++defs: Renamed from modules/c++defs.
34608         (Files, Makefile.am): Update.
34609         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
34610         * modules/arpa_inet (Depends-on): Update.
34611         * modules/ctype (Depends-on): Update.
34612         * modules/dirent (Depends-on): Update.
34613         * modules/fcntl-h (Depends-on): Update.
34614         * modules/glob (Depends-on): Update.
34615         * modules/iconv-h (Depends-on): Update.
34616         * modules/langinfo (Depends-on): Update.
34617         * modules/locale (Depends-on): Update.
34618         * modules/math (Depends-on): Update.
34619         * modules/netdb (Depends-on): Update.
34620         * modules/poll-h (Depends-on): Update.
34621         * modules/pty (Depends-on): Update.
34622         * modules/search (Depends-on): Update.
34623         * modules/signal (Depends-on): Update.
34624         * modules/spawn (Depends-on): Update.
34625         * modules/stdio (Depends-on): Update.
34626         * modules/stdlib (Depends-on): Update.
34627         * modules/string (Depends-on): Update.
34628         * modules/strings (Depends-on): Update.
34629         * modules/sys_ioctl (Depends-on): Update.
34630         * modules/sys_select (Depends-on): Update.
34631         * modules/sys_socket (Depends-on): Update.
34632         * modules/sys_stat (Depends-on): Update.
34633         * modules/sys_time (Depends-on): Update.
34634         * modules/sys_wait (Depends-on): Update.
34635         * modules/termios (Depends-on): Update.
34636         * modules/time (Depends-on): Update.
34637         * modules/unistd (Depends-on): Update.
34638         * modules/wchar (Depends-on): Update.
34639         * modules/wctype-h (Depends-on): Update.
34641         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
34642         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
34643         (Files, Makefile.am): Update.
34644         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
34645         * modules/argv-iter (Depends-on): Update.
34646         * modules/arpa_inet (Depends-on): Update.
34647         * modules/dirent (Depends-on): Update.
34648         * modules/fcntl-h (Depends-on): Update.
34649         * modules/fnmatch (Depends-on): Update.
34650         * modules/getopt-posix (Depends-on): Update.
34651         * modules/glob (Depends-on): Update.
34652         * modules/iconv-h (Depends-on): Update.
34653         * modules/inttypes-incomplete (Depends-on): Update.
34654         * modules/locale (Depends-on): Update.
34655         * modules/math (Depends-on): Update.
34656         * modules/netdb (Depends-on): Update.
34657         * modules/search (Depends-on): Update.
34658         * modules/signal (Depends-on): Update.
34659         * modules/spawn (Depends-on): Update.
34660         * modules/stdio (Depends-on): Update.
34661         * modules/stdlib (Depends-on): Update.
34662         * modules/string (Depends-on): Update.
34663         * modules/strings (Depends-on): Update.
34664         * modules/sys_socket (Depends-on): Update.
34665         * modules/sys_stat (Depends-on): Update.
34666         * modules/sys_time (Depends-on): Update.
34667         * modules/sys_times (Depends-on): Update.
34668         * modules/sys_utsname (Depends-on): Update.
34669         * modules/time (Depends-on): Update.
34670         * modules/unistd (Depends-on): Update.
34671         * modules/wchar (Depends-on): Update.
34672         * MODULES.html.sh (Support for building libraries and executables):
34673         Update.
34675 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34677         Improvements on _Noreturn and related modules.
34679         modules/_Exit-tests: test _Noreturn too
34680         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
34681         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
34682         (main): Use them.
34684         stdnoreturn, stdnoreturn-tests: remove modules
34685         They're not needed here and a bit premature for use elsewhere.  See
34686         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
34687         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34688         * tests/test-stdnoreturn.c: Remove files.
34689         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
34690         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
34691         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
34692         and using noreturn.
34693         * modules/openat, modules/sigpipe-die, modules/xalloc:
34694         * modules/xmemdup0, modules/xstrtol:
34695         Remove dependency on stdnoreturn.
34697         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
34698         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
34699         Reparenthesize to avoid GCC warning.
34700         Support Microsoft's syntax.
34701         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
34703         _Noreturn-tests: remove module
34704         * modules/_Noreturn-tests: Remove.
34705         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
34706         * tests/test-_Noreturn.c: Remove.
34707         * tests/test-stdnoreturn.c: Merge from the old
34708         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
34710 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34712         _Noreturn, stdnoreturn, and related modules.
34714         * top/maint.mk: Adjust to new noreturn support.
34715         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
34716         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
34718         xalloc: use stdnoreturn.h
34719         * lib/xalloc.h: Include <stdnoreturn.h>.
34720         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34721         * modules/xalloc (Depends-on): Add stdnoreturn.
34723         xstrtol: use stdnoreturn.h
34724         * lib/xstrtol.h: Include <stdnoreturn.h>.
34725         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34726         * modules/xstrtol (Depends-on): Add stdnoreturn.
34728         xmemdup0: use stdnoreturn.h
34729         * lib/xmemdup0.h: Include <stdnoreturn.h>.
34730         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34731         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
34733         sigpipe-die: use stdnoreturn.h
34734         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
34735         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34736         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
34738         openat: use stdnoreturn.h
34739         * lib/openat.h: Include <stdnoreturn.h>.
34740         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34741         * modules/openat (Depends-on): Add stdnoreturn.
34743         * lib/openat-die.c (openat_save_fail): Modernize comment.
34745         * lib/xalloc-die.c (xalloc_die): Modernize comment.
34747         * lib/glthread/thread.h: Modernize comment.
34749         obstack: use _Noreturn
34750         * lib/obstack.c (__attribute__): Remove macro.
34751         (print_and_abort): Use _Noreturn.
34753         c-stack: use _Noreturn
34754         * lib/c-stack.c (die, overflow_handler, segv_handler):
34755         Use _Noreturn rather than __attribute__((noreturn)).
34757         argmatch-tests, exclude_tests: use _Noreturn
34758         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
34759         Remove.
34760         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
34762         stdlib: use _Noreturn
34763         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
34764         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
34765         * modules/stdlib (Depends-on): Add _Noreturn.
34766         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
34768         stdnoreturn-tests: new module
34769         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
34771         stdnoreturn: new module
34772         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
34773         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
34775         _Noreturn-tests: new module
34776         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
34778         _Noreturn: new module
34779         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
34780         New section, mentioning it.
34781         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
34783         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
34785 2011-07-11  Eric Blake  <eblake@redhat.com>
34787         ffs: new module
34788         * modules/ffs: New file.
34789         * m4/ffs.m4: Likewise.
34790         * lib/ffs.c: Likewise.
34791         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
34792         * modules/strings (Makefile.am): Substitute witness.
34793         (Depends-on): Add c++defs.
34794         * lib/strings.in.h (ffs): Declare.
34795         * modules/ffs-tests: New test file.
34796         * tests/test-ffs.c: Test new module.
34797         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34798         * doc/posix-functions/ffs.texi (ffs): Likewise.
34800         regex: avoid compiler warning
34801         * lib/regex.c (includes): Include <strings.h>, for use of
34802         strcasecmp in regcomp.c.
34803         Reported by Joachim Schmitz.
34805 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34807         stdint: respect system's intmax_t if INTMAX_MAX
34808         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
34809         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
34810         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
34811         long but int64_t is long long, and where we will clash with the
34812         system intmax_t if we override it.  See
34813         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
34814         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
34815         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
34816         similarly for UINTMAX_C.
34818 2011-07-08  Bruno Haible  <bruno@clisp.org>
34820         pthread_sigmask tests: Avoid a compiler warning.
34821         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
34822         non-zero.
34824         sigprocmask tests: A better way to avoid a compiler warning.
34825         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
34826         (main): Complain if system() returns non-zero.
34827         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
34829 2011-07-08  Bruno Haible  <bruno@clisp.org>
34831         pthread_sigmask: Work around IRIX bug.
34832         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
34833         bug.
34834         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
34835         there may be unblocked pending signals.
34836         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
34838 2011-07-08  Bruno Haible  <bruno@clisp.org>
34840         pthread_sigmask: Work around Cygwin bug.
34841         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
34842         bug.
34843         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
34844         the system's pthread_sigmask function.
34845         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
34847 2011-07-08  Bruno Haible  <bruno@clisp.org>
34849         pthread_sigmask: Work around bug in single-threaded implementation.
34850         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
34851         FreeBSD, HP-UX, Solaris bug.
34852         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
34853         * lib/pthread_sigmask.c: Include <stddef.h>.
34854         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
34855         the system's pthread_sigmask function.
34856         * modules/pthread_sigmask (configure.ac): Invoke
34857         gl_PREREQ_PTHREAD_SIGMASK.
34858         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
34859         HP-UX, Solaris.
34861 2011-07-08  Eric Blake  <eblake@redhat.com>
34863         test-sigprocmask: avoid compiler warning
34864         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
34865         * tests/test-sigprocmask.c (main): Use it to silence warning.
34866         Reported by Jim Meyering.
34868         test-snprintf: avoid compiler warning
34869         * tests/test-snprintf.c (main): Avoid shadowed declaration.
34870         * tests/test-vsnprintf.c (main): Likewise.
34871         Reported by Jim Meyering.
34873 2011-07-08  Bruno Haible  <bruno@clisp.org>
34875         Tests for module 'pthread_sigmask'.
34876         * modules/pthread_sigmask-tests: New file.
34877         * tests/test-pthread_sigmask1.c: New file, based on
34878         tests/test-sigprocmask.c.
34879         * tests/test-pthread_sigmask2.c: New file.
34881 2011-07-08  Jim Meyering  <meyering@redhat.com>
34883         test-getopt.h: avoid warning about an unused variable
34884         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
34886 2011-07-07  Jim Meyering  <meyering@redhat.com>
34888         maint: reduce list of files exempt from sc_prohibit_leading_TABs
34889         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
34890         now that it no longer contains leading TABs.
34891         Remove unused "url=FIXME" statement.
34893 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34895         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
34896         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34897         When gl_THREADLIB is not in use, assume that the POSIX sematics
34898         are desired.  This is better for Emacs, which uses POSIX semantics
34899         on GNUish and/or POSIXish platforms, and does not use threads at
34900         all otherwise.
34902         pthread_sigmask: fix typo when testing for libraries
34903         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34904         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
34906 2011-07-08  Eric Blake  <eblake@redhat.com>
34908         fts: introduce FTS_NOATIME
34909         * lib/fts_.h (FTS_NOATIME): New bit flag.
34910         (FTS_OPTIONMASK): Adjust.
34911         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
34912         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
34914 2011-07-08  Bruno Haible  <bruno@clisp.org>
34916         Tests for module 'thread'.
34917         * modules/thread-tests: New file.
34918         * tests/test-thread_self.c: New file.
34919         * tests/test-thread_create.cc: New file.
34921 2011-07-08  Bruno Haible  <bruno@clisp.org>
34923         thread: Avoid gcc warnings when using gl_thread_self().
34924         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
34925         'void *'.
34926         (gl_thread_self_pointer): Update.
34928 2011-07-07  Bruno Haible  <bruno@clisp.org>
34930         signal-c++-tests: Check declaration of pthread_sigmask.
34931         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
34932         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
34933         $(LIB_PTHREAD_SIGMASK).
34935 2011-07-07  Bruno Haible  <bruno@clisp.org>
34937         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
34938         * lib/signal.in.h (pthread_sigmask): Override if
34939         REPLACE_PTHREAD_SIGMASK is 1.
34940         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34941         REPLACE_PTHREAD_SIGMASK.
34942         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
34943         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
34944         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
34945         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34946         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
34948 2011-07-07  Bruno Haible  <bruno@clisp.org>
34950         pthread_sigmask: Ensure declaration in <signal.h>.
34951         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
34952         include <pthread.h>.
34953         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
34954         problem.
34956 2011-07-07  Bruno Haible  <bruno@clisp.org>
34958         pthread_sigmask: Document the module.
34959         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
34961 2011-07-07  Bruno Haible  <bruno@clisp.org>
34963         pthread_sigmask: Follow gnulib conventions.
34964         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
34965         gl_PTHREAD_SIGMASK.
34966         * modules/pthread_sigmask (configure.ac): Update.
34968 2011-07-07  Bruno Haible  <bruno@clisp.org>
34970         pthread_sigmask: Make declaration C++ safe.
34971         * lib/signal.in.h: In two special conditions, just do an #include_next.
34972         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34973         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
34974         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34975         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34976         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
34977         not REPLACE_PTHREAD_MASK.
34978         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
34979         not REPLACE_PTHREAD_MASK.
34980         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34982 2011-07-07  Bruno Haible  <bruno@clisp.org>
34984         pthread_sigmask: Fix return value.
34985         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
34986         * lib/pthread_sigmask.c: New file.
34987         * modules/pthread_sigmask (Files): Add it.
34988         (configure.ac): Invoke AC_LIBOBJ.
34990 2011-07-07  Eric Blake  <eblake@redhat.com>
34992         getopt: more portable argv creation
34993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
34994         const, use char arrays rather than strings.
34995         Suggested by Paul Eggert.
34997 2011-07-07  Bruno Haible  <bruno@clisp.org>
34999         Tests for module 'sigprocmask'.
35000         * modules/sigprocmask-tests: New file.
35001         * tests/test-sigprocmask.c: New file.
35003 2011-07-07  Bruno Haible  <bruno@clisp.org>
35005         float tests: Tweak.
35006         * tests/test-float.c (main): Tweak skip message.
35008 2011-07-07  Eric Blake  <eblake@redhat.com>
35010         getopt: avoid compiler warning during configure
35011         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
35012         assigning string literals to non-const pointer.
35014         getopt-gnu: avoid crash in glibc getopt
35015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
35016         * tests/test-getopt.h (test_getopt): Enhance test.
35017         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35018         * doc/posix-functions/getopt.texi (getopt): Document it.
35019         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35020         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35021         Likewise.
35023 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35025         getopt: handle W; without long options in getopt [BZ #12922]
35026         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
35027         but no long options are defined, just return 'W'.
35029 2011-07-07  Bruno Haible  <bruno@clisp.org>
35031         Avoid literal tabs.
35032         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
35033         variable containing a tab instead of a literal tab.
35034         Reported by Jim Meyering.
35036 2011-07-07  Bruno Haible  <bruno@clisp.org>
35038         Comments.
35039         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
35041 2011-07-06  Bruno Haible  <bruno@clisp.org>
35043         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
35044         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
35045         <winsock2.h>.
35046         (rpl_fd_isset, FD_ISSET): New definitions, copied from
35047         lib/sys_socket.in.h.
35048         (close, gethostname): Hide declarations from <winsock2.h>.
35049         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35050         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
35051         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
35052         (select): Don't override if gnulib's <sys/select.h> was already
35053         included.
35054         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35055         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35056         setsockopt, shutdown, select): Tweak indentation.
35058 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35060         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
35061         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
35062         in an application that does not use the sys_select module.
35064 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
35066         poll: do not return 0 on timeout=-1
35067         * lib/poll.c: Loop with yield if no events occurred.
35069 2011-07-06  Eric Blake  <eblake@redhat.com>
35071         pthread_sigmask: always replace when not using pthread
35072         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
35073         replacement when using some threading other than pthread.  Fix
35074         logic bug.
35076 2011-07-06  Bruno Haible  <bruno@clisp.org>
35078         Comments.
35079         * m4/printf.m4: Update comments about mingw.
35081 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35083         sys_select: define sigset_t more portably
35084         * lib/sys_select.in.h: Always include <sys/types.h>, since
35085         we now need sigset_t and mingw defines it there.
35086         Include <signal.h> before split inclusion guard, to avoid
35087         mishaps on Solaris, whose <signal.h> eventually includes us.
35088         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
35089         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
35090         which come from ...
35091         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35092         gl_CHECK_TYPE_SIGSET_T.
35093         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
35094         does the real work.
35095         * modules/sys_select (Depends-on): Add 'signal'.
35097         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
35098         Suggested by Bruno Haible.
35100         pselect: Use pthread_sigmask, not sigprocmask.
35101         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
35102         multithreaded apps better than sigprocmask does.
35103         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
35104         sigprocmask directly.
35106 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35108         * lib/pselect.c (pselect): Use plain name, without "rpl_".
35109         Don't #undef,  since we don't need any underlying pselect.
35110         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
35111         (Depends-on): Add select.
35112         (Link): Add $(LIBSOCKET).
35113         These changes suggested by Bruno Haible.
35115         pselect: document better
35116         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35117         * doc/posix-functions/pselect.texi (pselect): Document new module.
35119         pthread_sigmask: new module
35120         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35121         * doc/posix-functions/pthread_sigmask.texi: Document new module.
35122         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
35123         This is done only as a macro; I don't know how well that'll
35124         work for C++.  Move <sys/types.h> include before the include_next,
35125         to avoid mishap on Solaris.
35126         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
35127         * modules/signal (Makefile.am): Substitute the check's results.
35128         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
35130         test-pselect: new module
35131         * modules/pselect-tests, tests/test-pselect.c: New files.
35132         * tests/test-select.c, tests/test-sys_select-c++.cc:
35133         If TEST_PSELECT is defined, test pselect instead of testing select.
35135         * tests/test-sys_select.c (sigset_t): Test for it, too.
35136         Suggested by Bruno Haible.
35138 2011-07-05  Eric Blake  <eblake@redhat.com>
35140         snprintf: guarantee %1$d, for libintl
35141         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
35142         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35143         * doc/posix-functions/snprintf.texi (snprintf): Update.
35144         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35145         * tests/test-snprintf.c (main): Enhance test.
35146         * tests/test-vsnprintf.c (main): Likewise.
35148 2011-07-05  Jim Meyering  <meyering@redhat.com>
35150         maint: exempt stdio-read.c and stdio-write.c from the cppi check
35151         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
35152         per Bruno's request, to accommodate this idiom (no space after "#")
35153         even when the function is inside an #if block:
35154         char *
35155         gets (char *s)
35156         #undef gets
35157         {
35158           ...
35159         }
35161 2011-07-04  Jim Meyering  <meyering@redhat.com>
35163         maint: indent with spaces, not TABs, and add a rule to check this
35164         * tests/test-userspec.c: Indent with spaces, not TABs.
35165         * tests/test-argp.c: Likewise.
35166         * tests/test-c-stack2.sh: Likewise.
35167         * tests/test-parse-duration.sh: Likewise
35168         * m4/strtod.m4: Likewise.
35169         * m4/alloca.m4: Likewise.
35170         * m4/pselect.m4: Likewise.
35171         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
35173 2011-07-03  Jim Meyering  <meyering@redhat.com>
35175         maint.mk: correct omissions in prohibit_argmatch_without_use check
35176         This rule would mistakenly report that argmatch.h is included without
35177         use even when both the argmatch and invalid_arg macro were used.
35178         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
35179         of argmatch and invalid_arg.
35181 2011-07-03  Bruno Haible  <bruno@clisp.org>
35183         Comments about EINTR.
35184         * lib/safe-read.h: Explain the purpose of this module.
35185         * lib/safe-write.h: Likewise.
35186         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
35187         module.
35188         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
35189         module.
35190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35192 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35194         xnanosleep: Rewrite to use new dtotimespec module.
35195         It has the conversion code that used to be in xnanosleep.
35196         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
35197         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
35198         (TIME_T_MAX): Remove.
35199         (xnanosleep): Rewrite in terms of dtotimespec.
35200         * modules/xnanosleep (Depends-on): Add dtotimespec.
35201         Remove intprops, stdbool.
35203         timespec-add, timespec-sub: new modules
35204         * lib/timespec.h (timespec_add, timespec_sub): New decls.
35205         * lib/timespec-add.c, lib/timespec-sub.c:
35206         * modules/timespec-add, modules/timespec-sub: New files.
35208         dtotimespec: new module
35209         * lib/timespec.h (dtotimespec): New decl.
35210         * lib/dtotimespec.c, modules/dtotimespec: New files.
35212         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
35214         pselect: new module
35215         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
35216         (pselect): New decls.
35217         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
35218         since the standard pselect decl uses 'restrict'.
35219         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
35220         HAVE_PSELECT, REPLACE_PSELECT.
35221         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
35222         HAVE_PSELECT, REPLACE_PSELECT.
35223         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
35225         sys_select: don't depend on sys_socket
35226         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
35227         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
35228         This fix works on GNU and GNU-like platforms, but has not been tested
35229         on native Windows.
35230         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
35231         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
35232         gl_HEADER_SYS_SOCKET.
35233         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
35234         gl_PREREQ_SYS_H_WINSOCK2.
35236 2011-06-29  Eric Blake  <eblake@redhat.com>
35238         pipe2: fix C89 compile problem
35239         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
35240         Reported by Bruno Haible.
35242         pipe, pipe2: don't corrupt fd on error
35243         * lib/pipe.c (pipe): Leave fd unchanged on error.
35244         * lib/pipe2.c (pipe2): Likewise.
35245         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
35246         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
35248 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
35250         mmap-anon: do not use regular expressions inadvertently
35251         * m4/mmap-anon.m4: Remove trailing period from strings sought
35252         in the output.
35254 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
35256         nanosleep: fix integer overflow problem
35257         * lib/nanosleep.c (my_usleep): Don't assume signed integer
35258         arithmetic wraps around on overflow.
35260         nanosleep: simplify carrying
35261         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
35262         first call to the underyling nanosleep, not for the last one.
35263         This doesn't fix any bugs, but it simplifies the computation of
35264         the remaining delay.  Found while auditing integer overflow issues.
35266         dup2: remove test for existence of fcntl
35267         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
35268         "#if HAVE_FCNTL", in the configure-time test program.
35269         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
35270         and therefore speeds up "configure" a bit.  Found while
35271         adding the dup2 module to Emacs.
35273 2011-06-24  Eric Blake  <eblake@redhat.com>
35275         maint.mk: enhance useless header checks
35276         * top/maint.mk (_sc_header_without_use): Check both include
35277         styles.
35278         (sc_prohibit_assert_without_use)
35279         (sc_prohibit_close_stream_without_use)
35280         (sc_prohibit_getopt_without_use)
35281         (sc_prohibit_quotearg_without_use)
35282         (sc_prohibit_quote_without_use)
35283         (sc_prohibit_long_options_without_use)
35284         (sc_prohibit_inttostr_without_use)
35285         (sc_prohibit_ignore_value_without_use)
35286         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
35287         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
35288         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
35289         (sc_prohibit_hash_pjw_without_use)
35290         (sc_prohibit_safe_read_without_use)
35291         (sc_prohibit_argmatch_without_use)
35292         (sc_prohibit_canonicalize_without_use)
35293         (sc_prohibit_root_dev_ino_without_use)
35294         (sc_prohibit_openat_without_use)
35295         (sc_prohibit_c_ctype_without_use)
35296         (sc_prohibit_signal_without_use)
35297         (sc_prohibit_stdio--_without_use)
35298         (sc_prohibit_stdio-safer_without_use)
35299         (sc_prohibit_strings_without_use)
35300         (sc_prohibit_intprops_without_use)
35301         (sc_prohibit_stddef_without_use)
35302         (sc_prohibit_xfreopen_without_use): Update clients.
35304 2011-06-24  Jim Meyering  <meyering@redhat.com>
35306         syntax-check: keep one maint.mk rule in sync with its header
35307         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35308         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35309         I prefer to avoid temporary files here, so use <(...), but that
35310         is not supported by /bin/sh, so...
35311         (SHELL): Define to /bin/bash.
35313 2011-06-24  Eric Blake  <eblake@redhat.com>
35315         maint.mk: update sc_prohibit_intprops_without_use
35316         * top/maint.mk (_intprops_names): Match recent changes.
35318 2011-06-24  Bruno Haible  <bruno@clisp.org>
35320         strerror-override: No-op tweak.
35321         * lib/strerror-override.h (strerror_override): Reorder conditions,
35322         for consistency with lib/strerror-override.c.
35324 2011-06-23  Eric Blake  <eblake@redhat.com>
35326         maint.mk: test further PATH_MAX issues
35327         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35328         (sc_prohibit_path_max_allocation): ...and also test alloca.
35329         Suggested by Jim Meyering.
35331 2011-06-22  Eric Blake  <eblake@redhat.com>
35333         maint.mk: add syntax-check to avoid char[PATH_MAX]
35334         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35336         stat: be robust to PATH_MAX definition
35337         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35338         * modules/stat (Depends-on): Add verify.
35340         link: work around IRIX bug
35341         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35342         * lib/link.c (rpl_link): Work around it.
35343         * tests/test-link.h (test_link): Enhance test.
35344         * doc/posix-functions/link.texi (link): Document the bug.
35346         getopt: silence clang warning
35347         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35348         dereference.
35349         Reported by Gustavo Martin Domato.
35351 2011-06-22  Jim Meyering  <meyering@redhat.com>
35353         bootstrap: do not insert a blank line into each .gitignore file
35354         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35356 2011-06-21  Eric Blake  <eblake@redhat.com>
35358         perror: test for output mismatch
35359         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35360         perror on IRIX.
35362         strerror_r: fix OpenBSD behavior on out-of-range
35363         * lib/strerror_r.c (strerror_r): Always use maximal string.
35364         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35366         strerror_r: fix OpenBSD behavior on 0
35367         * lib/strerror-override.c (strerror_override): Also override 0
35368         when needed.
35369         * lib/strerror-override.h (strerror_override): Likewise.
35370         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35371         earlier.
35372         * lib/strerror_r.c (strerror_r): Likewise.
35373         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35374         behavior...
35375         (gl_FUNC_STRERROR_0): ...into new macro.
35376         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35377         is overridden.
35378         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35379         * modules/strerror-override (Files): Add strerror.m4.
35380         (configure.ac): Also provide override for 0 when needed.
35381         * doc/posix-functions/strerror.texi (strerror): Document this.
35382         * doc/posix-functions/perror.texi (perror): Likewise.
35384         perror: adjust array size
35385         * modules/perror (Depends-on): Add strerror-override.
35386         * lib/perror.c (perror): Use it to avoid magic number.
35388         strerror-override: reduce size
35389         * lib/strerror-override.c (strerror_override): Use fewer lines.
35391 2011-06-20  Bruno Haible  <bruno@clisp.org>
35393         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35394         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35396 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35398         alloca: port to compilers that can optimize like GCC 4.6.0
35399         * lib/alloca.c (find_stack_direction): New signature, taken from
35400         Autoconf git.  This works with GCC 4.6.0.  This code should never
35401         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35402         be used with other compilers that optimize as well as GCC 4.6.0 does.
35403         (alloca): Adjust to new signature.
35404         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35405         New macro, which patches Autoconf in a similar way.
35407         c-stack: stop worrying about stack direction
35408         * lib/c-stack.c (find_stack_direction): Remove.
35409         (segv_handler): Don't worry about stack direction growth, as it's
35410         too much of a pain to configure this correctly, given how compilers
35411         are optimizing-away our stack-growth detection code.  Instead, assume
35412         that any access to just before or just after the stack is OK.
35413         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35414         Don't require AC_FUNC_ALLOCA; no longer needed.
35416 2011-06-20  Eric Blake  <eblake@redhat.com>
35418         test-stat: don't allocate PATH_MAX bytes
35419         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35420         PATH_MAX-sized buffer.
35421         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35422         * modules/stat-tests (Depends-on): Likewise.
35423         * tests/test-fstatat.c (includes): Drop pathmax.h.
35424         * tests/test-stat.c (includes): Likewise.
35425         Reported by Bruno Haible.
35427 2011-06-20  Bruno Haible  <bruno@clisp.org>
35429         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35430         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35431         * lib/float.c: New file.
35432         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35433         REPLACE_FLOAT_LDBL.
35434         * modules/float (Files): Add lib/float.c.
35435         (configure.ac): Invoke AC_LIBOBJ.
35436         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35438 2011-06-20  Bruno Haible  <bruno@clisp.org>
35440         Tests for module 'float'.
35441         * modules/float-tests: New file.
35442         * tests/test-float.c: New file.
35444 2011-06-19  Bruno Haible  <bruno@clisp.org>
35446         isinf: Coding style.
35447         * lib/isinf.c: Use GNU coding style.
35449 2011-06-19  Bruno Haible  <bruno@clisp.org>
35451         linkat test: Avoid test failure on AIX 7.1.
35452         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35453         * tests/test-link.h (test_link): Likewise.
35455 2011-06-19  Bruno Haible  <bruno@clisp.org>
35457         pread test: Avoid test failure on OpenBSD 4.9.
35458         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35460 2011-06-19  Bruno Haible  <bruno@clisp.org>
35462         sprintf-posix: Fix test failure on AIX 7.1.
35463         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35464         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35465         on AIX.
35466         * doc/posix-functions/fprintf.texi: Likewise.
35467         * doc/posix-functions/printf.texi: Likewise.
35468         * doc/posix-functions/snprintf.texi: Likewise.
35469         * doc/posix-functions/sprintf.texi: Likewise.
35470         * doc/posix-functions/vdprintf.texi: Likewise.
35471         * doc/posix-functions/vfprintf.texi: Likewise.
35472         * doc/posix-functions/vprintf.texi: Likewise.
35473         * doc/posix-functions/vsnprintf.texi: Likewise.
35474         * doc/posix-functions/vsprintf.texi: Likewise.
35476 2011-06-19  Bruno Haible  <bruno@clisp.org>
35478         roundl-ieee: Fix test failure on AIX 7.1.
35479         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35480         * doc/posix-functions/roundl.texi: Mention problem with negative
35481         arguments.
35483 2011-06-19  Bruno Haible  <bruno@clisp.org>
35485         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35486         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35487         * doc/posix-functions/round.texi: Mention problem with negative
35488         arguments.
35489         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35491 2011-06-19  Bruno Haible  <bruno@clisp.org>
35493         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35495         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35496         * doc/posix-functions/roundf.texi: Mention problem with negative
35497         arguments.
35498         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35500 2011-06-19  Bruno Haible  <bruno@clisp.org>
35502         ceilf-ieee: Work around bug on MacOS X 10.5.
35503         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35505         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35506         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35507         IEEE compliant, avoid compiler optimizations.
35508         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35509         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35510         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35511         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35512         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35513         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35514         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35515         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35516         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35517         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35519 2011-06-19  Bruno Haible  <bruno@clisp.org>
35521         ceilf-ieee: Work around bug on AIX 7.1.
35522         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35523         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35525 2011-06-19  Bruno Haible  <bruno@clisp.org>
35527         ceil-ieee: Work around bug on AIX 7.1.
35528         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35529         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35531 2011-06-18  Bruno Haible  <bruno@clisp.org>
35533         fsync test: Avoid test failure on MacOS X and AIX.
35534         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35535         EINVAL.
35537 2011-06-18  Bruno Haible  <bruno@clisp.org>
35539         openat, fdopendir tests: Fix link errors.
35540         * modules/openat-tests (Depends-on): Add progname.
35541         * modules/fdopendir-tests (Depends-on): Likewise.
35542         * tests/test-fchownat.c: Include progname.h.
35543         (main): Call set_program_name.
35544         * tests/test-fstatat.c: Include progname.h.
35545         (main): Call set_program_name.
35546         * tests/test-mkdirat.c: Include progname.h.
35547         (main): Call set_program_name.
35548         * tests/test-openat.c: Include progname.h.
35549         (main): Call set_program_name.
35550         * tests/test-unlinkat.c: Include progname.h.
35551         (main): Call set_program_name.
35552         * tests/test-fdopendir.c: Include progname.h.
35553         (main): Call set_program_name.
35555 2011-06-18  Bruno Haible  <bruno@clisp.org>
35557         Doc update.
35558         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
35559         HP-UX.
35560         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
35562 2011-06-18  Bruno Haible  <bruno@clisp.org>
35564         getcwd tests: Avoid compilation error on HP-UX 11.31.
35565         * modules/getcwd-tests (Depends-on): Add pathmax.
35566         * tests/test-getcwd.c: Include pathmax.h.
35568 2011-06-18  Bruno Haible  <bruno@clisp.org>
35570         isfinite, isinf: Fix link error on AIX 6 and 7.
35571         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
35572         needed, also test the macro with a 'float' argument.
35573         * m4/isinf.m4 (gl_ISINF): Likewise.
35575 2011-06-18  Bruno Haible  <bruno@clisp.org>
35577         getloadavg: Don't clobber LIBS. Regression from previous commit.
35578         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
35579         AC_CHECK_LIB from here...
35580         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
35581         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
35582         gl_func_getloadavg_done.
35583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35585 2011-06-18  Bruno Haible  <bruno@clisp.org>
35587         clean-temp: Improve documentation.
35588         * lib/clean-temp.h: Explain better how to use this module.
35589         Reported by John Darrington <john@darrington.wattle.id.au>.
35591 2011-06-17  Bruno Haible  <bruno@clisp.org>
35593         pread, pwrite: Avoid cc warning on AIX.
35594         * lib/unistd.in.h (pread): Undefine before defining as a macro.
35595         (pwrite): Likewise.
35597 2011-06-17  Bruno Haible  <bruno@clisp.org>
35599         spawn-pipe tests: Fix link error.
35600         * tests/test-spawn-pipe-child.c: Undefine fprintf.
35601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35603 2011-06-17  Bruno Haible  <bruno@clisp.org>
35605         Tests: Remove unnecessary dependency.
35606         * modules/canonicalize-tests (Depends-on): Remove progname.
35607         * modules/chown-tests (Depends-on): Likewise.
35608         * modules/dirname-tests (Depends-on): Likewise.
35609         * modules/fdopendir-tests (Depends-on): Likewise.
35610         * modules/fdutimensat-tests (Depends-on): Likewise.
35611         * modules/hash-tests (Depends-on): Likewise.
35612         * modules/lchown-tests (Depends-on): Likewise.
35613         * modules/linkat-tests (Depends-on): Likewise.
35614         * modules/renameat-tests (Depends-on): Likewise.
35615         * modules/spawn-pipe-tests (Depends-on): Likewise.
35616         * modules/utimensat-tests (Depends-on): Likewise.
35618 2011-06-17  Bruno Haible  <bruno@clisp.org>
35620         spawn-pipe tests: Fix link error.
35621         * tests/test-spawn-pipe-child.c: Undefine fflush.
35623 2011-06-17  Bruno Haible  <bruno@clisp.org>
35625         Fix tests link errors.
35626         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
35627         * modules/chown-tests (Makefile.am): Don't link test-chown with
35628         LIBINTL.
35629         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
35630         LIBINTL.
35631         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
35632         LIBINTL.
35633         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
35634         LIBINTL.
35636 2011-06-16  Bruno Haible  <bruno@clisp.org>
35638         crypto/gc-sha1: Fix recent regression.
35639         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
35640         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
35642         crypto/gc-md5: Fix recent regression.
35643         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
35645         crypto/gc-md4: Fix recent regression.
35646         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
35647         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
35649         crypto/gc-arctwo: Fix recent regression.
35650         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
35651         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
35653         crypto/gc-rijndael: Fix recent regression.
35654         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
35655         (configure.ac): Invoke AC_LIBOBJ here.
35656         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
35657         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35659         crypto/gc-hmac-sha1: Fix recent regression.
35660         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
35661         (configure.ac): Invoke AC_LIBOBJ here.
35662         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
35663         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35665         crypto/gc-hmac-md5: Fix recent regression.
35666         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
35667         (configure.ac): Invoke AC_LIBOBJ here.
35668         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
35669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35671         crypto/gc-des: Fix recent regression.
35672         * modules/crypto/gc-des (Files): Remove m4/des.m4.
35673         (configure.ac): Invoke AC_LIBOBJ here.
35674         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
35675         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35677         crypto/gc-arcfour: Fix recent regression.
35678         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
35679         (configure.ac): Invoke AC_LIBOBJ here.
35680         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
35681         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35683 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
35685         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
35686         After the 2011-05-21 change, this macro requires
35687         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
35688         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35690 2011-06-16  Bruno Haible  <bruno@clisp.org>
35692         fprintftime: Move AC_LIBOBJ invocations to module description.
35693         * m4/fprintftime.m4: Remove file.
35694         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
35695         (configure.ac): Remove gl_FPRINTFTIME call.
35696         (Makefile.am): Augment lib_SOURCES.
35697         Reported by Jim Meyering.
35699 2011-06-16  Bruno Haible  <bruno@clisp.org>
35701         tmpfile-safer: Finish 2011-05-23 commit.
35702         * m4/stdio-safer.m4: Really remove file.
35703         Reported by Jim Meyering.
35705 2011-06-16  Bruno Haible  <bruno@clisp.org>
35707         syntax-check: Fix typo.
35708         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
35709         printf-posix.m4.
35710         Reported by Jim Meyering.
35712 2011-06-13  Jim Meyering  <meyering@redhat.com>
35714         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
35715         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
35717 2011-05-23  Bruno Haible  <bruno@clisp.org>
35719         yesno: Move AC_LIBOBJ invocations to module description.
35720         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
35721         * modules/yesno (Makefile.am): Augment lib_SOURCES.
35723 2011-05-23  Bruno Haible  <bruno@clisp.org>
35725         xstrtol: Move AC_LIBOBJ invocations to module description.
35726         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
35727         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
35729 2011-05-23  Bruno Haible  <bruno@clisp.org>
35731         xstrtold: Move AC_LIBOBJ invocations to module description.
35732         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
35733         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
35735 2011-05-23  Bruno Haible  <bruno@clisp.org>
35737         xstrtod: Move AC_LIBOBJ invocations to module description.
35738         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
35739         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
35741 2011-05-23  Bruno Haible  <bruno@clisp.org>
35743         xnanosleep: Move AC_LIBOBJ invocations to module description.
35744         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
35745         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
35747 2011-05-23  Bruno Haible  <bruno@clisp.org>
35749         xgetcwd: Move AC_LIBOBJ invocations to module description.
35750         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
35751         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
35753 2011-05-23  Bruno Haible  <bruno@clisp.org>
35755         xalloc: Move AC_LIBOBJ invocations to module description.
35756         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
35757         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
35759 2011-05-23  Bruno Haible  <bruno@clisp.org>
35761         write-any-file: Move AC_LIBOBJ invocations to module description.
35762         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
35763         invocation.
35764         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
35766 2011-05-23  Bruno Haible  <bruno@clisp.org>
35768         utimens: Move AC_LIBOBJ invocations to module description.
35769         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
35770         * modules/utimens (Makefile.am): Augment lib_SOURCES.
35772 2011-05-23  Bruno Haible  <bruno@clisp.org>
35774         utimecmp: Move AC_LIBOBJ invocations to module description.
35775         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
35776         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
35778 2011-05-23  Bruno Haible  <bruno@clisp.org>
35780         userspec: Move AC_LIBOBJ invocations to module description.
35781         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
35782         * modules/userspec (Makefile.am): Augment lib_SOURCES.
35784 2011-05-23  Bruno Haible  <bruno@clisp.org>
35786         unlinkdir: Move AC_LIBOBJ invocations to module description.
35787         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
35788         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
35790 2011-05-23  Bruno Haible  <bruno@clisp.org>
35792         unistd-safer: Move AC_LIBOBJ invocations to module description.
35793         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
35794         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
35796 2011-05-23  Bruno Haible  <bruno@clisp.org>
35798         tempname: Move AC_LIBOBJ invocations to module description.
35799         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
35800         * modules/tempname (Makefile.am): Augment lib_SOURCES.
35802 2011-05-23  Bruno Haible  <bruno@clisp.org>
35804         strftime: Move AC_LIBOBJ invocations to module description.
35805         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
35806         * modules/strftime (Makefile.am): Augment lib_SOURCES.
35808 2011-05-23  Bruno Haible  <bruno@clisp.org>
35810         stdlib-safer: Move AC_LIBOBJ invocations to module description.
35811         * m4/stdlib-safer.m4: Remove file.
35812         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
35813         (configure.ac): Remove gl_STDLIB_SAFER call.
35814         (Makefile.am): Augment lib_SOURCES.
35816 2011-05-23  Bruno Haible  <bruno@clisp.org>
35818         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
35819         * m4/stdio-safer.m4: Remove file.
35820         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
35821         (configure.ac): Remove gl_TMPFILE_SAFER call.
35822         (Makefile.am): Augment lib_SOURCES.
35824 2011-05-23  Bruno Haible  <bruno@clisp.org>
35826         popen-safer: Move AC_LIBOBJ invocations to module description.
35827         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
35828         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
35829         (configure.ac): Remove gl_POPEN_SAFER call.
35830         (Makefile.am): Augment lib_SOURCES.
35832 2011-05-23  Bruno Haible  <bruno@clisp.org>
35834         freopen-safer: Move AC_LIBOBJ invocations to module description.
35835         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
35836         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
35837         (configure.ac): Remove gl_FREOPEN_SAFER call.
35838         (Makefile.am): Augment lib_SOURCES.
35840 2011-05-23  Bruno Haible  <bruno@clisp.org>
35842         fopen-safer: Move AC_LIBOBJ invocations to module description.
35843         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
35844         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
35845         (configure.ac): Remove gl_FOPEN_SAFER call.
35846         (Makefile.am): Augment lib_SOURCES.
35848 2011-05-23  Bruno Haible  <bruno@clisp.org>
35850         crypto/sha512: Move AC_LIBOBJ invocations to module description.
35851         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
35852         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
35854 2011-05-23  Bruno Haible  <bruno@clisp.org>
35856         crypto/sha256: Move AC_LIBOBJ invocations to module description.
35857         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
35858         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
35860 2011-05-23  Bruno Haible  <bruno@clisp.org>
35862         crypto/sha1: Move AC_LIBOBJ invocations to module description.
35863         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
35864         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
35866 2011-05-23  Bruno Haible  <bruno@clisp.org>
35868         settime: Move AC_LIBOBJ invocations to module description.
35869         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
35870         * modules/settime (Makefile.am): Augment lib_SOURCES.
35872 2011-05-23  Bruno Haible  <bruno@clisp.org>
35874         savedir: Move AC_LIBOBJ invocations to module description.
35875         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
35876         * modules/savedir (Makefile.am): Augment lib_SOURCES.
35878 2011-05-23  Bruno Haible  <bruno@clisp.org>
35880         save-cwd: Move AC_LIBOBJ invocations to module description.
35881         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
35882         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
35884 2011-05-23  Bruno Haible  <bruno@clisp.org>
35886         same: Move AC_LIBOBJ invocations to module description.
35887         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
35888         * modules/same (Makefile.am): Augment lib_SOURCES.
35890 2011-05-23  Bruno Haible  <bruno@clisp.org>
35892         safe-write: Move AC_LIBOBJ invocations to module description.
35893         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
35894         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
35895         instead of gl_SAFE_WRITE.
35896         (Makefile.am): Augment lib_SOURCES.
35898 2011-05-23  Bruno Haible  <bruno@clisp.org>
35900         safe-read: Move AC_LIBOBJ invocations to module description.
35901         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
35902         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
35903         of gl_SAFE_READ.
35904         (Makefile.am): Augment lib_SOURCES.
35906 2011-05-23  Bruno Haible  <bruno@clisp.org>
35908         safe-alloc: Move AC_LIBOBJ invocations to module description.
35909         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
35910         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
35912 2011-05-23  Bruno Haible  <bruno@clisp.org>
35914         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
35915         * m4/rijndael.m4: Remove file.
35916         * modules/crypto/rijndael (Files): Remove it.
35917         (configure.ac): Remove gl_RIJNDAEL call.
35918         (Makefile.am): Augment lib_SOURCES.
35920 2011-05-23  Bruno Haible  <bruno@clisp.org>
35922         readtokens: Move AC_LIBOBJ invocations to module description.
35923         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
35924         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
35926 2011-05-23  Bruno Haible  <bruno@clisp.org>
35928         read-file: Move AC_LIBOBJ invocations to module description.
35929         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
35930         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
35931         of gl_FUNC_READ_FILE.
35932         (Makefile.am): Augment lib_SOURCES.
35934 2011-05-23  Bruno Haible  <bruno@clisp.org>
35936         quotearg: Move AC_LIBOBJ invocations to module description.
35937         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
35938         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
35940 2011-05-23  Bruno Haible  <bruno@clisp.org>
35942         quote: Move AC_LIBOBJ invocations to module description.
35943         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
35944         * modules/quote (Makefile.am): Augment lib_SOURCES.
35946 2011-05-23  Bruno Haible  <bruno@clisp.org>
35948         posixver: Move AC_LIBOBJ invocations to module description.
35949         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
35950         * modules/posixver (Makefile.am): Augment lib_SOURCES.
35952 2011-05-23  Bruno Haible  <bruno@clisp.org>
35954         posixtm: Move AC_LIBOBJ invocations to module description.
35955         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
35956         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
35958 2011-05-23  Bruno Haible  <bruno@clisp.org>
35960         physmem: Move AC_LIBOBJ invocations to module description.
35961         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
35962         * modules/physmem (Makefile.am): Augment lib_SOURCES.
35964 2011-05-23  Bruno Haible  <bruno@clisp.org>
35966         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
35967         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
35968         invocation.
35969         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
35971 2011-05-23  Bruno Haible  <bruno@clisp.org>
35973         mpsort: Move AC_LIBOBJ invocations to module description.
35974         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
35975         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
35977 2011-05-23  Bruno Haible  <bruno@clisp.org>
35979         modechange: Move AC_LIBOBJ invocations to module description.
35980         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
35981         * modules/modechange (Makefile.am): Augment lib_SOURCES.
35983 2011-05-23  Bruno Haible  <bruno@clisp.org>
35985         mkdir-p: Move AC_LIBOBJ invocations to module description.
35986         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
35987         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
35989 2011-05-23  Bruno Haible  <bruno@clisp.org>
35991         mkancesdirs: Move AC_LIBOBJ invocations to module description.
35992         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
35993         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
35995 2011-05-23  Bruno Haible  <bruno@clisp.org>
35997         mgetgroups: Move AC_LIBOBJ invocations to module description.
35998         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
35999         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
36001 2011-05-23  Bruno Haible  <bruno@clisp.org>
36003         memxor: Move AC_LIBOBJ invocations to module description.
36004         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
36005         * modules/memxor (Makefile.am): Augment lib_SOURCES.
36007 2011-05-23  Bruno Haible  <bruno@clisp.org>
36009         memcoll: Move AC_LIBOBJ invocations to module description.
36010         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
36011         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
36013 2011-05-23  Bruno Haible  <bruno@clisp.org>
36015         memcasecmp: Move AC_LIBOBJ invocations to module description.
36016         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
36017         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
36019 2011-05-23  Bruno Haible  <bruno@clisp.org>
36021         crypto/md5: Move AC_LIBOBJ invocations to module description.
36022         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
36023         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
36025 2011-05-23  Bruno Haible  <bruno@clisp.org>
36027         crypto/md4: Move AC_LIBOBJ invocations to module description.
36028         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
36029         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
36031 2011-05-23  Bruno Haible  <bruno@clisp.org>
36033         crypto/md2: Move AC_LIBOBJ invocations to module description.
36034         * m4/md2.m4: Remove file.
36035         * modules/crypto/md2 (Files): Remove it.
36036         (configure.ac): Remove gl_MD2 call.
36037         (Makefile.am): Augment lib_SOURCES.
36039 2011-05-23  Bruno Haible  <bruno@clisp.org>
36041         long-options: Move AC_LIBOBJ invocations to module description.
36042         * m4/long-options.m4: Remove file.
36043         * modules/long-options (Files): Remove it.
36044         (configure.ac): Remove gl_LONG_OPTIONS call.
36045         (Makefile.am): Augment lib_SOURCES.
36047 2011-05-23  Bruno Haible  <bruno@clisp.org>
36049         i-ring: Move AC_LIBOBJ invocations to module description.
36050         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
36051         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
36053 2011-05-23  Bruno Haible  <bruno@clisp.org>
36055         idcache: Move AC_LIBOBJ invocations to module description.
36056         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
36057         * modules/idcache (Makefile.am): Augment lib_SOURCES.
36059 2011-05-23  Bruno Haible  <bruno@clisp.org>
36061         human: Move AC_LIBOBJ invocations to module description.
36062         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
36063         * modules/human (Makefile.am): Augment lib_SOURCES.
36065 2011-05-23  Bruno Haible  <bruno@clisp.org>
36067         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
36068         * m4/hmac-sha1.m4: Remove file.
36069         * modules/crypto/hmac-sha1 (Files): Remove it.
36070         (configure.ac): Remove gl_HMAC_SHA1 call.
36071         (Makefile.am): Augment lib_SOURCES.
36073 2011-05-23  Bruno Haible  <bruno@clisp.org>
36075         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
36076         * m4/hmac-md5.m4: Remove file.
36077         * modules/crypto/hmac-md5 (Files): Remove it.
36078         (configure.ac): Remove gl_HMAC_MD5 call.
36079         (Makefile.am): Augment lib_SOURCES.
36081 2011-05-23  Bruno Haible  <bruno@clisp.org>
36083         hash: Move AC_LIBOBJ invocations to module description.
36084         * m4/hash.m4: Remove file.
36085         * modules/hash (Files): Remove it.
36086         (configure.ac): Remove gl_HASH call.
36087         (Makefile.am): Augment lib_SOURCES.
36089 2011-05-23  Bruno Haible  <bruno@clisp.org>
36091         hard-locale: Move AC_LIBOBJ invocations to module description.
36092         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
36093         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
36095 2011-05-23  Bruno Haible  <bruno@clisp.org>
36097         getugroups: Move AC_LIBOBJ invocations to module description.
36098         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
36099         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
36101 2011-05-23  Bruno Haible  <bruno@clisp.org>
36103         gettime: Move AC_LIBOBJ invocations to module description.
36104         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
36105         * modules/gettime (Makefile.am): Augment lib_SOURCES.
36107 2011-05-23  Bruno Haible  <bruno@clisp.org>
36109         getndelim2: Move AC_LIBOBJ invocations to module description.
36110         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
36111         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
36113 2011-05-23  Bruno Haible  <bruno@clisp.org>
36115         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
36116         * m4/gc-pbkdf2-sha1.m4: Remove file.
36117         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
36118         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
36119         (Makefile.am): Augment lib_SOURCES.
36121 2011-05-23  Bruno Haible  <bruno@clisp.org>
36123         fts: Move AC_LIBOBJ invocations to module description.
36124         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
36125         * modules/fts (configure.ac): ... to here.
36127 2011-05-23  Bruno Haible  <bruno@clisp.org>
36129         file-type: Move AC_LIBOBJ invocations to module description.
36130         * m4/file-type.m4: Remove file.
36131         * modules/file-type (Files): Remove it.
36132         (configure.ac): Remove gl_FILE_TYPE call.
36133         (Makefile.am): Augment lib_SOURCES.
36135 2011-05-23  Bruno Haible  <bruno@clisp.org>
36137         filenamecat*: Respect rules for use of AC_LIBOBJ.
36138         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
36139         Remove AC_LIBOBJ invocation.
36140         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
36141         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
36143 2011-05-23  Bruno Haible  <bruno@clisp.org>
36145         filemode: Move AC_LIBOBJ invocations to module description.
36146         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
36147         * modules/filemode (Makefile.am): Augment lib_SOURCES.
36149 2011-05-23  Bruno Haible  <bruno@clisp.org>
36151         openat-safer: Move AC_LIBOBJ invocations to module description.
36152         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
36153         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
36155 2011-05-23  Bruno Haible  <bruno@clisp.org>
36157         fcntl-safer: Move AC_LIBOBJ invocations to module description.
36158         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
36159         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
36161 2011-05-23  Bruno Haible  <bruno@clisp.org>
36163         exclude: Move AC_LIBOBJ invocations to module description.
36164         * m4/exclude.m4: Remove file.
36165         * modules/exclude (Files): Remove it.
36166         (configure.ac): Remove gl_EXCLUDE call.
36167         (Makefile.am): Augment lib_SOURCES.
36169 2011-05-23  Bruno Haible  <bruno@clisp.org>
36171         dirname*: Respect rules for use of AC_LIBOBJ.
36172         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
36173         invocations.
36174         * modules/dirname (Makefile.am): Augment lib_SOURCES.
36175         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
36177 2011-05-23  Bruno Haible  <bruno@clisp.org>
36179         dirent-safer: Move AC_LIBOBJ invocations to module description.
36180         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
36181         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
36183 2011-05-23  Bruno Haible  <bruno@clisp.org>
36185         crypto/des: Move AC_LIBOBJ invocations to module description.
36186         * m4/des.m4: Remove file.
36187         * modules/crypto/des (Files): Remove it.
36188         (configure.ac): Remove gl_DES call.
36189         (Makefile.am): Augment lib_SOURCES.
36191 2011-05-23  Bruno Haible  <bruno@clisp.org>
36193         cycle-check: Move AC_LIBOBJ invocations to module description.
36194         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
36195         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
36197 2011-05-23  Bruno Haible  <bruno@clisp.org>
36199         c-strtold: Move AC_LIBOBJ invocations to module description.
36200         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
36201         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
36203 2011-05-23  Bruno Haible  <bruno@clisp.org>
36205         c-strtod: Move AC_LIBOBJ invocations to module description.
36206         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
36207         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
36209 2011-05-23  Bruno Haible  <bruno@clisp.org>
36211         crc: Move AC_LIBOBJ invocations to module description.
36212         * m4/crc.m4: Remove file.
36213         * modules/crc (Files): Remove it.
36214         (configure.ac): Remove gl_CRC call.
36215         (Makefile.am): Augment lib_SOURCES.
36217 2011-05-23  Bruno Haible  <bruno@clisp.org>
36219         close-stream: Move AC_LIBOBJ invocations to module description.
36220         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
36221         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
36223 2011-05-23  Bruno Haible  <bruno@clisp.org>
36225         closeout: Move AC_LIBOBJ invocations to module description.
36226         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
36227         * modules/closeout (Makefile.am): Augment lib_SOURCES.
36229 2011-05-23  Bruno Haible  <bruno@clisp.org>
36231         closein: Move AC_LIBOBJ invocations to module description.
36232         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
36233         * modules/closein (Makefile.am): Augment lib_SOURCES.
36235 2011-05-23  Bruno Haible  <bruno@clisp.org>
36237         cloexec: Move AC_LIBOBJ invocations to module description.
36238         * m4/cloexec.m4: Remove file.
36239         * modules/cloexec (Files): Remove it.
36240         (configure.ac): Remove gl_CLOEXEC call.
36241         (Makefile.am): Augment lib_SOURCES.
36243 2011-05-23  Bruno Haible  <bruno@clisp.org>
36245         check-version: Move AC_LIBOBJ invocations to module description.
36246         * m4/check-version.m4: Remove file.
36247         * modules/check-version (Files): Remove it.
36248         (configure.ac): Remove gl_CHECK_VERSION call.
36249         (Makefile.am): Augment lib_SOURCES.
36251 2011-05-23  Bruno Haible  <bruno@clisp.org>
36253         chdir-safer: Move AC_LIBOBJ invocations to module description.
36254         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
36255         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
36257 2011-05-23  Bruno Haible  <bruno@clisp.org>
36259         canonicalize: Move AC_LIBOBJ invocations to module description.
36260         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
36261         AC_LIBOBJ invocation.
36262         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
36264 2011-05-23  Bruno Haible  <bruno@clisp.org>
36266         canon-host: Move AC_LIBOBJ invocations to module description.
36267         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
36268         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
36269         instead of gl_CANON_HOST.
36270         (Makefile.am): Augment lib_SOURCES.
36272 2011-05-23  Bruno Haible  <bruno@clisp.org>
36274         backupfile: Move AC_LIBOBJ invocations to module description.
36275         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
36276         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
36278 2011-05-23  Bruno Haible  <bruno@clisp.org>
36280         argmatch: Move AC_LIBOBJ invocations to module description.
36281         * m4/argmatch.m4: Remove file.
36282         * modules/argmatch (Files): Remove it.
36283         (configure.ac): Remove gl_ARGMATCH call.
36284         (Makefile.am): Augment lib_SOURCES.
36286 2011-05-23  Bruno Haible  <bruno@clisp.org>
36288         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
36289         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
36290         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
36292 2011-05-23  Bruno Haible  <bruno@clisp.org>
36294         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36295         * m4/arcfour.m4: Remove file.
36296         * modules/crypto/arcfour (Files): Remove it.
36297         (configure.ac): Remove gl_ARCFOUR call.
36298         (Makefile.am): Augment lib_SOURCES.
36300 2011-05-22  Bruno Haible  <bruno@clisp.org>
36302         write: Move AC_LIBOBJ invocations to module description.
36303         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36304         * modules/write (configure.ac): ... to here.
36306 2011-05-22  Bruno Haible  <bruno@clisp.org>
36308         wmemset: Move AC_LIBOBJ invocations to module description.
36309         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36310         here...
36311         * modules/wmemset (configure.ac): ... to here.
36313 2011-05-22  Bruno Haible  <bruno@clisp.org>
36315         wmemmove: Move AC_LIBOBJ invocations to module description.
36316         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36317         here...
36318         * modules/wmemmove (configure.ac): ... to here.
36320 2011-05-22  Bruno Haible  <bruno@clisp.org>
36322         wmemcpy: Move AC_LIBOBJ invocations to module description.
36323         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36324         here...
36325         * modules/wmemcpy (configure.ac): ... to here.
36327 2011-05-22  Bruno Haible  <bruno@clisp.org>
36329         wmemcmp: Move AC_LIBOBJ invocations to module description.
36330         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36331         here...
36332         * modules/wmemcmp (configure.ac): ... to here.
36334 2011-05-22  Bruno Haible  <bruno@clisp.org>
36336         wmemchr: Move AC_LIBOBJ invocations to module description.
36337         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36338         here...
36339         * modules/wmemchr (configure.ac): ... to here.
36341 2011-05-22  Bruno Haible  <bruno@clisp.org>
36343         wcswidth: Move AC_LIBOBJ invocations to module description.
36344         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36345         here...
36346         * modules/wcswidth (configure.ac): ... to here.
36348 2011-05-22  Bruno Haible  <bruno@clisp.org>
36350         wcwidth: Respect rules for use of AC_LIBOBJ.
36351         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36352         invocation from here...
36353         * modules/wcwidth (configure.ac): ... to here.
36354         (Depends-on): Update conditions.
36356 2011-05-22  Bruno Haible  <bruno@clisp.org>
36358         wctype: Move AC_LIBOBJ invocations to module description.
36359         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36360         invocation from here...
36361         * modules/wctype (configure.ac): ... to here.
36362         (Depends-on): Update conditions.
36364 2011-05-22  Bruno Haible  <bruno@clisp.org>
36366         wctrans: Move AC_LIBOBJ invocations to module description.
36367         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36368         invocation from here...
36369         * modules/wctrans (configure.ac): ... to here.
36371 2011-05-22  Bruno Haible  <bruno@clisp.org>
36373         wctomb: Move AC_LIBOBJ invocations to module description.
36374         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36375         invocations from here...
36376         * modules/wctomb (configure.ac): ... to here.
36378 2011-05-22  Bruno Haible  <bruno@clisp.org>
36380         wctob: Move AC_LIBOBJ invocations to module description.
36381         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36382         gl_PREREQ_WCTOB invocations from here...
36383         * modules/wctob (configure.ac): ... to here.
36384         (Depends-on): Update conditions.
36386 2011-05-22  Bruno Haible  <bruno@clisp.org>
36388         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36389         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36390         here...
36391         * modules/wcsxfrm (configure.ac): ... to here.
36393 2011-05-22  Bruno Haible  <bruno@clisp.org>
36395         wcstok: Move AC_LIBOBJ invocations to module description.
36396         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36397         * modules/wcstok (configure.ac): ... to here.
36399 2011-05-22  Bruno Haible  <bruno@clisp.org>
36401         wcsstr: Move AC_LIBOBJ invocations to module description.
36402         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36403         * modules/wcsstr (configure.ac): ... to here.
36405 2011-05-22  Bruno Haible  <bruno@clisp.org>
36407         wcsspn: Move AC_LIBOBJ invocations to module description.
36408         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36409         * modules/wcsspn (configure.ac): ... to here.
36411 2011-05-22  Bruno Haible  <bruno@clisp.org>
36413         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36414         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36415         gl_PREREQ_WCSRTOMBS invocations from here...
36416         * modules/wcsrtombs (configure.ac): ... to here.
36418 2011-05-22  Bruno Haible  <bruno@clisp.org>
36420         wcsrchr: Move AC_LIBOBJ invocations to module description.
36421         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36422         here...
36423         * modules/wcsrchr (configure.ac): ... to here.
36425 2011-05-22  Bruno Haible  <bruno@clisp.org>
36427         wcspbrk: Move AC_LIBOBJ invocations to module description.
36428         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36429         here...
36430         * modules/wcspbrk (configure.ac): ... to here.
36432 2011-05-22  Bruno Haible  <bruno@clisp.org>
36434         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36435         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36436         gl_PREREQ_WCSNRTOMBS invocations from here...
36437         * modules/wcsnrtombs (configure.ac): ... to here.
36439 2011-05-22  Bruno Haible  <bruno@clisp.org>
36441         wcsnlen: Move AC_LIBOBJ invocations to module description.
36442         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36443         here...
36444         * modules/wcsnlen (configure.ac): ... to here.
36446 2011-05-22  Bruno Haible  <bruno@clisp.org>
36448         wcsncpy: Move AC_LIBOBJ invocations to module description.
36449         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36450         here...
36451         * modules/wcsncpy (configure.ac): ... to here.
36453 2011-05-22  Bruno Haible  <bruno@clisp.org>
36455         wcsncmp: Move AC_LIBOBJ invocations to module description.
36456         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36457         here...
36458         * modules/wcsncmp (configure.ac): ... to here.
36460 2011-05-22  Bruno Haible  <bruno@clisp.org>
36462         wcsncat: Move AC_LIBOBJ invocations to module description.
36463         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36464         here...
36465         * modules/wcsncat (configure.ac): ... to here.
36467 2011-05-22  Bruno Haible  <bruno@clisp.org>
36469         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36470         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36471         from here...
36472         * modules/wcsncasecmp (configure.ac): ... to here.
36474 2011-05-22  Bruno Haible  <bruno@clisp.org>
36476         wcslen: Move AC_LIBOBJ invocations to module description.
36477         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36478         * modules/wcslen (configure.ac): ... to here.
36480 2011-05-22  Bruno Haible  <bruno@clisp.org>
36482         wcsdup: Move AC_LIBOBJ invocations to module description.
36483         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36484         * modules/wcsdup (configure.ac): ... to here.
36486 2011-05-22  Bruno Haible  <bruno@clisp.org>
36488         wcscspn: Move AC_LIBOBJ invocations to module description.
36489         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36490         here...
36491         * modules/wcscspn (configure.ac): ... to here.
36493 2011-05-22  Bruno Haible  <bruno@clisp.org>
36495         wcscpy: Move AC_LIBOBJ invocations to module description.
36496         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36497         * modules/wcscpy (configure.ac): ... to here.
36499 2011-05-22  Bruno Haible  <bruno@clisp.org>
36501         wcscoll: Move AC_LIBOBJ invocations to module description.
36502         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36503         here...
36504         * modules/wcscoll (configure.ac): ... to here.
36506 2011-05-22  Bruno Haible  <bruno@clisp.org>
36508         wcscmp: Move AC_LIBOBJ invocations to module description.
36509         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36510         * modules/wcscmp (configure.ac): ... to here.
36512 2011-05-22  Bruno Haible  <bruno@clisp.org>
36514         wcschr: Move AC_LIBOBJ invocations to module description.
36515         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36516         * modules/wcschr (configure.ac): ... to here.
36518 2011-05-22  Bruno Haible  <bruno@clisp.org>
36520         wcscat: Move AC_LIBOBJ invocations to module description.
36521         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36522         * modules/wcscat (configure.ac): ... to here.
36524 2011-05-22  Bruno Haible  <bruno@clisp.org>
36526         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36527         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36528         here...
36529         * modules/wcscasecmp (configure.ac): ... to here.
36531 2011-05-22  Bruno Haible  <bruno@clisp.org>
36533         wcrtomb: Move AC_LIBOBJ invocations to module description.
36534         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36535         invocations from here...
36536         * modules/wcrtomb (configure.ac): ... to here.
36538 2011-05-22  Bruno Haible  <bruno@clisp.org>
36540         wcpncpy: Move AC_LIBOBJ invocations to module description.
36541         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36542         here...
36543         * modules/wcpncpy (configure.ac): ... to here.
36545 2011-05-22  Bruno Haible  <bruno@clisp.org>
36547         wcpcpy: Move AC_LIBOBJ invocations to module description.
36548         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
36549         * modules/wcpcpy (configure.ac): ... to here.
36551 2011-05-22  Bruno Haible  <bruno@clisp.org>
36553         waitpid: Move AC_LIBOBJ invocations to module description.
36554         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
36555         invocation from here...
36556         * modules/waitpid (configure.ac): ... to here.
36558 2011-05-22  Bruno Haible  <bruno@clisp.org>
36560         utimensat: Move AC_LIBOBJ invocations to module description.
36561         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
36562         here...
36563         * modules/utimensat (configure.ac): ... to here.
36565 2011-05-22  Bruno Haible  <bruno@clisp.org>
36567         usleep: Move AC_LIBOBJ invocations to module description.
36568         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
36569         here...
36570         * modules/usleep (configure.ac): ... to here.
36572 2011-05-22  Bruno Haible  <bruno@clisp.org>
36574         unlockpt: Move AC_LIBOBJ invocations to module description.
36575         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
36576         gl_PREREQ_UNLOCKPT invocations from here...
36577         * modules/unlockpt (configure.ac): ... to here.
36579 2011-05-22  Bruno Haible  <bruno@clisp.org>
36581         unlink: Respect rules for use of AC_LIBOBJ.
36582         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
36583         * modules/unlink (configure.ac): ... to here.
36585 2011-05-22  Bruno Haible  <bruno@clisp.org>
36587         uname: Move AC_LIBOBJ invocations to module description.
36588         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
36589         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
36590         here...
36591         * modules/uname (configure.ac): ... to here.
36593 2011-05-22  Bruno Haible  <bruno@clisp.org>
36595         ttyname_r: Move AC_LIBOBJ invocations to module description.
36596         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
36597         gl_PREREQ_TTYNAME_R invocations from here...
36598         * modules/ttyname_r (configure.ac): ... to here.
36600 2011-05-22  Bruno Haible  <bruno@clisp.org>
36602         tsearch: Move AC_LIBOBJ invocations to module description.
36603         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
36604         invocations from here...
36605         * modules/tsearch (configure.ac): ... to here.
36607 2011-05-22  Bruno Haible  <bruno@clisp.org>
36609         towctrans: Move AC_LIBOBJ invocations to module description.
36610         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
36611         AC_LIBOBJ invocation from here...
36612         * modules/towctrans (configure.ac): ... to here.
36614 2011-05-22  Bruno Haible  <bruno@clisp.org>
36616         tmpfile: Move AC_LIBOBJ invocations to module description.
36617         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
36618         invocations from here...
36619         * modules/tmpfile (configure.ac): ... to here.
36621 2011-05-22  Bruno Haible  <bruno@clisp.org>
36623         times: Move AC_LIBOBJ invocations to module description.
36624         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
36625         * modules/times (configure.ac): ... to here.
36627 2011-05-22  Bruno Haible  <bruno@clisp.org>
36629         time_r: Move AC_LIBOBJ invocations to module description.
36630         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
36631         invocations from here...
36632         * modules/time_r (configure.ac): ... to here.
36634 2011-05-22  Bruno Haible  <bruno@clisp.org>
36636         timegm: Move AC_LIBOBJ invocations to module description.
36637         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
36638         invocations from here...
36639         * modules/timegm (configure.ac): ... to here.
36641 2011-05-22  Bruno Haible  <bruno@clisp.org>
36643         tcgetsid: Move AC_LIBOBJ invocations to module description.
36644         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
36645         and gl_PREREQ_TCGETSID invocations from here...
36646         * modules/tcgetsid (configure.ac): ... to here.
36647         (Depends-on): Update conditions.
36649 2011-05-22  Bruno Haible  <bruno@clisp.org>
36651         symlinkat: Move AC_LIBOBJ invocations to module description.
36652         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
36653         here...
36654         * modules/symlinkat (configure.ac): ... to here.
36656 2011-05-22  Bruno Haible  <bruno@clisp.org>
36658         symlink: Move AC_LIBOBJ invocations to module description.
36659         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
36660         here...
36661         * modules/symlink (configure.ac): ... to here.
36663 2011-05-22  Bruno Haible  <bruno@clisp.org>
36665         strverscmp: Move AC_LIBOBJ invocations to module description.
36666         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
36667         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
36668         from here...
36669         * modules/strverscmp (configure.ac): ... to here.
36671 2011-05-22  Bruno Haible  <bruno@clisp.org>
36673         strtok_r: Move AC_LIBOBJ invocations to module description.
36674         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
36675         and gl_PREREQ_STRTOK_R invocations from here...
36676         * modules/strtok_r (configure.ac): ... to here.
36677         (Depends-on): Update conditions.
36679 2011-05-22  Bruno Haible  <bruno@clisp.org>
36681         strtoumax: Move AC_LIBOBJ invocations to module description.
36682         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
36683         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
36684         from here...
36685         * modules/strtoumax (configure.ac): ... to here.
36687 2011-05-22  Bruno Haible  <bruno@clisp.org>
36689         strtoimax: Move AC_LIBOBJ invocations to module description.
36690         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
36691         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
36692         from here...
36693         * modules/strtoimax (configure.ac): ... to here.
36695 2011-05-22  Bruno Haible  <bruno@clisp.org>
36697         strtoull: Move AC_LIBOBJ invocations to module description.
36698         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
36699         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
36700         from here...
36701         * modules/strtoull (configure.ac): ... to here.
36703 2011-05-22  Bruno Haible  <bruno@clisp.org>
36705         strtoll: Move AC_LIBOBJ invocations to module description.
36706         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
36707         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
36708         here...
36709         * modules/strtoll (configure.ac): ... to here.
36711 2011-05-22  Bruno Haible  <bruno@clisp.org>
36713         strtoul: Move AC_LIBOBJ invocations to module description.
36714         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
36715         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36716         * modules/strtoul (configure.ac): ... to here.
36718 2011-05-22  Bruno Haible  <bruno@clisp.org>
36720         strtol: Move AC_LIBOBJ invocations to module description.
36721         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
36722         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36723         * modules/strtol (configure.ac): ... to here.
36725 2011-05-22  Bruno Haible  <bruno@clisp.org>
36727         strtod: Move AC_LIBOBJ invocations to module description.
36728         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
36729         invocations from here...
36730         * modules/strtod (configure.ac): ... to here.
36732 2011-05-22  Bruno Haible  <bruno@clisp.org>
36734         strstr*: Move AC_LIBOBJ invocations to module description.
36735         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
36736         invocations from here...
36737         * modules/strstr-simple (configure.ac): ... to here.
36738         * modules/strstr (configure.ac): ... and here.
36740 2011-05-22  Bruno Haible  <bruno@clisp.org>
36742         strsignal: Move AC_LIBOBJ invocations to module description.
36743         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
36744         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
36745         * modules/strsignal (configure.ac): ... to here.
36746         (Depends-on): Update conditions.
36748 2011-05-22  Bruno Haible  <bruno@clisp.org>
36750         strsep: Move AC_LIBOBJ invocations to module description.
36751         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
36752         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
36753         here...
36754         * modules/strsep (configure.ac): ... to here.
36756 2011-05-22  Bruno Haible  <bruno@clisp.org>
36758         strptime: Move AC_LIBOBJ invocations to module description.
36759         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
36760         gl_PREREQ_STRPTIME invocations from here...
36761         * modules/strptime (configure.ac): ... to here.
36763 2011-05-22  Bruno Haible  <bruno@clisp.org>
36765         strpbrk: Move AC_LIBOBJ invocations to module description.
36766         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
36767         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
36768         here...
36769         * modules/strpbrk (configure.ac): ... to here.
36771 2011-05-22  Bruno Haible  <bruno@clisp.org>
36773         strnlen: Move AC_LIBOBJ invocations to module description.
36774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
36775         invocations from here...
36776         * modules/strnlen (configure.ac): ... to here.
36778 2011-05-22  Bruno Haible  <bruno@clisp.org>
36780         strndup: Move AC_LIBOBJ invocations to module description.
36781         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
36782         invocations from here...
36783         * modules/strndup (configure.ac): ... to here.
36784         (Depends-on): Update conditions.
36786 2011-05-22  Bruno Haible  <bruno@clisp.org>
36788         strncat: Move AC_LIBOBJ invocations to module description.
36789         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
36790         invocations from here...
36791         * modules/strncat (configure.ac): ... to here.
36793 2011-05-22  Bruno Haible  <bruno@clisp.org>
36795         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
36796         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
36797         invocations from here...
36798         * modules/strdup (configure.ac): ... to here.
36799         * modules/strdup-posix (configure.ac): ... and here.
36801 2011-05-22  Bruno Haible  <bruno@clisp.org>
36803         strcspn: Move AC_LIBOBJ invocations to module description.
36804         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
36805         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
36806         here...
36807         * modules/strcspn (configure.ac): ... to here.
36809 2011-05-22  Bruno Haible  <bruno@clisp.org>
36811         strchrnul: Move AC_LIBOBJ invocations to module description.
36812         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
36813         gl_PREREQ_STRCHRNUL invocations from here...
36814         * modules/strchrnul (configure.ac): ... to here.
36816 2011-05-22  Bruno Haible  <bruno@clisp.org>
36818         strcasestr*: Move AC_LIBOBJ invocations to module description.
36819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
36820         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
36821         * modules/strcasestr-simple (configure.ac): ... to here.
36822         * modules/strcasestr (configure.ac): ... and here.
36824 2011-05-22  Bruno Haible  <bruno@clisp.org>
36826         strcase: Move AC_LIBOBJ invocations to module description.
36827         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
36828         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
36829         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
36830         gl_PREREQ_STRNCASECMP invocations from here...
36831         * modules/strcase (configure.ac): ... to here.
36833 2011-05-22  Bruno Haible  <bruno@clisp.org>
36835         stpncpy: Move AC_LIBOBJ invocations to module description.
36836         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
36837         here...
36838         * modules/stpncpy (configure.ac): ... to here.
36840 2011-05-22  Bruno Haible  <bruno@clisp.org>
36842         stpcpy: Move AC_LIBOBJ invocations to module description.
36843         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
36844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
36845         here...
36846         * modules/stpcpy (configure.ac): ... to here.
36848 2011-05-21  Bruno Haible  <bruno@clisp.org>
36850         stat: Move AC_LIBOBJ invocations to module description.
36851         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
36852         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
36853         here...
36854         * modules/stat (configure.ac): ... to here.
36856 2011-05-21  Bruno Haible  <bruno@clisp.org>
36858         sleep: Move AC_LIBOBJ invocations to module description.
36859         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
36860         * modules/sleep (configure.ac): ... to here.
36862 2011-05-21  Bruno Haible  <bruno@clisp.org>
36864         signbit: Move AC_LIBOBJ invocations to module description.
36865         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
36866         * modules/signbit (configure.ac): ... to here.
36868 2011-05-21  Bruno Haible  <bruno@clisp.org>
36870         sigprocmask: Move AC_LIBOBJ invocations to module description.
36871         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
36872         gl_PREREQ_SIGPROMASK invocations from here...
36873         * modules/sigprocmask (configure.ac): ... to here.
36875 2011-05-21  Bruno Haible  <bruno@clisp.org>
36877         sigaction: Move AC_LIBOBJ invocations to module description.
36878         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
36879         gl_PREREQ_SIGACTION invocations from here...
36880         * modules/sigaction (configure.ac): ... to here.
36882 2011-05-21  Bruno Haible  <bruno@clisp.org>
36884         sig2str: Move AC_LIBOBJ invocations to module description.
36885         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
36886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
36887         here...
36888         * modules/sig2str (configure.ac): ... to here.
36890 2011-05-21  Bruno Haible  <bruno@clisp.org>
36892         setlocale: Move AC_LIBOBJ invocations to module description.
36893         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
36894         gl_PREREQ_SETLOCALE invocations from here...
36895         * modules/setlocale (configure.ac): ... to here.
36897 2011-05-21  Bruno Haible  <bruno@clisp.org>
36899         unsetenv: Move AC_LIBOBJ invocations to module description.
36900         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
36901         and gl_PREREQ_UNSETENV invocations from here...
36902         * modules/unsetenv (configure.ac): ... to here.
36903         (Depends-on): Update.
36905 2011-05-21  Bruno Haible  <bruno@clisp.org>
36907         setenv: Move AC_LIBOBJ invocations to module description.
36908         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
36909         here...
36910         * modules/setenv (configure.ac): ... to here.
36912 2011-05-21  Bruno Haible  <bruno@clisp.org>
36914         selinux-h: Move AC_LIBOBJ invocations to module description.
36915         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
36916         AC_LIBOBJ invocation from here...
36917         * modules/selinux-h (configure.ac): ... to here.
36919 2011-05-21  Bruno Haible  <bruno@clisp.org>
36921         select: Respect rules for use of AC_LIBOBJ.
36922         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
36923         here...
36924         * modules/select (configure.ac): ... to here.
36926 2011-05-21  Bruno Haible  <bruno@clisp.org>
36928         scandir: Move AC_LIBOBJ invocations to module description.
36929         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
36930         invocations from here...
36931         * modules/scandir (configure.ac): ... to here.
36933 2011-05-21  Bruno Haible  <bruno@clisp.org>
36935         rpmatch: Move AC_LIBOBJ invocations to module description.
36936         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
36937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
36938         here...
36939         * modules/rpmatch (configure.ac): ... to here.
36941 2011-05-21  Bruno Haible  <bruno@clisp.org>
36943         rmdir: Respect rules for use of AC_LIBOBJ.
36944         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
36945         * modules/rmdir (configure.ac): ... to here.
36947 2011-05-21  Bruno Haible  <bruno@clisp.org>
36949         renameat: Move AC_LIBOBJ invocations to module description.
36950         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
36951         here...
36952         * modules/renameat (configure.ac): ... to here.
36954 2011-05-21  Bruno Haible  <bruno@clisp.org>
36956         rename: Respect rules for use of AC_LIBOBJ.
36957         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
36958         here...
36959         * modules/rename (configure.ac): ... to here.
36961 2011-05-21  Bruno Haible  <bruno@clisp.org>
36963         remove: Move AC_LIBOBJ invocations to module description.
36964         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
36965         here...
36966         * modules/remove (configure.ac): ... to here.
36968 2011-05-21  Bruno Haible  <bruno@clisp.org>
36970         relocatable-lib: Move AC_LIBOBJ invocations to module description.
36971         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
36972         macro.
36973         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
36974         * modules/relocatable-lib (configure.ac): ... to here.
36975         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36976         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
36978 2011-05-21  Bruno Haible  <bruno@clisp.org>
36980         relocatable-prog: Move AC_LIBOBJ invocations to module description.
36981         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
36982         here...
36983         * modules/relocatable-prog (configure.ac): ... to here.
36985 2011-05-21  Bruno Haible  <bruno@clisp.org>
36987         regex: Move AC_LIBOBJ invocations to module description.
36988         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
36989         invocations from here...
36990         * modules/regex (configure.ac): ... to here.
36992 2011-05-21  Bruno Haible  <bruno@clisp.org>
36994         realloc-*: Move AC_LIBOBJ invocations to module description.
36995         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
36996         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
36997         AC_LIBOBJ invocations from here...
36998         * modules/realloc-gnu (configure.ac): ... to here.
36999         * modules/realloc-posix (configure.ac): ... and here.
37001 2011-05-21  Bruno Haible  <bruno@clisp.org>
37003         readutmp: Move AC_LIBOBJ invocations to module description.
37004         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
37005         * modules/readutmp (configure.ac): ... to here.
37007 2011-05-21  Bruno Haible  <bruno@clisp.org>
37009         readlinkat: Move AC_LIBOBJ invocations to module description.
37010         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
37011         here...
37012         * modules/readlinkat (configure.ac): ... to here.
37014 2011-05-21  Bruno Haible  <bruno@clisp.org>
37016         readlink: Move AC_LIBOBJ invocations to module description.
37017         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
37018         gl_PREREQ_READLINK invocations from here...
37019         * modules/readlink (configure.ac): ... to here.
37021 2011-05-21  Bruno Haible  <bruno@clisp.org>
37023         readline: Move AC_LIBOBJ invocations to module description.
37024         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
37025         gl_PREREQ_READLINE invocations from here...
37026         * modules/readline (configure.ac): ... to here.
37028 2011-05-21  Bruno Haible  <bruno@clisp.org>
37030         read: Move AC_LIBOBJ invocations to module description.
37031         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
37032         * modules/read (configure.ac): ... to here.
37034 2011-05-21  Bruno Haible  <bruno@clisp.org>
37036         rawmemchr: Move AC_LIBOBJ invocations to module description.
37037         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
37038         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
37039         from here...
37040         * modules/rawmemchr (configure.ac): ... to here.
37042 2011-05-21  Bruno Haible  <bruno@clisp.org>
37044         random_r: Move AC_LIBOBJ invocations to module description.
37045         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
37046         gl_PREREQ_RANDOM_R invocations from here...
37047         * modules/random_r (configure.ac): ... to here.
37049 2011-05-21  Bruno Haible  <bruno@clisp.org>
37051         pwrite: Move AC_LIBOBJ invocations to module description.
37052         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
37053         * modules/pwrite (configure.ac): ... to here.
37055 2011-05-21  Bruno Haible  <bruno@clisp.org>
37057         putenv: Move AC_LIBOBJ invocations to module description.
37058         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
37059         * modules/putenv (configure.ac): ... to here.
37061 2011-05-21  Bruno Haible  <bruno@clisp.org>
37063         login_tty: Move AC_LIBOBJ invocations to module description.
37064         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
37065         * modules/login_tty (configure.ac): ... to here.
37067 2011-05-21  Bruno Haible  <bruno@clisp.org>
37069         openpty: Move AC_LIBOBJ invocations to module description.
37070         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
37071         * modules/openpty (configure.ac): ... to here.
37073 2011-05-21  Bruno Haible  <bruno@clisp.org>
37075         forkpty: Move AC_LIBOBJ invocations to module description.
37076         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
37077         * modules/forkpty (configure.ac): ... to here.
37079 2011-05-21  Bruno Haible  <bruno@clisp.org>
37081         ptsname: Move AC_LIBOBJ invocations to module description.
37082         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
37083         invocations from here...
37084         * modules/ptsname (configure.ac): ... to here.
37086 2011-05-21  Bruno Haible  <bruno@clisp.org>
37088         pread: Move AC_LIBOBJ invocations to module description.
37089         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
37090         * modules/pread (configure.ac): ... to here.
37092 2011-05-21  Bruno Haible  <bruno@clisp.org>
37094         posix_spawn*: Move AC_LIBOBJ invocations to module description.
37095         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
37096         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
37097         * modules/posix_spawn (configure.ac): ... to here.
37098         * modules/posix_spawnp (configure.ac): ... and here.
37100 2011-05-21  Bruno Haible  <bruno@clisp.org>
37102         popen: Move AC_LIBOBJ invocations to module description.
37103         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
37104         invocations from here...
37105         * modules/popen (configure.ac): ... to here.
37107 2011-05-21  Bruno Haible  <bruno@clisp.org>
37109         poll: Move AC_LIBOBJ invocations to module description.
37110         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
37111         invocations from here...
37112         * modules/poll (configure.ac): ... to here.
37114 2011-05-21  Bruno Haible  <bruno@clisp.org>
37116         pipe-posix: Move AC_LIBOBJ invocations to module description.
37117         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
37118         * modules/pipe-posix (configure.ac): ... to here.
37120 2011-05-21  Bruno Haible  <bruno@clisp.org>
37122         openat: Respect rules for use of AC_LIBOBJ.
37123         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
37124         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37125         * modules/openat (configure.ac): ... to here.
37127 2011-05-21  Bruno Haible  <bruno@clisp.org>
37129         obstack-printf*: Move AC_LIBOBJ invocations to module description.
37130         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
37131         invocation from here...
37132         * modules/obstack-printf (configure.ac): ... to here.
37133         * modules/obstack-printf-posix (configure.ac): ... and here.
37135 2011-05-21  Bruno Haible  <bruno@clisp.org>
37137         nl_langinfo: Move AC_LIBOBJ invocations to module description.
37138         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
37139         from here...
37140         * modules/nl_langinfo (configure.ac): ... to here.
37142 2011-05-21  Bruno Haible  <bruno@clisp.org>
37144         nanosleep: Move AC_LIBOBJ invocations to module description.
37145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
37146         gl_PREREQ_NANOSLEEP invocations from here...
37147         * modules/nanosleep (configure.ac): ... to here.
37149 2011-05-21  Bruno Haible  <bruno@clisp.org>
37151         mountlist: Move AC_LIBOBJ invocations to module description.
37152         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
37153         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
37154         * modules/mountlist (configure.ac): ... to here.
37156 2011-05-21  Bruno Haible  <bruno@clisp.org>
37158         mktime: Respect rules for use of AC_LIBOBJ.
37159         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
37160         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
37161         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
37162         (gl_FUNC_MKTIME_INTERNAL): ... and here...
37163         * modules/mktime (configure.ac): ... to here.
37164         * modules/mktime-internal (configure.ac): ... and here.
37165         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
37167 2011-05-21  Bruno Haible  <bruno@clisp.org>
37169         mkstemps: Move AC_LIBOBJ invocations to module description.
37170         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
37171         here...
37172         * modules/mkstemps (configure.ac): ... to here.
37174 2011-05-21  Bruno Haible  <bruno@clisp.org>
37176         mkstemp: Move AC_LIBOBJ invocations to module description.
37177         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
37178         gl_PREREQ_MKSTEMP invocations from here...
37179         * modules/mkstemp (configure.ac): ... to here.
37181 2011-05-21  Bruno Haible  <bruno@clisp.org>
37183         mkostemps: Move AC_LIBOBJ invocations to module description.
37184         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
37185         here...
37186         * modules/mkostemps (configure.ac): ... to here.
37188 2011-05-21  Bruno Haible  <bruno@clisp.org>
37190         mkostemp: Move AC_LIBOBJ invocations to module description.
37191         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
37192         gl_PREREQ_MKOSTEMP invocations from here...
37193         * modules/mkostemp (configure.ac): ... to here.
37195 2011-05-21  Bruno Haible  <bruno@clisp.org>
37197         mknod: Move AC_LIBOBJ invocations to module description.
37198         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
37199         * modules/mknod (configure.ac): ... to here.
37201 2011-05-21  Bruno Haible  <bruno@clisp.org>
37203         mkfifoat: Move AC_LIBOBJ invocations to module description.
37204         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
37205         here...
37206         * modules/mkfifoat (configure.ac): ... to here.
37208 2011-05-21  Bruno Haible  <bruno@clisp.org>
37210         mkfifo: Respect rules for use of AC_LIBOBJ.
37211         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
37212         here...
37213         * modules/mkfifo (configure.ac): ... to here.
37215 2011-05-21  Bruno Haible  <bruno@clisp.org>
37217         mkdtemp: Move AC_LIBOBJ invocations to module description.
37218         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
37219         invocations from here...
37220         * modules/mkdtemp (configure.ac): ... to here.
37222 2011-05-21  Bruno Haible  <bruno@clisp.org>
37224         mkdir: Move AC_LIBOBJ invocations to module description.
37225         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
37226         * modules/mkdir (configure.ac): ... to here.
37228 2011-05-21  Bruno Haible  <bruno@clisp.org>
37230         memset: Move AC_LIBOBJ invocations to module description.
37231         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
37232         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
37233         here...
37234         * modules/memset (configure.ac): ... to here.
37236 2011-05-21  Bruno Haible  <bruno@clisp.org>
37238         memrchr: Move AC_LIBOBJ invocations to module description.
37239         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
37240         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
37241         here...
37242         * modules/memrchr (configure.ac): ... to here.
37244 2011-05-21  Bruno Haible  <bruno@clisp.org>
37246         mempcpy: Move AC_LIBOBJ invocations to module description.
37247         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
37248         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
37249         here...
37250         * modules/mempcpy (configure.ac): ... to here.
37252 2011-05-21  Bruno Haible  <bruno@clisp.org>
37254         memmove: Move AC_LIBOBJ invocations to module description.
37255         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
37256         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
37257         here...
37258         * modules/memmove (configure.ac): ... to here.
37260 2011-05-21  Bruno Haible  <bruno@clisp.org>
37262         memmem*: Move AC_LIBOBJ invocations to module description.
37263         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
37264         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
37265         here...
37266         (gl_FUNC_MEMMEM): ... and here...
37267         * modules/memmem-simple (configure.ac): ... to here.
37268         * modules/memmem (configure.ac): ... and here.
37270 2011-05-21  Bruno Haible  <bruno@clisp.org>
37272         memcpy: Move AC_LIBOBJ invocations to module description.
37273         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
37274         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
37275         here...
37276         * modules/memcpy (configure.ac): ... to here.
37278 2011-05-21  Bruno Haible  <bruno@clisp.org>
37280         memcmp: Simplify autoconf macro.
37281         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
37282         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
37283         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
37285 2011-05-21  Bruno Haible  <bruno@clisp.org>
37287         memcmp: Move AC_LIBOBJ invocations to module description.
37288         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
37289         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
37290         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
37291         * modules/memcmp (configure.ac): ... to here.
37292         (Depends-on): Update conditions.
37294 2011-05-21  Bruno Haible  <bruno@clisp.org>
37296         memchr: Respect rules for use of AC_LIBOBJ.
37297         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37298         invocations from here...
37299         * modules/memchr (configure.ac): ... to here.
37301 2011-05-21  Bruno Haible  <bruno@clisp.org>
37303         mbtowc: Move AC_LIBOBJ invocations to module description.
37304         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37305         invocations from here...
37306         * modules/mbtowc (configure.ac): ... to here.
37308 2011-05-21  Bruno Haible  <bruno@clisp.org>
37310         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37311         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37312         gl_PREREQ_MBSRTOWCS invocations from here...
37313         * modules/mbsrtowcs (configure.ac): ... to here.
37315 2011-05-21  Bruno Haible  <bruno@clisp.org>
37317         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37318         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37319         gl_PREREQ_MBSNRTOWCS invocations from here...
37320         * modules/mbsnrtowcs (configure.ac): ... to here.
37322 2011-05-21  Bruno Haible  <bruno@clisp.org>
37324         mbsinit: Move AC_LIBOBJ invocations to module description.
37325         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37326         invocations from here...
37327         * modules/mbsinit (configure.ac): ... to here.
37329 2011-05-21  Bruno Haible  <bruno@clisp.org>
37331         mbrlen: Move AC_LIBOBJ invocations to module description.
37332         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37333         invocations from here...
37334         * modules/mbrlen (configure.ac): ... to here.
37336 2011-05-21  Bruno Haible  <bruno@clisp.org>
37338         mbrtowc: Respect rules for use of AC_LIBOBJ.
37339         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37340         invocations from here...
37341         * modules/mbrtowc (configure.ac): ... to here.
37343 2011-05-21  Bruno Haible  <bruno@clisp.org>
37345         malloc-*: Move AC_LIBOBJ invocations to module description.
37346         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37347         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37348         AC_LIBOBJ invocations from here...
37349         * modules/malloc-gnu (configure.ac): ... to here.
37350         * modules/malloc-posix (configure.ac): ... and here.
37352 2011-05-21  Bruno Haible  <bruno@clisp.org>
37354         lstat, openat: Respect rules for use of AC_LIBOBJ.
37355         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37356         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37357         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37358         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37359         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37360         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37361         here.
37362         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37364 2011-05-21  Bruno Haible  <bruno@clisp.org>
37366         lseek: Move AC_LIBOBJ invocations to module description.
37367         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37368         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37369         * modules/lseek (configure.ac): ... to here.
37371 2011-05-21  Bruno Haible  <bruno@clisp.org>
37373         linkat: Move AC_LIBOBJ invocations to module description.
37374         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37375         here...
37376         * modules/linkat (configure.ac): ... to here.
37378 2011-05-21  Bruno Haible  <bruno@clisp.org>
37380         link: Respect rules for use of AC_LIBOBJ.
37381         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37382         * modules/link (configure.ac): ... to here.
37384 2011-05-21  Bruno Haible  <bruno@clisp.org>
37386         lchown: Move AC_LIBOBJ invocations to module description.
37387         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37388         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37389         * modules/lchown (configure.ac): ... to here.
37391 2011-05-21  Bruno Haible  <bruno@clisp.org>
37393         iswctype: Move AC_LIBOBJ invocations to module description.
37394         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37395         here...
37396         * modules/iswctype (configure.ac): ... to here.
37398 2011-05-21  Bruno Haible  <bruno@clisp.org>
37400         iswblank: Move AC_LIBOBJ invocations to module description.
37401         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37402         here...
37403         * modules/iswblank (configure.ac): ... to here.
37405 2011-05-21  Bruno Haible  <bruno@clisp.org>
37407         atanl: Move AC_LIBOBJ invocations to module description.
37408         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37409         * modules/atanl (configure.ac): ... to here.
37411 2011-05-21  Bruno Haible  <bruno@clisp.org>
37413         acosl: Move AC_LIBOBJ invocations to module description.
37414         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37415         * modules/acosl (configure.ac): ... to here.
37417 2011-05-21  Bruno Haible  <bruno@clisp.org>
37419         asinl: Respect rules for use of AC_LIBOBJ.
37420         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37421         * modules/asinl (configure.ac): ... to here.
37423 2011-05-21  Bruno Haible  <bruno@clisp.org>
37425         tanl: Move AC_LIBOBJ invocations to module description.
37426         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37427         * modules/tanl (configure.ac): ... to here.
37429 2011-05-21  Bruno Haible  <bruno@clisp.org>
37431         cosl: Move AC_LIBOBJ invocations to module description.
37432         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37433         * modules/cosl (configure.ac): ... to here.
37435 2011-05-21  Bruno Haible  <bruno@clisp.org>
37437         sinl: Move AC_LIBOBJ invocations to module description.
37438         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37439         * modules/sinl (configure.ac): ... to here.
37441 2011-05-21  Bruno Haible  <bruno@clisp.org>
37443         logl: Move AC_LIBOBJ invocations to module description.
37444         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37445         * modules/logl (configure.ac): ... to here.
37447 2011-05-21  Bruno Haible  <bruno@clisp.org>
37449         expl: Move AC_LIBOBJ invocations to module description.
37450         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37451         * modules/expl (configure.ac): ... to here.
37453 2011-05-21  Bruno Haible  <bruno@clisp.org>
37455         roundl: Move AC_LIBOBJ invocations to module description.
37456         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37457         * modules/roundl (configure.ac): ... to here.
37459 2011-05-21  Bruno Haible  <bruno@clisp.org>
37461         round: Move AC_LIBOBJ invocations to module description.
37462         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37463         * modules/round (configure.ac): ... to here.
37465 2011-05-21  Bruno Haible  <bruno@clisp.org>
37467         roundf: Move AC_LIBOBJ invocations to module description.
37468         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37469         * modules/roundf (configure.ac): ... to here.
37471 2011-05-21  Bruno Haible  <bruno@clisp.org>
37473         truncl: Move AC_LIBOBJ invocations to module description.
37474         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37475         * modules/truncl (configure.ac): ... to here.
37477 2011-05-21  Bruno Haible  <bruno@clisp.org>
37479         trunc: Move AC_LIBOBJ invocations to module description.
37480         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37481         * modules/trunc (configure.ac): ... to here.
37483 2011-05-21  Bruno Haible  <bruno@clisp.org>
37485         truncf: Move AC_LIBOBJ invocations to module description.
37486         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37487         * modules/truncf (configure.ac): ... to here.
37489 2011-05-21  Bruno Haible  <bruno@clisp.org>
37491         ceill: Move AC_LIBOBJ invocations to module description.
37492         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37493         * modules/ceill (configure.ac): ... to here.
37495 2011-05-21  Bruno Haible  <bruno@clisp.org>
37497         ceil: Move AC_LIBOBJ invocations to module description.
37498         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37499         * modules/ceil (configure.ac): ... to here.
37501 2011-05-21  Bruno Haible  <bruno@clisp.org>
37503         ceilf: Move AC_LIBOBJ invocations to module description.
37504         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37505         * modules/ceilf (configure.ac): ... to here.
37507 2011-05-21  Bruno Haible  <bruno@clisp.org>
37509         floorl: Respect rules for use of AC_LIBOBJ.
37510         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37511         * modules/floorl (configure.ac): ... to here.
37513 2011-05-21  Bruno Haible  <bruno@clisp.org>
37515         floor: Respect rules for use of AC_LIBOBJ.
37516         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37517         * modules/floor (configure.ac): ... to here.
37519 2011-05-21  Bruno Haible  <bruno@clisp.org>
37521         floorf: Move AC_LIBOBJ invocations to module description.
37522         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37523         * modules/floorf (configure.ac): ... to here.
37525 2011-05-20  Bruno Haible  <bruno@clisp.org>
37527         sqrtl: Respect rules for use of AC_LIBOBJ.
37528         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37529         * modules/sqrtl (configure.ac): ... to here.
37531 2011-05-20  Bruno Haible  <bruno@clisp.org>
37533         ldexpl: Respect rules for use of AC_LIBOBJ.
37534         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37535         * modules/ldexpl (configure.ac): ... to here.
37537 2011-05-20  Bruno Haible  <bruno@clisp.org>
37539         frexpl*: Respect rules for use of AC_LIBOBJ.
37540         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37541         invocation from here...
37542         * modules/frexpl (configure.ac): ... to here.
37543         * modules/frexpl-nolibm (configure.ac): ... and here.
37545 2011-05-20  Bruno Haible  <bruno@clisp.org>
37547         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
37548         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
37549         invocation from here...
37550         * modules/frexp (configure.ac): ... to here.
37551         * modules/frexp-nolibm (configure.ac): ... and here.
37553 2011-05-20  Bruno Haible  <bruno@clisp.org>
37555         isnan: Respect rules for use of AC_LIBOBJ.
37556         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
37557         invocations here.
37558         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
37559         REPLACE_ISNAN.
37560         * modules/isnand (configure.ac): Likewise.
37561         * modules/isnanl (configure.ac): Likewise.
37563 2011-05-20  Bruno Haible  <bruno@clisp.org>
37565         isnanl*: Respect rules for use of AC_LIBOBJ.
37566         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
37567         invocation from here...
37568         * modules/isnanl (configure.ac): ... to here.
37569         * modules/isnanl-nolibm (configure.ac): ... and here.
37571 2011-05-20  Bruno Haible  <bruno@clisp.org>
37573         isnand*: Move AC_LIBOBJ invocations to module description.
37574         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
37575         invocation from here...
37576         * modules/isnand (configure.ac): ... to here.
37577         * modules/isnand-nolibm (configure.ac): ... and here.
37579 2011-05-20  Bruno Haible  <bruno@clisp.org>
37581         isnanf*: Move AC_LIBOBJ invocations to module description.
37582         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
37583         invocation from here...
37584         * modules/isnanf (configure.ac): ... to here.
37585         * modules/isnanf-nolibm (configure.ac): ... and here.
37587 2011-05-20  Bruno Haible  <bruno@clisp.org>
37589         isnan*: Separate the AC_LIBOBJ invocations.
37590         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
37591         AC_LIBOBJ invocation.
37592         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
37593         here.
37594         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
37595         AC_LIBOBJ invocation.
37596         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
37597         here.
37598         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37599         AC_LIBOBJ invocation.
37600         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
37601         here.
37602         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
37604 2011-05-08  Bruno Haible  <bruno@clisp.org>
37606         isinf: Move AC_LIBOBJ invocations to module description.
37607         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
37608         * modules/isinf (configure.ac): ... to here.
37610 2011-05-08  Bruno Haible  <bruno@clisp.org>
37612         isfinite: Move AC_LIBOBJ invocations to module description.
37613         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
37614         * modules/isfinite (configure.ac): ... to here.
37616 2011-05-08  Bruno Haible  <bruno@clisp.org>
37618         isblank: Move AC_LIBOBJ invocations to module description.
37619         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
37620         here...
37621         * modules/isblank (configure.ac): ... to here.
37623 2011-05-08  Bruno Haible  <bruno@clisp.org>
37625         isapipe: Move AC_LIBOBJ invocations to module description.
37626         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
37627         gl_PREREQ_ISAPIPE invocations from here...
37628         * modules/isapipe (configure.ac): ... to here.
37629         (Depends-on): Update condition.
37631 2011-05-08  Bruno Haible  <bruno@clisp.org>
37633         ioctl: Move AC_LIBOBJ invocations to module description.
37634         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
37635         invocations from here...
37636         * modules/ioctl (configure.ac): ... to here.
37637         (Depends-on): Update condition.
37639 2011-05-08  Bruno Haible  <bruno@clisp.org>
37641         imaxdiv: Move AC_LIBOBJ invocations to module description.
37642         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
37643         invocations from here...
37644         * modules/imaxdiv (configure.ac): ... to here.
37646 2011-05-08  Bruno Haible  <bruno@clisp.org>
37648         imaxabs: Move AC_LIBOBJ invocations to module description.
37649         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
37650         invocations from here...
37651         * modules/imaxabs (configure.ac): ... to here.
37653 2011-05-08  Bruno Haible  <bruno@clisp.org>
37655         getaddrinfo: Move AC_LIBOBJ invocations to module description.
37656         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
37657         AC_LIBOBJ invocations from here...
37658         * modules/getaddrinfo (configure.ac): ... to here.
37659         (Depends-on): Add conditions.
37661 2011-05-08  Bruno Haible  <bruno@clisp.org>
37663         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37664         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
37665         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37666         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
37667         (gl_PREREQ_INET_PTON): ... from here.
37668         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
37669         gl_PREREQ_INET_PTON here.
37670         (Depends-on): Update condition.
37672 2011-05-08  Bruno Haible  <bruno@clisp.org>
37674         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37675         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
37676         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37677         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
37678         (gl_PREREQ_INET_NTOP): ... from here.
37679         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
37680         gl_PREREQ_INET_NTOP here.
37681         (Depends-on): Update condition.
37683 2011-05-08  Bruno Haible  <bruno@clisp.org>
37685         iconv_open: Move AC_LIBOBJ invocations to module description.
37686         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
37687         AC_LIBOBJ invocations from here...
37688         * modules/iconv_open (configure.ac): ... to here.
37690 2011-05-08  Bruno Haible  <bruno@clisp.org>
37692         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
37693         If module 'iconv_open' is among the main modules and module
37694         'iconv_open-utf' is among the tests dependencies, then
37695         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
37696         return the special iconv_t values. Therefore iconv() and iconv_close()
37697         must support these special iconv_t values, already in lib, not only in
37698         tests.
37699         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
37700         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
37701         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
37702         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
37703         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
37704         (Depends-on): Add the dependencies of iconv_open-utf.
37705         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
37706         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
37707         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
37709 2011-05-08  Bruno Haible  <bruno@clisp.org>
37711         group-member: Move AC_LIBOBJ invocations to module description.
37712         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
37713         gl_PREREQ_GROUP_MEMBER invocations from here...
37714         * modules/group-member (configure.ac): ... to here.
37716 2011-05-08  Bruno Haible  <bruno@clisp.org>
37718         grantpt: Move AC_LIBOBJ invocations to module description.
37719         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
37720         invocations from here...
37721         * modules/grantpt (configure.ac): ... to here.
37723 2011-05-08  Bruno Haible  <bruno@clisp.org>
37725         glob: Move AC_LIBOBJ invocations to module description.
37726         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
37727         from here...
37728         * modules/glob (configure.ac): ... to here.
37730 2011-05-08  Bruno Haible  <bruno@clisp.org>
37732         getusershell: Move AC_LIBOBJ invocations to module description.
37733         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
37734         Move AC_LIBOBJ invocation from here...
37735         * modules/getusershell (configure.ac): ... to here.
37736         (Depends-on): Update condition.
37738 2011-05-08  Bruno Haible  <bruno@clisp.org>
37740         gettimeofday: Move AC_LIBOBJ invocations to module description.
37741         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37742         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
37743         gl_PREREQ_GETTIMEOFDAY invocations from here...
37744         * modules/gettimeofday (configure.ac): ... to here.
37746 2011-05-08  Bruno Haible  <bruno@clisp.org>
37748         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
37749         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
37750         just gl_FUNC_TZSET.
37751         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
37752         (gl_FUNC_TZSET_CLOBBER): Remove actions.
37753         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
37754         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
37756 2011-05-08  Bruno Haible  <bruno@clisp.org>
37758         getsubopt: Move AC_LIBOBJ invocations to module description.
37759         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
37760         gl_PREREQ_GETSUBOPT invocations from here...
37761         * modules/getsubopt (configure.ac): ... to here.
37763 2011-05-08  Bruno Haible  <bruno@clisp.org>
37765         getpass-gnu: Move AC_LIBOBJ invocations to module description.
37766         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
37767         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
37768         * modules/getpass-gnu (configure.ac): ... to here.
37770 2011-05-08  Bruno Haible  <bruno@clisp.org>
37772         getpass: Move AC_LIBOBJ invocations to module description.
37773         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
37774         gl_PREREQ_GETPASS invocations from here...
37775         * modules/getpass (configure.ac): ... to here.
37777 2011-05-08  Bruno Haible  <bruno@clisp.org>
37779         getpagesize: Move AC_LIBOBJ invocations to module description.
37780         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
37781         from here...
37782         * modules/getpagesize (configure.ac): ... to here.
37784 2011-05-08  Bruno Haible  <bruno@clisp.org>
37786         getopt: Move AC_LIBOBJ invocations to module description.
37787         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
37788         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
37789         invocations from here...
37790         * modules/getopt-gnu (configure.ac): ... to here.
37791         * modules/getopt-posix (configure.ac): ... and here.
37792         (Depends-on): Update condition.
37794 2011-05-08  Bruno Haible  <bruno@clisp.org>
37796         getopt, argp: Respect rules for use of AC_LIBOBJ.
37797         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
37798         (gl_REPLACE_GETOPT_ALWAYS): New macro.
37799         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
37800         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
37802 2011-05-08  Bruno Haible  <bruno@clisp.org>
37804         getlogin_r: Move AC_LIBOBJ invocations to module description.
37805         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
37806         gl_PREREQ_GETLOGIN_R invocations from here...
37807         * modules/getlogin_r (configure.ac): ... to here.
37809 2011-05-08  Bruno Haible  <bruno@clisp.org>
37811         getlogin: Move AC_LIBOBJ invocations to module description.
37812         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
37813         here...
37814         * modules/getlogin (configure.ac): ... to here.
37816 2011-05-08  Bruno Haible  <bruno@clisp.org>
37818         getloadavg: Move AC_LIBOBJ invocations to module description.
37819         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
37820         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
37821         * modules/getloadavg (configure.ac): ... to here.
37823 2011-05-08  Bruno Haible  <bruno@clisp.org>
37825         gethrxtime: Move AC_LIBOBJ invocations to module description.
37826         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
37827         LIB_GETHRXTIME from here...
37828         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
37829         invocations from here...
37830         * modules/gethrxtime (configure.ac): ... to here.
37832 2011-05-08  Bruno Haible  <bruno@clisp.org>
37834         gethostname: Move AC_LIBOBJ invocations to module description.
37835         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
37836         gl_PREREQ_GETHOSTNAME invocations from here...
37837         * modules/gethostname (configure.ac): ... to here.
37839 2011-05-08  Bruno Haible  <bruno@clisp.org>
37841         getgroups: Move AC_LIBOBJ invocations to module description.
37842         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
37843         here...
37844         * modules/getgroups (configure.ac): ... to here.
37846 2011-05-08  Bruno Haible  <bruno@clisp.org>
37848         getdtablesize: Move AC_LIBOBJ invocations to module description.
37849         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
37850         invocation from here...
37851         * modules/getdtablesize (configure.ac): ... to here.
37853 2011-05-08  Bruno Haible  <bruno@clisp.org>
37855         getdomainname: Move AC_LIBOBJ invocations to module description.
37856         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
37857         gl_PREREQ_GETDOMAINNAME invocations from here...
37858         * modules/getdomainname (configure.ac): ... to here.
37860 2011-05-08  Bruno Haible  <bruno@clisp.org>
37862         getline: Move AC_LIBOBJ invocations to module description.
37863         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
37864         invocations from here...
37865         * modules/getline (configure.ac): ... to here.
37867 2011-05-08  Bruno Haible  <bruno@clisp.org>
37869         getline: Simplify.
37870         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
37871         It's already handled through the module dependency.
37873 2011-05-08  Bruno Haible  <bruno@clisp.org>
37875         getdelim: Move AC_LIBOBJ invocations to module description.
37876         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
37877         and gl_PREREQ_GETDELIM invocations from here...
37878         * modules/getdelim (configure.ac): ... to here.
37879         (Depends-on): Fix condition.
37881 2011-05-08  Bruno Haible  <bruno@clisp.org>
37883         getcwd: Move AC_LIBOBJ invocations to module description.
37884         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
37885         invocations from here...
37886         * modules/getcwd (configure.ac): ... to here.
37888 2011-05-08  Bruno Haible  <bruno@clisp.org>
37890         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
37891         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
37892         here...
37893         * modules/getcwd-lgpl (configure.ac): ... to here.
37895 2011-05-07  Bruno Haible  <bruno@clisp.org>
37897         crypto/gc: Move AC_LIBOBJ invocations to module description.
37898         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
37899         * modules/crypto/gc (configure.ac): ... to here.
37901 2011-05-07  Bruno Haible  <bruno@clisp.org>
37903         fwriting: Move AC_LIBOBJ invocations to module description.
37904         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
37905         here...
37906         * modules/fwriting (configure.ac): ... to here.
37908 2011-05-07  Bruno Haible  <bruno@clisp.org>
37910         fwritable: Move AC_LIBOBJ invocations to module description.
37911         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
37912         here...
37913         * modules/fwritable (configure.ac): ... to here.
37915 2011-05-07  Bruno Haible  <bruno@clisp.org>
37917         futimens: Move AC_LIBOBJ invocations to module description.
37918         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
37919         here...
37920         * modules/futimens (configure.ac): ... to here.
37922 2011-05-07  Bruno Haible  <bruno@clisp.org>
37924         ftruncate: Move AC_LIBOBJ invocations to module description.
37925         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
37926         gl_PREREQ_FTRUNCATE invocations from here...
37927         * modules/ftruncate (configure.ac): ... to here.
37929 2011-05-07  Bruno Haible  <bruno@clisp.org>
37931         fsync: Move AC_LIBOBJ invocations to module description.
37932         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
37933         invocations from here...
37934         * modules/fsync (configure.ac): ... to here.
37936 2011-05-07  Bruno Haible  <bruno@clisp.org>
37938         fsusage: Move AC_LIBOBJ invocations to module description.
37939         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
37940         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
37941         * modules/fsusage (configure.ac): ... to here.
37943 2011-05-07  Bruno Haible  <bruno@clisp.org>
37945         freopen: Move AC_LIBOBJ invocations to module description.
37946         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
37947         invocations from here...
37948         * modules/freopen (configure.ac): ... to here.
37950 2011-05-07  Bruno Haible  <bruno@clisp.org>
37952         free: Move AC_LIBOBJ invocations to module description.
37953         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
37954         invocations from here...
37955         * modules/free (configure.ac): ... to here.
37957 2011-05-07  Bruno Haible  <bruno@clisp.org>
37959         freadable: Move AC_LIBOBJ invocations to module description.
37960         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
37961         here...
37962         * modules/freadable (configure.ac): ... to here.
37964 2011-05-07  Bruno Haible  <bruno@clisp.org>
37966         fpurge: Move AC_LIBOBJ invocations to module description.
37967         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
37968         invocations from here...
37969         * modules/fpurge (configure.ac): ... to here.
37971 2011-05-07  Bruno Haible  <bruno@clisp.org>
37973         fpending: Move AC_LIBOBJ invocations to module description.
37974         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
37975         gl_FUNC_FPENDING.
37976         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
37977         invocations from here...
37978         * modules/fpending (configure.ac): ... to here.
37980 2011-05-07  Bruno Haible  <bruno@clisp.org>
37982         fopen: Move AC_LIBOBJ invocations to module description.
37983         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
37984         invocations from here...
37985         * modules/fopen (configure.ac): ... to here.
37987 2011-05-07  Bruno Haible  <bruno@clisp.org>
37989         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
37990         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
37991         gl_FUNC_FNMATCH_POSIX.
37992         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
37993         invocations from here...
37994         * modules/fnmatch (configure.ac): ... to here.
37995         * modules/fnmatch-gnu (configure.ac): ... and here.
37997 2011-05-07  Bruno Haible  <bruno@clisp.org>
37999         flock: Move AC_LIBOBJ invocations to module description.
38000         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
38001         invocations from here...
38002         * modules/flock (configure.ac): ... to here.
38004 2011-05-07  Bruno Haible  <bruno@clisp.org>
38006         fileblocks: Move AC_LIBOBJ invocations to module description.
38007         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
38008         gl_PREREQ_FILEBLOCKS invocations from here...
38009         * modules/fileblocks (configure.ac): ... to here.
38011 2011-05-06  Bruno Haible  <bruno@clisp.org>
38013         fflush: Move AC_LIBOBJ invocations to module description.
38014         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
38015         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
38016         invocations from here...
38017         * modules/fflush (configure.ac): ... to here.
38019 2011-05-06  Bruno Haible  <bruno@clisp.org>
38021         fdopendir: Move AC_LIBOBJ invocations to module description.
38022         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
38023         here...
38024         * modules/fdopendir (configure.ac): ... to here.
38025         (Depends-on): Improve conditions.
38027 2011-05-06  Bruno Haible  <bruno@clisp.org>
38029         _Exit: Move AC_LIBOBJ invocations to module description.
38030         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
38031         invocations from here...
38032         * modules/_Exit (configure.ac): ... to here.
38034 2011-05-21  Bruno Haible  <bruno@clisp.org>
38036         euidaccess: Respect rules for use of AC_LIBOBJ.
38037         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
38038         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
38039         from here...
38040         * modules/euidaccess (configure.ac): ... to here.
38042 2011-05-06  Bruno Haible  <bruno@clisp.org>
38044         error: Move AC_LIBOBJ invocations to module description.
38045         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
38046         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
38047         invocations from here...
38048         * modules/error (configure.ac): ... to here.
38050 2011-05-06  Bruno Haible  <bruno@clisp.org>
38052         duplocale: Move AC_LIBOBJ invocations to module description.
38053         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
38054         gl_PREREQ_DUPLOCALE invocations from here...
38055         * modules/duplocale (configure.ac): ... to here.
38057 2011-05-05  Bruno Haible  <bruno@clisp.org>
38059         dirfd: Move AC_LIBOBJ invocations to module description.
38060         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
38061         gl_FUNC_DIRFD.
38062         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
38063         here...
38064         * modules/dirfd (configure.ac): ... to here.
38065         (Depends-on): Fix condition.
38067 2011-05-05  Bruno Haible  <bruno@clisp.org>
38069         chown: Respect rules for use of AC_LIBOBJ.
38070         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
38071         * modules/chown (configure.ac): ... to here.
38073 2011-05-05  Bruno Haible  <bruno@clisp.org>
38075         chdir-long: Move AC_LIBOBJ invocations to module description.
38076         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
38077         gl_PREREQ_CHDIR_LONG invocations from here...
38078         * modules/chdir-long (configure.ac): ... to here.
38080 2011-05-05  Bruno Haible  <bruno@clisp.org>
38082         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
38083         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
38084         from here...
38085         * modules/canonicalize-lgpl (configure.ac): ... to here.
38087 2011-05-05  Bruno Haible  <bruno@clisp.org>
38089         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
38090         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
38091         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
38092         REPLACE_CALLOC.
38093         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
38094         * modules/calloc-gnu (configure.ac): Likewise.
38096 2011-05-05  Bruno Haible  <bruno@clisp.org>
38098         btowc: Move AC_LIBOBJ invocations to module description.
38099         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
38100         invocations from here...
38101         * modules/btowc (configure.ac): ... to here.
38103 2011-05-21  Bruno Haible  <bruno@clisp.org>
38105         atexit: Move AC_LIBOBJ invocations to module description.
38106         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
38107         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
38108         here...
38109         * modules/atexit (configure.ac): ... to here.
38111 2011-05-05  Bruno Haible  <bruno@clisp.org>
38113         atoll: Move AC_LIBOBJ invocations to module description.
38114         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
38115         invocations from here...
38116         * modules/atoll (configure.ac): ... to here.
38118 2011-05-05  Bruno Haible  <bruno@clisp.org>
38120         argz: Move AC_LIBOBJ invocations to module description.
38121         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
38122         * modules/argz (configure.ac): ... to here.
38124 2011-05-05  Bruno Haible  <bruno@clisp.org>
38126         alphasort: Move AC_LIBOBJ invocations to module description.
38127         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
38128         gl_PREREQ_ALPHASORT invocations from here...
38129         * modules/alphasort (configure.ac): ... to here.
38131 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38133         verify: new macro verify_expr; verify_true deprecated
38134         * NEWS: Mention this.
38135         * doc/verify.texi (Compile-time Assertions): Document this.
38136         * lib/verify.h (verify_true): Deprecate.
38137         (verify_expr): New macro.
38138         * tests/test-verify.c (function): Test verify_expr.
38140 2011-06-14  Jim Meyering  <meyering@redhat.com>
38142         init.sh: give more portable redirection-related advice in a comment
38143         * tests/init.sh (stderr_fileno_): Update the advice in comments.
38144         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
38145         for lots of discussion.  Stefano Lattarini suggested the solution
38146         of putting "9>&2" after the command.  Reported by Bruno Haible.
38148 2011-06-13  Bruno Haible  <bruno@clisp.org>
38150         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
38151         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
38152         'none'.
38154 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
38156         ftoastr: use strtof only if HAVE_STRTOF
38157         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
38158         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
38159         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
38160         * modules/ftoastr (configure.ac): Check for strtof.
38162 2011-06-13  Bruno Haible  <bruno@clisp.org>
38164         gnulib-tool: Addendum to 2011-06-08 commit.
38165         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
38166         and --witness-c-macro have been given, augment AM_CPPFLAGS.
38168 2011-06-13  Bruno Haible  <bruno@clisp.org>
38170         fseeko: Provide a non-inline replacement of fseek().
38171         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
38172         * modules/fseeko (Depends-on): Add fseek.
38173         * modules/fseek (License): Change to LGPLv2+.
38175 2011-06-13  Bruno Haible  <bruno@clisp.org>
38177         ftello: Provide a non-inline replacement of ftell().
38178         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
38179         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
38180         not have ftello() (such as on mingw).
38181         * modules/ftello (Depends-on): Add ftell.
38182         * modules/ftell (License): Change to LGPLv2+.
38184 2011-05-07  Bruno Haible  <bruno@clisp.org>
38186         ftell: Move AC_LIBOBJ invocations to module description.
38187         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
38188         * modules/ftell (configure.ac): ... to here.
38190 2011-05-07  Bruno Haible  <bruno@clisp.org>
38192         ftello: Respect rules for use of AC_LIBOBJ.
38193         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
38194         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
38195         here...
38196         * modules/ftello (configure.ac): ... to here.
38198 2011-05-07  Bruno Haible  <bruno@clisp.org>
38200         fseeko: Simplify.
38201         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
38202         (gl_FUNC_FSEEKO): Inline it here.
38204 2011-05-07  Bruno Haible  <bruno@clisp.org>
38206         fseek: Move AC_LIBOBJ invocations to module description.
38207         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
38208         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
38209         * modules/fseek (configure.ac): ... to here.
38211 2011-05-07  Bruno Haible  <bruno@clisp.org>
38213         fseek: Respect rules for use of AC_LIBOBJ.
38214         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
38215         here...
38216         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
38218 2011-05-07  Bruno Haible  <bruno@clisp.org>
38220         fseeko: Respect rules for use of AC_LIBOBJ.
38221         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
38222         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
38223         here...
38224         * modules/fseeko (configure.ac): ... to here.
38226 2011-06-13  Bruno Haible  <bruno@clisp.org>
38228         gnulib-tool: Allow comments in the 'Depends-on' section.
38229         * doc/gnulib.texi (Module description): Mention comment syntax in the
38230         Depends-on section.
38231         * gnulib-tool (func_get_dependencies): Filter out comment lines.
38233 2011-06-13  Bruno Haible  <bruno@clisp.org>
38235         file-set.h: guard __attibute__ use, now that it's not always defined
38236         * lib/file-set.h (record_file): Use __attribute__ only with compiler
38237         versions that support it.  This fixes a coreutils build failure with
38238         the vendor cc on HP-UX 11.31.
38240 2011-06-12  Bruno Haible  <bruno@clisp.org>
38242         acl: Add support for HP-UX >= 11.11 JFS ACLs.
38243         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
38244         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
38245         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
38246         (acl, aclsort): New declarations.
38247         (aclv_nontrivial): New declaration.
38248         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
38249         (file_has_acl): Read also the second kind of HP-UX ACLs.
38250         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
38251         kind of HP-UX ACLs if the first kind fails.
38252         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
38253         second kind of HP-UX ACLs.
38254         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
38255         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
38256         agree.
38257         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38258         hpuxjfs.
38259         Handle hpuxjfs.
38260         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38261         hpuxjfs.
38262         Handle hpuxjfs.
38263         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38264         (func_test_same_acls): Use both lsacl and getacl.
38265         Handle hpuxjfs.
38266         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38267         (func_test_same_acls): Use both lsacl and getacl.
38268         Handle hpuxjfs.
38270 2011-06-12  Bruno Haible  <bruno@clisp.org>
38272         acl: Complete the 2010-08-10 fix.
38273         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
38274         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
38275         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
38276         explicitly.
38277         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
38278         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
38280 2011-06-12  Bruno Haible  <bruno@clisp.org>
38282         spawn-pipe tests: Comments.
38283         * tests/test-spawn-pipe-child.c (main): Update comment.
38284         Reported by James Youngman <jay@gnu.org>.
38286 2011-06-11  James Youngman  <jay@gnu.org>
38288         New module 'stat-size'.
38289         * modules/stat-size: New module.  Provides macros for accessing
38290         file size information in instances of struct stat.  Depends on the
38291         fileblocks module because it calls st_blocks.
38292         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38293         * doc/gnulib.texi: Include stat-size.texi.
38294         * doc/stat-size.texi: Documentation for this module.
38295         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38296         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38297         AC_STRUCT_ST_BLOCKS.
38299 2011-06-09  Bruno Haible  <bruno@clisp.org>
38301         thread: Support pthreads-win32.
38302         * lib/glthread/thread.h (gl_thread_self): Define differently on
38303         pthreads-win32.
38304         (gl_null_thread): New declaration.
38305         (gl_thread_self_pointer): New macro.
38306         * lib/glthread/thread.c (gl_null_thread): New constant.
38307         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38308         gl_thread_self.
38309         * tests/test-tls.c: Likewise.
38310         Suggested by Paul Eggert. Reported by Eric Blake.
38312 2011-06-09  Bruno Haible  <bruno@clisp.org>
38314         thread: Fix confusion between NULL and 0.
38315         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38316         Reported by Paul Eggert.
38318 2011-06-09  Bruno Haible  <bruno@clisp.org>
38320         spawn-pipe tests: Avoid test failure on HP-UX 11.
38321         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38322         is closed.
38324 2011-06-09  Bruno Haible  <bruno@clisp.org>
38326         acl tests: Fix compilation error on HP-UX 11.
38327         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38329 2011-06-09  Bruno Haible  <bruno@clisp.org>
38331         rmdir: Avoid test failure on HP-UX 10.20.
38332         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38333         EEXIST.
38335 2011-06-08  Eric Blake  <eblake@redhat.com>
38337         perror: fix test on mingw
38338         * modules/perror-tests (Depends-on): Add dup2.
38340         strerror_r-posix: fix on MacOS
38341         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38342         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38343         logic bug.
38344         * lib/strerror_r.c (strerror_r): Fix the bug.
38345         * lib/strerror.c (strerror): Likewise.
38346         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38347         problem.
38348         * doc/posix-functions/strerror.texi (strerror): Likewise.
38349         * doc/posix-functions/perror.texi (perror): Likewise.
38350         * tests/test-strerror.c (main): Enhance test.
38351         * tests/test-strerror_r.c (main): Likewise.
38353 2011-06-08  Bruno Haible  <bruno@clisp.org>
38355         gnulib-tool: Better isolation between different gnulib-tool invocations.
38356         * gnulib-tool: New option --witness-c-macro.
38357         (witness_c_macro): New variable.
38358         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38359         AM_CPPFLAGS define it as a C macro.
38360         (func_emit_tests_Makefile_am): Likewise.
38361         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38362         read it from there.
38363         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38364         m4_define, not AC_DEFUN.
38365         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38366         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38367         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38368         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38369         s|...|...|, to substitute the values of the GNULIB_* module indicator
38370         variables.
38371         * modules/dirent (Makefile.am): Likewise.
38372         * modules/fcntl-h (Makefile.am): Likewise.
38373         * modules/iconv-h (Makefile.am): Likewise.
38374         * modules/langinfo (Makefile.am): Likewise.
38375         * modules/locale (Makefile.am): Likewise.
38376         * modules/math (Makefile.am): Likewise.
38377         * modules/netdb (Makefile.am): Likewise.
38378         * modules/poll-h (Makefile.am): Likewise.
38379         * modules/pty (Makefile.am): Likewise.
38380         * modules/search (Makefile.am): Likewise.
38381         * modules/signal (Makefile.am): Likewise.
38382         * modules/spawn (Makefile.am): Likewise.
38383         * modules/stdio (Makefile.am): Likewise.
38384         * modules/stdlib (Makefile.am): Likewise.
38385         * modules/string (Makefile.am): Likewise.
38386         * modules/sys_ioctl (Makefile.am): Likewise.
38387         * modules/sys_select (Makefile.am): Likewise.
38388         * modules/sys_socket (Makefile.am): Likewise.
38389         * modules/sys_stat (Makefile.am): Likewise.
38390         * modules/sys_times (Makefile.am): Likewise.
38391         * modules/sys_utsname (Makefile.am): Likewise.
38392         * modules/sys_wait (Makefile.am): Likewise.
38393         * modules/termios (Makefile.am): Likewise.
38394         * modules/time (Makefile.am): Likewise.
38395         * modules/unistd (Makefile.am): Likewise.
38396         * modules/wchar (Makefile.am): Likewise.
38398 2011-06-08  Eric Blake  <eblake@redhat.com>
38400         strerror: simplify replacement
38401         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38402         * modules/strerror (configure.ac): No prereqs needed here...
38403         * modules/strerror-override (configure.ac): ...but this needs it.
38404         (Files): Add file for needed prereq macro.
38406 2011-06-08  Bruno Haible  <bruno@clisp.org>
38408         strerror_r-posix: Tweaks.
38409         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38410         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38411         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38412         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38413         (gl_FUNC_STRERROR_R): ... to here.
38414         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38416 2011-06-07  Eric Blake  <eblake@redhat.com>
38418         perror: document fixed bugs
38419         * doc/posix-functions/perror.texi (perror): Document recent
38420         patches.
38422 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38424         stat-time: get_stat_birthtime failure is better-defined
38425         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38426         return a timestamp whose tv_sec and tv_nsec values are both -1.
38427         Previously, the spec said only that the tv_nsec value was negative.
38428         This upward-compatible change simplifies GNU tar a bit.
38430 2011-06-07  Eric Blake  <eblake@redhat.com>
38432         strerror_r-posix: work around cygwin 1.7.9
38433         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38434         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38435         bug without replacing strerror_r.
38436         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38437         strerror_r is buggy, but without requiring strerror_r compilation.
38438         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38440         test-perror: relax test to ignore cygwin bug
38441         * tests/test-perror2.c (main): Relax test on requiring detection
38442         of stream errors, and use unbuffered stream.
38443         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38444         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38445         * doc/posix-functions/fputc.texi (fputc): Likewise.
38446         * doc/posix-functions/fputs.texi (fputs): Likewise.
38447         * doc/posix-functions/fputws.texi (fputws): Likewise.
38448         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38449         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38450         * doc/posix-functions/getopt.texi (getopt): Likewise.
38451         * doc/posix-functions/perror.texi (perror): Likewise.
38452         * doc/posix-functions/printf.texi (printf): Likewise.
38453         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38454         * doc/posix-functions/psignal.texi (psignal): Likewise.
38455         * doc/posix-functions/putc.texi (putc): Likewise.
38456         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38457         Likewise.
38458         * doc/posix-functions/putchar.texi (putchar): Likewise.
38459         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38460         Likewise.
38461         * doc/posix-functions/puts.texi (puts): Likewise.
38462         * doc/posix-functions/putwc.texi (putwc): Likewise.
38463         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38464         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38465         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38466         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38467         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38468         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38469         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38470         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38472 2011-05-22  Bruno Haible  <bruno@clisp.org>
38474         strerror: Move AC_LIBOBJ invocations to module description.
38475         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38476         gl_PREREQ_STRERROR invocations from here...
38477         * modules/strerror (configure.ac): ... to here.
38479 2011-05-21  Bruno Haible  <bruno@clisp.org>
38481         perror: Use common idiom.
38482         * modules/perror (configure.ac): Reorder statements.
38484 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38486         tests: fix usage message in 'mktempd_'
38487         * tests/init.sh (mktempd_): In the usage message, use literal
38488         'mktempd_', not '$ME' (which is even undefined), as the name of
38489         the subroutine.
38491 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38493         tests init: new function 'fatal_', for hard errors
38494         Before this patch, the only way offered by tests/init.sh to
38495         properly signal a hard error was the `framework_failure_'
38496         function.  But the error message issued by that function,
38497         as its name would suggest, refers to a set-up failure in the
38498         testsuite, while hard errors can obviously also be due to
38499         other reasons.  The best way to fix this inconsistency is to
38500         introduce a new function with a more general error message.
38501         * tests/init.sh (fatal_): New function.
38503 2011-06-06  Eric Blake  <eblake@redhat.com>
38505         canonicalize-lgpl: use common idiom
38506         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38507         over newer POSIX -Rf.
38508         Reported by Bruno Haible.
38510         canonicalize-lgpl: work around AIX realpath bug
38511         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38512         * doc/posix-functions/realpath.texi (realpath): Document it.
38513         Reported by Bruno Haible.
38515         strerror: work around FreeBSD bug
38516         * lib/strerror.c (strerror): Special case 0.
38517         Reported by Bruno Haible.
38519         strerror-override: avoid bloating errno module
38520         * modules/errno (Files, configure.ac): Move replacement strings...
38521         * modules/strerror-override: ...to new module.
38522         * modules/strerror (Depends-on): Add strerror-override.
38523         * modules/strerror_r-posix (Depends-on): Likewise.
38524         * MODULES.html.sh: Document new module.
38525         Reported by Bruno Haible.
38527 2011-06-06  Bruno Haible  <bruno@clisp.org>
38529         spawn-pipe tests: Rename program.
38530         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38531         * tests/test-spawn-pipe-child.c: Update comment.
38532         * tests/test-spawn-pipe.sh: Update.
38533         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38535         spawn-pipe tests: Link the child program only against libc.
38536         * tests/test-spawn-pipe-child.c: New file, extracted from
38537         tests/test-spawn-pipe.c.
38538         (main): Expect only one argument.
38539         (is_open): New function, copied from tests/test-pipe.c.
38540         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38541         (child_main): Remove function.
38542         (test_pipe): Pass only one argument to the child program.
38543         (main): Remove child process code. Expect the child program's name as
38544         first argument.
38545         * tests/test-spawn-pipe.sh: Pass the child program's name as first
38546         argument.
38547         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
38548         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
38549         test-spawn-pipe-child against no libraries.
38551 2011-06-06  Bruno Haible  <bruno@clisp.org>
38553         careadlinkat: Avoid mismatch between ssize_t and int.
38554         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
38555         * lib/careadlinkat.c (careadlinkatcwd): Define always.
38557 2011-06-06  Jim Meyering  <meyering@redhat.com>
38559         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
38560         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
38561         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
38563 2011-06-05  Bruno Haible  <bruno@clisp.org>
38565         ansi-c++-opt: Interoperability with libtool.
38566         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
38567         set the variable to "no", not to ":".
38568         * NEWS: Mention the change.
38570 2011-06-05  Bruno Haible  <bruno@clisp.org>
38572         acl: Fix test failure on AIX 7.
38573         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
38574         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
38576 2011-06-05  Bruno Haible  <bruno@clisp.org>
38578         pipe-filter-ii: Fix test failure on AIX and IRIX.
38579         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
38580         with EAGAIN, retry with a smaller buffer size.
38582 2011-06-05  Bruno Haible  <bruno@clisp.org>
38584         localename: Fix link dependencies.
38585         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
38586         * modules/localename-tests (Makefile.am): Link test-localename with
38587         $(LIBTHREAD).
38589 2011-06-05  Bruno Haible  <bruno@clisp.org>
38591         error: Avoid gcc warning.
38592         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
38594 2011-06-05  Bruno Haible  <bruno@clisp.org>
38596         unsetenv: Avoid gcc warning.
38597         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
38599 2011-06-05  Bruno Haible  <bruno@clisp.org>
38601         setenv: Avoid gcc warning.
38602         * lib/setenv.c (setenv): Provide declaration if system lacks it.
38604 2011-06-05  Bruno Haible  <bruno@clisp.org>
38606         sys_select: Ensure memset is declared also on AIX 7.
38607         * lib/sys_select.in.h: Include <string.h> also on AIX.
38608         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
38609         self-contained also on AIX 7.1.
38611 2011-06-04  Jim Meyering  <meyering@redhat.com>
38613         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
38614         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
38615         function name, "error".
38616         (_gl_translatable_diag_func_re): New configurable variable.
38618 2011-06-04  Bruno Haible  <bruno@clisp.org>
38620         getopt: Avoid gcc warning.
38621         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
38623 2011-06-04  Bruno Haible  <bruno@clisp.org>
38625         strerror_r: Fix comments.
38626         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
38627         commit.
38629 2011-06-04  Bruno Haible  <bruno@clisp.org>
38631         perror: Fix compilation error.
38632         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
38633         Undefine fprintf, not sprintf.
38634         * modules/perror (Depends-on): Remove intprops, verify.
38636 2011-06-04  Bruno Haible  <bruno@clisp.org>
38638         setlocale: Enable replacement on Cygwin 1.5.
38639         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
38640         Cygwin 1.5.x.
38641         * doc/posix-functions/setlocale.texi: Mention that the problem with the
38642         LC_CTYPE category also exists on Cygwin 1.5.x.
38644 2011-06-04  Bruno Haible  <bruno@clisp.org>
38646         strerror-override: Don't disable symbol renamings.
38647         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
38648         * lib/strerror-override.c: Include config.h.
38649         (strerror_override): Don't undefine.
38651 2011-06-03  Bruno Haible  <bruno@clisp.org>
38653         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
38654         * lib/localename.h: Update copyright header.
38655         * lib/localename.c: Likewise.
38656         * lib/relocatable.h: Likewise.
38657         * lib/relocatable.c: Likewise.
38659 2011-06-02  Bruno Haible  <bruno@clisp.org>
38661         doc: Fix a module name.
38662         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
38664 2011-06-02  Bruno Haible  <bruno@clisp.org>
38666         pipe2: Remove dependency on 'nonblocking' module.
38667         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
38668         O_NONBLOCK is defined by gnulib.
38669         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
38670         is zero.
38671         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
38672         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
38673         defined by gnulib.
38674         (get_nonblocking_flag): New function.
38675         (main): Test O_NONBLOCK flag only if it is nonzero.
38676         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
38678 2011-06-03  Jim Meyering  <meyering@redhat.com>
38680         maint: three new prohibit-header-without-use rules
38681         Prohibit use of cloexec.h, posixver.h, same.h without use.
38682         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
38683         (sc_prohibit_posixver_without_use): Likewise.
38684         (sc_prohibit_same_without_use): Likewise.
38686 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38688         allocator: 'die' routine is now given requested size
38689         * lib/allocator.h (struct allocator.die): New size arg.
38690         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
38691         If the actual problem is an ssize_t limitation, not a size_t or
38692         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
38694 2011-06-01  Eric Blake  <eblake@redhat.com>
38696         strerror: drop strerror_r dependency
38697         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
38698         * lib/strerror-override.c (strerror_override): ...to new file.
38699         * lib/strerror-override.h: Add prototype.
38700         * lib/strerror-impl.h: Delete.
38701         * lib/strerror.c (strerror): New implementation.
38702         * modules/errno (Files): Add new files.
38703         (configure.ac): Compile new file as appropriate.
38704         * modules/strerror (Files): Drop unused file.
38705         (Depends-on): Drop strerror_r-posix.
38706         * MODULES.html.sh: Document strerror_r-posix.
38707         Requested by Sam Steingold.
38709         perror: call strerror_r directly
38710         * modules/perror (Files): Drop strerror-impl.h.
38711         * lib/perror.c (perror): Use our own stack buffer, rather than
38712         calling a wrapper that uses static storage.
38713         * doc/posix-functions/perror.texi (perror): Document a limitation
38714         of our replacement.
38716         strerror_r: fix includes for FreeBSD
38717         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
38718         since we use abort on some platforms.
38719         Reported by Matthias Bolte.
38721 2011-05-31  Bruno Haible  <bruno@clisp.org>
38723         Fix link errors in tests: openat-die uses gettext-h.
38724         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
38725         against $(LIBINTL).
38726         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
38727         against $(LIBINTL).
38728         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
38729         $(LIBINTL).
38730         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
38731         against $(LIBINTL).
38732         * modules/linkat-tests (Makefile.am): Link test-linkat against
38733         $(LIBINTL).
38734         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
38735         $(LIBINTL).
38736         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
38737         against $(LIBINTL).
38738         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
38739         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
38740         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
38741         $(LIBINTL).
38742         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
38743         $(LIBINTL).
38744         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
38745         $(LIBINTL).
38746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38748 2011-05-31  Bruno Haible  <bruno@clisp.org>
38750         Fix link errors in tests: wait-process uses gettext-h.
38751         * modules/nonblocking-pipe-tests (Makefile.am): Set
38752         test_nonblocking_pipe_main_LDADD.
38753         * modules/nonblocking-socket-tests (Makefile.am): Link
38754         test-nonblocking-socket-main against $(LIBINTL).
38755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38757 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38759         assert-h: work around 'verify' incompatibility
38760         * lib/verify.h: Use @...@ directives, not ifdef.
38761         * modules/assert-h (assert.h): Implement the directives.
38762         (assert.h): Substitute the symbol-prefix more consistently.
38764 2011-05-29  Jim Meyering  <meyering@redhat.com>
38766         trim: remove three superfluous assignments
38767         * lib/trim.c (trim2): Remove three superfluous assignments
38768         and correct brace positioning.
38770 2011-05-29  Bruno Haible  <bruno@clisp.org>
38772         wctype-h: Avoid namespace pollution on Solaris 2.6.
38773         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
38774         identifiers.
38775         * doc/posix-headers/wctype.texi: Mention the problem.
38776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38778 2011-05-28  Jim Meyering  <meyering@redhat.com>
38780         parse-datetime.y: accommodate -Wstrict-overflow
38781         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
38782         placate -Wstrict-overflow.
38784         trim: avoid a warning from -O2 -Wstrict-overflow
38785         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
38787 2011-05-29  Bruno Haible  <bruno@clisp.org>
38789         gnulib-tool: Fix bug in yesterday's commit.
38790         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
38791         twice.
38793 2011-05-29  Bruno Haible  <bruno@clisp.org>
38795         Allow multiple gnulib generated include files to be combined.
38796         * gnulib-tool (func_compute_include_guard_prefix): New function.
38797         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
38798         ${gl_include_guard_prefix} references.
38799         (func_import, func_create_testdir): Invoke
38800         func_compute_include_guard_prefix.
38801         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
38802         * lib/ctype.in.h: Likewise.
38803         * lib/dirent.in.h: Likewise.
38804         * lib/errno.in.h: Likewise.
38805         * lib/fcntl.in.h: Likewise.
38806         * lib/float.in.h: Likewise.
38807         * lib/getopt.in.h: Likewise.
38808         * lib/iconv.in.h: Likewise.
38809         * lib/langinfo.in.h: Likewise.
38810         * lib/locale.in.h: Likewise.
38811         * lib/math.in.h: Likewise.
38812         * lib/netdb.in.h: Likewise.
38813         * lib/netinet_in.in.h: Likewise.
38814         * lib/poll.in.h: Likewise.
38815         * lib/pthread.in.h: Likewise.
38816         * lib/pty.in.h: Likewise.
38817         * lib/sched.in.h: Likewise.
38818         * lib/se-selinux.in.h: Likewise.
38819         * lib/search.in.h: Likewise.
38820         * lib/signal.in.h: Likewise.
38821         * lib/spawn.in.h: Likewise.
38822         * lib/stdarg.in.h: Likewise.
38823         * lib/stddef.in.h: Likewise.
38824         * lib/stdint.in.h: Likewise.
38825         * lib/stdio.in.h: Likewise.
38826         * lib/stdlib.in.h: Likewise.
38827         * lib/string.in.h: Likewise.
38828         * lib/strings.in.h: Likewise.
38829         * lib/sys_file.in.h: Likewise.
38830         * lib/sys_ioctl.in.h: Likewise.
38831         * lib/sys_select.in.h: Likewise.
38832         * lib/sys_socket.in.h: Likewise.
38833         * lib/sys_stat.in.h: Likewise.
38834         * lib/sys_time.in.h: Likewise.
38835         * lib/sys_times.in.h: Likewise.
38836         * lib/sys_uio.in.h: Likewise.
38837         * lib/sys_utsname.in.h: Likewise.
38838         * lib/sys_wait.in.h: Likewise.
38839         * lib/sysexits.in.h: Likewise.
38840         * lib/termios.in.h: Likewise.
38841         * lib/time.in.h: Likewise.
38842         * lib/unistd.in.h: Likewise.
38843         * lib/wchar.in.h: Likewise.
38844         * lib/wctype.in.h: Likewise.
38845         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
38846         * modules/ctype (Makefile.am): Likewise.
38847         * modules/dirent (Makefile.am): Likewise.
38848         * modules/errno (Makefile.am): Likewise.
38849         * modules/fcntl-h (Makefile.am): Likewise.
38850         * modules/float (Makefile.am): Likewise.
38851         * modules/getopt-posix (Makefile.am): Likewise.
38852         * modules/iconv-h (Makefile.am): Likewise.
38853         * modules/langinfo (Makefile.am): Likewise.
38854         * modules/locale (Makefile.am): Likewise.
38855         * modules/math (Makefile.am): Likewise.
38856         * modules/netdb (Makefile.am): Likewise.
38857         * modules/netinet_in (Makefile.am): Likewise.
38858         * modules/poll-h (Makefile.am): Likewise.
38859         * modules/pthread (Makefile.am): Likewise.
38860         * modules/pty (Makefile.am): Likewise.
38861         * modules/sched (Makefile.am): Likewise.
38862         * modules/search (Makefile.am): Likewise.
38863         * modules/selinux-h (Makefile.am): Likewise.
38864         * modules/signal (Makefile.am): Likewise.
38865         * modules/spawn (Makefile.am): Likewise.
38866         * modules/stdarg (Makefile.am): Likewise.
38867         * modules/stddef (Makefile.am): Likewise.
38868         * modules/stdint (Makefile.am): Likewise.
38869         * modules/stdio (Makefile.am): Likewise.
38870         * modules/stdlib (Makefile.am): Likewise.
38871         * modules/string (Makefile.am): Likewise.
38872         * modules/strings (Makefile.am): Likewise.
38873         * modules/sys_file (Makefile.am): Likewise.
38874         * modules/sys_ioctl (Makefile.am): Likewise.
38875         * modules/sys_select (Makefile.am): Likewise.
38876         * modules/sys_socket (Makefile.am): Likewise.
38877         * modules/sys_stat (Makefile.am): Likewise.
38878         * modules/sys_time (Makefile.am): Likewise.
38879         * modules/sys_times (Makefile.am): Likewise.
38880         * modules/sys_uio (Makefile.am): Likewise.
38881         * modules/sys_utsname (Makefile.am): Likewise.
38882         * modules/sys_wait (Makefile.am): Likewise.
38883         * modules/sysexits (Makefile.am): Likewise.
38884         * modules/termios (Makefile.am): Likewise.
38885         * modules/time (Makefile.am): Likewise.
38886         * modules/unistd (Makefile.am): Likewise.
38887         * modules/wchar (Makefile.am): Likewise.
38888         * modules/wctype-h (Makefile.am): Likewise.
38889         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
38891 2011-05-29  Bruno Haible  <bruno@clisp.org>
38893         assert-h: Allow multiple gnulib generated replacements to coexist.
38894         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
38896 2011-05-29  Bruno Haible  <bruno@clisp.org>
38898         argp: Allow coexistence with strerror_r-posix module.
38899         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
38900         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
38901         by gnulib's <string.h> replacement), assume it has the POSIX signature,
38902         not the glibc signature.
38904 2011-05-28  Bruno Haible  <bruno@clisp.org>
38906         gnulib-tool: Alternative structure of testdirs, similar to --import.
38907         * gnulib-tool: New option --single-configure.
38908         (func_usage): Document it.
38909         (single_configure): New variable.
38910         (func_modules_transitive_closure_separately,
38911         func_modules_transitive_closure_separately,
38912         func_determine_use_libtests, func_modules_add_dummy_separately,
38913         func_modules_to_filelist_separately): New functions, extracted from
38914         func_import.
38915         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
38916         (func_import): Use the new functions.
38917         (func_create_testdir): Set final_modules. Handle $single_configure =
38918         true case.
38920 2011-05-28  Bruno Haible  <bruno@clisp.org>
38922         getloadavg: Remove an unreliable safety check.
38923         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
38924         getloadavg.c is in place.
38925         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
38926         Reported by Sam Steingold <sds@gnu.org>.
38928 2011-05-28  Bruno Haible  <bruno@clisp.org>
38930         doc: Cleanup yet another file produced by texinfo.tex.
38931         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
38933 2011-05-28  Bruno Haible  <bruno@clisp.org>
38935         Finish the conditional dependencies mechanism.
38936         * gnulib-tool: New option --no-conditional-dependencies.
38937         (func_usage): Document it. Don't mark --conditional-dependencies as
38938         experimental.
38939         (cond_dependencies): The possible values can now be true, false, empty.
38940         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
38941         (func_import): Store setting in gnulib-cache.m4 and read it from there.
38942         * doc/gnulib-tool.texi (Conditional dependencies): New section.
38944 2011-05-28  Bruno Haible  <bruno@clisp.org>
38946         doc: Use a recent texinfo.tex.
38947         * doc/Makefile (tex_opts): New variable.
38948         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
38950 2011-05-28  Jim Meyering  <meyering@redhat.com>
38952         intprops.h: adjust comment to match code change
38953         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
38954         only once, it *may* have side effects.  Also fix an unrelated typo.
38955         (_GL_INT_SIGNED): Likewise.
38957 2011-05-26  Simon Josefsson  <simon@josefsson.org>
38959         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
38961 2011-05-26  Bruno Haible  <bruno@clisp.org>
38963         mbsrchr: Avoid collision with system function on Interix.
38964         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
38965         Reported by Markus Duft <mduft@gentoo.org>.
38967 2011-05-15  James Youngman  <jay@gnu.org>
38969         getopt: for ambiguous options, enumerate the possibilities.
38970         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
38971         the ambiguous options when an ambiguous prefix is given. This was
38972         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
38973         glibc change was
38974         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
38976 2011-05-25  Eric Blake  <eblake@redhat.com>
38978         getcwd: work around mingw bug
38979         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
38980         * doc/posix-functions/getcwd.texi (getcwd): Document it.
38981         Reported by Matthias Bolte.
38983 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
38985         test-intprops: disable -Wtype-limits diagnostics
38986         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
38987         diagnostics.  Otherwise, the integer overflow macros generate many
38988         diagnostics.  Reported by Jim Meyering in
38989         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
38991         intprops: shorten, to pacify gcc -Woverlength-strings
38992         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
38993         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
38994         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
38995         likely to run afoul of C compiler limits for string constant lengths.
38996         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
38998 2011-05-24  Eric Blake  <eblake@redhat.com>
39000         docs: document recently fixed glibc printf bug
39001         * doc/posix-functions/fprintf.texi (fprintf): Document it.
39002         * doc/posix-functions/printf.texi (printf): Likewise.
39003         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39004         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39006         closein-tests: convert to init.sh
39007         * modules/closein-tests (Files): Add init.sh
39008         * tests/test-closein.sh Use it.
39010         yesno-tests: convert to init.sh
39011         * modules/yesno-tests (Files): Add init.sh.
39012         * tests/test-yesno.sh: Use it.
39014         atexit-tests: ensure reliable exit status
39015         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
39016         Reported by Bruno Haible.
39018 2011-05-24  Bruno Haible  <bruno@clisp.org>
39020         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
39021         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
39022         gl_PREREQ_STRERROR_R invocations from here...
39023         * modules/strerror_r-posix (configure.ac): ... to here.
39025 2011-05-24  Eric Blake  <eblake@redhat.com>
39027         strerror_r: fix missing header
39028         * lib/strerror_r.c: Avoid compiler warning about snprintf.
39030         strerror_r: fix AIX test failures
39031         * lib/strerror_r.c (strerror_r): Convert silent truncation to
39032         ERANGE failure.
39034         strerror_r: fix Solaris test failures
39035         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
39036         failures.
39037         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39039         strerror_r: enforce POSIX recommendations
39040         * lib/strerror_r.c (safe_copy): New helper method.
39041         (strerror_r): Guarantee a non-empty string.
39042         * tests/test-strerror_r.c (main): Enhance tests to incorporate
39043         recent POSIX rulings and to match our strerror guarantees.
39044         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39046 2011-05-24  Jim Meyering  <meyering@redhat.com>
39048         test-perror2.c: avoid warning about unused variable
39049         * tests/test-perror2.c (main): Remove declaration of unused "fp".
39051 2011-05-24  Eric Blake  <eblake@redhat.com>
39053         perror: avoid spurious test failure on HP-UX
39054         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
39056         tests: fix logic bug in init.sh
39057         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
39058         shell.
39060 2011-05-24  Jim Meyering  <meyering@redhat.com>
39062         utimensat: do not reference an out-of-scope buffer
39063         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
39064         declared in an inner scope, yet "times" would be dereferenced outside
39065         the scope in which "ts" was valid.
39066         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
39067         of ts[2] "out/up", so that the use of aliased "times" (via
39068         "times = ts;") does not end up referencing an out-of-scope "ts"
39070         opendir-safer.c: don't clobber errno; don't close negative FD
39071         * lib/opendir-safer.c (opendir_safer):
39072         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
39073         file descriptor, and more importantly, don't clobber the
39074         offending errno value with EINVAL.  Before, upon failure
39075         of dup_safer, we would pass the negative file descriptor to
39076         fdopendir, which would clobber errno.
39078 2011-05-23  Bruno Haible  <bruno@clisp.org>
39080         idcache: Fix module description.
39081         * modules/idcache (Include): Set to "idcache.h".
39083 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39085         gnulib-tool: fix portability problem with MacOS sed
39086         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
39087         before the "}".  Problem reported by Leo in
39088         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
39089         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
39090         sed_extract_condition1, sed_extract_condition2.
39092 2011-05-23  Bruno Haible  <bruno@clisp.org>
39094         hash: Simplify autoconf macro.
39095         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
39097 2011-05-23  Bruno Haible  <bruno@clisp.org>
39099         getugroups: Fix module description.
39100         * modules/getugroups (Include): Set to "getugroups.h".
39102 2011-05-23  Bruno Haible  <bruno@clisp.org>
39104         linkat: Simplify autoconf macro.
39105         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
39107 2011-05-23  Bruno Haible  <bruno@clisp.org>
39108             Eric Blake  <eblake@redhat.com>
39110         linkat, renameat: Update dependencies.
39111         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
39112         * modules/linkat (Depends-on): Likewise. Remove also readlink,
39113         symlinkat.
39115 2011-05-23  Jim Meyering  <meyering@redhat.com>
39117         maint.mk: more tight_scope improvements
39118         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
39119         (_gl_TS_headers): Define only in if-0'd block.
39120         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
39121         sometimes we must *not* use it.  Adjust uses accordingly.
39122         (sc_tight_scope): Use much simpler grep-based test to determine
39123         whether we skip this rule.
39125         maint.mk: generalize/improve the tight-scope rule
39126         * top/maint.mk: Emit a warning when the test is skipped.
39127         (_gl_TS_dir): Add $(srcdir)/ prefix.
39128         (_gl_TS_function_match): Simplify, rather than trying
39129         to enumerate common types.  Otherwise, it would fail to match an
39130         "extern unsigned char const *" declaration in idutils.
39131         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
39132         a way to support use of that type of macro.
39133         (_gl_TS_var_match): Simplify regexp.
39134         (_gl_TS_obj_files): New configurable variable.
39135         (_gl_TS_headers): Likewise.
39137 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39139         verify: fix bug when gnulib <assert.h> is also included
39140         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
39141         is defined, not if _GL_STATIC_ASSERT_H is not defined.
39142         Perhaps there's a better way, but this fixes the immediate problem.
39143         Problem reported by Bruno Haible in
39144         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
39146 2011-05-22  Bruno Haible  <bruno@clisp.org>
39148         xgetcwd: Simplify autoconf macro.
39149         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
39151 2011-05-22  Bruno Haible  <bruno@clisp.org>
39153         New module 'mktime-internal'.
39154         * modules/mktime-internal: New file.
39155         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
39156         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
39157         mktime_internal as a C macro if libc has __mktime_internal.
39158         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
39159         conditions.
39160         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
39162 2011-05-22  Bruno Haible  <bruno@clisp.org>
39164         timegm: Correct mktime replacement statements.
39165         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
39166         defining mktime as a C macro. This completes a 2009-07-28 commit.
39168 2011-05-22  Bruno Haible  <bruno@clisp.org>
39170         timegm: Simplify autoconf macro.
39171         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
39173 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
39175         clock-time: change to LGPLv2+.
39176         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
39177         BSD-like but we have no mark for that; this is good enough for now.
39179 2011-05-21  Bruno Haible  <bruno@clisp.org>
39181         strerror_r: Fix comments.
39182         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
39184 2011-05-21  Bruno Haible  <bruno@clisp.org>
39186         relocatable-prog-wrapper: Fix possible link error.
39187         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
39188         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
39189         (gl_FUNC_SETENV): ... to here.
39190         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
39191         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
39193 2011-05-21  Bruno Haible  <bruno@clisp.org>
39195         relocatable-prog-wrapper: Assume strerror() exists.
39196         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
39197         m4/strerror.m4.
39198         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
39199         * lib/relocwrapper.c: Remove mention of strerror module.
39200         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
39201         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
39202         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
39203         C macro.
39205 2011-05-21  Bruno Haible  <bruno@clisp.org>
39207         select: Simplify replacement idiom.
39208         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
39209         Win32 platforms.
39210         * lib/sys_select.in.h (select): Simplify accordingly.
39211         * modules/select (Depends-on): Likewise.
39213 2011-05-21  Bruno Haible  <bruno@clisp.org>
39215         mkdir-p: Simplify autoconf macro.
39216         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
39217         gl_FUNC_LCHOWN.
39219 2011-05-21  Eric Blake  <eblake@redhat.com>
39221         strerror_r: avoid clobbering strerror on cygwin
39222         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
39223         fall back instead to sys_errlist.
39224         * modules/strerror (configure.ac): Add witness.
39225         * tests/test-strerror_r.c (main): Enhance test.
39226         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39227         * tests/test-perror2.c (main): Free memory before exit.
39229 2011-05-21  Bruno Haible  <bruno@clisp.org>
39231         mkdtemp: Use gnulib naming conventions.
39232         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
39233         * modules/mkdtemp (configure.ac): Update.
39235 2011-05-20  Eric Blake  <eblake@redhat.com>
39237         strerror_r: avoid corrupting errno on Solaris
39238         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
39239         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39241         strerror_r: avoid compiler warning
39242         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
39244         strerror_r: simplify AIX code
39245         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
39247         test-perror: avoid spurious failure on FreeBSD
39248         * modules/perror-tests (Depends-on): Add strerror, now that
39249         strerror_r no longer pulls it in.
39251 2011-05-20  Bruno Haible  <bruno@clisp.org>
39253         strerror_r-posix: Remove unused dependencies.
39254         * modules/strerror_r-posix (Depends-on): Remove strerror.
39255         Reported by Eric Blake.
39257 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39259         intprops: remove assumption about A|B representation
39260         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
39261         is a valid integer if both A and B are.  Although this is true for
39262         all known practical hosts, the C standard doesn't guarantee it,
39263         and the code need not assume it.  Also, this change may work around
39264         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
39265         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
39267 2011-05-20  Eric Blake  <eblake@redhat.com>
39269         perror: work around FreeBSD bug
39270         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
39271         is broken.  Move AC_LIBOBJ...
39272         * modules/perror (configure.ac): Here.
39273         * doc/posix-functions/perror.texi (perror): Document this.
39274         * tests/test-perror2.c (main): Enhance test.
39276         test-perror: check for strerror interactions
39277         * tests/macros.h (STREQ): Add macro.
39278         * modules/perror-tests (Files): Add second test.
39279         * tests/test-perror2.c (main): New file.
39280         * doc/posix-functions/perror.texi (perror): Document glibc bug.
39282         test-perror: rewrite to use init script
39283         * modules/perror-tests (Files): Add init.sh.
39284         * tests/test-perror.sh: Use temporary directory.
39286 2011-05-20  Jim Meyering  <meyering@redhat.com>
39288         maint: replace misused "a" with "an"
39289         * doc/intprops.texi: "a integer"
39290         * doc/regex.texi: "a explanation"
39291         * lib/alignof.h: "a object"
39292         * lib/argmatch.h: "a explanation"
39293         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39294         * lib/stdint.in.h: "a integer"
39295         * lib/userspec.c: "a owner"
39296         * doc/gnulib.texi: Fix "a idea", and reword.
39298 2011-05-19  Jim Meyering  <meyering@redhat.com>
39300         maint: correct misuse of "a" and "an"
39301         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39302         * lib/argp-help.c: "an docum...": s/an/a/
39303         * lib/argp-parse.c: "An vector": s/An/A/
39304         * lib/execute.c: "an native": s/an/a/
39305         * lib/spawn-pipe.c: Likewise.
39306         * lib/gc.h: "an Gc_rc": s/an/a/
39307         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39308         * lib/fts.c: "an stat.st_dev": s/an/a/
39310 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39312         intprops-tests: work around HP-UX 11.23 cc bug with constants
39313         * tests/test-intprops.c (VERIFY): New macro.
39314         (main): Use it, instead of verify, to work around the compiler bug; see
39315         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39317         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39318         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39319         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39320         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39321         (_GL_REMAINDER_OVERFLOW): Use it.
39323         intprops-tests: revert unsigned part of previous change
39324         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39325         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39326         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39327         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39329 2011-05-19  Bruno Haible  <bruno@clisp.org>
39331         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39332         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39333         strerror_r() returned without filling the buffer.
39334         Reported by Eric Blake.
39336 2011-05-19  Eric Blake  <eblake@redhat.com>
39338         strerror_r: guarantee unchanged errno
39339         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39340         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39341         failure.
39342         * tests/test-strerror_r.c (main): Enhance test.
39344 2011-05-19  Bruno Haible  <bruno@clisp.org>
39346         strerror_r: Reorder #if blocks.
39347         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39348         for consistency with the previous commit.
39350 2011-05-19  Bruno Haible  <bruno@clisp.org>
39352         perror: Avoid clobbering the strerror buffer when possible.
39353         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39354         * lib/strerror.c: Include it.
39355         * modules/strerror (Files): Add lib/strerror-impl.h.
39356         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39357         (my_strerror): New function, defined through lib/strerror-impl.h.
39358         (perror): Use it instead of strerror.
39359         * modules/perror (Files): Add lib/strerror-impl.h.
39360         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39362 2011-05-19  Eric Blake  <eblake@redhat.com>
39364         strerror_r: fix on newer cygwin
39365         * lib/strerror_r.c (strerror_r): Cygwin now has
39366         __xpg_strerror_r, use it.
39368 2011-05-19  Bruno Haible  <bruno@clisp.org>
39370         strerror_r: Avoid clobbering the strerror buffer when possible.
39371         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39372         (sys_nerr, sys_errlist): New declarations.
39373         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39374         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39375         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39377 2011-05-19  Bruno Haible  <bruno@clisp.org>
39379         strerror_r: Fix test failure on mingw.
39380         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39381         EXTEND_STRERROR_R.
39382         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39383         macros from errno.in.h instead.
39385 2011-05-19  Eric Blake  <eblake@redhat.com>
39387         strerror: relax test for Solaris
39388         * tests/test-strerror.c (main): Permit Solaris behavior.
39389         * tests/test-strerror_r.c (main): Likewise.
39391         strerror: enforce POSIX ruling on strerror(0)
39392         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39393         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39394         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39395         * doc/posix-functions/strerror.texi (strerror): Document it.
39396         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39397         * tests/test-strerror.c (main): Strengthen test.
39398         * tests/test-strerror_r.c (main): Likewise.
39400 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39402         intprop-tests: port to older and more-pedantic compilers
39403         * modules/intprops-tests (Files): Add tests/macros.h.
39404         * tests/test-intprops.c: Include macros.h.
39405         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39406         it's no longer documented to expand to an integer constant expression.
39407         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39408         argument is floating point, as it's no longer documented to expand
39409         to an integer constant expression in that case.
39410         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39411         compiler bugs reported by Bruno Haible.  See
39412         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39413         (U0, U1): New constants, to work around the same bugs.  Also,
39414         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39416         intprops: work around C compiler bugs
39417         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39418         bug in Sun C 5.11 2010/08/13 and other compilers; see
39419         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39421         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39422         * doc/intprops.texi (Integer Type Determination): Fix
39423         documentation for TYPE_IS_INTEGER: it returns an constant
39424         expression, not an integer constant expression.  Fix doc for
39425         TYPE_SIGNED: it returns an integer constant expression only if its
39426         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39427         hardly worth documented that way....)
39429 2011-05-18  Bruno Haible  <bruno@clisp.org>
39431         strerror_r: Avoid clobbering the strerror buffer when possible.
39432         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39433         Handle gnulib defined errno values here. When strerror() returns NULL
39434         or an empty string, return EINVAL.
39435         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39436         gnulib defined errno values here.
39437         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39439 2011-05-18  Eric Blake  <eblake@redhat.com>
39441         fnmatch: avoid compiler warning
39442         * lib/fnmatch_loop.c (FCT): Use correct type.
39443         Reported by Matthias Bolte.
39445 2011-05-13  Jim Meyering  <meyering@redhat.com>
39447         maint.mk: three new prohibit_<HDR>_without_use rules
39448         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39449         (sc_prohibit_stdio-safer_without_use): Likewise.
39450         (sc_prohibit_xfreopen_without_use): Likewise.
39452 2011-05-17  Jim Meyering  <meyering@redhat.com>
39454         announce-gen: fail if the NEWS delta is empty
39455         If there's nothing noteworthy in NEWS, then either you forgot
39456         or you shouldn't be releasing.
39457         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39459 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39461         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39462         reserved symbols starting with double underscore from the check.
39464 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39466         intprops: add doc
39467         * doc/intprops.texi: New file, documenting intprops.
39468         * doc/gnulib.texi (Particular Modules): Include it.
39470         verify: add doc to gnulib manual and fix example
39471         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39472         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39473         (Compile-time Assertions): Fix example so it can't overflow.
39475 2011-05-17  Jim Meyering  <meyering@redhat.com>
39477         warnings.m4: don't usurp save_CPPFLAGS variable name
39478         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39480         doc: fix typo
39481         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39483 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39484             Bruno Haible  <bruno@clisp.org>
39486         doc: Tweak recent change.
39487         * README (Portability guidelines): Tweak new text.
39488         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39489         Interix 6.1.
39491 2011-05-16  Eric Blake  <eblake@redhat.com>
39493         inttypes: avoid autoconf warning
39494         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39495         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39497 2011-05-16  Sam Steingold  <sds@gnu.org>
39498         and Eric Blake  <eblake@redhat.com>
39500         vc-list-files: accept multiple directory operands
39501         * build-aux/vc-list-files: Iterate over all remaining operands.
39503 2011-05-16  Bruno Haible  <bruno@clisp.org>
39505         Fix confusion regarding deprecated modules.
39506         * modules/calloc (Status, Notice): Mark module as deprecated, not
39507         obsolete.
39508         * modules/fnmatch-posix (Status, Notice): Likewise.
39509         * modules/getdate (Status, Notice): Likewise.
39510         * modules/getopt (Status, Notice): Likewise.
39511         * modules/malloc (Status, Notice): Likewise.
39512         * modules/pipe (Status, Notice): Likewise.
39513         * modules/realloc (Status, Notice): Likewise.
39514         * modules/rename-dest-slash (Status, Notice): Likewise.
39515         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39516         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39517         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39518         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39519         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39521 2011-05-16  Bruno Haible  <bruno@clisp.org>
39523         doc: List the target platforms.
39524         * doc/gnulib-intro.texi (Target Platforms): New section.
39525         * doc/gnulib.texi (Introduction): Update menu.
39526         * README (Portability guidelines): Refer to the new section. Update
39527         statement about oldest supported environment. Remove rationale why
39528         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39529         unportable C89 function.
39530         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39531         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39533 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39535         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39537 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39539         intprops-tests: new module
39540         * modules/intprops-tests, tests/test-intprops.c: New files.
39542         intprops: add safe, portable integer overflow checking
39543         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
39544         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
39545         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
39546         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
39547         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
39548         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
39549         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
39550         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
39551         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
39552         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
39553         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
39555 2011-05-12  James Youngman  <jay@gnu.org>
39557         Add a test for glibc's Bugzilla bug #12378.
39558         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
39559         doesn't allow the literal matching of a lone "[" (which is
39560         required by POSIX).
39561         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
39563 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
39565         Sync glibc change fixing Bugzilla bug #12378.
39566         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
39567         beginning and fall back to matching as normal character if the
39568         string ends before the matching ']' is found.  This is what POSIX
39569         requires.
39571 2011-05-13  Eric Blake  <eblake@redhat.com>
39573         getcwd-lgpl: relax test for FreeBSD
39574         * doc/posix-functions/getcwd.texi (getcwd): Document portability
39575         issue.
39576         * tests/test-getcwd-lgpl.c (main): Relax test.
39577         Reported by Matthias Bolte.
39579 2011-05-11  Eric Blake  <eblake@redhat.com>
39581         test-fflush: silence compiler warning
39582         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
39584 2011-05-11  Bruno Haible  <bruno@clisp.org>
39586         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
39587         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
39588         * modules/canonicalize (Depends-on): Add 'nocrash'.
39589         * modules/canonicalize-lgpl (Depends-on): Likewise.
39590         * doc/posix-functions/realpath.texi: Update platforms list.
39591         Reported by Ryan Schmidt <ryandesign@macports.org>.
39593 2011-05-11  Bruno Haible  <bruno@clisp.org>
39595         group-member: Declare function in <unistd.h>.
39596         * lib/unistd.in.h (group_member): New declaration.
39597         * lib/group-member.h: Remove file.
39598         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
39599         * tests/test-unistd-c++.cc: Check signature of group_member.
39600         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
39601         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
39602         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
39603         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
39604         HAVE_GROUP_MEMBER.
39605         * modules/group-member (Files): Remove lib/group-member.h.
39606         (Depends-on): Add unistd. Specify conditions.
39607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39608         (Include): Change to <unistd.h>.
39609         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
39610         HAVE_GROUP_MEMBER.
39611         * NEWS: Mention the change.
39612         * lib/euidaccess.c: Don't include group-member.h.
39614 2011-05-11  Bruno Haible  <bruno@clisp.org>
39616         group-member: Document module.
39617         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
39618         module.
39620 2011-05-11  Bruno Haible  <bruno@clisp.org>
39622         fclose: Fix mistake earlier today.
39623         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
39625 2011-05-11  Eric Blake  <eblake@redhat.com>
39627         fclose: preserve fflush errors
39628         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
39629         Reported by Jim Meyering.
39631         bootstrap: support a prereq of 'rpcgen -' on RHEL5
39632         * build-aux/bootstrap (check_versions): When no specific version
39633         is required, merely check that the app produces an exit status
39634         that indicates its existence.
39636         maint.mk: drop redundant check
39637         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
39638         the same but better.
39640 2011-05-11  Bruno Haible  <bruno@clisp.org>
39642         fclose: Fix possible link error.
39643         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
39644         unregister_shadow_fd. Improve comments.
39645         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
39646         Eric Blake.
39648 2011-05-11  Jim Meyering  <meyering@redhat.com>
39650         maint.mk: improve "can not" detection and generalize rule name
39651         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
39652         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
39653         Use the same technique as in sc_prohibit_doubled_word, so that
39654         we recognize "can not" also when the words are separated by a newline.
39655         Suggested by Eric Blake.
39656         (perl_filename_lineno_text_): Define.  Factored out of...
39657         (prohibit_doubled_word_): ...here.  Use the new definition.
39658         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
39659         (prohibit_undesirable_word_seq_RE_): New overridable variable.
39660         (ignore_undesirable_word_sequence_RE_): New overridable variable.
39662 2011-05-10  Eric Blake  <eblake@redhat.com>
39664         fclose: avoid double close race when possible
39665         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
39666         all but WINDOWS_SOCKETS.
39668 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
39670         openat: correct new comment
39671         * lib/openat-proc.c (openat_proc_name): Correct the comment.
39673 2011-05-10  Jim Meyering  <meyering@redhat.com>
39675         openat: add comments
39676         * lib/openat-proc.c (openat_proc_name): Add comments,
39677         mostly from Eric Blake.
39679 2011-05-09  Eric Blake  <eblake@redhat.com>
39681         openat: reduce syscalls in first probe of /proc
39682         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
39683         be a directory.  Simplify the probe for .. bugs.
39684         * modules/openat (Depends-on): Drop same-inode.
39685         Reported by Bastien ROUCARIES.
39687 2011-05-09  Jim Meyering  <meyering@redhat.com>
39689         maint.mk: change semantics/name of tight_scope variables
39690         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
39691         Rename variables to align with semantics that make them more useful.
39693         maint.mk: tweak new rule's name not to impinge
39694         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
39695         (sc_tight_scope): Use new rule name rather than $@-0.
39697         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
39698         * top/maint.mk (sc_tight_scope): New rule.
39699         (sc_tight_scope-0): New rule, ifdef'd out.
39700         (_gl_TS_dir): Default.
39701         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
39702         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
39704 2011-05-09  Simon Josefsson  <simon@josefsson.org>
39706         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
39707         Haible <bruno@clisp.org>.
39709 2011-05-08  Bruno Haible  <bruno@clisp.org>
39711         Comments.
39712         * m4/isnanf.m4: Add comment.
39713         * m4/isnanl.m4: Likewise.
39715 2011-05-08  Bruno Haible  <bruno@clisp.org>
39717         glob: Remove obsolete macro.
39718         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
39720 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
39722         intprops: Sun C 5.11 supports __typeof__
39723         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
39724         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
39725         which is new.
39726         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
39728         intprops: switch to usual gnulib indenting and naming
39729         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
39730         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
39732         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
39734 2011-05-08  Jim Meyering  <meyering@redhat.com>
39736         maint.mk: suppress "Entering/Leaving directory" diag in announcement
39737         * top/maint.mk (release-prep): Use make's --no-print-directory
39738         option when generating the announcement.  This eliminates the
39739         pesky "make[2]: Entering/Leaving directory" diagnostics in the
39740         generated announcement template.
39742 2011-05-08  Bruno Haible  <bruno@clisp.org>
39744         tzset: Fix gettimeofday wrapper on Solaris 2.6.
39745         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
39746         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
39748 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39750         ignore-value, verify: Omit include files from lib_SOURCES.
39751         * modules/ignore-value, modules/verify (Makefile.am):
39752         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
39753         that leads Automake to duplicate use of am__objects_... variables
39754         in Makefile.in.  See
39755         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
39757 2011-05-07  Bruno Haible  <bruno@clisp.org>
39759         fclose: Simplify autoconf macro.
39760         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
39761         defined.
39763 2011-05-07  Bruno Haible  <bruno@clisp.org>
39765         canonicalize-lgpl: Fix autoconf macro ordering bug.
39766         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
39767         gl_STDLIB_H_DEFAULTS.
39769 2011-05-06  Eric Blake  <eblake@redhat.com>
39771         maintainer-makefile: make sc_po_check easier to tune
39772         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
39773         to probe for strings, such as an alternate location for gnulib.
39775         fclose: guarantee behavior on seekable stdin
39776         * modules/fclose (Depends-on): Add fflush.
39777         * doc/posix-functions/fclose.texi (fclose): Document this.
39778         * tests/test-fclose.c (main): Make test for this unconditional.
39780 2011-05-06  Bruno Haible  <bruno@clisp.org>
39782         fflush, fpurge: Relicense under LGPLv2+.
39783         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
39784         * modules/fpurge (License): Likewise.
39785         With permission from Eric Blake and Jim Meyering.
39786         Suggested by Eric Blake.
39788 2011-05-06  Karl Berry  <karl@gnu.org>
39790         * MODULES.html.sh (func_all_modules): remove exit.
39792 2011-05-06  Jim Meyering  <meyering@redhat.com>
39794         maint.mk: use info-gnu@ as the default only for a stable release
39795         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
39796         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
39797         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
39798         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
39800 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
39802         assert-h: new module, which supports C1X-style static_assert
39803         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
39804         * lib/verify.h: Revamp so that this can be copied into assert.h,
39805         while retaining the ability to use it standalone as before.
39806         Rename private identifiers so as not to encroach on the
39807         standard C namespace, since this is now used by assert.h.
39808         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
39809         the old verify_true.
39810         (_GL_VERIFY_TRUE): New macro, with much of the contents of
39811         the old verify_true.  Use _GL_VERIFY_TYPE.
39812         (_GL_VERIFY): New macro, with much of the contents of the old verify.
39813         (static_assert): New macro, if _GL_STATIC_ASSERT_H
39814         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
39815         defined when this file is copied into the replacement assert.h.
39816         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
39817         and _Static_assert is not built in.
39818         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
39819         defined, and use the new macros mentioned above.
39820         * doc/posix-headers/assert.texi: Document this.
39822 2011-05-05  Bruno Haible  <bruno@clisp.org>
39824         fclose, fflush: Respect rules for use of AC_LIBOBJ.
39825         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
39826         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
39827         gl_REPLACE_FCLOSE here.
39828         * modules/fflush (Depends-on): Remove fclose.
39829         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
39830         combination with module 'fclose'.
39832 2011-05-05  Bruno Haible  <bruno@clisp.org>
39834         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
39835         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
39836         gl_FUNC_FFLUSH.
39837         (gl_FUNC_FFLUSH): Use it.
39838         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
39839         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
39840         gl_REPLACE_FSEEKO here.
39842 2011-05-05  Bruno Haible  <bruno@clisp.org>
39844         tzset: Relicense under LGPL.
39845         * modules/tzset (License): Change to LGPL.
39846         No agreement needed; it's a no-op.
39848         strtoimax, strtoumax: Relicense under LGPL.
39849         * modules/strtoimax (License): Change to LGPL.
39850         * modules/strtoumax (License): Likewise.
39851         With permission from Jim Meyering, Paul Eggert:
39852         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
39853         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
39855         getgroups: Relicense under LGPL.
39856         * modules/getgroups (License): Change to LGPL.
39857         With permission from Jim Meyering, Paul Eggert, Eric Blake:
39858         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39859         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39860         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39862         nanosleep: Relicense under LGPL.
39863         * modules/nanosleep (License): Change to LGPL.
39864         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
39865         Haible:
39866         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39867         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39868         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39869         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39871         futimens: Relicense under LGPL.
39872         * modules/futimens (License): Change to LGPL.
39873         With permission from Eric Blake:
39874         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39876         fflush: Relicense under LGPL.
39877         * modules/fflush (License): Change to LGPL.
39878         With permission from Eric Blake, Bruno Haible, Jim Meyering:
39879         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39880         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39881         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
39883         tmpfile: Relicense under LGPL.
39884         * modules/tmpfile (License): Change to LGPL.
39885         With permission from Ben Pfaff:
39886         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39888         isfinite: Relicense under LGPL.
39889         * modules/isfinite (License): Change to LGPL.
39890         With permission from Ben Pfaff, Bruno Haible:
39891         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39892         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
39894         acosl..tanl: Relicense under LGPL.
39895         * modules/acosl (License): Change to LGPL.
39896         * modules/asinl (License): Likewise.
39897         * modules/atanl (License): Likewise.
39898         * modules/cosl (License): Likewise.
39899         * modules/expl (License): Likewise.
39900         * modules/logl (License): Likewise.
39901         * modules/sinl (License): Likewise.
39902         * modules/sqrtl (License): Likewise.
39903         * modules/tanl (License): Likewise.
39904         Source code originally from glibc and Paolo Bonzini. Agreements:
39905         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
39906         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
39908 2011-05-05  Bruno Haible  <bruno@clisp.org>
39910         signal: Define sighandler_t.
39911         * lib/signal.in.h (sighandler_t): New type.
39912         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
39913         whether sighandler_t is defined.
39914         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
39915         * modules/signal (Depends-on): Add extensions.
39916         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
39917         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
39918         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
39920 2011-05-05  Eric Blake  <eblake@redhat.com>
39922         maint: remove useless REPLACE_*_H macros
39923         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
39924         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39925         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39926         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
39927         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39928         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39929         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
39930         * m4/btowc.m4: Update callers.
39931         * m4/dirfd.m4: Likewise.
39932         * m4/duplocale.m4: Likewise.
39933         * m4/fchdir.m4: Likewise.
39934         * m4/fdopendir.m4: Likewise.
39935         * m4/inet_ntop.m4: Likewise.
39936         * m4/inet_pton.m4: Likewise.
39937         * m4/ioctl.m4: Likewise.
39938         * m4/mbrlen.m4: Likewise.
39939         * m4/mbrtowc.m4: Likewise.
39940         * m4/mbsinit.m4: Likewise.
39941         * m4/mbsnrtowcs.m4: Likewise.
39942         * m4/mbsrtowcs.m4: Likewise.
39943         * m4/poll.m4: Likewise.
39944         * m4/setlocale.m4: Likewise.
39945         * m4/wcrtomb.m4: Likewise.
39946         * m4/wcsnrtombs.m4: Likewise.
39947         * m4/wcsrtombs.m4: Likewise.
39948         * m4/wctob.m4: Likewise.
39949         * m4/wcwidth.m4: Likewise.
39950         * modules/posix_spawn: Likewise.
39951         * modules/posix_spawn_file_actions_addclose: Likewise.
39952         * modules/posix_spawn_file_actions_adddup2: Likewise.
39953         * modules/posix_spawn_file_actions_addopen: Likewise.
39954         * modules/posix_spawn_file_actions_destroy: Likewise.
39955         * modules/posix_spawn_file_actions_init: Likewise.
39956         * modules/posix_spawnattr_destroy: Likewise.
39957         * modules/posix_spawnattr_getflags: Likewise.
39958         * modules/posix_spawnattr_getpgroup: Likewise.
39959         * modules/posix_spawnattr_getschedparam: Likewise.
39960         * modules/posix_spawnattr_getschedpolicy: Likewise.
39961         * modules/posix_spawnattr_getsigdefault: Likewise.
39962         * modules/posix_spawnattr_getsigmask: Likewise.
39963         * modules/posix_spawnattr_init: Likewise.
39964         * modules/posix_spawnattr_setflags: Likewise.
39965         * modules/posix_spawnattr_setpgroup: Likewise.
39966         * modules/posix_spawnattr_setschedparam: Likewise.
39967         * modules/posix_spawnattr_setschedpolicy: Likewise.
39968         * modules/posix_spawnattr_setsigdefault: Likewise.
39969         * modules/posix_spawnattr_setsigmask: Likewise.
39970         * modules/posix_spawnp: Likewise.
39972 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
39974         Add option to do-release-commit-and-tag to specify branch.
39975         * build-aux/do-release-commit-and-tag: Add --branch.
39977 2011-05-03  Bruno Haible  <bruno@clisp.org>
39979         Avoid unnecessary compilation units, through conditional dependencies.
39980         * modules/accept (Depends-on): Add conditions to the dependencies.
39981         * modules/acosl (Depends-on): Likewise.
39982         * modules/argz (Depends-on): Likewise.
39983         * modules/asinl (Depends-on): Likewise.
39984         * modules/atanl (Depends-on): Likewise.
39985         * modules/atoll (Depends-on): Likewise.
39986         * modules/bind (Depends-on): Likewise.
39987         * modules/btowc (Depends-on): Likewise.
39988         * modules/canonicalize-lgpl (Depends-on): Likewise.
39989         * modules/ceil (Depends-on): Likewise.
39990         * modules/ceilf (Depends-on): Likewise.
39991         * modules/ceill (Depends-on): Likewise.
39992         * modules/chdir-long (Depends-on): Likewise.
39993         * modules/chown (Depends-on): Likewise.
39994         * modules/close (Depends-on): Likewise.
39995         * modules/connect (Depends-on): Likewise.
39996         * modules/cosl (Depends-on): Likewise.
39997         * modules/dirfd (Depends-on): Likewise.
39998         * modules/dprintf (Depends-on): Likewise.
39999         * modules/dprintf-posix (Depends-on): Likewise.
40000         * modules/error (Depends-on): Likewise.
40001         * modules/euidaccess (Depends-on): Likewise.
40002         * modules/expl (Depends-on): Likewise.
40003         * modules/faccessat (Depends-on): Likewise.
40004         * modules/fchdir (Depends-on): Likewise.
40005         * modules/fclose (Depends-on): Likewise.
40006         * modules/fcntl (Depends-on): Likewise.
40007         * modules/fdopendir (Depends-on): Likewise.
40008         * modules/fflush (Depends-on): Likewise.
40009         * modules/floor (Depends-on): Likewise.
40010         * modules/floorf (Depends-on): Likewise.
40011         * modules/floorl (Depends-on): Likewise.
40012         * modules/fnmatch (Depends-on): Likewise.
40013         * modules/fopen (Depends-on): Likewise.
40014         * modules/fprintf-posix (Depends-on): Likewise.
40015         * modules/frexp (Depends-on): Likewise.
40016         * modules/frexp-nolibm (Depends-on): Likewise.
40017         * modules/frexpl (Depends-on): Likewise.
40018         * modules/frexpl-nolibm (Depends-on): Likewise.
40019         * modules/fseek (Depends-on): Likewise.
40020         * modules/fsusage (Depends-on): Likewise.
40021         * modules/ftell (Depends-on): Likewise.
40022         * modules/ftello (Depends-on): Likewise.
40023         * modules/futimens (Depends-on): Likewise.
40024         * modules/getcwd (Depends-on): Likewise.
40025         * modules/getcwd-lgpl (Depends-on): Likewise.
40026         * modules/getdelim (Depends-on): Likewise.
40027         * modules/getdomainname (Depends-on): Likewise.
40028         * modules/getgroups (Depends-on): Likewise.
40029         * modules/gethostname (Depends-on): Likewise.
40030         * modules/getline (Depends-on): Likewise.
40031         * modules/getlogin_r (Depends-on): Likewise.
40032         * modules/getopt-posix (Depends-on): Likewise.
40033         * modules/getpeername (Depends-on): Likewise.
40034         * modules/getsockname (Depends-on): Likewise.
40035         * modules/getsockopt (Depends-on): Likewise.
40036         * modules/getsubopt (Depends-on): Likewise.
40037         * modules/getusershell (Depends-on): Likewise.
40038         * modules/glob (Depends-on): Likewise.
40039         * modules/grantpt (Depends-on): Likewise.
40040         * modules/iconv_open (Depends-on): Likewise.
40041         * modules/iconv_open-utf (Depends-on): Likewise.
40042         * modules/inet_ntop (Depends-on): Likewise.
40043         * modules/inet_pton (Depends-on): Likewise.
40044         * modules/ioctl (Depends-on): Likewise.
40045         * modules/isapipe (Depends-on): Likewise.
40046         * modules/isfinite (Depends-on): Likewise.
40047         * modules/isinf (Depends-on): Likewise.
40048         * modules/lchown (Depends-on): Likewise.
40049         * modules/ldexpl (Depends-on): Likewise.
40050         * modules/link (Depends-on): Likewise.
40051         * modules/linkat (Depends-on): Likewise.
40052         * modules/listen (Depends-on): Likewise.
40053         * modules/logl (Depends-on): Likewise.
40054         * modules/lstat (Depends-on): Likewise.
40055         * modules/mbrlen (Depends-on): Likewise.
40056         * modules/mbrtowc (Depends-on): Likewise.
40057         * modules/mbsinit (Depends-on): Likewise.
40058         * modules/mbsnrtowcs (Depends-on): Likewise.
40059         * modules/mbsrtowcs (Depends-on): Likewise.
40060         * modules/mbtowc (Depends-on): Likewise.
40061         * modules/memcmp (Depends-on): Likewise.
40062         * modules/mkdir (Depends-on): Likewise.
40063         * modules/mkdtemp (Depends-on): Likewise.
40064         * modules/mkfifo (Depends-on): Likewise.
40065         * modules/mkfifoat (Depends-on): Likewise.
40066         * modules/mknod (Depends-on): Likewise.
40067         * modules/mkostemp (Depends-on): Likewise.
40068         * modules/mkostemps (Depends-on): Likewise.
40069         * modules/mkstemp (Depends-on): Likewise.
40070         * modules/mkstemps (Depends-on): Likewise.
40071         * modules/mktime (Depends-on): Likewise.
40072         * modules/nanosleep (Depends-on): Likewise.
40073         * modules/open (Depends-on): Likewise.
40074         * modules/openat (Depends-on): Likewise.
40075         * modules/perror (Depends-on): Likewise.
40076         * modules/poll (Depends-on): Likewise.
40077         * modules/popen (Depends-on): Likewise.
40078         * modules/posix_spawn (Depends-on): Likewise.
40079         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
40080         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40081         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40082         * modules/posix_spawnp (Depends-on): Likewise.
40083         * modules/pread (Depends-on): Likewise.
40084         * modules/printf-posix (Depends-on): Likewise.
40085         * modules/ptsname (Depends-on): Likewise.
40086         * modules/putenv (Depends-on): Likewise.
40087         * modules/pwrite (Depends-on): Likewise.
40088         * modules/readline (Depends-on): Likewise.
40089         * modules/readlink (Depends-on): Likewise.
40090         * modules/readlinkat (Depends-on): Likewise.
40091         * modules/recv (Depends-on): Likewise.
40092         * modules/recvfrom (Depends-on): Likewise.
40093         * modules/regex (Depends-on): Likewise.
40094         * modules/remove (Depends-on): Likewise.
40095         * modules/rename (Depends-on): Likewise.
40096         * modules/renameat (Depends-on): Likewise.
40097         * modules/rmdir (Depends-on): Likewise.
40098         * modules/round (Depends-on): Likewise.
40099         * modules/roundf (Depends-on): Likewise.
40100         * modules/roundl (Depends-on): Likewise.
40101         * modules/rpmatch (Depends-on): Likewise.
40102         * modules/select (Depends-on): Likewise.
40103         * modules/send (Depends-on): Likewise.
40104         * modules/sendto (Depends-on): Likewise.
40105         * modules/setenv (Depends-on): Likewise.
40106         * modules/setlocale (Depends-on): Likewise.
40107         * modules/setsockopt (Depends-on): Likewise.
40108         * modules/shutdown (Depends-on): Likewise.
40109         * modules/sigaction (Depends-on): Likewise.
40110         * modules/signbit (Depends-on): Likewise.
40111         * modules/sigprocmask (Depends-on): Likewise.
40112         * modules/sinl (Depends-on): Likewise.
40113         * modules/sleep (Depends-on): Likewise.
40114         * modules/snprintf (Depends-on): Likewise.
40115         * modules/snprintf-posix (Depends-on): Likewise.
40116         * modules/socket (Depends-on): Likewise.
40117         * modules/sprintf-posix (Depends-on): Likewise.
40118         * modules/sqrtl (Depends-on): Likewise.
40119         * modules/stat (Depends-on): Likewise.
40120         * modules/strchrnul (Depends-on): Likewise.
40121         * modules/strdup-posix (Depends-on): Likewise.
40122         * modules/strerror (Depends-on): Likewise.
40123         * modules/strerror_r-posix (Depends-on): Likewise.
40124         * modules/strndup (Depends-on): Likewise.
40125         * modules/strnlen (Depends-on): Likewise.
40126         * modules/strptime (Depends-on): Likewise.
40127         * modules/strsep (Depends-on): Likewise.
40128         * modules/strsignal (Depends-on): Likewise.
40129         * modules/strstr-simple (Depends-on): Likewise.
40130         * modules/strtod (Depends-on): Likewise.
40131         * modules/strtoimax (Depends-on): Likewise.
40132         * modules/strtok_r (Depends-on): Likewise.
40133         * modules/strtoumax (Depends-on): Likewise.
40134         * modules/symlink (Depends-on): Likewise.
40135         * modules/symlinkat (Depends-on): Likewise.
40136         * modules/tanl (Depends-on): Likewise.
40137         * modules/tcgetsid (Depends-on): Likewise.
40138         * modules/tmpfile (Depends-on): Likewise.
40139         * modules/trunc (Depends-on): Likewise.
40140         * modules/truncf (Depends-on): Likewise.
40141         * modules/truncl (Depends-on): Likewise.
40142         * modules/uname (Depends-on): Likewise.
40143         * modules/unlink (Depends-on): Likewise.
40144         * modules/unlockpt (Depends-on): Likewise.
40145         * modules/unsetenv (Depends-on): Likewise.
40146         * modules/usleep (Depends-on): Likewise.
40147         * modules/utimensat (Depends-on): Likewise.
40148         * modules/vasprintf (Depends-on): Likewise.
40149         * modules/vdprintf (Depends-on): Likewise.
40150         * modules/vdprintf-posix (Depends-on): Likewise.
40151         * modules/vfprintf-posix (Depends-on): Likewise.
40152         * modules/vprintf-posix (Depends-on): Likewise.
40153         * modules/vsnprintf (Depends-on): Likewise.
40154         * modules/vsnprintf-posix (Depends-on): Likewise.
40155         * modules/vsprintf-posix (Depends-on): Likewise.
40156         * modules/wcrtomb (Depends-on): Likewise.
40157         * modules/wcscasecmp (Depends-on): Likewise.
40158         * modules/wcscspn (Depends-on): Likewise.
40159         * modules/wcsdup (Depends-on): Likewise.
40160         * modules/wcsncasecmp (Depends-on): Likewise.
40161         * modules/wcsnrtombs (Depends-on): Likewise.
40162         * modules/wcspbrk (Depends-on): Likewise.
40163         * modules/wcsrtombs (Depends-on): Likewise.
40164         * modules/wcsspn (Depends-on): Likewise.
40165         * modules/wcsstr (Depends-on): Likewise.
40166         * modules/wcstok (Depends-on): Likewise.
40167         * modules/wcswidth (Depends-on): Likewise.
40168         * modules/wctob (Depends-on): Likewise.
40169         * modules/wctomb (Depends-on): Likewise.
40170         * modules/wctype (Depends-on): Likewise.
40171         * modules/wcwidth (Depends-on): Likewise.
40172         * modules/write (Depends-on): Likewise.
40174 2011-05-03  Bruno Haible  <bruno@clisp.org>
40176         Support for conditional dependencies.
40177         * doc/gnulib.texi (Module description): Document the syntax of
40178         conditional dependencies.
40179         * gnulib-tool: New option --conditional-dependencies.
40180         (func_usage): Document it.
40181         (cond_dependencies): New variable.
40182         (func_get_automake_snippet_conditional,
40183         func_get_automake_snippet_unconditional): New functions, extracted from
40184         func_get_automake_snippet.
40185         (func_get_automake_snippet): Use them.
40186         (sed_first_32_chars): New variable.
40187         (func_module_shellfunc_name): New function.
40188         (func_module_shellvar_name): New function.
40189         (func_module_conditional_name): New function.
40190         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
40191         func_cond_module_condition): New functions.
40192         (func_modules_transitive_closure): Add support for conditional
40193         dependencies.
40194         (func_emit_lib_Makefile_am): For a conditional module, enclose the
40195         conditional automake snippet in an automake conditional.
40196         (func_emit_autoconf_snippets): Emit shell functions that contain the
40197         code for conditional modules.
40198         (func_import, func_create_testdir): Update specification.
40200 2011-05-03  Eric Blake  <eblake@redhat.com>
40202         test-getaddrinfo: report error information
40203         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
40205 2011-05-03  Jim Meyering  <meyering@redhat.com>
40207         bootstrap: avoid build failure when $GZIP is set
40208         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
40209         program name.  If defined at all, it is supposed to list gzip options.
40210         Reported by Alan Curry in http://debbugs.gnu.org/8609
40212 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
40214         readme-release: new module with release instructions
40215         * modules/readme-release: New module.
40216         * top/README-release: New file, from coreutils, grep, diffutils.
40217         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40219 2011-05-02  Eric Blake  <eblake@redhat.com>
40221         fflush: also replace fclose when fixing fflush
40222         * modules/fflush (Depends-on): Add fclose.
40223         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
40224         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
40225         memstreams with no backing fd.
40226         * doc/posix-functions/fclose.texi (fclose): Document the use of
40227         fflush module to fix the bug.
40228         * tests/test-fclose.c (main): Relax test when fclose is used in
40229         isolation.
40231         fclose: add some tests
40232         * modules/fclose-tests: New test module.
40233         * tests/test-fclose.c: New file.
40234         * doc/posix-functions/fclose.texi (fclose): Document the bug.
40236         fclose: reduced dependencies
40237         * modules/fclose (Depends-on): Switch from fflush/fseeko to
40238         simpler lseek.
40239         * lib/fclose.c (rpl_fclose): Likewise.
40240         Reported by Simon Josefsson.
40242         exit: drop remaining clients
40243         * modules/argmatch (Depends-on): Replace exit with stdlib.
40244         * modules/copy-file (Depends-on): Likewise.
40245         * modules/execute (Depends-on): Likewise.
40246         * modules/exitfail (Depends-on): Likewise.
40247         * modules/obstack (Depends-on): Likewise.
40248         * modules/pagealign_alloc (Depends-on): Likewise.
40249         * modules/pipe-filter-gi (Depends-on): Likewise.
40250         * modules/pipe-filter-ii (Depends-on): Likewise.
40251         * modules/savewd (Depends-on): Likewise.
40252         * modules/spawn-pipe (Depends-on): Likewise.
40253         * modules/wait-process (Depends-on): Likewise.
40254         * modules/xsetenv (Depends-on): Likewise.
40255         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
40256         * modules/git-merge-changelog (Depends-on): Likewise.
40257         * modules/long-options (Depends-on): Likewise.
40258         * modules/pt_chown (Depends-on): Likewise.
40259         * modules/sysexits (Depends-on): Likewise.
40261         freading: relax license from LGPLv3+ to LGPLv2+
40262         * modules/freading (License): Relax LGPL version.
40264 2011-05-02  Bruno Haible  <bruno@clisp.org>
40266         fchdir: Remove unused dependencies.
40267         * modules/fchdir (Depends-on): Remove include_next.
40269 2011-05-02  Bruno Haible  <bruno@clisp.org>
40271         gnulib-tool: Refactor.
40272         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
40273         from func_emit_autoconf_snippets.
40274         (func_emit_autoconf_snippets): Use it.
40276 2011-05-02  Simon Josefsson  <simon@josefsson.org>
40278         * NEWS: Document removal of 'exit'.
40279         * modules/exit: Remove file.
40281 2011-05-01  Bruno Haible  <bruno@clisp.org>
40283         Update DEPENDENCIES.
40284         * DEPENDENCIES (gettext): Recommend the newest release.
40285         Reported by Simon Josefsson.
40287 2011-05-01  Bruno Haible  <bruno@clisp.org>
40289         gnulib-tool: Reduce code duplication.
40290         * gnulib-tool (func_emit_autoconf_snippets): New function.
40291         (func_import, func_create_testdir): Use it.
40293 2011-04-30  Eric Blake  <eblake@redhat.com>
40295         fclose: don't fail on non-seekable input stream
40296         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40297         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40298         since fflush is allowed to fail in that case.
40300 2011-04-30  Bruno Haible  <bruno@clisp.org>
40302         dup3: cleanup
40303         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40305 2011-04-30  Bruno Haible  <bruno@clisp.org>
40307         netdb: Make it work in C++ mode.
40308         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40309         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40310         module.
40311         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40312         gl_MODULE_INDICATOR_FOR_TESTS.
40313         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40314         * modules/netdb-c++-tests: New file.
40315         * tests/test-netdb-c++.cc: New file.
40317 2011-04-30  Bruno Haible  <bruno@clisp.org>
40319         New modules 'vfscanf', 'vscanf'.
40320         * modules/vfscanf: New file.
40321         * modules/vscanf: New file.
40322         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40323         here.
40324         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40325         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40327 2011-04-30  Bruno Haible  <bruno@clisp.org>
40329         passfd: Add comments.
40330         * lib/passfd.c: Add comments about platforms.
40332 2011-04-30  Bruno Haible  <bruno@clisp.org>
40334         sys_uio: Make <sys/uio.h> self-contained.
40335         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40336         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40338 2011-04-30  Bruno Haible  <bruno@clisp.org>
40340         sys_socket: Ensure 'struct iovec' definition.
40341         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40342         <sys/socket.h>.
40343         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40345 2011-04-30  Bruno Haible  <bruno@clisp.org>
40347         sys_uio: Protect definition of 'struct iovec'.
40348         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40349         it as a C struct.
40351 2011-04-30  Bruno Haible  <bruno@clisp.org>
40353         manywarnings: fix indentation
40354         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40356 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40358         manywarnings: add -Wno-missing-field-initializers if needed.
40359         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40360         option if it's needed to allow initialization with { 0, }
40362 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40364         announce-gen: cosmetic improvement
40365         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40367 2011-04-29  Jim Meyering  <meyering@redhat.com>
40369         vc-list-files: indent with spaces, not TABs
40370         * build-aux/vc-list-files: Convert leading TABs to spaces,
40371         to match the style of most other files in gnulib.
40373         announce-gen: indent with spaces, not TABs
40374         * build-aux/announce-gen: Convert all TABs to spaces, to match
40375         the style of most other files in gnulib.
40377 2011-04-29  Eric Blake  <eblake@redhat.com>
40379         quotearg: avoid uninitialized variable use
40380         * lib/quotearg.c (quoting_options_from_style): Initialize
40381         remaining fields, and ensure that custom styles are only used via
40382         quoting_options rather than quoting_style.
40384 2011-04-29  Jim Meyering  <meyering@redhat.com>
40386         maint.mk: remove unused VC-tag variable
40387         * top/maint.mk (VC-tag): Remove unused variable.
40389 2011-04-29  Bruno Haible  <bruno@clisp.org>
40391         netdb: fix gai_strerror replacements
40392         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40393         * modules/netdb: Substitute it.
40395 2011-04-29  Jim Meyering  <meyering@redhat.com>
40397         test-getcwd.c: avoid new set-but-not-used warning
40398         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40399         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40400         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40401         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40403         test-hash.c: avoid a new shadowing warning
40404         * tests/test-hash.c (main): Don't shadow "dup".
40406 2011-04-28  Eric Blake  <eblake@redhat.com>
40408         getaddrinfo: fix gai_strerror signature
40409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40410         and work around mingw with UNICODE defined.
40411         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40412         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40413         * modules/netdb (Makefile.am): Substitute it.
40414         * lib/netdb.in.h (gai_strerror): Declare replacement.
40415         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40416         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40417         the fix.
40419         getsockopt: avoid compiler warning
40420         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40421         Reported by Matthias Bolte.
40423         tests: drop unused link dependency
40424         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40425         * modules/dirent-safer-tests (Makefile.am): Likewise.
40426         * modules/fdopendir-tests (Makefile.am): Likewise.
40427         * modules/mkfifoat-tests (Makefile.am): Likewise.
40428         * modules/openat-safer-tests (Makefile.am): Likewise.
40429         * modules/openat-tests (Makefile.am): Likewise.
40430         * modules/readlinkat-tests (Makefile.am): Likewise.
40431         * modules/symlinkat-tests (Makefile.am): Likewise.
40432         * modules/linkat-tests (Makefile.am): Likewise.
40433         (Depends-on): Switch to filenamecat-lgpl.
40434         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40435         LIBINTL.
40436         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40437         * tests/test-linkat.c (main): Don't require xalloc.
40439         hash, mgetgroups: drop xalloc dependency
40440         * lib/hash.c (includes): Adjust includes.
40441         * lib/mgetgroups.c (includes): Likewise.
40442         (xgetgroups): Move...
40443         * lib/xgetgroups.c: ...to new file.
40444         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40445         * modules/xgetgroups: New file, split from...
40446         * modules/mgetgroups: ...here.
40447         (Depends-on): Add xalloc-oversized.
40448         * modules/hash (Depends-on): Likewise.
40449         * modules/hash-tests (Depends-on): Drop xalloc.
40450         (test_hash_LDADD): Drop unused library.
40451         * tests/test-hash.c (main): Break xalloc dependency.
40452         (includes): Drop unused include.
40454         xalloc-oversized: new module
40455         * modules/xalloc-oversized: New module.
40456         * modules/xalloc (Depends-on): Add it.
40457         * lib/xalloc.h (xalloc_oversized): Move...
40458         * lib/xalloc-oversized.h: ...into new file.
40460         utimecmp: drop dependency on xmalloc
40461         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40462         due to memory pressure.
40463         * modules/utimecmp (Depends-on): Drop xalloc.
40465 2011-04-27  Eric Blake  <eblake@redhat.com>
40467         getcwd: fix mingw bugs
40468         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40469         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40470         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40472 2011-04-27  Bruno Haible  <bruno@clisp.org>
40474         mkstemps: Ensure declaration on MacOS X 10.5.
40475         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40476         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40477         MacOS X.
40479 2011-04-27  Bruno Haible  <bruno@clisp.org>
40481         mkstemp: More documentation.
40482         * doc/posix-functions/mkstemp.texi: Document header file problem on
40483         MacOS X.
40485 2011-04-27  Bruno Haible  <bruno@clisp.org>
40487         mkstemp: Tweak configure message when cross-compiling.
40488         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40489         result as a guess.
40491 2011-04-27  Bruno Haible  <bruno@clisp.org>
40493         clean-temp: Clarify what it does.
40494         * lib/clean-temp.h: Add more comments.
40495         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40496         module.
40497         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40498         * doc/glibc-functions/mkstemps.texi: Likewise.
40499         * doc/glibc-functions/mkostemps.texi: Likewise.
40501 2011-04-27  Eric Blake  <eblake@redhat.com>
40503         fchdir: avoid extra chdir and fix test
40504         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40505         getcwd-lgpl.
40506         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40507         have to be canonical.
40508         (canonicalize_file_name): Drop unused macro.
40509         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40511         filenamecat-lgpl: fix licence
40512         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40513         when it was first created.
40515         linkat, renameat: add missing dependency
40516         * modules/linkat (Depends-on): Require getcwd-lgpl.
40517         * modules/renameat (Depends-on): Likewise.
40519         tests: reduce dependencies
40520         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40521         * tests/test-renameat.c (main): Likewise.
40522         * modules/linkat-tests (Depends-on): Relax dependency.
40523         * modules/renameat-tests (Depends-on): Likewise.
40524         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40525         dependency explicit.
40527         save-cwd: reduce default dependency
40528         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40529         * lib/save-cwd.c: Update comments.
40530         * NEWS: Document the semantic change.
40532         getcwd: enhance tests
40533         * tests/test-getcwd-lgpl.c: New file, taken from...
40534         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40535         repeat long path stress tests from m4 probe.
40536         * modules/getcwd-lgpl-tests: New module.
40537         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40538         * m4/getcwd-abort-bug.m4: Update comment.
40539         * m4/getcwd-path-max.m4: Likewise.
40541         getcwd-lgpl: new module
40542         * modules/getcwd-lgpl: New module.
40543         * lib/getcwd-lgpl.c: New file.
40544         * doc/posix-functions/getcwd.texi (getcwd): Document it.
40545         * MODULES.html.sh (lacking POSIX:2008): Likewise.
40546         * modules/getcwd (configure.ac): Set C witness.
40547         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
40549         getcwd: tweak comments
40550         * m4/getcwd-abort-bug.m4: Fix comments.
40551         * m4/getcwd-path-max.m4: Likewise.
40552         * m4/getcwd.m4: Likewise.
40554 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40555         and Eric Blake  <eblake@redhat.com>
40557         mkstemp: replace if system version uses wrong permissions
40558         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
40559         read/write mode bits set in file created by mkstemp.
40560         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
40562 2011-04-27  Eric Blake  <eblake@redhat.com>
40564         passfd: avoid compiler warning
40565         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
40566         Reported by Laine Stump.
40568 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
40570         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
40571         required by the NetBSD (and perhaps other 4.4BSD derived) join.
40573 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40574         and Eric Blake  <eblake@redhat.com>
40576         mkstemp: mention clean-temp module
40577         * lib/mkstemp.c: Add comment.
40578         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
40580 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
40582         inttypes: also provide default values for 32-bit tests
40583         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
40584         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
40586 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40588         strtoumax: remove dependency on strtoimax
40589         This is like the strtoull change of yesterday.
40590         * modules/strtoumax (Files): Add lib/strtoimax.c.
40591         (Depends-on): Remove strtoimax and add verify.
40593         inttypes-incomplete: new module
40594         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
40595         all but the PRI* and SCN* parts of gl_INTTYPES_H.
40596         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
40597         of gl_INTTYPES_H.
40598         (gl_INTTYPES_H): Rewrite in terms of these new macros.
40599         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
40600         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
40601         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
40602         * modules/strtoumax, modules/xstrtol (Depends-on):
40603         Depend on inttypes-incomplete, not inttypes.
40604         * modules/inttypes-incomplete: New module, containing the contents
40605         of the old modules/inttypes module, except that the Files: section
40606         omits m4/inttypes-pri.m4, and the configure.ac section invokes
40607         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
40608         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
40609         (Depends-on): Depend only on inttypes-incomplete.
40610         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
40612         inttypes: omit now-redundant strtoimax and strtoumax work
40613         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
40614         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
40616         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
40617         This supports apps that need pointers to strtoimax and strtoumax,
40618         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40619         nonexistent functions.  See
40620         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
40621         et seq.
40622         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
40623         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
40624         a macro.
40625         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40627 2011-04-25  Simon Josefsson  <simon@josefsson.org>
40629         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
40631 2011-04-25  Bruno Haible  <bruno@clisp.org>
40633         strtol, strtoul: Mark modules as obsolete.
40634         * modules/strtol (Status, Notice): New sections.
40635         * modules/strtoul (Status, Notice): New sections.
40637 2011-04-25  Bruno Haible  <bruno@clisp.org>
40639         strtod: Remove check for strtod, unless supporting old platforms.
40640         * modules/strtod-obsolete: New file.
40641         * m4/strtod-obsolete.m4: New file.
40642         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
40643         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
40644         * modules/strtod (Depends-on): Add strtod-obsolete.
40645         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
40647 2011-04-25  Bruno Haible  <bruno@clisp.org>
40649         strcase: Make module obsolete.
40650         * modules/strcase (Status, Notice): New sections.
40652 2011-04-25  Bruno Haible  <bruno@clisp.org>
40654         dup2: Remove check for dup2, unless supporting old obsolete platforms.
40655         * modules/dup2-obsolete: New file.
40656         * m4/dup2-obsolete.m4: New file.
40657         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
40658         gl_FUNC_DUP2_OBSOLETE is not also defined.
40659         * modules/dup2 (Depends-on): Add dup2-obsolete.
40660         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
40662 2011-04-25  Bruno Haible  <bruno@clisp.org>
40664         strnlen: Avoid memchr related link error on old obsolete platforms.
40665         * modules/memchr-obsolete: New file.
40666         * m4/memchr-obsolete.m4: New file.
40667         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
40668         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
40669         * modules/memchr (Depends-on): Add memchr-obsolete.
40670         * modules/strnlen (Depends-on): Likewise.
40671         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
40673 2011-04-25  Jim Meyering  <meyering@redhat.com>
40675         maint.mk: makefile_at_at_check extend and clean up
40676         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
40677         in addition to */Makefile.am.
40678         Exempt legitimate uses of @VAR@ notation, e.g.,
40679         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
40680         Remove obsolete coreutils-specific comment.
40681         Prompted by discussion here:
40682         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
40684 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40686         strtoul: remove dependency on strtol
40687         This is so that 'configure' need not check for strtol merely because
40688         the application needs strtoul.
40689         * modules/strtoul (Files): Add lib/strtol.c.
40690         (Depends-on): Remove strtol.
40692         strtoull: remove dependency on strtoul
40693         This is like the strtoll change.
40694         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
40695         (Depends-on): Remove strtoul.
40697         strtoll: remove dependency on strtol
40698         This is so that 'configure' need not check for strtol merely because
40699         the application needs strtoll.
40700         * modules/strtoll (Files): Add lib/strtol.c.
40701         (Depends-on): Remove strtol.
40703 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40705         inttypes: Move some configure check to module 'imaxdiv'.
40706         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
40707         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
40708         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
40710 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40712         inttypes: Move some configure check to module 'imaxabs'.
40713         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
40714         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
40715         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
40717 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40719         inttypes: Remove configure tests that are not needed since 2009-12-31.
40720         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
40721         gl_cv_header_working_inttypes_h.
40723 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40725         * modules/strnlen (Depends-on): Remove memchr.
40726         The strnlen implementation doesn't need the memchr module's fixes; see
40727         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
40729         strtol: remove dependency on wchar
40730         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
40731         * modules/strtol (Depends-on): Remove wchar.
40733 2011-04-21  Eric Blake  <eblake@redhat.com>
40735         passfd: fix test regression on Linux
40736         * modules/passfd-tests (configure.ac): Correct socketpair check.
40738         passfd: speed up configure and drop unused code
40739         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
40740         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
40741         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
40742         Instead of probing at configure for unix_scm_rights_bsd44_way,
40743         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
40744         check to a struct member probe.
40745         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
40746         (sendfd, recvfd): Update preprocessor checks.
40747         * modules/passfd (Files): Reflect rename, and drop unused file.
40748         (Depends-on): Drop unused dependency.
40750         passfd: allow compilation on mingw
40751         * modules/sys_socket (Depends-on): Add sys_uio.
40752         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
40753         iovec and a minimal struct msghdr.
40754         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
40755         * tests/test-sys_socket.c (main): Enhance test.
40756         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
40757         guaranteed to provide what we need.
40758         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
40759         * modules/passfd-tests (Depends-on): Add sys_wait.
40760         * tests/test-passfd.c (main): Skip test on mingw, for now.
40761         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
40762         partial 'struct msghdr' implementation.
40764         sys_uio: new module
40765         * modules/sys_uio: New module.
40766         * modules/sys_uio-tests: Likewise.
40767         * lib/sys_uio.in.h: New file.
40768         * m4/sys_uio_h.m4: Likewise.
40769         * tests/test-sys_uio.c: Likewise.
40770         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
40771         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
40773 2011-04-20  Jim Meyering  <meyering@redhat.com>
40775         useless-if-before-free: avoid false-positive
40776         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
40777         disjunct so that it too requires a terminating ";".  Without that,
40778         this script would identify as useless one statement from gcc that
40779         was not:
40780           if (aligned_ptr)
40781             free (((void **) aligned_ptr) [-1]);
40783 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
40785         doc: update users.txt.
40786         * users.txt: Add barcode.
40788 2011-04-19  Bruno Haible  <bruno@clisp.org>
40790         ioctl: Remove link dependency on native Windows.
40791         * lib/fd-hook.h: Renamed from lib/close-hook.h.
40792         (gl_close_fn, gl_ioctl_fn): New types.
40793         (struct fd_hook): Renamed from struct close_hook. Change type of
40794         private_close_fn field. Add private_ioctl_fn field.
40795         (close_hook_fn): Add parameter for primary close method.
40796         (execute_close_hooks, execute_all_close_hooks): Likewise.
40797         (ioctl_hook_fn): New type.
40798         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
40799         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40800         argument.
40801         (unregister_fd_hook): Renamed from unregister_close_hook.
40802         * lib/fd-hook.c: Renamed from lib/close-hook.c.
40803         Don't include <unistd.h>.
40804         (close): Remove undef.
40805         (anchor): Update.
40806         (execute_close_hooks): Add argument for primary close method.
40807         (execute_all_close_hooks): Likewise.
40808         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
40809         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40810         argument. Allow each argument to be NULL.
40811         (unregister_fd_hook): Renamed from unregister_close_hook.
40812         * lib/close.c (rpl_close): Pass 'close' function pointer to
40813         execute_all_close_hooks.
40814         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
40815         (primary_ioctl): New function.
40816         (ioctl): Don't call ioctlsocket here. Instead, call
40817         execute_all_ioctl_hooks.
40818         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
40819         close method.
40820         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
40821         (fd_sockets_hook): Renamed from close_sockets_hook.
40822         (gl_sockets_startup, gl_sockets_cleanup): Update.
40823         * modules/fd-hook: Renamed from modules/close-hook. Update.
40824         * modules/close (Depends-on): Add fd-hook, remove close-hook.
40825         * modules/sockets (Depends-on): Likewise.
40826         * modules/ioctl (Depends-on): Add fd-hook.
40827         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
40828         GNULIB_SOCKET.
40830 2011-04-19  Bruno Haible  <bruno@clisp.org>
40832         Move the support of O_NONBLOCK in open() to the 'open' module.
40833         * modules/nonblocking (Depends-on): Remove 'open'.
40834         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
40835         gl_cv_have_open_O_NONBLOCK.
40836         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
40837         O_NONBLOCK support.
40838         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
40840 2011-04-17  Bruno Haible  <bruno@clisp.org>
40842         pipe2: Simplify code.
40843         * lib/pipe2.c (pipe2): Reduce code duplication.
40845 2011-04-17  Bruno Haible  <bruno@clisp.org>
40847         nonblocking: Add comment.
40848         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
40850 2011-04-17  Bruno Haible  <bruno@clisp.org>
40852         nonblocking: Add tests for sockets.
40853         * tests/test-nonblocking-socket.sh: New file.
40854         * tests/test-nonblocking-socket-main.c: New file.
40855         * tests/test-nonblocking-socket-child.c: New file.
40856         * tests/test-nonblocking-socket.h: New file.
40857         * tests/socket-server.h: New file.
40858         * tests/socket-client.h: New file.
40859         * modules/nonblocking-socket-tests: New file.
40860         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
40862 2011-04-17  Bruno Haible  <bruno@clisp.org>
40864         nonblocking: Add tests for pipes.
40865         * tests/test-nonblocking-pipe.sh: New file.
40866         * tests/test-nonblocking-pipe-main.c: New file.
40867         * tests/test-nonblocking-pipe-child.c: New file.
40868         * tests/test-nonblocking-pipe.h: New file.
40869         * tests/test-nonblocking-writer.h: New file.
40870         * tests/test-nonblocking-reader.h: New file.
40871         * tests/test-nonblocking-misc.h: New file.
40872         * modules/nonblocking-pipe-tests: New file.
40873         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
40875 2011-04-16  Bruno Haible  <bruno@clisp.org>
40877         gettext: Clarify the needed programmer actions.
40878         * modules/gettext (Notice): New field.
40879         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40881 2011-04-16  Bruno Haible  <bruno@clisp.org>
40883         strchrnul: Tweak last commit.
40884         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
40885         bug.
40886         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
40887         as in _GL_FUNCDECL_SYS.
40888         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
40889         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
40891 2011-04-15  Eric Blake  <eblake@redhat.com>
40893         strchrnul: work around cygwin bug
40894         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
40895         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
40896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
40897         * modules/string (Makefile.am): Substitute it.
40898         * lib/string.in.h (strchrnul): Use it.
40900 2011-04-15  Bruno Haible  <bruno@clisp.org>
40902         Don't require lib/stdio-write.c when only module 'stdio' is used.
40903         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
40904         invocation.
40905         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
40907 2011-04-14  Bruno Haible  <bruno@clisp.org>
40909         Support non-blocking pipe I/O in read() on native Windows.
40910         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
40911         (read): New declaration.
40912         * lib/read.c: New file.
40913         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
40914         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
40915         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
40916         vscanf): New declarations.
40917         * lib/stdio-read.c: New file.
40918         * m4/read.m4: New file.
40919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
40920         REPLACE_READ.
40921         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
40922         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40923         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
40924         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
40925         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
40926         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40927         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40928         * modules/read: New file.
40929         * modules/nonblocking (Files): Add lib/stdio-read.c.
40930         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
40931         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
40932         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40933         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40934         * modules/pread (Depends-on): Add read.
40935         * modules/safe-read (Depends-on): Likewise.
40936         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
40937         gets, scanf, vfscanf, vscanf): Verify signatures.
40938         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
40939         problem with non-blocking pipes.
40940         * doc/posix-functions/fgetc.texi: Likewise.
40941         * doc/posix-functions/fgets.texi: Likewise.
40942         * doc/posix-functions/fread.texi: Likewise.
40943         * doc/posix-functions/fscanf.texi: Likewise.
40944         * doc/posix-functions/getc.texi: Likewise.
40945         * doc/posix-functions/getchar.texi: Likewise.
40946         * doc/posix-functions/gets.texi: Likewise.
40947         * doc/posix-functions/scanf.texi: Likewise.
40948         * doc/posix-functions/vfscanf.texi: Likewise.
40949         * doc/posix-functions/vscanf.texi: Likewise.
40951 2011-04-14  Bruno Haible  <bruno@clisp.org>
40953         Support non-blocking pipe I/O in write() on native Windows.
40954         * lib/write.c (rpl_write): Split a write request that failed merely
40955         because the byte count was larger than the pipe buffer's size.
40956         * doc/posix-functions/write.texi: Mention the problem with large byte
40957         counts.
40959 2011-04-14  Bruno Haible  <bruno@clisp.org>
40961         wchar: Ensure that wchar_t gets defined on uClibc.
40962         * lib/wchar.in.h: On uClibc, include <stddef.h>.
40963         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
40965 2011-04-13  Bruno Haible  <bruno@clisp.org>
40967         safe-write, full-read: Avoid unnecessary compilation units.
40968         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
40969         (Depends-on): Remove safe-read. Add ssize_t.
40970         * modules/full-read (Files): Add lib/full-write.c.
40971         (Depends-on): Add full-write.
40973 2011-04-13  Bruno Haible  <bruno@clisp.org>
40975         Support non-blocking pipe I/O and SIGPIPE in pwrite().
40976         * modules/pwrite (Depends-on): Add 'write'.
40978 2011-04-13  Bruno Haible  <bruno@clisp.org>
40980         Support non-blocking pipe I/O in write() on native Windows.
40981         * lib/unistd.in.h (write): Enable replacement also if
40982         GNULIB_UNISTD_H_NONBLOCKING is 1.
40983         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
40984         (rpl_write): When failing to write on a non-blocking pipe, change
40985         errno from ENOSPC to EAGAIN.
40986         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
40987         putchar, puts, vfprintf, vprintf): Enable replacement also if
40988         GNULIB_STDIO_H_NONBLOCKING is 1.
40989         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
40990         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
40991         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
40992         CALL_WITH_SIGPIPE_EMULATION.
40993         (CALL_WITH_SIGPIPE_EMULATION): Use them.
40994         * m4/nonblocking.m4: New file.
40995         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
40996         for non-blocking I/O support.
40997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40998         GNULIB_UNISTD_H_NONBLOCKING.
40999         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
41000         required for non-blocking I/O support.
41001         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
41002         * modules/nonblocking (Files): Add m4/nonblocking.m4,
41003         lib/stdio-write.c, m4/asm-underscore.m4.
41004         (Depends-on): Add stdio, unistd.
41005         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
41006         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
41007         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
41008         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
41009         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
41010         problem with non-blocking pipes.
41011         * doc/posix-functions/fputc.texi: Likewise.
41012         * doc/posix-functions/fputs.texi: Likewise.
41013         * doc/posix-functions/fwrite.texi: Likewise.
41014         * doc/posix-functions/printf.texi: Likewise.
41015         * doc/posix-functions/putc.texi: Likewise.
41016         * doc/posix-functions/putchar.texi: Likewise.
41017         * doc/posix-functions/puts.texi: Likewise.
41018         * doc/posix-functions/vfprintf.texi: Likewise.
41019         * doc/posix-functions/vprintf.texi: Likewise.
41020         * doc/posix-functions/write.texi: Likewise.
41022 2011-04-10  Jim Meyering  <meyering@redhat.com>
41024         maint.mk: prohibit doubled words
41025         Detect them also when they're separated by a newline.
41026         There are 3 ways to customize it:
41027           - disable the test on a per file basis, as usual with rules using
41028             $(VC_LIST_EXCEPT)
41029           - replace the default doubled-word-selecting regexp (affects all files)
41030           - ignore a particular file-vs-doubled-word match
41031         I nearly used that last one to ignore the "is is" match in
41032         coreutils' NEWS file, since the text was "ls -is is ..."
41033         To do that, I would have added this line to cfg.mk:
41034           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
41035         but it would have ignored any "is is" match in NEWS.
41036         Low probability, but still...
41037         Instead, I changed the text, slightly:
41038           -  ls -is is now consistent with ls -lis in ignoring values returned
41039           +  "ls -is" is now consistent with ls -lis in ignoring values returned
41040         * top/maint.mk (prohibit_double_word_RE_): Provide default.
41041         (prohibit_doubled_word_): Define.
41042         (sc_prohibit_doubled_word): New rule.
41043         (sc_prohibit_the_the): Remove.  Subsumed by the above.
41045 2011-04-10  Jim Meyering  <meyering@redhat.com>
41047         maint: fix doubled-word typo in comment
41048         * m4/gethostname.m4: s/is is/it is/
41049         * m4/getdomainname.m4: Likewise.
41051 2011-04-10  Jim Meyering  <meyering@redhat.com>
41053         maint: remove doubled word: s/it it/it/
41054         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
41056 2011-04-10  Jim Meyering  <meyering@redhat.com>
41058         maint.mk: remove useless semicolon and backslash
41059         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
41060         semicolon and backslash.
41062 2011-04-10  Bruno Haible  <bruno@clisp.org>
41064         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
41065         * modules/stdint-tests (Depends-on): Add wchar.
41067 2011-04-10  Jim Meyering  <meyering@redhat.com>
41069         maint: remove doubled words in comments, e.g., s/a a/a/
41070         * lib/strptime.c (day_of_the_week): s/the the/the/
41071         * tests/test-chown.h (test_chown): s/a a/a/
41073         test-chown.h: correct a cast
41074         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
41075         when the destination is a stat.st_gid.
41077 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
41079         getaddrinfo: Fix test for sa_len member.
41080         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
41081         include <sys/types.h> before <sys/socket.h>.
41083 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41085         maint: change "can not" to "cannot"
41086         * doc/posix-functions/iconv.texi (iconv): This one crossed line
41087         boundaries.
41089 2011-04-09  Jim Meyering  <meyering@redhat.com>
41091         maint: change "a a" to "a"
41092         * tests/test-lchown.h (test_lchown): s/a a/a/
41094         maint.mk: prohibit \<the the\>
41095         * top/maint.mk (sc_prohibit_the_the): New rule.
41097         maint: fix "the the" in comment
41098         * lib/count-one-bits.h: s/the the/the/
41100         maint: change "can not" to "cannot"
41101         But do not change the occurrences in maintain.texi or in
41102         build-aux/po/Makefile.in.in, which I presume comes from gettext.
41103         * doc/gnulib-tool.texi: s/can not/cannot/
41104         * doc/posix-functions/accept.texi (accept): Likewise.
41105         * doc/posix-functions/socket.texi (socket): Likewise.
41106         * lib/mbrtowc.c: Likewise.
41108         maint.mk: prohibit use of "can not"
41109         * top/maint.mk (sc_prohibit_can_not): New rule.
41110         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
41112 2011-04-09  Bruno Haible  <bruno@clisp.org>
41114         careadlinkat: Guard against misuse of careadlinkatcwd.
41115         * lib/careadlinkat.c: Include <stdlib.h>.
41116         (careadlinkatcwd): Check that the fd argument is as expected.
41118 2011-04-09  Bruno Haible  <bruno@clisp.org>
41120         careadlinkat: Use common coding style.
41121         * lib/careadlinkat.c: Move gnulib includes after system includes.
41123 2011-04-09  Bruno Haible  <bruno@clisp.org>
41125         careadlinkat: Clarify specification.
41126         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
41127         (careadlinkatcwd): Add comment.
41128         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
41130 2011-04-09  Bruno Haible  <bruno@clisp.org>
41132         areadlinkat: Avoid link error on many platforms.
41133         * modules/areadlinkat (Depends-on): Add areadlink.
41135 2011-04-09  Bruno Haible  <bruno@clisp.org>
41137         allocator, careadlinkat: Fix double-inclusion guard.
41138         * lib/allocator.h: Fix double-inclusion guard.
41139         * lib/careadlinkat.h: Likewise.
41141 2011-04-09  Bruno Haible  <bruno@clisp.org>
41143         relocatable-prog-wrapper: Update after module 'areadlink' changed.
41144         * lib/relocwrapper.c: Update dependencies hierarchy.
41145         * build-aux/install-reloc: Update list of files to be compiled.
41146         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
41147         lib/allocator.[hc].
41149 2011-04-08  Eric Blake  <eblake@redhat.com>
41151         strftime: silence gnulib-tool warning
41152         * modules/strftime-tests (Depends-on): Drop automatic dependency.
41154 2011-04-08  Bruno Haible  <bruno@clisp.org>
41156         verify: Fix syntax error with GCC 4.6 in C++ mode.
41157         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
41158         (HAVE_STATIC_ASSERT): New macro.
41159         (verify_true, verify): Use 'static_assert' if it is supported and
41160         '_Static_assert' is not supported.
41162 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
41164         allocator: New module.
41165         * modules/allocator, lib/allocator.c: New files.
41166         * lib/allocator.h (stdlib_allocator): New decl.
41167         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
41168         Remove.  Do not include <stdlib.h>.
41169         (careadlinkat): Use stdlib_allocator instead of rolling our own.
41170         * modules/careadlinkat (Files): Remove lib/allocator.h.
41171         (Depends-on): Add allocator.
41173         stdlib: let modules use system malloc, realloc
41174         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
41175         if !_GL_USE_STDLIB_ALLOC.
41176         (malloc, realloc): Limit this change to a smaller scope.
41178         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
41179         (malloc, realloc): Don't #undef; no longer needed.
41180         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41181         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41182         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41183         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41184         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41185         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41186         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41187         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41189         careadlinkat: rename members to avoid problem
41190         * lib/allocator.h (struct allocator): Rename members from
41191         malloc/realloc to allocate/reallocate, to avoid problems if malloc
41192         and realloc are #define'd.  Reported by Eric Blake in
41193         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
41194         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
41196 2011-04-08  Eric Blake  <eblake@redhat.com>
41198         nonblocking: reduce dependency
41199         * tests/test-nonblocking.c: Only test sockets when in use.
41200         * modules/nonblocking-tests (Depends-on): Drop socket.
41201         (Makefile.am): Link even if sockets are not present.
41202         * modules/pipe2-tests (Makefile.am): Likewise.
41203         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
41205         pipe2: fix O_NONBLOCK support on mingw
41206         * modules/pipe2 (Depends-on): Add nonblocking.
41207         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
41208         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
41209         * tests/test-nonblocking.c (main): Likewise.
41210         * modules/pipe2-tests (Makefile.am): Avoid link failure.
41212         fcntl-h: fix O_ACCMODE on cygwin
41213         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
41214         * lib/fcntl.in.h (O_ACCMODE): Fix it.
41216         pipe-filter: drop O_NONBLOCK workarounds
41217         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
41218         * modules/pipe-filter-ii (Depends-on): Likewise.
41219         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
41221         nonblocking: provide O_NONBLOCK for mingw
41222         * modules/nonblocking (Depends-on): Add open.
41223         (configure.ac): Set new witness macro.
41224         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
41225         * modules/fcntl-h (Makefile.am): Substitute it.
41226         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
41227         nonblocking module is in use.
41228         * lib/nonblocking.c: Adjust portability test.
41229         * lib/open.c (open): Don't let native open see gnulib flag.
41230         * tests/test-fcntl-h.c (main): Enhance test.
41231         * tests/test-open.h (test_open): Likewise.
41232         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
41234         careadlinkat: fix compilation error on mingw
41235         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
41236         within struct allocator.
41238 2011-04-06  Eric Blake  <eblake@redhat.com>
41240         binary-io: relicense under LGPLv2+
41241         * modules/binary-io (License): Relax to LGPLv2+.
41242         Requested for libvirt, and required by pipe2.
41244 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
41246         verify: use _Static_assert if available
41247         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
41248         (verify_true, verify): Use it if available.  This generates better
41249         diagnostics with GCC 4.6.0 and later.
41251 2011-04-05  Bruno Haible  <bruno@clisp.org>
41253         Remove leftover generated .h files after config.status changed.
41255         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
41256         GL_GENERATE_ALLOCA_H.
41257         * modules/alloca-opt (Makefile.am): Remove alloca.h if
41258         GL_GENERATE_ALLOCA_H evaluates to false.
41260         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
41261         GL_GENERATE_ARGZ_H.
41262         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
41263         evaluates to false.
41265         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
41266         GL_GENERATE_BYTESWAP_H.
41267         * modules/byteswap (Makefile.am): Remove byteswap.h if
41268         GL_GENERATE_BYTESWAP_H evaluates to false.
41270         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
41271         GL_GENERATE_ERRNO_H.
41272         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
41273         evaluates to false.
41275         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
41276         GL_GENERATE_FLOAT_H.
41277         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
41278         evaluates to false.
41280         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
41281         GL_GENERATE_FNMATCH_H.
41282         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
41283         GL_GENERATE_FNMATCH_H evaluates to false.
41285         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
41286         GL_GENERATE_GLOB_H.
41287         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
41288         evaluates to false.
41290         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
41291         automake conditional GL_GENERATE_ICONV_H.
41292         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41293         evaluates to false.
41295         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41296         GL_GENERATE_NETINET_IN_H.
41297         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41298         GL_GENERATE_NETINET_IN_H evaluates to false.
41300         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41301         conditional GL_GENERATE_PTHREAD_H.
41302         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41303         * modules/pthread (Makefile.am): Remove pthread.h if
41304         GL_GENERATE_PTHREAD_H evaluates to false.
41306         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41307         GL_GENERATE_SCHED_H.
41308         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41309         evaluates to false.
41311         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41312         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41313         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41314         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41316         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41317         GL_GENERATE_STDARG_H.
41318         * modules/stdarg (Makefile.am): Remove stdarg.h if
41319         GL_GENERATE_STDARG_H evaluates to false.
41321         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41322         GL_GENERATE_STDBOOL_H.
41323         * modules/stdbool (Makefile.am): Remove stdbool.h if
41324         GL_GENERATE_STDBOOL_H evaluates to false.
41326         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41327         conditional GL_GENERATE_STDDEF_H.
41328         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41329         * modules/stddef (Makefile.am): Remove stddef.h if
41330         GL_GENERATE_STDDEF_H evaluates to false.
41332         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41333         GL_GENERATE_STDINT_H.
41334         * modules/stdint (Makefile.am): Remove stdint.h if
41335         GL_GENERATE_STDINT_H evaluates to false.
41337         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41338         GL_GENERATE_SYSEXITS_H.
41339         * modules/sysexits (Makefile.am): Remove sysexits.h if
41340         GL_GENERATE_SYSEXITS_H evaluates to false.
41342         Reported by Karl Berry and Ralf Wildenhues.
41344 2011-04-05  Bruno Haible  <bruno@clisp.org>
41346         Ensure to rebuild generated .h files when config.status has changed.
41347         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41348         config.status.
41349         * modules/ctype (Makefile.am): Likewise.
41350         * modules/dirent (Makefile.am): Likewise.
41351         * modules/errno (Makefile.am): Likewise.
41352         * modules/fcntl-h (Makefile.am): Likewise.
41353         * modules/float (Makefile.am): Likewise.
41354         * modules/getopt-posix (Makefile.am): Likewise.
41355         * modules/glob (Makefile.am): Likewise.
41356         * modules/iconv-h (Makefile.am): Likewise.
41357         * modules/inttypes (Makefile.am): Likewise.
41358         * modules/langinfo (Makefile.am): Likewise.
41359         * modules/locale (Makefile.am): Likewise.
41360         * modules/math (Makefile.am): Likewise.
41361         * modules/netdb (Makefile.am): Likewise.
41362         * modules/netinet_in (Makefile.am): Likewise.
41363         * modules/poll-h (Makefile.am): Likewise.
41364         * modules/pthread (Makefile.am): Likewise.
41365         * modules/pty (Makefile.am): Likewise.
41366         * modules/sched (Makefile.am): Likewise.
41367         * modules/search (Makefile.am): Likewise.
41368         * modules/selinux-h (Makefile.am): Likewise.
41369         * modules/signal (Makefile.am): Likewise.
41370         * modules/spawn (Makefile.am): Likewise.
41371         * modules/stdarg (Makefile.am): Likewise.
41372         * modules/stdbool (Makefile.am): Likewise.
41373         * modules/stddef (Makefile.am): Likewise.
41374         * modules/stdint (Makefile.am): Likewise.
41375         * modules/stdio (Makefile.am): Likewise.
41376         * modules/stdlib (Makefile.am): Likewise.
41377         * modules/string (Makefile.am): Likewise.
41378         * modules/strings (Makefile.am): Likewise.
41379         * modules/sys_file (Makefile.am): Likewise.
41380         * modules/sys_ioctl (Makefile.am): Likewise.
41381         * modules/sys_select (Makefile.am): Likewise.
41382         * modules/sys_socket (Makefile.am): Likewise.
41383         * modules/sys_stat (Makefile.am): Likewise.
41384         * modules/sys_time (Makefile.am): Likewise.
41385         * modules/sys_times (Makefile.am): Likewise.
41386         * modules/sys_utsname (Makefile.am): Likewise.
41387         * modules/sys_wait (Makefile.am): Likewise.
41388         * modules/sysexits (Makefile.am): Likewise.
41389         * modules/termios (Makefile.am): Likewise.
41390         * modules/time (Makefile.am): Likewise.
41391         * modules/unistd (Makefile.am): Likewise.
41392         * modules/wchar (Makefile.am): Likewise.
41393         * modules/wctype-h (Makefile.am): Likewise.
41394         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41396 2011-04-05  Bruno Haible  <bruno@clisp.org>
41398         pipe2: Relicense under LGPLv2+.
41399         * modules/pipe2 (License): Change to LGPLv2+.
41400         Requested by Eric Blake, for libvirt.
41402 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41404         bootstrap: compute gnulib_extra_files after updating build_aux
41405         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41406         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41408 2011-04-05  Eric Blake  <eblake@redhat.com>
41410         bootstrap: preserve git whitelist item sorting
41411         * build-aux/bootstrap (sort_patterns): New function.
41412         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41414 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41416         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41417         sc_space_tab check.
41419 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41421         areadlink, areadlinkat: rewrite in terms of careadlinkat
41422         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41423         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41424         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41425         (malloc, realloc): Remove #undefs.
41426         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41427         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41428         readlink, ssize_t, stdint, unistd.
41429         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41430         areadlink, stdint.
41432         careadlinkat: new module
41433         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41434         * modules/careadlinkat: New files, written by me with
41435         a review and feedback from Ben Pfaff in
41436         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41438 2011-04-01  Bruno Haible  <bruno@clisp.org>
41440         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41441         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41442         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41443         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41444         Reported by Bruce Korb <bruce.korb@gmail.com>.
41446 2011-04-01  Bruno Haible  <bruno@clisp.org>
41448         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41449         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41450         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41451         * modules/wcpcpy (Depends-on): Add extensions.
41452         * modules/wcpncpy (Depends-on): Likewise.
41453         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41454         systems.
41455         * doc/posix-functions/wcpncpy.texi: Likewise.
41456         * doc/posix-functions/wcwidth.texi: Likewise.
41458 2011-03-31  Eric Blake  <eblake@redhat.com>
41460         nonblocking: fix mingw test failures
41461         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41462         non-blocking flag on regular file.
41463         (get_nonblocking_flag): Set errno on invalid fd.
41464         * tests/test-nonblocking.c (main): Avoid test failure on
41465         directories if fchdir is not active.
41466         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41468 2011-03-31  Bruno Haible  <bruno@clisp.org>
41470         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41471         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41472         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41473         Reported by Simon Josefsson <simon@josefsson.org>.
41475 2011-03-31  Bruno Haible  <bruno@clisp.org>
41476         and Eric Blake  <eblake@redhat.com>
41478         nonblocking: new module
41479         * modules/nonblocking: New module.
41480         * modules/nonblocking-tests: Likewise.
41481         * lib/nonblocking.h: New file.
41482         * lib/nonblocking.c: Likewise.
41483         * tests/test-nonblocking.c: New test.
41484         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41486 2011-03-30  Bruno Haible  <bruno@clisp.org>
41488         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41489         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41490         instead of 'printf' format for GCC >= 4.4.
41491         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41492         (fprintf, printf, vfprintf, vprintf): Declare with
41493         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41494         the system's vfprintf() function.
41495         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41497 2011-03-30  Eric Blake  <eblake@redhat.com>
41499         passfd: fix scoping bug
41500         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41501         before sendmsg/recvmsg.
41503         passfd: standardize coding conventions
41504         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41505         can be learned at compile time.
41506         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41507         ifdefs.
41508         (sendfd, recvfd): Follow gnulib code conventions.
41510         passfd: fix incorrect sendmsg arguments
41511         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41512         incorrect msg_controllen value.
41513         * modules/passfd-tests (Depends-on): Check for alarm.
41514         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41515         Reported by Bastien ROUCARIES.
41517 2011-03-30  Bruno Haible  <bruno@clisp.org>
41519         c-strcasestr: Relicense under LGPLv2+.
41520         * modules/c-strcasestr (License): Change to LGPLv2+.
41521         Requested by Eric Blake, for libvirt.
41523 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41525         * users.txt: Add libidn2.  Fix libtasn1 link.
41527 2011-03-30  Jim Meyering  <meyering@redhat.com>
41529         tests: readlink* ("",... fails with EINVAL on newer kernels
41530         readlink and readlinkat have typically failed with ENOENT for
41531         the invalid, empty file name,  "".  However, with the advent
41532         of linux-2.6.39, they fail with EINVAL.
41533         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41534         when operating on the empty file name.
41535         * tests/test-readlink.h (test_readlink): Likewise.
41537 2011-03-29  Bruno Haible  <bruno@clisp.org>
41539         Relicense some modules under LGPLv2+, for libidn2.
41540         * modules/array-mergesort (License): Change to LGPLv2+.
41541         * modules/c-strcaseeq (License): Likewise.
41542         * modules/striconveh (License): Likewise.
41543         * modules/striconveha (License): Likewise.
41544         * modules/uniconv/base (License): Likewise.
41545         * modules/uniconv/u8-conv-from-enc (License): Likewise.
41546         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
41547         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
41548         * modules/unictype/base (License): Likewise.
41549         * modules/unictype/bidiclass-of (License): Likewise.
41550         * modules/unictype/category-M (License): Likewise.
41551         * modules/unictype/category-none (License): Likewise.
41552         * modules/unictype/category-of (License): Likewise.
41553         * modules/unictype/category-test (License): Likewise.
41554         * modules/unictype/category-test-withtable (License): Likewise.
41555         * modules/unictype/combining-class (License): Likewise.
41556         * modules/unictype/joiningtype-of (License): Likewise.
41557         * modules/unictype/scripts (License): Likewise.
41558         * modules/uninorm/base (License): Likewise.
41559         * modules/uninorm/canonical-decomposition (License): Likewise.
41560         * modules/uninorm/composition (License): Likewise.
41561         * modules/uninorm/decompose-internal (License): Likewise.
41562         * modules/uninorm/decomposition-table (License): Likewise.
41563         * modules/uninorm/nfc (License): Likewise.
41564         * modules/uninorm/nfd (License): Likewise.
41565         * modules/uninorm/u32-normalize (License): Likewise.
41566         * modules/unistr/base (License): Likewise.
41567         * modules/unistr/u32-cpy (License): Likewise.
41568         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
41569         * modules/unistr/u32-to-u8 (License): Likewise.
41570         * modules/unistr/u32-uctomb (License): Likewise.
41571         * modules/unistr/u8-check (License): Likewise.
41572         * modules/unistr/u8-mblen (License): Likewise.
41573         * modules/unistr/u8-mbtouc (License): Likewise.
41574         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
41575         * modules/unistr/u8-mbtoucr (License): Likewise.
41576         * modules/unistr/u8-prev (License): Likewise.
41577         * modules/unistr/u8-strlen (License): Likewise.
41578         * modules/unistr/u8-to-u32 (License): Likewise.
41579         * modules/unistr/u8-uctomb (License): Likewise.
41580         * modules/unitypes (License): Likewise.
41581         Requested by Simon Josefsson.
41583 2011-03-29  Simon Josefsson  <simon@josefsson.org>
41585         lib-symbol-visibility: Add a notice.
41586         * modules/lib-symbol-visibility (Notice): New field.
41588 2011-03-29  Bruno Haible  <bruno@clisp.org>
41590         getaddrinfo: Doc fix.
41591         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
41592         section "fixed in Gnulib".
41594 2011-03-28  Simon Josefsson  <simon@josefsson.org>
41596         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
41597         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
41599 2011-03-26  Bruno Haible  <bruno@clisp.org>
41601         unictype/property-byname: Reduce the number of load-time relocations.
41602         * lib/unictype/pr_byname.c: Include <stdlib.h>.
41603         (UC_PROPERTY_INDEX_*): New enumeration values.
41604         (uc_property_byname): Convert an index from the lookup table to an
41605         uc_property_t.
41606         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
41607         values.
41609 2011-03-26  Bruno Haible  <bruno@clisp.org>
41611         unictype/property-byname: Allow omitted word separators and aliases.
41612         * lib/unictype/pr_byname.gperf: Add property names without word
41613         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
41614         for 'space'.
41616 2011-03-26  Bruno Haible  <bruno@clisp.org>
41618         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
41619         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
41620         also hyphens to space.
41621         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
41622         without spaces.
41623         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
41625 2011-03-26  Bruno Haible  <bruno@clisp.org>
41627         unictype/joiningtype-byname: Recognize long names as well.
41628         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
41629         a long name.
41630         * lib/unictype/joiningtype_byname.c: Include <string.h>,
41631         unictype/joiningtype_byname.h.
41632         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
41633         * lib/unictype/joiningtype_byname.gperf: New file.
41634         * modules/unictype/joiningtype-byname (Files): Add
41635         lib/unictype/joiningtype_byname.gperf.
41636         (Depends-on): Add gperf.
41637         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
41638         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
41639         long names.
41641         Tests for module 'unictype/joiningtype-longname'.
41642         * modules/unictype/joiningtype-longname-tests: New file.
41643         * tests/unictype/test-joiningtype_longname.c: New file.
41645         New module 'unictype/joiningtype-longname'.
41646         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
41647         * lib/unictype/joiningtype_longname.c: New file.
41648         * modules/unictype/joiningtype-longname: New file.
41649         * modules/unictype/joiningtype-all (Depends-on): Add
41650         unictype/joiningtype-longname.
41652 2011-03-26  Bruno Haible  <bruno@clisp.org>
41654         unictype/bidiclass-byname: Recognize long names as well.
41655         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
41656         name.
41657         * lib/unictype/bidi_byname.c: Include <string.h>,
41658         unictype/bidi_byname.h.
41659         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
41660         * lib/unictype/bidi_byname.gperf: New file.
41661         * modules/unictype/bidiclass-byname (Files): Add
41662         lib/unictype/bidi_byname.gperf.
41663         (Depends-on): Add gperf.
41664         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
41665         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
41666         long names.
41668         Tests for module 'unictype/bidiclass-longname'.
41669         * modules/unictype/bidiclass-longname-tests: New file.
41670         * tests/unictype/test-bidi_longname.c: New file.
41672         New module 'unictype/bidiclass-longname'.
41673         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
41674         * lib/unictype/bidi_longname.c: New file.
41675         * modules/unictype/bidiclass-longname: New file.
41676         * modules/unictype/bidiclass-all (Depends-on): Add
41677         unictype/bidiclass-longname.
41679 2011-03-26  Bruno Haible  <bruno@clisp.org>
41681         unictype/bidi*: Rename modules.
41682         * modules/unictype/bidiclass-all: Renamed from
41683         modules/unictype/bidicategory-all.
41684         * modules/unictype/bidiclass-name: Renamed from
41685         modules/unictype/bidiclass-name.
41686         (Description): Update.
41687         * modules/unictype/bidiclass-name-tests: Renamed from
41688         modules/unictype/bidicategory-name-tests.
41689         * modules/unictype/bidiclass-byname: Renamed from
41690         modules/unictype/bidicategory-byname.
41691         (Description): Update.
41692         * modules/unictype/bidiclass-byname-tests: Renamed from
41693         modules/unictype/bidicategory-byname-tests.
41694         * modules/unictype/bidiclass-of: Renamed from
41695         modules/unictype/bidicategory-of.
41696         (Description): Update.
41697         * modules/unictype/bidiclass-of-tests: Renamed from
41698         modules/unictype/bidicategory-of-tests.
41699         * modules/unictype/bidiclass-test: Renamed from
41700         modules/unictype/bidicategory-test.
41701         (Description): Update.
41702         * modules/unictype/bidiclass-test-tests: Renamed from
41703         modules/unictype/bidicategory-test-tests.
41704         * modules/unictype/bidicategory-all: New file, a simple redirection.
41705         * modules/unictype/bidicategory-name: Likewise.
41706         * modules/unictype/bidicategory-byname: Likewise.
41707         * modules/unictype/bidicategory-of: Likewise.
41708         * modules/unictype/bidicategory-test: Likewise.
41709         * modules/unictype/property-bidi-* (Dependencies): Update.
41710         * lib/unictype/bidi_*.c: Update comment.
41712 2011-03-26  Bruno Haible  <bruno@clisp.org>
41714         unictype/bidi*: Rename functions, part 2.
41715         * modules/unictype/bidicategory-name (configure.ac): Update required
41716         libunistring version.
41717         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
41719 2011-03-25  Bruno Haible  <bruno@clisp.org>
41721         New module 'unictype/combining-class-all'.
41722         * modules/unictype/combining-class-all: New file.
41724         Tests for module 'unictype/combining-class-byname'.
41725         * modules/unictype/combining-class-byname-tests: New file.
41726         * tests/unictype/test-combiningclass_byname.c: New file.
41728         New module 'unictype/combining-class-byname'.
41729         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
41730         * lib/unictype/combiningclass_byname.c: New file.
41731         * lib/unictype/combiningclass_byname.gperf: New file.
41732         * modules/unictype/combining-class-byname: New file.
41734         Tests for module 'unictype/combining-class-longname'.
41735         * modules/unictype/combining-class-longname-tests: New file.
41736         * tests/unictype/test-combiningclass_longname.c: New file.
41738         New module 'unictype/combining-class-longname'.
41739         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
41740         * lib/unictype/combiningclass_longname.c: New file.
41741         * modules/unictype/combining-class-longname: New file.
41743         Tests for module 'unictype/combining-class-name'.
41744         * modules/unictype/combining-class-name-tests: New file.
41745         * tests/unictype/test-combiningclass_name.c: New file.
41747         New module 'unictype/combining-class-name'.
41748         * lib/unictype.in.h (uc_combining_class_name): New declaration.
41749         * lib/unictype/combiningclass_name.c: New file.
41750         * modules/unictype/combining-class-name: New file.
41752 2011-03-25  Bruno Haible  <bruno@clisp.org>
41754         unictype/combining-class: Rename source files.
41755         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
41756         of unictype/combining.h.
41757         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
41758         Update.
41759         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
41760         * modules/unictype/combining-class (Description): Fix.
41761         (Files, Makefile.am): Update.
41762         * tests/unictype/test-combiningclass.c: Renamed from
41763         tests/unictype/test-combining.c.
41764         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
41766 2011-03-25  Bruno Haible  <bruno@clisp.org>
41768         unictype: Update list of canonical combining classes.
41769         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
41771 2011-03-25  Bruno Haible  <bruno@clisp.org>
41773         unictype/category-byname: Recognize long names as well.
41774         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
41775         a long name.
41776         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
41777         unictype/categ_byname.h.
41778         (UC_CATEGORY_INDEX_*): New enumeration values.
41779         (uc_general_category_byname): Use uc_general_category_lookup and
41780         convert from index to value.
41781         * lib/unictype/categ_byname.gperf: New file.
41782         * modules/unictype/category-byname (Files): Add
41783         lib/unictype/categ_byname.gperf.
41784         (Depends-on): Add gperf.
41785         (Makefile.am): Add rule for generating unictype/categ_byname.h.
41786         * tests/unictype/test-categ_byname.c (main): Test the recognition of
41787         long names.
41789         Tests for module 'unictype/category-longname'.
41790         * modules/unictype/category-longname-tests: New file.
41791         * tests/unictype/test-categ_longname.c: New file.
41793         New module 'unictype/category-longname'.
41794         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
41795         * lib/unictype/categ_longname.c: New file.
41796         * modules/unictype/category-longname: New file.
41797         * modules/unictype/category-all (Depends-on): Add it.
41799 2011-03-25  Bruno Haible  <bruno@clisp.org>
41801         Tests for module 'unictype/category-LC'.
41802         * modules/unictype/category-LC-tests: New file.
41803         * tests/unictype/test-categ_LC.c: New file, automatically generated.
41805         New module 'unictype/category-LC'.
41806         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
41807         (UC_CATEGORY_LC): New declaration.
41808         (UC_CASED_LETTER): New macro.
41809         * lib/gen-uni-tables.c (is_category_LC): New function.
41810         (output_categories): Also handle category LC.
41811         (UC_CATEGORY_MASK_LC): New enumeration value.
41812         (general_category_byname): Also handle category LC.
41813         * lib/unictype/categ_LC.c: New file.
41814         * lib/unictype/categ_LC.h: New file, automatically generated.
41815         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
41816         category LC.
41817         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
41818         * modules/unictype/category-LC: New file.
41819         * modules/unictype/category-byname (Depends-on): Add
41820         unictype/category-LC.
41821         * modules/unictype/category-all (Depends-on): Likewise.
41823 2011-03-25  Eric Blake  <eblake@redhat.com>
41825         xmalloc: revert yesterday's regression
41826         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
41827         realloc's underlying behavior (allowing allocation of zero-size
41828         objects, especially if malloc-gnu is also in use).
41830 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
41832         maint.mk: add missing version to VC-tag
41833         * top/maint.mk: git tag was missing actual tag name; add it.
41835         valgrind: do leak checking, and exit with code 1 on error (not 0)
41836         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
41837         to VALGRIND.
41839 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
41841         posix-modules: say what it does.
41842         * posix-modules: Add a line to the --help output saying what it does.
41844 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
41846         xmalloc: Do not leak if underlying realloc is C99 compatible.
41847         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
41848         This avoids a leak on C99-based systems.  See
41849         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
41851 2011-03-24  Eric Blake  <eblake@redhat.com>
41853         realloc: document portability problem
41854         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
41855         passing 0 size to realloc.
41857 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
41859         doc: update users.txt
41860         * users.txt: Add cvsps, tmpwatch
41862 2011-03-23  Matt Rice  <ratmice@gmail.com>
41864         doc: update users.txt
41865         * users.txt: Add gdb.
41867 2011-03-23  Jim Meyering  <meyering@redhat.com>
41869         doc: update users.txt
41870         Looking through matches up to the following URL (there are still
41871         several more pages), I found several projects that use gnulib:
41872         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
41873         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
41874         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
41876 2011-03-22  Bruno Haible  <bruno@clisp.org>
41878         unictype/bidi*: Rename functions.
41879         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
41880         uc_bidi_class, uc_is_bidi_class): New declarations.
41881         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
41882         uc_bidi_category_byname.
41883         (uc_bidi_category_byname): New function.
41884         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
41885         u_bidi_category_name.
41886         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
41887         (uc_bidi_category_name): New function.
41888         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
41889         uc_bidi_category.
41890         (uc_bidi_category): New function.
41891         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
41892         uc_is_bidi_category. Invoke uc_bidi_class.
41893         (uc_is_bidi_category): New function.
41894         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
41895         instead of uc_bidi_category_byname.
41896         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
41897         instead of uc_bidi_category_name.
41898         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
41899         uc_bidi_category.
41900         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
41901         instead of uc_is_bidi_category.
41903 2011-03-21  Bruno Haible  <bruno@clisp.org>
41905         New module 'unictype/joininggroup-all'.
41906         * modules/unictype/joininggroup-all: New file.
41908         Tests for module 'unictype/joininggroup-of'.
41909         * modules/unictype/joininggroup-of-tests: New file.
41910         * tests/unictype/test-joininggroup_of.c: New file.
41911         * tests/unictype/test-joininggroup_of.h: New file, automatically
41912         generated by gen-uni-tables.
41914         New module 'unictype/joininggroup-of'.
41915         * modules/unictype/joininggroup-of: New file.
41916         * lib/unictype/joininggroup_of.c: New file.
41917         * lib/unictype/joininggroup_of.h: New file, automatically generated by
41918         gen-uni-tables.
41920         Tests for module 'unictype/joininggroup-byname'.
41921         * modules/unictype/joininggroup-byname-tests: New file.
41922         * tests/unictype/test-joininggroup_byname.c: New file.
41924         New module 'unictype/joininggroup-byname'.
41925         * modules/unictype/joininggroup-byname: New file.
41926         * lib/unictype/joininggroup_byname.c: New file.
41927         * lib/unictype/joininggroup_byname.gperf: New file.
41929         Tests for module 'unictype/joininggroup-name'.
41930         * modules/unictype/joininggroup-name-tests: New file.
41931         * tests/unictype/test-joininggroup_name.c: New file.
41933         New module 'unictype/joininggroup-name'.
41934         * modules/unictype/joininggroup-name: New file.
41935         * lib/unictype/joininggroup_name.c: New file.
41936         * lib/unictype/joininggroup_name.h: New file.
41938         New module 'unictype/joiningtype-all'.
41939         * modules/unictype/joiningtype-all: New file.
41941         Tests for module 'unictype/joiningtype-of'.
41942         * modules/unictype/joiningtype-of-tests: New file.
41943         * tests/unictype/test-joiningtype_of.c: New file.
41944         * tests/unictype/test-joiningtype_of.h: New file, automatically
41945         generated by gen-uni-tables.
41947         New module 'unictype/joiningtype-of'.
41948         * modules/unictype/joiningtype-of: New file.
41949         * lib/unictype/joiningtype_of.c: New file.
41950         * lib/unictype/joiningtype_of.h: New file, automatically generated by
41951         gen-uni-tables.
41953         Tests for module 'unictype/joiningtype-byname'.
41954         * modules/unictype/joiningtype-byname-tests: New file.
41955         * tests/unictype/test-joiningtype_byname.c: New file.
41957         New module 'unictype/joiningtype-byname'.
41958         * modules/unictype/joiningtype-byname: New file.
41959         * lib/unictype/joiningtype_byname.c: New file.
41961         Tests for module 'unictype/joiningtype-name'.
41962         * modules/unictype/joiningtype-name-tests: New file.
41963         * tests/unictype/test-joiningtype_name.c: New file.
41965         New module 'unictype/joiningtype-name'.
41966         * modules/unictype/joiningtype-name: New file.
41967         * lib/unictype/joiningtype_name.c: New file.
41969         unictype: Add support for Arabic shaping properties.
41970         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
41971         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
41972         declarations.
41973         (UC_JOINING_GROUP_*): New enumeration values.
41974         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
41975         declarations.
41976         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
41977         (unicode_joining_type): New variable.
41978         (UC_JOINING_GROUP_*): New enumeration values.
41979         (unicode_joining_group): New variable.
41980         (fill_arabicshaping, joining_type_as_c_identifier,
41981         output_joining_type_test, output_joining_type,
41982         joining_group_as_c_identifier, output_joining_group_test,
41983         output_joining_group): New functions.
41984         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
41985         fill_arabicshaping and output_joining_type_test, output_joining_type,
41986         output_joining_group_test, output_joining_group.
41987         Reported by Simon Josefsson.
41989 2011-03-21  Jim Meyering  <meyering@redhat.com>
41991         strftime: fix a bug in yesterday's change
41992         * lib/strftime.c (add): Accommodate width's initial value of -1.
41993         Otherwise, nstrftime would copy uninitialized data into
41994         the result buffer.
41996 2011-03-21  Jim Meyering  <meyering@redhat.com>
41998         tests: add strftime-tests module
41999         * tests/test-strftime.c: New file.
42000         * modules/strftime-tests: New module.
42002 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42004         strftime: don't assume a byte count fits in 'int'
42005         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
42006         found this problem by static analysis, using gcc -Wstrict-overflow
42007         (GCC 4.5.2, x86-64).  This reported an optimization that depended
42008         on an integer overflow having undefined behavior, but it turns out
42009         that the argument is a size, which might not fit in 'int' anyway,
42011 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42013         stdio: don't require ignore_value around fwrite
42015         This patch works around libc bug 11959
42016         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
42017         Without this patch, applications must often write
42018         ignore_value (fwrite (...)) even though the ignore_value is
42019         not helpful here.  It's common to write many objects, using
42020         fwrite/printf/etc., and then use ferror to detect output error.
42022         I considered making this patch optional, but decided against it,
42023         because libc is obviously being inconsistent here: there is no
42024         reason libc should insist that user code must inspect fwrite
42025         return's value without also insisting that it inspect printf's,
42026         putchar's, etc.  If user code wants to have a strict style where
42027         all these functions' values are checked (so that ferror need not
42028         be checked), we could add support for that style in a new gnulib
42029         module, but in the meantime it's better to be consistent and to
42030         support common usage.
42032         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
42033         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
42034         that we are compiling in checking mode, and if not C++, and
42035         if not already wrapping fwrite for some other reason.
42036         (fwrite): #define to rpl_fwrite if the latter is defined.
42038 2011-03-20  Bruno Haible  <bruno@clisp.org>
42040         verror: Fix compilation error introduced on 2011-02-13.
42041         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
42042         instead of __attribute__.
42043         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42045 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42046             Bruno Haible  <bruno@clisp.org>
42048         socklen: do not depend on sys_socket
42049         While trying to modify Emacs to use gnulib's socklen module,
42050         I discovered a circular dependency: socklen depends on sys_socket
42051         and vice versa.  Emacs can use socklen, but it does not need
42052         sys_socket because it has its own substitute for sys/socket.h.
42053         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
42054         gl_TYPE_SOCKLEN_T.
42055         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
42056         gl_PREREQ_SYS_H_SOCKET.
42057         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
42058         gl_PREREQ_SYS_H_SOCKET.
42059         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
42060         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
42061         * modules/socklen (Depends-on): Do not depend on sys_socket.
42062         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
42064 2011-03-20  Jim Meyering  <meyering@redhat.com>
42066         maint.mk: sort file names *after* new transformation
42067         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
42068         prefix would have led to an unwarranted failure in GNU parted.
42069         Sort after that transformation.
42071 2011-03-19  Jim Meyering  <meyering@redhat.com>
42073         maint.mk: fix po-file syntax-check rule
42074         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
42075         Patch by Bruno Haible.
42077 2011-03-19  Bruno Haible  <bruno@clisp.org>
42079         socklen: Update comment.
42080         * m4/socklen.m4: Update comment about platforms.
42082 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42083             Bruno Haible  <bruno@clisp.org>
42085         inet_ntop, inet_pton: Simplify.
42086         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
42087         documented to provide socklen_t and we already depend on sys_socket.
42088         * modules/inet_pton (Depends-on): Likewise.
42089         * lib/arpa_inet.in.h: Adjust comment.
42091 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42092             Bruno Haible  <bruno@clisp.org>
42094         netdb: Simplify.
42095         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
42096         documented to provide socklen_t and we already depend on sys_socket.
42097         * lib/netdb.in.h: Adjust comment.
42099 2011-03-19  Bruno Haible  <bruno@clisp.org>
42101         sys_socket, netdb: Document problem with socklen_t.
42102         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
42103         platforms.
42104         * doc/posix-headers/netdb.texi: Likewise.
42106 2011-03-18  Eric Blake  <eblake@redhat.com>
42108         maint.mk: let po check work in VPATH build
42109         * top/maint.mk (po_file): Allow cfg.mk override.
42110         (sc_po_check): Allow VPATH use.
42111         Reported by Jiri Denemark.
42113 2011-03-16  Jim Meyering  <meyering@redhat.com>
42115         maint.mk: allow fine-grained syntax-check exclusion via Make variables
42116         Before, you would have had to create one .x-sc_ file per rule in order
42117         to exempt offending files.  Now, you may instead use a Make variable --
42118         usually defined in cfg.mk -- whose name identifies the affected rule.
42119         * top/maint.mk (_sc_excl): Define.
42120         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
42121         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
42123 2011-03-13  Bruno Haible  <bruno@clisp.org>
42125         ignore-value tests: Avoid warnings.
42126         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
42127         empty for gcc < 3.4.
42129 2011-03-13  Bruno Haible  <bruno@clisp.org>
42131         passfd: Fix link error on Solaris.
42132         * modules/passfd (Description): Correct.
42133         (Depends-on): Add socketlib.
42134         (Link): New section.
42135         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
42137 2011-03-13  Bruno Haible  <bruno@clisp.org>
42139         passfd: Fix link error on AIX 5.2.
42140         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
42142 2011-03-13  Bruno Haible  <bruno@clisp.org>
42144         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
42145         * lib/sys_socket.in.h: Include <stddef.h>.
42146         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
42147         CMSG_FIRSTHDR. Remove unused variable.
42149 2011-03-13  Bruno Haible  <bruno@clisp.org>
42151         passfd: Fix compilation error on OpenBSD.
42152         * lib/passfd.c: Include <sys/uio.h>.
42154 2011-03-13  Bruno Haible  <bruno@clisp.org>
42156         passfd test: Fix warnings.
42157         * tests/test-passfd.c: Include <sys/wait.h>.
42158         (main): Fix typo.
42160 2011-03-13  Bruno Haible  <bruno@clisp.org>
42162         passfd module, part 4, tweaks.
42163         * tests/test-passfd.c: Reorder includes.
42164         (main): Fix perror and printf calls.
42166 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42168         passfd module, part 4.
42169         * modules/passfd-tests: New file.
42170         * tests/test-passfd.c: New file.
42172 2011-03-13  Jim Meyering  <meyering@redhat.com>
42174         Makefile: rely on GNU make; derive syntax-check rule names
42175         Rather than requiring that each sc_ rule be listed as a dependent
42176         of "check", use features of GNU make to derive the list.
42177         * Makefile (syntax-check-rules): Define.
42178         (check): Depend on the new variable, not the hard-coded list.
42180 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
42181             Bruno Haible  <bruno@clisp.org>
42183         passfd module, part 3.
42184         * lib/passfd.h (recvfd): Add a flags argument.
42185         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
42186         (recvfd): Add a flags argument.
42187         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
42188         exists.
42189         * modules/passfd (Depends-on): Add cloexec.
42190         Suggested by Eric Blake.
42192 2011-03-13  Bruno Haible  <bruno@clisp.org>
42194         passfd module, part 2, tweaks.
42195         * modules/passfd (Files): Reorder.
42196         (Depends-on): Remove errno.
42197         (Include): Remove <sys/socket.h>, <sys/un.h>.
42198         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
42199         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
42200         specification header. Include <sys/socket.h> always. Don't include
42201         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
42202         (sendfd): Clarify that it sets errno when it fails.
42203         (recvfd): Fix specification.
42205 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42207         passfd module, part 2.
42208         * modules/passfd: New file.
42209         * lib/passfd.h: New file.
42210         * lib/passfd.c: New file.
42212 2011-03-12  Bruno Haible  <bruno@clisp.org>
42214         wcswidth, mbswidth: Avoid integer overflow.
42215         * lib/wcswidth.c: Include <limits.h>.
42216         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
42217         * lib/mbswidth.c: Include <limits.h>.
42218         (mbsnwidth): Avoid 'int' overflow.
42219         Reported by Jim Meyering.
42221 2011-03-12  Bruno Haible  <bruno@clisp.org>
42223         futimens, utimensat: Avoid endless recursion on Solaris 10.
42224         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
42225         Solaris.
42226         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
42227         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
42229 2011-03-11  Jim Meyering  <meyering@redhat.com>
42231         maint.mk: relax a regexp to accommodate other formatting styles
42232         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
42233         between "ngettext" and the following "(".
42235 2011-03-11  Pádraig Brady  <P@draigBrady.com>
42237         maint.mk: suppress a false positive warning
42238         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
42239         diagnostics are marked with ngettext.
42241 2011-03-10  Eric Blake  <eblake@redhat.com>
42243         wchar: add explicit dependencies, for Tru64
42244         * modules/mbmemcasecoll (Depends-on): Add wchar.
42245         * modules/mbtowc (Depends-on): Likewise.
42246         * modules/vasnprintf (Depends-on): Likewise.
42247         * modules/unistdio/u-printf-args (Depends-on): Likewise.
42248         * modules/wctomb (Depends-on): Likewise.
42249         Reported by Peter O'Gorman.
42251 2011-03-08  Bruno Haible  <bruno@clisp.org>
42253         passfd module, part 1, tweaks.
42254         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
42255         Improve indentation. Improve AC_MSG_CHECKING messages.
42256         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
42257         gl_SOCKET_FAMILIES.
42259 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42261         passfd module, part 1.
42262         * m4/afunix.m4: New file.
42263         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
42264         sockets.
42266 2011-03-08  Bruno Haible  <bruno@clisp.org>
42268         regex-quote: New API.
42269         * lib/regex-quote.h: Include <stdbool.h>.
42270         (struct regex_quote_spec): New type.
42271         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42272         New declarations.
42273         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42274         'const struct regex_quote_spec *' argument.
42275         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
42276         (pcre_special): New constant.
42277         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42278         New functions.
42279         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42280         'const struct regex_quote_spec *' argument.
42281         * modules/regex-quote (Depends-on): Add stdbool.
42282         * tests/test-regex-quote.c (check): Update for new API. Add test for
42283         anchored results.
42284         * NEWS: Mention the API change.
42285         Reported by Reuben Thomas and Eric Blake.
42287 2011-03-06  Bruno Haible  <bruno@clisp.org>
42289         regex-quote: Fix creation of POSIX extended regular expressions.
42290         * lib/regex-quote.c (ere_special): Add grouping and alternation
42291         operators.
42293 2011-03-05  Bruno Haible  <bruno@clisp.org>
42295         doc: Improve doc regarding autopoint vs. gnulib.
42296         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42297         disable autopoint while running autoreconf.
42298         Suggested by Ralf Wildenhues.
42300 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42302         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42303         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42305 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42307         parse-duration: remove xalloc.h dependency
42308         * lib/parse-duration.c (parse_period): handle NULL return from
42309         strdup instead of calling xstrdup().
42310         * modules/parse-duration: remove "xalloc" dependency
42312 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42314         bootstrap: honor m4_base when running aclocal
42315         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42317 2011-03-02  Jim Meyering  <meyering@redhat.com>
42319         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42320         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42321         on request from Matt Booth.
42323 2011-03-01  Eric Blake  <eblake@redhat.com>
42325         test-link: work on Hurd
42326         * tests/test-link.h (test_link): Hurd rejects linking directories
42327         with EISDIR instead of the POSIX-mandated EPERM.
42329 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42331         stdio: simplify by moving files to printf-posix, sigpipe
42332         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42333         since this symbol is needed only if printf is replaced.
42334         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42335         Require gl_ASM_SYMBOL_PREFIX.
42336         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42337         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42338         (Depends-on): Add 'raise'.
42339         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42340         * modules/stdio (Files): Remove lib/stdio-write.c,
42341         m4/asm-underscore.m4.
42342         (Depends-on): Remove 'raise'.
42344         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42345         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42346         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42347         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42349 2011-02-28  Bruno Haible  <bruno@clisp.org>
42351         localcharset: Assume ANSI C behaviour of free().
42352         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42353         calling free().
42354         Suggested by Simon Josefsson <simon@josefsson.org>.
42356 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42357             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42358             Bruno Haible  <bruno@clisp.org>  (tiny change)
42360         On Cygwin, use /proc file system instead of win32 API.
42361         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42362         Win32 file names.
42363         (DllMain): Simplify by removing Cygwin specific code.
42364         (find_shared_library_fullname): Use Linux specific implementation also
42365         for Cygwin.
42366         (get_shared_library_fullname): Update accordingly.
42367         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42368         Win32 file names.
42369         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42370         Cygwin specific code.
42372 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42373             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42375         Fix OpenMP flag detection for various Fortran compilers.
42376         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42377         OpenMP-conditional compilation construct, to force compile
42378         failure with missing OpenMP flag.
42379         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42381 2011-02-25  Eric Blake  <eblake@redhat.com>
42383         strstr: expand test coverage
42384         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42385         compilation.
42386         * tests/test-memmem.c (main): Duplicate tests.
42387         * tests/test-strcasestr.c (main): Likewise.
42388         * tests/test-c-strcasestr.c (main): Likewise.
42390 2011-02-25  Jim Meyering  <meyering@redhat.com>
42392         maint.mk: detect missing-NL-at-EOF, too
42393         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42394         it also detects when a file lacks a newline at EOF.
42395         (require_exactly_one_NL_at_EOF_): Renamed from
42396         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42397         since people may well have .x-sc_... file names tied to the
42398         existing name.  Suggested by Eric Blake.
42400 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42402         dirname: move m4/dos.m4 functionality into lib/dosname.h
42404         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42405         extracts symbols from it, puts them into config.h; but it's much
42406         easier to use the symbols directly.  filename.h already does this,
42407         but it disagrees with dos.m4 in some respects.  This patch
42408         introduces a different include file dosname.h that packages up
42409         dos.m4, and then later we can work on merging filename.h and
42410         dosname.h.  Applications that need only the easy-to-configure
42411         symbols should consider including dosname.h rather than dirname.h.
42412         * NEWS: Mention incompatible changes.
42413         * m4/dos.m4: Remove.
42414         * lib/dosname.h, modules/dosname: New files.
42415         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42416         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42417         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42418         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42419         Include dosname.h, not dirname.h.
42420         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42421         Include dosname.h, for definitions of symbols like ISSLASH
42422         that used to be in config.h.
42423         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42424         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42425         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42426         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42427         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42428         * modules/rmdir (Files): Likewise.
42429         * modules/stat (Files): Likewise.
42430         * modules/unlink (Files): Likewise.
42431         * modules/dirname-lgpl (Depends-on): Add dosname.
42432         * modules/lstat (Depends-on): Likewise.
42433         * modules/openat (Depends-on): Likewise.
42434         * modules/rmdir (Depends-on): Likewise.
42435         * modules/savewd (Depends-on): Likewise.
42436         * modules/stat (Depends-on): Likewise.
42437         * modules/unlink (Depends-on): Likewise.
42438         * modules/openat (Depends-on): Remove dirname-lgpl.
42439         * modules/savewd (Depends-on): Likewise.
42440         * tests/test-dirname.c: Do not use removed symbols like
42441         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42442         the remaining symbols, e.g., ISSLASH ('\\').
42444 2011-02-25  Eric Blake  <eblake@redhat.com>
42446         strstr: revert patches that introduced bug and pessimization
42447         * lib/str-two-way.h: Add another reference.
42448         (two_way_short_needle, two_way_long_needle): Revert changes from
42449         2011-02-24; they pessimize search speed.
42450         (critical_factorization): Partially revert changes from
42451         2010-06-22; they violate the requirement that the left half of the
42452         needle be smaller than the period of the needle.
42454 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42456         filenamecat: remove unnecessary dependency on dirname-lgpl
42457         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42458         is no direct dependency, just an indirect one via filenamecat-lgpl.
42460         remove: remove unnecessary use of m4/dos.m4
42461         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42462         * modules/remove (FILES): Remove m4/dos.m4.
42464         * lib/openat-proc.c: Don't include dirname.h; not needed.
42466         backupfile: remove unnecessary use of m4/dos.m4
42467         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42468         of its symbols are used by the backupfile code.  backupfile.c does
42469         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42470         for the rare case of programs that want all their backup file
42471         names to live within 8+3 limits, and dos.m4 doesn't address that.
42472         * modules/backupfile (Files): Remove m4/dos.m4.
42474 2011-02-24  Jim Meyering  <meyering@redhat.com>
42476         strstr: fix a bug whereby strstr would mistakenly return NULL
42477         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42478         in period calculation.
42479         (two_way_long_needle): Likewise.
42480         The original problem was reported by Mike Stump in
42481         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42482         Ralf Wildenhues provided the short needle and haystack.
42483         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42484         Add a more involved test to trigger the bug in two_way_long_needle.
42486 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42488         gnulib-tool: remove use of bold display in help screen
42489         * gnulib-tool (func_usage): Do not use bold display anymore in the
42490         help screen.  That was just meant to be a temporary emphasis for a
42491         backward-incompatible change.
42493 2011-02-23  Bruno Haible  <bruno@clisp.org>
42495         Fix misindentation of preprocessor directives.
42496         * lib/argp-namefrob.h: Reindent preprocessor directives.
42497         * lib/getopt_int.h (struct _getopt_data): Likewise.
42498         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42499         * lib/vasnprintf.c (decode_long_double): Likewise.
42500         * tests/test-argmatch.c: Insert blank lines, for clarity.
42501         * tests/test-exclude.c: Likewise.
42503 2011-02-22  Bruno Haible  <bruno@clisp.org>
42505         ioctl: Fix for MacOS X in 64-bit mode.
42506         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42507         value.
42508         Suggested by Eric Blake.
42509         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42511 2011-02-22  Jim Meyering  <meyering@redhat.com>
42513         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42514         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42515         in lib/.
42517 2011-02-22  Eric Blake  <eblake@redhat.com>
42519         maint: avoid any CDPATH issue
42520         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42522         maint: adjust cpp indentation for my modules, as well
42523         * Makefile (sc_cpp_indent_check): Add my name.
42524         * lib/fbufmode.c: Filter through cppi.
42525         * lib/fpurge.c: Likewise.
42526         * lib/freadable.c: Likewise.
42527         * lib/freading.c: Likewise.
42528         * lib/fwritable.c: Likewise.
42529         * lib/fwriting.c: Likewise.
42530         * lib/sigaction.c: Likewise.
42532 2011-02-22  Jim Meyering  <meyering@redhat.com>
42534         maint: adjust cpp indentation to reflect nesting depth
42535         I.e., in a block of code that begins with an unnested "#if",
42536         put one space between the "#" in column 1 and following token.
42537         For example,
42538         -#include <sys/vfs.h>
42539         +# include <sys/vfs.h>
42540         Do this only in .c files that are part of a module I maintain.
42541         * lib/linkat.c: Filter through cppi.
42542         * lib/nanosleep.c: Likewise.
42543         * lib/openat.c: Likewise.
42544         * lib/openat-die.c: Likewise.
42545         * lib/dup3.c: Likewise.
42546         * lib/fchownat.c: Likewise.
42547         * lib/flock.c: Likewise.
42548         * lib/fsync.c: Likewise.
42549         * lib/fts.c: Likewise.
42550         * lib/getpass.c: Likewise.
42551         * lib/gettimeofday.c: Likewise.
42552         * lib/userspec.c: Likewise.
42553         * Makefile (sc_cpp_indent_check): New rule, to check this.
42555 2011-02-22  Bruno Haible  <bruno@clisp.org>
42557         New module 'wctomb'.
42558         * lib/stdlib.in.h (wctomb): New declaration.
42559         * lib/wctomb.c: New file.
42560         * lib/wctomb-impl.h: New file.
42561         * m4/wctomb.m4: New file.
42562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
42563         REPLACE_WCTOMB.
42564         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
42565         REPLACE_WCTOMB.
42566         * modules/wctomb: New file.
42567         * tests/test-stdlib-c++.cc: Test signature of wctomb.
42568         * doc/posix-functions/wctomb.texi: Mention the new module.
42569         * modules/wctob (Depends-on): Add wctomb.
42571 2011-02-22  Bruno Haible  <bruno@clisp.org>
42573         New module 'mbtowc'.
42574         * lib/stdlib.in.h (mbtowc): New declaration.
42575         * lib/mbtowc.c: New file.
42576         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
42577         * m4/mbtowc.m4: New file.
42578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
42579         REPLACE_MBTOWC.
42580         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
42581         REPLACE_MBTOWC.
42582         * modules/mbtowc: New file.
42583         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
42584         * doc/posix-functions/mbtowc.texi: Mention the new module.
42585         * modules/btowc (Depends-on): Add mbtowc.
42587 2011-02-22  Bruno Haible  <bruno@clisp.org>
42589         wcrtomb: Add more tests for native Windows platforms.
42590         * tests/test-wcrtomb-w32-1.sh: New file.
42591         * tests/test-wcrtomb-w32-2.sh: New file.
42592         * tests/test-wcrtomb-w32-3.sh: New file.
42593         * tests/test-wcrtomb-w32-4.sh: New file.
42594         * tests/test-wcrtomb-w32-5.sh: New file.
42595         * tests/test-wcrtomb-w32.c: New file.
42596         * modules/wcrtomb-tests (Files): Add them.
42597         (Makefile.am): Arrange to run these tests.
42598         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
42599         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
42601 2011-02-20  Bruno Haible  <bruno@clisp.org>
42603         wcrtomb: Enhance test.
42604         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
42606 2011-02-20  Bruno Haible  <bruno@clisp.org>
42608         mbrtowc: Tiny optimization.
42609         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
42611 2011-02-20  Jim Meyering  <meyering@redhat.com>
42613         test-exclude.c: remove unmatched #endif
42614         * tests/test-exclude.c: Remove stray #endif, left over from
42615         the change of a week ago.
42617 2011-02-19  Jim Meyering  <meyering@redhat.com>
42619         git-version-gen: skip "-dirty" check when appropriate
42620         * build-aux/git-version-gen: Don't run any git commands when the
42621         version string comes from .tarball-version.  Prior to this, we
42622         would run git update-index --refresh even from a just-unpacked
42623         tarball directory, and that could affect a .git/ directory in a
42624         parent of the build directory.  Reported by Mike Frysinger.
42626 2011-02-19  Bruno Haible  <bruno@clisp.org>
42628         unictype/property-byname: Reduce the size of the 'data' segment.
42629         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
42631 2011-02-19  Bruno Haible  <bruno@clisp.org>
42633         unictype/scripts: Reduce the size of the 'data' segment.
42634         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
42635         '%pic'.
42636         * lib/unictype/scripts_byname.gperf: Regenerated.
42638 2011-02-19  Bruno Haible  <bruno@clisp.org>
42640         stdint: Update documentation.
42641         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
42643 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
42645         stdint: omit redundant check for wchar.h
42646         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
42647         always tests whether wchar.h exists, so remove the now-redundant test.
42649 2011-02-18  Bruno Haible  <bruno@clisp.org>
42651         stdint: Cut dependency to module 'wchar'.
42652         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
42653         include the necessary prerequisites.
42654         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
42655         * modules/stdint (Depends-on): Remove wchar.
42656         (Makefile.am): Substitute HAVE_WCHAR_H.
42657         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
42659 2011-02-18  Eric Blake  <eblake@redhat.com>
42661         longlong: skip, rather than fail, on cross-compilation
42662         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
42663         when cross-compiling; regression from 2011-02-16.
42665 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42667         * NEWS: Mention 2011-02-08 change to stdlib.
42669 2011-02-17  Bruno Haible  <bruno@clisp.org>
42671         getloadavg: Add comments about platforms.
42672         * m4/getloadavg.m4: Add comment.
42673         * lib/getloadavg.c: Likewise.
42675 2011-02-17  Bruno Haible  <bruno@clisp.org>
42677         getloadavg: Fix link error on Solaris 2.6.
42678         * modules/getloadavg (Link): New section.
42679         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
42680         linking test-getloadavg.
42681         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
42682         getloadavg.
42684 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42686         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
42687         It was 'int', but this doesn't match the IRIX 6.5 manual.
42688         Suggested by Bruno Haible in
42689         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
42691 2011-02-17  Bruno Haible  <bruno@clisp.org>
42693         havelib: Fix comments.
42694         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
42695         change.
42697 2011-02-17  Bruno Haible  <bruno@clisp.org>
42699         havelib: Update config.rpath.
42700         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
42702 2011-02-17  Bruno Haible  <bruno@clisp.org>
42704         getloadavg test: Add some plausibility checks.
42705         * tests/test-getloadavg.c (check_avg): Print a warning when the value
42706         is improbable.
42708 2011-02-16  Eric Blake  <eblake@redhat.com>
42710         maintainer-makefile: make syntax-check a no-op from tarballs
42711         * top/maint.mk (no-vc-detected): New rule.
42712         (local-checks-available): Use it to avoid hanging if someone tries
42713         'make syntax-check' from a tarball.  Also append to any non-syntax
42714         checks already defined in cfg.mk.
42716 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
42718         longlong: tune, particularly for common case of c99
42720         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
42721         or running anything if c99, or if unsigned long long int does not
42722         work.  In either case, we know the answer without further tests.
42723         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
42724         it at most once, and use its results for both long long int and
42725         unsigned long long int.  This is more likely to be efficient in
42726         the common case where the program wants to check for both long
42727         long int and unsigned long long int.
42728         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
42729         since the answer is already known.
42731 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
42733         getloadavg: set errno
42734         * lib/getloadavg.c: Set errno when returning -1.  If no other
42735         error number looks appropriate, set it to ENOSYS if the getloadavg
42736         looks like it can't possibly ever work, ENOTSUP otherwise.
42737         Suggested by Bruno Haible in
42738         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
42740         getloadavg: trim unused parts and speed up 'configure'
42741         * NEWS: Document this.
42742         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
42743         always compiled if getloadavg is absent.
42744         Move test code to ...
42745         * tests/test-getloadavg.c: New file, containing previous
42746         contents of test from lib/getloadavg.c.  It also contains
42747         suggestions by Bruno Haible in
42748         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
42749         * modules/getloadavg-tests: New file.
42750         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
42751         Do tests in the same order as they're needed for getloadavg.c.
42752         Omit setgid-related tests that generate symbols KMEM_GROUP,
42753         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
42754         Do only the tests that are needed to see whether the system has
42755         getloadavg, moving the other tests into ...
42756         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
42757         NLIST_NAME_UNION; nobody should be using it.  Do not define
42758         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
42759         relevant, as the user of this module shouldn't care how getloadavg
42760         is implemented.
42762         getloadavg: omit unused var
42763         * lib/getloadavg.c (getloadavg): Omit unused local variable.
42765 2011-02-15  Jim Meyering  <meyering@redhat.com>
42767         doc: update users.txt
42768         * users.txt: Update iwhd's URL.
42770 2011-02-13  Bruno Haible  <bruno@clisp.org>
42772         Consistent macro naming for macros that use GCC __attribute__.
42773         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
42774         _ATTRIBUTE_NONNULL_.
42775         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
42776         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
42777         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
42778         ATTRIBUTE_DEPRECATED.
42779         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
42780         ATTRIBUTE_NORETURN.
42781         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42782         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42783         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42784         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42785         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
42786         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
42787         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
42788         ATTRIBUTE_SENTINEL.
42789         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
42790         ATTRIBUTE_RETURN_CHECK.
42791         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
42792         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
42793         ATTRIBUTE_NORETURN.
42794         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
42795         Reported by Paul Eggert.
42797 2011-02-13  Bruno Haible  <bruno@clisp.org>
42799         Don't interfere with a program's definition of __attribute__.
42800         * lib/argp.h (__attribute__): Remove definition.
42801         (_GL_ATTRIBUTE_FORMAT): New macro.
42802         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
42803         * lib/argp-fmtstream.h (__attribute__): Remove definition.
42804         (_GL_ATTRIBUTE_FORMAT): New macro.
42805         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
42806         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
42807         GCC 3 or newer.
42808         * lib/error.h (__attribute__): Remove definition.
42809         (_GL_ATTRIBUTE_FORMAT): New macro.
42810         (error, error_at_line): Use it.
42811         * lib/hash.h (__attribute__): Remove definition.
42812         (ATTRIBUTE_WUR): Update definition. Define always.
42813         * lib/openat.h (__attribute__): Remove definition.
42814         (ATTRIBUTE_NORETURN): Update definition. Define always.
42815         * lib/sigpipe-die.h (__attribute__): Remove definition.
42816         (ATTRIBUTE_NORETURN): Update definition. Define always.
42817         * lib/vasnprintf.h (__attribute__): Remove definition.
42818         (_GL_ATTRIBUTE_FORMAT): New macro.
42819         (asnprintf, vasnprintf): Use it.
42820         * lib/xalloc.h (__attribute__): Remove definition.
42821         (ATTRIBUTE_NORETURN): Update definition. Define always.
42822         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
42823         * lib/xmemdup0.h (__attribute__): Remove definition.
42824         (ATTRIBUTE_NORETURN): Update definition. Define always.
42825         * lib/xprintf.h (__attribute__): Remove definition.
42826         (_GL_ATTRIBUTE_FORMAT): New macro.
42827         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
42828         * lib/xstrtol.h (__attribute__): Remove definition.
42829         (ATTRIBUTE_NORETURN): Update definition. Define always.
42830         * lib/xvasprintf.h (__attribute__): Remove definition.
42831         (_GL_ATTRIBUTE_FORMAT): New macro.
42832         (xasprintf, xvasprintf): Use it.
42833         * tests/test-argmatch.c (__attribute__): Remove definition.
42834         (ATTRIBUTE_NORETURN): Update definition. Define always.
42835         * tests/test-exclude.c (__attribute__): Remove definition.
42836         (ATTRIBUTE_NORETURN): Update definition. Define always.
42837         Reported by Paul Eggert.
42839 2011-02-13  Bruno Haible  <bruno@clisp.org>
42841         mbrtowc: Add more tests for native Windows platforms.
42842         * tests/test-mbrtowc-w32-1.sh: New file.
42843         * tests/test-mbrtowc-w32-2.sh: New file.
42844         * tests/test-mbrtowc-w32-3.sh: New file.
42845         * tests/test-mbrtowc-w32-4.sh: New file.
42846         * tests/test-mbrtowc-w32-5.sh: New file.
42847         * tests/test-mbrtowc-w32.c: New file.
42848         * modules/mbrtowc-tests (Files): Add them.
42849         (Makefile.am): Arrange to run these tests.
42850         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
42851         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
42853 2011-02-13  Bruno Haible  <bruno@clisp.org>
42855         mbrtowc: Work around native Windows bug.
42856         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
42857         guess when no suitable locale for testing was found.
42858         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
42860 2011-02-13  Bruno Haible  <bruno@clisp.org>
42862         mbsinit: Work around mingw bug.
42863         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
42864         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
42865         Windows.
42866         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
42868 2011-02-13  Bruno Haible  <bruno@clisp.org>
42870         mbsinit: Don't crash for a NULL argument.
42871         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
42872         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
42874 2011-02-13  Bruno Haible  <bruno@clisp.org>
42876         Don't interfere with a program's definition of __attribute__.
42877         * lib/stdio.in.h (__attribute__): Remove definition.
42878         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
42879         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
42880         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
42881         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
42882         * lib/string.in.h (__attribute__): Remove definition.
42883         Reported by Paul Eggert.
42885 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42887         stdlib: don't get in the way of non-GCC __attribute__
42888         See thread starting at
42889         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
42890         Revert previous stdlib change, installing the following instead:
42891         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
42892         to get in the way of a non-GCC compiler that supports __attribute__.
42893         (_GL_ATTRIBUTE_RETURN): New macro.
42894         (_Exit): Use it instead of __attribute__.
42896 2011-02-12  Bruno Haible  <bruno@clisp.org>
42898         quotearg test: Avoid test failure on mingw.
42899         * tests/test-quotearg.sh: Convert the locale identifier from native
42900         Windows syntax to Unix syntax.
42902 2011-02-12  Bruno Haible  <bruno@clisp.org>
42904         setlocale: Prefer gnulib's override over libintl's override.
42905         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
42906         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
42907         GNULIB_defined_setlocale is set.
42909 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42911         stdlib: support non-GCC __attribute__
42913         Fix a serious and tricky problem encountered when attempting to
42914         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
42915         5.5, but it crashed due to memory corruption on Solaris 10 with
42916         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
42917         bits that are otherwise zero.  This tagging is optional inside
42918         Emacs but is preferred and is used when __attribute__ ((__aligned
42919         (8))) works, as it does with both recent-enough GCC and with Sun C
42920         5.11.  However, Sun C 5.11 is not GCC and does not #define
42921         __GNUC__ and __GNUC_MINOR__.
42923         When I added the getloadavg module to Emacs, it brought in
42924         stdlib.in.h, which contained this fragment:
42926            #ifndef __attribute__
42927            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
42928            #  define __attribute__(Spec)   /* empty */
42929            # endif
42930            #endif
42932         When files that include <stdlib.h> were compiled with Sun C 5.11,
42933         the above code disabled __attribute__ ((__aligned (8))), which
42934         caused variables to not be properly aligned, which eventually led
42935         to the pointer corruption mentioned above.  (This was a bit hard
42936         to diagnose, unfortunately.)
42938         Several "#define __attribute__(X) /* empty */" code snippets need
42939         to be eradicated from Gnulib to work with non-GCC compilers that
42940         support __attribute__.  The Autoconf way to do this is to test for
42941         each kind of attribute that we want support for, and selectively
42942         enable that in source code.
42944         Fix this problem just for stdlib.h, by adding a test for the
42945         __noreturn__ attribute, and change stdlib.in.h to use that test
42946         when needed.  This technique can be easily generalized to the
42947         other *.in.h files and attributes, and a similar technique can be
42948         used for *.h and *.c files.  This patch is enough to solve the
42949         problem for Emacs + getloadavg, and I thought I'd publish it for
42950         feedback before undertaking further, similar fixes in other
42951         modules.
42953         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
42954         because it's not needed for stdlib.h.  It merely substitutes the
42955         value directly into stdlib.h.  We may well need to #define it, or
42956         similar symbols, for other modules, but it's nice to also have an
42957         option to not #define it for applications like Emacs that do not
42958         need it.
42960         * lib/stdlib.in.h (__attribute__): Do not #define.
42961         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
42962         be defined only if the _Exit module is also used.
42963         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
42964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
42965         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
42966         platforms.
42967         * modules/_Exit (Files): Add m4/attribute.m4.
42968         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
42969         * m4/attribute.m4: New file.
42971 2011-02-12  Bruno Haible  <bruno@clisp.org>
42973         wcsrtombs: Work around bug on native Windows.
42974         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
42975         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
42976         instead of len.
42977         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
42979 2011-02-12  Bruno Haible  <bruno@clisp.org>
42981         mbsrtowcs: Work around bug on native Windows.
42982         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
42983         against mingw bug.
42984         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
42986 2011-02-12  Bruno Haible  <bruno@clisp.org>
42988         Avoid setlocale bugs in tests.
42989         * modules/btowc (Dependencies): Add setlocale.
42990         * modules/c-strcase (Dependencies): Likewise.
42991         * modules/mbmemcasecmp (Dependencies): Likewise.
42992         * modules/mbmemcasecoll (Dependencies): Likewise.
42993         * modules/mbrtowc (Dependencies): Likewise.
42994         * modules/mbscasecmp (Dependencies): Likewise.
42995         * modules/mbscasestr (Dependencies): Likewise.
42996         * modules/mbschr (Dependencies): Likewise.
42997         * modules/mbscspn (Dependencies): Likewise.
42998         * modules/mbsinit (Dependencies): Likewise.
42999         * modules/mbsncasecmp (Dependencies): Likewise.
43000         * modules/mbsnrtowcs (Dependencies): Likewise.
43001         * modules/mbspbrk (Dependencies): Likewise.
43002         * modules/mbspcasecmp (Dependencies): Likewise.
43003         * modules/mbsrchr (Dependencies): Likewise.
43004         * modules/mbsrtowcs (Dependencies): Likewise.
43005         * modules/mbsspn (Dependencies): Likewise.
43006         * modules/mbsstr (Dependencies): Likewise.
43007         * modules/nl_langinfo (Dependencies): Likewise.
43008         * modules/quotearg (Dependencies): Likewise.
43009         * modules/unicase/locale-language (Dependencies): Likewise.
43010         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
43011         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
43012         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
43013         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
43014         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
43015         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
43016         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
43017         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
43018         * modules/vasnprintf-posix (Dependencies): Likewise.
43019         * modules/wcrtomb (Dependencies): Likewise.
43020         * modules/wcsnrtombs (Dependencies): Likewise.
43021         * modules/wcsrtombs (Dependencies): Likewise.
43023 2011-02-12  Bruno Haible  <bruno@clisp.org>
43025         setlocale: Workaround native Windows bug.
43026         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
43027         succeeds but sets LC_CTYPE to "C", report a failure.
43028         * tests/test-setlocale2.sh: New file.
43029         * tests/test-setlocale2.c: New file.
43030         * modules/setlocale-tests (Files): Add the new files.
43031         (Makefile.am): Enable test-setlocale2.sh test.
43032         * doc/posix-functions/setlocale.texi: Mention workaround.
43034 2011-02-11  Bruno Haible  <bruno@clisp.org>
43036         Tests for module 'setlocale'.
43037         * modules/setlocale-tests: New file.
43038         * tests/test-setlocale1.sh: New file.
43039         * tests/test-setlocale1.c: New file.
43041         New module 'setlocale'.
43042         * lib/locale.in.h (setlocale): New declaration.
43043         * lib/setlocale.c: New file, based on
43044         gettext/gettext-runtime/intl/setlocale.c.
43045         * m4/setlocale.m4: New file.
43046         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
43047         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
43048         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
43049         REPLACE_SETLOCALE.
43050         * modules/setlocale: New file.
43051         * tests/test-locale-c++.cc: Test the declaration of setlocale.
43052         * doc/posix-functions/setlocale.texi: Mention the new module.
43054 2011-02-11  Bruno Haible  <bruno@clisp.org>
43056         Prepare for locale dependent tests on mingw.
43057         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
43058         because it has the wrong locale encoding.
43059         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
43060         French_France.1252 instead of "fr".
43061         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
43062         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
43063         because it has the wrong locale encoding.
43064         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
43065         native Windows, try Turkish_Turkey.65001.
43066         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
43067         Chinese_China.54936.
43069         Prepare for locale dependent tests on mingw.
43070         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
43071         differently.
43072         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
43073         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
43074         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43075         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43077 2011-02-11  Eric Blake  <eblake@redhat.com>
43079         strptime: avoid compiler warnings
43080         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
43081         compiler warnings about dead code.
43082         Reported by Daniel P. Berrange.
43084 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
43086         doc: update users.txt
43087         * users.txt: Add rcs.
43089 2011-02-10  John W. Eaton  <jwe@gnu.org>
43091         doc: update users.txt
43092         * users.txt: Add octave.
43094 2011-02-10  Jim Meyering  <meyering@redhat.com>
43096         doc: update users.txt
43097         * users.txt: Add iwhd.
43099 2011-02-09  Bruno Haible  <bruno@clisp.org>
43101         gnulib-tool: Make copyright notice adjustment more robust.
43102         * gnulib-tool (func_import): In sed_transform_main_lib_file,
43103         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
43104         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
43105         License".
43106         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
43108 2011-02-06  Bruno Haible  <bruno@clisp.org>
43110         New module 'towctrans'.
43111         * modules/towctrans: New file.
43112         * lib/wctype.in.h (towctrans): New declaration.
43113         * lib/towctrans.c: New file.
43114         * lib/towctrans-impl.h: New file.
43115         * m4/towctrans.m4: New file.
43116         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
43117         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
43118         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
43119         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
43120         * doc/posix-functions/towctrans.texi: Mention the new module.
43122 2011-02-06  Bruno Haible  <bruno@clisp.org>
43124         New module 'wctrans'.
43125         * modules/wctrans: New file.
43126         * lib/wctype.in.h (wctrans): New declaration.
43127         * lib/wctrans.c: New file.
43128         * lib/wctrans-impl.h: New file.
43129         * m4/wctrans.m4: New file.
43130         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
43131         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
43132         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
43133         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
43134         * doc/posix-functions/wctrans.texi: Mention the new module.
43136 2011-02-06  Bruno Haible  <bruno@clisp.org>
43138         New module 'iswctype'.
43139         * modules/iswctype: New file.
43140         * lib/wctype.in.h (iswctype): New declaration.
43141         * lib/iswctype.c: New file.
43142         * lib/iswctype-impl.h: New file.
43143         * m4/iswctype.m4: New file.
43144         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
43145         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
43146         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
43147         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
43148         * doc/posix-functions/iswctype.texi: Mention the new module and the
43149         HP-UX 11.00 problem.
43151 2011-02-06  Bruno Haible  <bruno@clisp.org>
43153         New module 'wctype'.
43154         * modules/wctype: Change to represent the wctype() substitute.
43155         * lib/wctype.in.h (wctype): New declaration.
43156         * lib/wctype.c: New file.
43157         * lib/wctype-impl.h: New file.
43158         * m4/wctype.m4: New file.
43159         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
43160         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
43161         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
43162         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
43163         * doc/posix-functions/wctype.texi: Mention the new module and the
43164         HP-UX 11.00 problem.
43166 2011-02-06  Bruno Haible  <bruno@clisp.org>
43168         wctype-h: Ensure wctype_t and wctrans_t are defined.
43169         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
43170         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43171         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43172         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
43173         HAVE_WCTRANS_T.
43174         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
43176 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43178         flock: fix license typo
43180         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
43181         omitted.
43183 2011-02-08  Bruno Haible  <bruno@clisp.org>
43185         Split large sed scripts, for HP-UX sed.
43186         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
43187         to avoid HP-UX limit of 99 commands, in the near future.
43188         * modules/stdlib (Makefile.am): Likewise.
43189         * modules/unistd (Makefile.am): Likewise.
43190         * modules/wchar (Makefile.am): Likewise.
43191         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43192         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
43193         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
43195 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43196             Bruno Haible  <bruno@clisp.org>
43198         stdlib: improve random_r modularization
43199         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
43200         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
43201         you also need the random_r module to get this material right.
43202         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
43203         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
43204         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
43206 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43208         stdlib: don't depend on stdint
43209         * lib/stdlib.in.h: Don't include <stdint.h> merely because
43210         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
43211         be independent of whether stdint.h is needed.
43212         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
43213         here, instead of ...
43214         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
43215         struct random_data should be using the random_r module, not just
43216         the stdlib module (which wouldn't make sense: what package needs
43217         just struct random_data without also needing random_r?).
43218         * modules/stdlib (Depends-on): Remove stdint.
43220         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
43221         See the thread rooted at
43222         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
43223         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
43224         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
43225         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
43226         __VMS)); previously it was always included (via fcntl--.h).
43227         (getloadavg): Do not use c_strtod.  Instead, approximate it by
43228         hand; this is good enough for load averages.  Also, do not use
43229         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
43230         flags directly if available and don't bother otherwise.  (Packages
43231         that need the extra reliability should use the modules that define
43232         these flags on older platforms that lack them.)
43233         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
43234         fcntl-safer.
43236 2011-02-08  Jim Meyering  <meyering@redhat.com>
43238         di-set.h, ino-map.h: add multiple-inclusion guard
43239         Technically, the guard is required only for ino-map.h, due to its
43240         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
43241         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
43242         * lib/ino-map.h: Likewise.
43244 2011-02-06  Bruno Haible  <bruno@clisp.org>
43246         iswblank: Ensure declaration on glibc systems.
43247         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
43248         * modules/iswblank (Dependencies): Add 'extensions'.
43249         * doc/posix-functions/iswblank.texi: Document the glibc problem.
43251 2011-02-06  Bruno Haible  <bruno@clisp.org>
43253         New module 'iswblank'.
43254         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
43255         * modules/iswblank: New file.
43256         * modules/wctype-h (Files): Remove lib/iswblank.c.
43257         (Makefile.am): Substitute GNULIB_ISWBLANK.
43258         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
43259         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
43260         (gl_WCTYPE_H_DEFAULTS): New macro.
43261         (gl_WCTYPE_H): Require it. Remove iswblank related code.
43262         * modules/iswblank-tests: New file.
43263         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
43264         * tests/test-wctype-h.c (main): Remove iswblank tests.
43265         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
43266         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
43267         of 'wctype-h'.
43268         * NEWS: Mention the change.
43269         * modules/mbchar (Depends-on): Add iswblank.
43271 2011-02-08  Bruno Haible  <bruno@clisp.org>
43273         di-set tests: Refactor.
43274         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
43275         unnecessary includes.
43276         (ASSERT): Remove macro.
43277         (main): Make C90 compliant by avoiding variable declaration after
43278         statement.
43279         * modules/di-set-tests (Files): Add tests/macros.h.
43281 2011-02-08  Bruno Haible  <bruno@clisp.org>
43283         ino-map tests: Refactor.
43284         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
43285         unnecessary includes.
43286         (ASSERT): Remove macro.
43287         (main): Make C90 compliant by avoiding variable declaration after
43288         statement.
43289         * modules/ino-map-tests (Files): Add tests/macros.h.
43291 2011-02-08  Jim Meyering  <meyering@redhat.com>
43293         di-set: add "const" to a cast
43294         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43295         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43297 2011-02-06  Bruno Haible  <bruno@clisp.org>
43299         Rename module 'wctype' to 'wctype-h'.
43300         * modules/wctype-h: Renamed from modules/wctype.
43301         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43302         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43303         (Files, Depends-on, Makefile.am): Update.
43304         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43305         (Files, Makefile.am): Update.
43306         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43307         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43308         * doc/posix-headers/wctype.texi: Update.
43309         * doc/posix-functions/iswalnum.texi: Update.
43310         * doc/posix-functions/iswalpha.texi: Update.
43311         * doc/posix-functions/iswblank.texi: Update.
43312         * doc/posix-functions/iswcntrl.texi: Update.
43313         * doc/posix-functions/iswdigit.texi: Update.
43314         * doc/posix-functions/iswgraph.texi: Update.
43315         * doc/posix-functions/iswlower.texi: Update.
43316         * doc/posix-functions/iswprint.texi: Update.
43317         * doc/posix-functions/iswpunct.texi: Update.
43318         * doc/posix-functions/iswspace.texi: Update.
43319         * doc/posix-functions/iswupper.texi: Update.
43320         * doc/posix-functions/iswxdigit.texi: Update.
43321         * doc/posix-functions/towlower.texi: Update.
43322         * doc/posix-functions/towupper.texi: Update.
43323         * NEWS: Mention the change.
43324         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43325         * modules/mbchar (Dependencies): Likewise.
43326         * modules/mbswidth (Dependencies): Likewise.
43327         * modules/quotearg (Dependencies): Likewise.
43328         * modules/regex (Dependencies): Likewise.
43329         * modules/wcscasecmp (Dependencies): Likewise.
43330         * modules/wcsncasecmp (Dependencies): Likewise.
43331         * modules/wcwidth (Dependencies): Likewise.
43333 2011-02-06  Bruno Haible  <bruno@clisp.org>
43335         New module 'wcswidth'.
43336         * modules/wcswidth: New file.
43337         * lib/wchar.in.h (wcswidth): New declaration.
43338         * lib/wcswidth.c: New file.
43339         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43340         * m4/wcswidth.m4: New file.
43341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43343         REPLACE_WCSWIDTH.
43344         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43345         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43346         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43347         * doc/posix-functions/wcswidth.texi: Mention the new module.
43349 2011-02-06  Bruno Haible  <bruno@clisp.org>
43351         New module 'wcstok'.
43352         * modules/wcstok: New file.
43353         * lib/wchar.in.h (wcstok): New declaration.
43354         * lib/wcstok.c: New file.
43355         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43356         * m4/wcstok.m4: New file.
43357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43360         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43361         * doc/posix-functions/wcstok.texi: Mention the new module.
43363 2011-02-06  Bruno Haible  <bruno@clisp.org>
43365         New module 'wcsstr'.
43366         * modules/wcsstr: New file.
43367         * lib/wchar.in.h (wcsstr): New declaration.
43368         * lib/wcsstr.c: New file.
43369         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43370         * m4/wcsstr.m4: New file.
43371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43374         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43375         * doc/posix-functions/wcsstr.texi: Mention the new module.
43377 2011-02-06  Bruno Haible  <bruno@clisp.org>
43379         New module 'wcspbrk'.
43380         * modules/wcspbrk: New file.
43381         * lib/wchar.in.h (wcspbrk): New declaration.
43382         * lib/wcspbrk.c: New file.
43383         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43384         * m4/wcspbrk.m4: New file.
43385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43388         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43389         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43391 2011-02-06  Bruno Haible  <bruno@clisp.org>
43393         New module 'wcsspn'.
43394         * modules/wcsspn: New file.
43395         * lib/wchar.in.h (wcsspn): New declaration.
43396         * lib/wcsspn.c: New file.
43397         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43398         * m4/wcsspn.m4: New file.
43399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43402         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43403         * doc/posix-functions/wcsspn.texi: Mention the new module.
43405 2011-02-06  Bruno Haible  <bruno@clisp.org>
43407         New module 'wcscspn'.
43408         * modules/wcscspn: New file.
43409         * lib/wchar.in.h (wcscspn): New declaration.
43410         * lib/wcscspn.c: New file.
43411         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43412         * m4/wcscspn.m4: New file.
43413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43416         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43417         * doc/posix-functions/wcscspn.texi: Mention the new module.
43419 2011-02-06  Bruno Haible  <bruno@clisp.org>
43421         New module 'wcsrchr'.
43422         * modules/wcsrchr: New file.
43423         * lib/wchar.in.h (wcsrchr): New declaration.
43424         * lib/wcsrchr.c: New file.
43425         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43426         * m4/wcsrchr.m4: New file.
43427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43430         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43431         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43433 2011-02-06  Bruno Haible  <bruno@clisp.org>
43435         New module 'wcschr'.
43436         * modules/wcschr: New file.
43437         * lib/wchar.in.h (wcschr): New declaration.
43438         * lib/wcschr.c: New file.
43439         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43440         * m4/wcschr.m4: New file.
43441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43444         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43445         * doc/posix-functions/wcschr.texi: Mention the new module.
43447 2011-02-06  Bruno Haible  <bruno@clisp.org>
43449         New module 'wcsdup'.
43450         * modules/wcsdup: New file.
43451         * lib/wchar.in.h (wcsdup): New declaration.
43452         * lib/wcsdup.c: New file.
43453         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43454         * m4/wcsdup.m4: New file.
43455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43458         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43459         * doc/posix-functions/wcsdup.texi: Mention the new module.
43461 2011-02-06  Bruno Haible  <bruno@clisp.org>
43463         New module 'wcsxfrm'.
43464         * modules/wcsxfrm: New file.
43465         * lib/wchar.in.h (wcsxfrm): New declaration.
43466         * lib/wcsxfrm.c: New file.
43467         * lib/wcsxfrm-impl.h: New file.
43468         * m4/wcsxfrm.m4: New file.
43469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43472         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43473         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43475 2011-02-06  Bruno Haible  <bruno@clisp.org>
43477         New module 'wcscoll'.
43478         * modules/wcscoll: New file.
43479         * lib/wchar.in.h (wcscoll): New declaration.
43480         * lib/wcscoll.c: New file.
43481         * lib/wcscoll-impl.h: New file.
43482         * m4/wcscoll.m4: New file.
43483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43486         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43487         * doc/posix-functions/wcscoll.texi: Mention the new module.
43489 2011-02-06  Bruno Haible  <bruno@clisp.org>
43491         New module 'wcsncasecmp'.
43492         * modules/wcsncasecmp: New file.
43493         * lib/wchar.in.h (wcsncasecmp): New declaration.
43494         * lib/wcsncasecmp.c: New file.
43495         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43496         * m4/wcsncasecmp.m4: New file.
43497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43500         HAVE_WCSNCASECMP.
43501         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43502         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43504 2011-02-06  Bruno Haible  <bruno@clisp.org>
43506         New module 'wcscasecmp'.
43507         * modules/wcscasecmp: New file.
43508         * lib/wchar.in.h (wcscasecmp): New declaration.
43509         * lib/wcscasecmp.c: New file.
43510         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43511         * m4/wcscasecmp.m4: New file.
43512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43514         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43515         HAVE_WCSCASECMP.
43516         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43517         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43519 2011-02-05  Bruno Haible  <bruno@clisp.org>
43521         New module 'wcsncmp'.
43522         * modules/wcsncmp: New file.
43523         * lib/wchar.in.h (wcsncmp): New declaration.
43524         * lib/wcsncmp.c: New file.
43525         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43526         * m4/wcsncmp.m4: New file.
43527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43530         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43531         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43533 2011-02-05  Bruno Haible  <bruno@clisp.org>
43535         New module 'wcscmp'.
43536         * modules/wcscmp: New file.
43537         * lib/wchar.in.h (wcscmp): New declaration.
43538         * lib/wcscmp.c: New file.
43539         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43540         * m4/wcscmp.m4: New file.
43541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
43544         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
43545         * doc/posix-functions/wcscmp.texi: Mention the new module.
43547 2011-02-05  Bruno Haible  <bruno@clisp.org>
43549         New module 'wcsncat'.
43550         * modules/wcsncat: New file.
43551         * lib/wchar.in.h (wcsncat): New declaration.
43552         * lib/wcsncat.c: New file.
43553         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
43554         * m4/wcsncat.m4: New file.
43555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
43556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
43557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
43558         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
43559         * doc/posix-functions/wcsncat.texi: Mention the new module.
43561 2011-02-05  Bruno Haible  <bruno@clisp.org>
43563         New module 'wcscat'.
43564         * modules/wcscat: New file.
43565         * lib/wchar.in.h (wcscat): New declaration.
43566         * lib/wcscat.c: New file.
43567         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
43568         * m4/wcscat.m4: New file.
43569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
43570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
43571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
43572         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
43573         * doc/posix-functions/wcscat.texi: Mention the new module.
43575 2011-02-05  Bruno Haible  <bruno@clisp.org>
43577         New module 'wcpncpy'.
43578         * modules/wcpncpy: New file.
43579         * lib/wchar.in.h (wcpncpy): New declaration.
43580         * lib/wcpncpy.c: New file.
43581         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
43582         * m4/wcpncpy.m4: New file.
43583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
43584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
43585         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
43586         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
43587         * doc/posix-functions/wcpncpy.texi: Mention the new module.
43589 2011-02-05  Bruno Haible  <bruno@clisp.org>
43591         New module 'wcsncpy'.
43592         * modules/wcsncpy: New file.
43593         * lib/wchar.in.h (wcsncpy): New declaration.
43594         * lib/wcsncpy.c: New file.
43595         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
43596         * m4/wcsncpy.m4: New file.
43597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
43598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
43599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
43600         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
43601         * doc/posix-functions/wcsncpy.texi: Mention the new module.
43603 2011-02-05  Bruno Haible  <bruno@clisp.org>
43605         New module 'wcpcpy'.
43606         * modules/wcpcpy: New file.
43607         * lib/wchar.in.h (wcpcpy): New declaration.
43608         * lib/wcpcpy.c: New file.
43609         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
43610         * m4/wcpcpy.m4: New file.
43611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
43612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
43613         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
43614         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
43615         * doc/posix-functions/wcpcpy.texi: Mention the new module.
43617 2011-02-05  Bruno Haible  <bruno@clisp.org>
43619         New module 'wcscpy'.
43620         * modules/wcscpy: New file.
43621         * lib/wchar.in.h (wcscpy): New declaration.
43622         * lib/wcscpy.c: New file.
43623         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
43624         * m4/wcscpy.m4: New file.
43625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
43626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
43627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
43628         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
43629         * doc/posix-functions/wcscpy.texi: Mention the new module.
43631 2011-02-05  Bruno Haible  <bruno@clisp.org>
43633         New module 'wcsnlen'.
43634         * modules/wcsnlen: New file.
43635         * lib/wchar.in.h (wcsnlen): New declaration.
43636         * lib/wcsnlen.c: New file.
43637         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
43638         * m4/wcsnlen.m4: New file.
43639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
43640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
43641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
43642         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
43643         * doc/posix-functions/wcsnlen.texi: Mention the new module.
43645 2011-02-05  Bruno Haible  <bruno@clisp.org>
43647         New module 'wcslen'.
43648         * modules/wcslen: New file.
43649         * lib/wchar.in.h (wcslen): New declaration.
43650         * lib/wcslen.c: New file.
43651         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
43652         * m4/wcslen.m4: New file.
43653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
43654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
43655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
43656         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
43657         * doc/posix-functions/wcslen.texi: Mention the new module.
43659 2011-02-05  Bruno Haible  <bruno@clisp.org>
43661         New module 'wmemset'.
43662         * modules/wmemset: New file.
43663         * lib/wchar.in.h (wmemset): New declaration.
43664         * lib/wmemset.c: New file.
43665         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
43666         * m4/wmemset.m4: New file.
43667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
43668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
43669         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
43670         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
43671         * doc/posix-functions/wmemset.texi: Mention the new module.
43673 2011-02-05  Bruno Haible  <bruno@clisp.org>
43675         New module 'wmemmove'.
43676         * modules/wmemmove: New file.
43677         * lib/wchar.in.h (wmemmove): New declaration.
43678         * lib/wmemmove.c: New file.
43679         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
43680         * m4/wmemmove.m4: New file.
43681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
43682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
43683         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
43684         HAVE_WMEMMOVE.
43685         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
43686         * doc/posix-functions/wmemmove.texi: Mention the new module.
43688 2011-02-05  Bruno Haible  <bruno@clisp.org>
43690         New module 'wmemcpy'.
43691         * modules/wmemcpy: New file.
43692         * lib/wchar.in.h (wmemcpy): New declaration.
43693         * lib/wmemcpy.c: New file.
43694         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
43695         * m4/wmemcpy.m4: New file.
43696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
43697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
43698         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
43699         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
43700         * doc/posix-functions/wmemcpy.texi: Mention the new module.
43702 2011-02-05  Bruno Haible  <bruno@clisp.org>
43704         New module 'wmemcmp'.
43705         * modules/wmemcmp: New file.
43706         * lib/wchar.in.h (wmemcmp): New declaration.
43707         * lib/wmemcmp.c: New file.
43708         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
43709         * m4/wmemcmp.m4: New file.
43710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
43711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
43712         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
43713         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
43714         * doc/posix-functions/wmemcmp.texi: Mention the new module.
43716 2011-02-07  Jim Meyering  <meyering@redhat.com>
43718         di-set, ino-map: new modules, from coreutils
43719         * lib/di-set.c: New file.
43720         * lib/di-set.h: Likewise.
43721         * lib/ino-map.c: Likewise.
43722         * lib/ino-map.h: Likewise.
43723         * modules/di-set: Likewise.
43724         * modules/di-set-tests: Likewise.
43725         * modules/ino-map: Likewise.
43726         * modules/ino-map-tests: Likewise.
43727         * tests/test-di-set.c: Likewise.
43728         * tests/test-ino-map.c: Likewise.
43730 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
43732         getloadavg: merge minor changes from Emacs
43734         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
43735         (getloadavg): Use memset, not bzero.
43737         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
43738         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
43739         clash (bug#86).
43741 2010-11-14  Bruno Haible  <bruno@clisp.org>
43743         Allow multiple gnulib generated replacements to coexist.
43744         * lib/getopt.in.h (struct option): Avoid identical redefinition.
43745         * lib/inttypes.in.h (imaxdiv_t): Likewise.
43746         * lib/langinfo.in.h (nl_item): Likewise.
43747         * lib/math.in.h (_NaN, NAN): Likewise.
43748         * lib/netdb.in.h (struct addrinfo): Likewise.
43749         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
43750         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
43751         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
43752         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
43753         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
43754         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
43755         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
43756         pthread_mutexattr_init, pthread_mutexattr_settype,
43757         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
43758         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
43759         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
43760         pthread_spin_trylock, pthread_spin_unlock): Likewise.
43761         * lib/sched.in.h (struct sched_param): Likewise.
43762         * lib/se-selinux.in.h (security_class_t, security_context_t,
43763         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
43764         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
43765         lsetfilecon, fsetfilecon, security_check_context,
43766         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
43767         Likewise.
43768         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
43769         Likewise.
43770         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
43771         _gl_function_taking_int_returning_void_t, union sigval,
43772         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
43773         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
43774         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43775         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
43776         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
43777         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
43778         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
43779         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
43780         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
43781         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
43782         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
43783         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
43784         socklen_t, rpl_fd_isset): Likewise.
43785         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
43786         * lib/sys_time.in.h (struct timeval): Likewise.
43787         * lib/sys_times.in.h (struct tms): Likewise.
43788         * lib/sys_utsname.in.h (struct utsname):
43789         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
43790         * lib/unistd.in.h (getpagesize): Likewise.
43791         * lib/wchar.in.h (mbstate_t): Likewise.
43792         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43793         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
43794         towlower, towupper): Likewise.
43795         Reported by Sam Steingold <sds@gnu.org>.
43797 2011-02-05  Eric Blake  <eblake@redhat.com>
43799         unsetenv: work around Haiku issues
43800         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
43801         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
43803 2010-12-30  Bruce Korb  <bkorb@gnu.org>
43805         libposix: avoid calling error() within libposix
43806         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
43807         is defined.
43809 2011-02-05  Eric Blake  <eblake@redhat.com>
43811         strerror_r-posix: port to cygwin
43812         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
43813         implementation.
43814         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
43815         * tests/test-strerror_r.c (main): Fix test.
43816         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
43817         issue.
43819 2011-02-05  Bruno Haible  <bruno@clisp.org>
43821         New module 'wmemchr'.
43822         * modules/wmemchr: New file.
43823         * lib/wchar.in.h (wmemchr): New declaration.
43824         * lib/wmemchr.c: New file.
43825         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
43826         * m4/wmemchr.m4: New file.
43827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
43828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
43829         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
43830         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
43831         * doc/posix-functions/wmemchr.texi: Mention the new module.
43833 2011-02-04  Eric Blake  <eblake@redhat.com>
43835         fdopendir: detect FreeBSD bug
43836         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
43837         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
43839 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43841         stdbool: do not define HAVE_STDBOOL_H
43842         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
43843         AC_HEADER_STDBOOL.  All uses changed.  Do not define
43844         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
43845         imported from the latest Autoconf git.  It was motivated by Emacs,
43846         which uses gnulib but does not need HAVE_STDBOOL_H.
43848 2011-02-04  Bruno Haible  <bruno@clisp.org>
43850         wcsnrtombs: Prepare for new module wwcsnrtombs.
43851         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
43852         * lib/wcsnrtombs.c: Include it.
43853         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
43855         wcsrtombs: Prepare for new module wwcsrtombs.
43856         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
43857         * lib/wcsrtombs.c: Include it.
43858         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
43860         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
43861         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
43862         * lib/mbsnrtowcs.c: Include it.
43863         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
43865         mbsrtowcs: Prepare for new module mbsrtowwcs.
43866         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
43867         * lib/mbsrtowcs.c: Include it.
43868         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
43870 2011-02-04  Bruno Haible  <bruno@clisp.org>
43872         vasnprintf: Reduce use of malloc for small format strings.
43873         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
43874         (arguments): Add room for the first 7 arguments.
43875         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
43876         (char_directives, u8_directives, u16_directives, u32_directives): Add
43877         room for the first 7 directives.
43878         * lib/printf-parse.c: Include <string.h>.
43879         (PRINTF_PARSE): Change memory handling code so that it uses the first
43880         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
43881         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
43882         Reported by Pádraig Brady <P@draigbrady.com>.
43884 2011-01-31  Eric Blake  <eblake@redhat.com>
43886         dup2: work around Haiku bug
43887         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
43888         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
43889         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43890         * tests/test-dup2.c (main): Enhance test.
43892 2011-01-31  Simon Josefsson  <simon@josefsson.org>
43894         doc: off_t is not available in eglibc 2.11.2 stdio.h.
43895         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
43896         declared by eglibc 2.11.2.
43897         * lib/stdio.in.h: Likewise.
43899 2011-01-31  Eric Blake  <eblake@redhat.com>
43901         ignore-value: add missing test dependency
43902         * tests/test-ignore-value.c: Revert previous change; stdio.h
43903         provides off_t.
43904         * modules/ignore-value-tests (Depends-on): Add missing dependency.
43906 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
43908         mktime: clarify long_int width checking
43909         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
43910         the top level, to make it clearer that the assumption about
43911         long_int width is being checked.  See
43912         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
43914 2011-01-30  Simon Josefsson  <simon@josefsson.org>
43916         ignore-value: Fix self-test.
43917         * tests/test-ignore-value.c: Include sys/types.h for off_t.
43919 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43921         TYPE_MAXIMUM: avoid theoretically undefined behavior
43922         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
43923         negative number, which the C Standard says has undefined behavior.
43924         In practice this is not a problem, but might as well do it by the book.
43925         Reported by Rich Felker and Eric Blake; see
43926         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
43927         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
43928         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43930         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
43931         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43932         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
43934         mktime: #undef mktime before #defining it
43935         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
43937         mktime: systematically normalize tm_isdst comparisons
43938         * lib/mktime.c (isdst_differ): New function.
43939         (__mktime_internal): Use it systematically for all isdst comparisons.
43940         This completes the fix for libc BZ #6723, and removes the need for
43941         normalizing tm_isdst.  See
43942         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
43943         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
43945         mktime: fix some integer overflow issues and sidestep the rest
43947         This was prompted by a bug report by Benjamin Lindner for MinGW
43948         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
43949         His bug is due to signed integer overflow (0 - INT_MIN), and I
43950         I scanned through mktime.c looking for other integer overflow
43951         problems, fixing all the bugs I found.
43953         Although the C Standard says the resulting code is still not safe
43954         in the presence of integer overflow, in practice it should be good
43955         enough for all real-world two's-complement implementations, except
43956         for debugging environments that deliberately trap on integer
43957         overflow (e.g., gcc -ftrapv).
43959         * lib/mktime.c (WRAPV): New macro.
43960         (SHR): Also check that long_int and time_t shift right in the
43961         usual way, before using the fast-but-unportable method.
43962         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
43963         used.  The code already assumed two's complement, so there's
43964         no need to test for alternatives.  All uses removed.
43965         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
43966         the C standard.  Problem reported by Rich Felker in
43967         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
43968         (twos_complement_arithmetic): Also check long_int and time_t.
43969         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
43970         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
43971         (__mktime_internal): Avoid integer overflow with unary subtraction
43972         in two instances where -1 - X is an adequate replacement for -X,
43973         since the calculations are approximate.
43975 2011-01-29  Eric Blake  <eblake@redhat.com>
43977         mktime: avoid infinite loop
43978         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
43979         type; behavior is still undefined but portable to all known targets.
43980         Reported by Rich Felker.
43982 2011-01-29  Simon Josefsson  <simon@josefsson.org>
43984         rename, unlink, same-inode: Relicense.
43985         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
43986         * modules/unlink (License): Likewise.
43987         * modules/same-inode (License): Likewise.
43989 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43991         mktime: avoid problems on NetBSD 5 / i386
43992         * lib/mktime.c (long_int): New type.  This works around a problem
43993         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
43994         but time_t is 64 bits, and where I expect the existing code is
43995         wrong in some cases.
43996         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
43997         (ydhms_diff): Bring back the compile-time check for wide-enough
43998         year and yday.
44000         mktime: fix misspelling in comment
44001         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
44002         This merges all recent glibc changes of importance.
44004 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44006         move-if-change: cope with concurrent mv of identical file.
44007         * build-aux/move-if-change (CMPPROG): Accept environment
44008         variable as an override for `cmp'.
44009         (usage): Document CMPPROG.
44010         Adjust comparison to drop stdout.  Cope with failure of mv if
44011         the target file exists and is identical to the source, for
44012         parallel builds.
44013         Report from H.J. Lu against binutils in PR binutils/12283.
44015 2011-01-28  Bruce Korb  <bkorb@gnu.org>
44017         * users.txt: Mention sharutils.
44019 2011-01-28  Simon Josefsson  <simon@josefsson.org>
44021         * users.txt: Mention OATH Toolkit.
44023 2011-01-27  Bruno Haible  <bruno@clisp.org>
44025         Prepare for supporting FreeBSD 10.
44026         * build-aux/config.libpath: Remove handling of freebsd1*.
44028 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
44030         Prepare for supporting FreeBSD 10.
44031         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
44032         match FreeBSD 10.0.
44034 2011-01-27  Bruno Haible  <bruno@clisp.org>
44036         vma-iter, get-rusage-as: Add OpenBSD support.
44037         * modules/vma-iter (configure.ac): Test for mquery.
44038         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
44039         * lib/vma-iter.c: Include <sys/mman.h>.
44040         (vma_iterate): Add an implementation based on mquery().
44041         * lib/resource-ext.h (get_rusage_as): Update comments.
44042         * lib/get-rusage-as.c: Likewise.
44043         * lib/get-rusage-data.c: Likewise.
44045 2011-01-26  Karl Berry  <karl@gnu.org>
44047         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
44048         variables to make it easier to override the makeinfo program used.
44050 2011-01-26  Eric Blake  <eblake@redhat.com>
44052         fcntl: work around Haiku F_DUPFD bugs
44053         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
44054         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
44055         cloexec bit on duplication.
44056         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
44058 2011-01-26  Bruno Haible  <bruno@clisp.org>
44060         Enable memory leak tests on AIX.
44061         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
44062         * tests/test-fprintf-posix3.c (main): Likewise.
44064 2011-01-26  Bruno Haible  <bruno@clisp.org>
44066         Tests for module 'get-rusage-data'.
44067         * modules/get-rusage-data-tests: New file.
44068         * tests/test-get-rusage-data.c: New file.
44070         New module 'get-rusage-data'.
44071         * lib/resource-ext.h (get_rusage_data): New declaration.
44072         * lib/get-rusage-data.c: New file.
44073         * modules/get-rusage-data: New file.
44075 2011-01-25  Bruno Haible  <bruno@clisp.org>
44077         get-rusage-as: Allow for easier testing.
44078         * lib/resource-ext.h (get_rusage_as): Add comment.
44079         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
44080         (main): New function for interactive testing.
44082 2011-01-25  Bruno Haible  <bruno@clisp.org>
44084         vma-iter: Treat Haiku like BeOS.
44085         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
44086         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
44088 2011-01-25  Eric Blake  <eblake@redhat.com>
44090         c-stack: fix regression on cygwin when libsigsegv is present
44091         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
44093 2011-01-24  Bruno Haible  <bruno@clisp.org>
44095         vma-iter: Avoid empty intervals.
44096         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
44097         on an empty interval.
44099 2011-01-24  Jim Meyering  <meyering@redhat.com>
44101         u64: remove unnecessary #include
44102         * lib/u64.h: Don't include <stddef.h>.  It was not used.
44104 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44106         Allow the user to avoid the HAVE_RAW_DECL_* macros.
44107         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
44109 2011-01-23  Bruno Haible  <bruno@clisp.org>
44111         New module 'vma-iter'.
44112         * lib/vma-iter.h: New file.
44113         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
44114         * modules/vma-iter: New file.
44115         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
44116         for get_rusage_as_via_iterator.
44117         (vma_iterate_callback): New function.
44118         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
44119         * modules/get-rusage-as (Depends-on): Add vma-iter.
44121 2011-01-23  Bruno Haible  <bruno@clisp.org>
44123         uninorm: Tweak includes.
44124         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
44125         Reported by Jim Meyering.
44127 2011-01-23  Bruno Haible  <bruno@clisp.org>
44129         get-rusage-as: Improve on NetBSD.
44130         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
44131         /proc, like on FreeBSD.
44133 2011-01-23  Jim Meyering  <meyering@redhat.com>
44135         xreadlink.h: remove unnecessary #include
44136         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
44138         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
44139         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
44141 2011-01-23  Bruno Haible  <bruno@clisp.org>
44143         get-rusage-as: Fix bug.
44144         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
44145         original limit when aborting the first loop.
44147 2011-01-23  Bruno Haible  <bruno@clisp.org>
44149         wctype: Ensure valid C syntax.
44150         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
44151         unconditionally, instead of gl_NEXT_HEADERS conditionally.
44153 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44155         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
44156         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
44157         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
44158         as they are needed only for configure's test case.
44159         This removes two unnecessary symbols from config.h.
44161         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
44162         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
44163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
44164         AC_CHECK_HEADERS_ONCE on a header that we also invoke
44165         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
44166         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
44167         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
44168         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44169         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44170         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44171         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
44172         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44173         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44174         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44175         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44176         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44177         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44178         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44180 2011-01-21  Eric Blake  <eblake@redhat.com>
44182         maintainer-makefile: work with older git for submodule check
44183         * top/maint.mk (public-submodule-commit): Rewrite to avoid
44184         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
44185         Reported by Matthias Bolte.
44187         bootstrap: minor portability fixes
44188         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
44189         (usage): Omit leading capital and trailing . on help phrases, per
44190         GNU Coding Standards.
44191         (check_versions, top level): Prefix messages with script name.
44193 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
44195         bootstrap: support --no-git option
44196         * build-aux/bootstrap: Add --no-git option, to be used when
44197         --gnulib-srcdir points to the exact desired checkout.
44199 2011-01-21  Eric Blake  <eblake@redhat.com>
44201         strerror_r-posix: work with glibc 2.13
44202         * lib/strerror_r.c (strerror_r): Fix return type.
44204 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44205             Bruno Haible  <bruno@clisp.org>
44207         uN_strstr: New unit tests.
44208         * modules/unistr/u8-strstr-tests: New file.
44209         * modules/unistr/u16-strstr-tests: New file.
44210         * modules/unistr/u32-strstr-tests: New file.
44211         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
44212         * tests/unistr/test-u8-strstr.c: New file.
44213         * tests/unistr/test-u16-strstr.c: New file.
44214         * tests/unistr/test-u32-strstr.c: New file.
44216 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44217             Bruno Haible  <bruno@clisp.org>
44219         Make uN_strstr functions O(n) worst-case.
44220         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
44221         16-bit and 32-bit unit cases, use the unibyte algorithm from
44222         lib/mbsstr.c.
44223         * lib/unistr/u8-strstr.c: Include <string.h>.
44224         (UNIT_IS_UINT8_T): New macro.
44225         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
44226         (U_STRLEN, U_STRNLEN): New macros.
44227         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
44228         (U_STRLEN, U_STRNLEN): New macros.
44229         * modules/unistr/u8-strstr (Depends-on): Add strstr.
44230         (configure.ac): Update required libunistring version.
44231         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
44232         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
44233         malloca.
44234         (configure.ac): Update required libunistring version.
44235         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
44236         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
44237         malloca.
44238         (configure.ac): Update required libunistring version.
44240 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44241             Bruno Haible  <bruno@clisp.org>
44243         Prepare for faster uN_strstr functions.
44244         * lib/str-kmp.h: Support definable UNITs.
44245         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
44246         needle_len argument.
44247         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
44248         * lib/mbscasestr.c (mbscasestr): Likewise.
44250 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44252         malloca-tests: make faster by unsetting MALLOC_PERTURB_
44253         * tests/test-malloca.c (main): Unset the environment variable
44254         to greatly speed up the test.
44255         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
44256         * modules/malloca-tests: Depend on unsetenv.
44258 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44260         ignore-value: remove stdint dependency
44261         * lib/ignore-value.h: Remove <stdint.h>
44262         * modules/ignore-value: Remove stdint dependency.
44264 2011-01-21  Jim Meyering  <meyering@redhat.com>
44266         maint.mk: adjust variable name to be consistent with other gl_ vars
44267         * top/maint.mk (gl_public_submodule_commit): Rename the variable
44268         to be lower case.
44270 2011-01-20  Jim Meyering  <meyering@redhat.com>
44272         maint.mk: make "check" depend on public-submodule-commit by default
44273         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
44275 2011-01-20  Bruno Haible  <bruno@clisp.org>
44277         mbfile, mbiter: Complete change from 2008-12-21.
44278         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
44279         * m4/mbiter.m4 (gl_MBITER): Likewise.
44281 2011-01-20  Jim Meyering  <meyering@redhat.com>
44283         init.sh: insert space between each function name and "()"
44284         * tests/init.sh: Make it a little easier to see that a function's
44285         name is "warn_", and not "warn" when looking at the first part of
44286         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
44288 2011-01-20  Jim Meyering  <meyering@redhat.com>
44290         mountlist: clean up code formatting
44291         * lib/mountlist.c (read_file_system_list): Split a long line,
44292         correct bracing style, use NULL in place of "(struct statfs *)0",
44293         don't parenthesize return value, add spaces around "=" and after
44294         ";-in-for-stmt".
44296 2011-01-14  Markus Duft  <mduft@gentoo.org>
44298         mountlist: add support for Interix
44299         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44300         Apply statvfs to all entries of /dev/fs.
44301         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44302         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44304 2011-01-20  Jim Meyering  <meyering@redhat.com>
44306         maint.mk: improve the public-submodule-commit rule
44307         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44308         to suppress printing of its commands... unless V=1.
44309         Add git submodule's --quiet option to suppress printing of e.g.,
44310         "Entering gnulib" output.
44311         "cd" into $(srcdir) before running git submodule.
44313 2011-01-20  Bruno Haible  <bruno@clisp.org>
44315         include_next: Fix bug introduced on 2011-01-18.
44316         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44317         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44318         ac_cv_header_... variable if the second argument is not 'check'.
44319         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44320         gl_NEXT_HEADERS_INTERNAL.
44322 2011-01-20  Bruno Haible  <bruno@clisp.org>
44324         Allow the user to avoid the GNULIB_TEST_* macros.
44325         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44326         Suggested by Paul Eggert.
44328 2011-01-14  Jim Meyering  <meyering@redhat.com>
44330         bootstrap: avoid failure when there is no .gitmodules file
44331         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44332         has been assigned to, even when its value is the empty string.
44333         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44334         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44335         Reported by John W. Eaton <jwe@gnu.org>.
44337 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44339         assume <ctype.h>, ..., <time.h> exist
44340         For years gnulib has been assuming the existence of the headers
44341         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44342         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44343         them, since they don't appear to be needed.
44344         * README (Portability guidelines): Document this.
44345         * lib/flock.c: Assume <fcntl.h> exists.
44346         * lib/regex_internal.h: Assume <locale.h> exists.
44347         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44348         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44349         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44350         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44351         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44352         * m4/regex.m4 (gl_REGEX): Likewise.
44353         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44354         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44355         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44356         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44357         * tests/test-argp.c: Likewise.
44358         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44360         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44361         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44362         AA_APPLE_UNIVERSAL_BUILD.  See
44363         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44364         * NEWS: Document this.
44366 2011-01-19  Eric Blake  <eblake@redhat.com>
44368         c-stack: assume stack overflow if SA_SIGINFO unsupported
44369         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44370         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44371         sigaction will work.
44372         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44373         behavior match Linux.
44374         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44376         stdbool-tests: accommodate Haiku
44377         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44379         binary-io: fix O_TEXT on Haiku
44380         * modules/binary-io (Depends-on): Add fcntl-h.
44381         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44382         than blindly undefining O_TEXT.
44383         Reported by Scott McCreary.
44385 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44387         include_next: do not check for standard headers like stddef.h
44389         I found this problem when modifying Emacs to use gnulib.
44390         I noticed that it added HAVE_STDDEF_H to config.h, even though
44391         gnulib always assumes <stddef.h> exists as per README and this
44392         symbol is unnecessary.
44393         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44394         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44395         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44396         faster for headers like stddef.h that are known to exist.
44397         (gl_CHECK_NEXT_HEADERS): Use it.
44398         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44399         rather than gl_CHECK_NEXT_HEADERS.
44400         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44401         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44403 2011-01-18  Eric Blake  <eblake@redhat.com>
44405         ansi-c++-opt: skip C++ dependency style if C++ is unused
44406         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44407         tests when we know C++ compilation is not desired.
44408         Reported by Scott McCreary.
44410 2011-01-18  Bruno Haible  <bruno@clisp.org>
44412         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44413         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44414         (main): Perform test also when getrlimit and setrlimit don't exist or
44415         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44416         limiting the address space size using setrlimit, compare the address
44417         space size before and after the test.
44418         * tests/test-dprintf-posix2.c: Likewise.
44419         * tests/test-fprintf-posix3.sh: Update skip messages.
44420         * tests/test-dprintf-posix2.sh: Likewise.
44421         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44422         * modules/dprintf-posix-tests (Depends-on): Likewise.
44423         Reported by Bruce Korb <bkorb@gnu.org> and
44424         Gary V. Vaughan <gary@gnu.org>.
44426 2011-01-18  Bruno Haible  <bruno@clisp.org>
44428         get-rusage-as: Improvement for Cygwin.
44429         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44430         areas that are merely reserved.
44432 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44434         strftime: remove dependencies on multibyte modules
44436         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44437         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44438         only if __osf__ is defined, and I suspect OSF doesn't need these
44439         other modules.  If my guess is wrong, we'll need to come up with a
44440         variant of strftime that doesn't need the multibyte modules.
44442         I discovered this problem when attempting modify Emacs to use the
44443         strftime module.  With the previous gnulib, this caused Emacs to
44444         need 31 new files, ranging from lib/config.charset to
44445         m4/wint_t.m4.  This was overkill and I expect would be offputting
44446         to the Emacs maintainers.  After this change, only 6 new files are
44447         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44448         stdbool.m4, and tm_gmtoff.m4.
44450         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44451         Suggested by Bruno Haible in
44452         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44453         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44454         and do not check for wchar.h.
44455         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44456         (Depends-on): Remove mbrlen, mbsinit, wchar.
44458 2011-01-18  Bruno Haible  <bruno@clisp.org>
44460         Tests for module 'get-rusage-as'.
44461         * modules/get-rusage-as-tests: New file.
44462         * tests/test-get-rusage-as.c: New file.
44464         New module 'get-rusage-as'.
44465         * modules/get-rusage-as: New file.
44466         * lib/resource-ext.h: New file.
44467         * lib/get-rusage-as.c: New file.
44469 2011-01-17  Eric Blake  <eblake@redhat.com>
44471         sigaction: relax license from LGPLv3+ to LGPLv2+
44472         * modules/sigaction (License): Relax to LGPLv2+.
44474 2011-01-14  Bruno Haible  <bruno@clisp.org>
44476         filemode: Make function declarations usable in C++ mode.
44477         * lib/filemode.h: Enclose function declarations in extern "C" block.
44478         Reported by John W. Eaton <jwe@gnu.org>.
44480 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44482         save-cwd: no longer include "xgetcwd.h"
44483         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44484         This avoids a compilation failure in projects that use save-cwd
44485         without also using the xgetcwd module.
44487 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44489         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44490         This is so that a program like Emacs, which needs only dtoastr,
44491         does not have to bother with distributing and compiling ftoastr
44492         and ldtoastr.
44493         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44494         * modules/dtoastr, modules/ldtoastr: New files.
44495         * modules/ftoastr: Now works just for 'float'.
44496         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44497         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44498         dtoastr.c, ldtoastr.c.
44500 2011-01-11  Jim Meyering  <meyering@redhat.com>
44502         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44503         There is no need to work around the lack of the fchdir function,
44504         since gnulib can now provide a replacement when required.
44505         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44506         * modules/save-cwd (Depends-on): Add fchdir.
44508 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44510         openat, save-cwd: avoid xmalloc
44512         This removes a direct (but undocumented) dependency of openat on
44513         xalloc, along with an indirect dependency via save-cwd.  It also
44514         removes a dependency of save-cwd on xgetcwd, and thereby
44515         indirectly on xalloc.  This change causes the openat substitute
44516         to fall back on save_cwd when memory is tight, and for save_cwd to
44517         fail instead of dying when memory is tight, but that's good enough.
44518         Problem and initial idea for fix reported by Bastien Roucaries in
44519         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44521         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44522         xalloc.h (for xmalloc).
44523         (openat_proc_name): Use malloc, not xmalloc.
44524         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44525         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44527         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44528         This avoids heap allocation for file names whose lengths are in
44529         the range 512..1023, with the upper bound increasing to at most
44530         4031 depending on the platform's PATH_MAX.  (We do not want
44531         pathmax.h here as it might supply a non-constant PATH_MAX.)
44532         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44533         Perhaps they should be moved to malloca.h?
44534         (OPENAT_BUFFER_SIZE): Use them.
44536 2011-01-10  Bruno Haible  <bruno@clisp.org>
44538         doc: Update users.txt.
44539         * users.txt: Add recutils.
44541 2011-01-09  Karl Berry  <karl@gnu.org>
44543         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
44545         * doc/configmake.texi: New file.
44546         * doc/gnulib.texi: Include it.
44547         * modules/configmake: Move documentation from here.
44549 2011-01-09  Bruno Haible  <bruno@clisp.org>
44551         Update to Unicode 6.0.0.
44552         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
44553         (get_lbp): Update for Unicode 6.0.0.
44554         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
44555         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
44556         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
44557         U+11001, U+11038..U+11046. Remove U+06DE.
44558         (uc_width): Fix bounds of planes.
44559         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44560         lib/uniwidth/width.c.
44561         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
44562         trailing whitespace removed.
44563         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
44564         without comments, but with the original copyright notice.
44565         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
44566         * lib/unicase/ignorable.h: Likewise.
44567         * lib/unicase/tocasefold.h: Likewise.
44568         * lib/unicase/tolower.h: Likewise.
44569         * lib/unicase/totitle.h: Likewise.
44570         * lib/unicase/toupper.h: Likewise.
44571         * lib/unictype/bidi_of.h: Likewise.
44572         * lib/unictype/blocks.h: Likewise.
44573         * lib/unictype/categ_C.h: Likewise.
44574         * lib/unictype/categ_Cn.h: Likewise.
44575         * lib/unictype/categ_L.h: Likewise.
44576         * lib/unictype/categ_Ll.h: Likewise.
44577         * lib/unictype/categ_Lm.h: Likewise.
44578         * lib/unictype/categ_Lo.h: Likewise.
44579         * lib/unictype/categ_Lu.h: Likewise.
44580         * lib/unictype/categ_M.h: Likewise.
44581         * lib/unictype/categ_Mc.h: Likewise.
44582         * lib/unictype/categ_Me.h: Likewise.
44583         * lib/unictype/categ_Mn.h: Likewise.
44584         * lib/unictype/categ_N.h: Likewise.
44585         * lib/unictype/categ_Nd.h: Likewise.
44586         * lib/unictype/categ_No.h: Likewise.
44587         * lib/unictype/categ_P.h: Likewise.
44588         * lib/unictype/categ_Po.h: Likewise.
44589         * lib/unictype/categ_S.h: Likewise.
44590         * lib/unictype/categ_Sc.h: Likewise.
44591         * lib/unictype/categ_Sk.h: Likewise.
44592         * lib/unictype/categ_Sm.h: Likewise.
44593         * lib/unictype/categ_So.h: Likewise.
44594         * lib/unictype/categ_of.h: Likewise.
44595         * lib/unictype/combining.h: Likewise.
44596         * lib/unictype/ctype_alnum.h: Likewise.
44597         * lib/unictype/ctype_alpha.h: Likewise.
44598         * lib/unictype/ctype_graph.h: Likewise.
44599         * lib/unictype/ctype_lower.h: Likewise.
44600         * lib/unictype/ctype_print.h: Likewise.
44601         * lib/unictype/ctype_punct.h: Likewise.
44602         * lib/unictype/ctype_upper.h: Likewise.
44603         * lib/unictype/decdigit.h: Likewise.
44604         * lib/unictype/digit.h: Likewise.
44605         * lib/unictype/numeric.h: Likewise.
44606         * lib/unictype/pr_alphabetic.h: Likewise.
44607         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44608         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44609         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44610         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44611         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44612         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44613         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44614         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44615         * lib/unictype/pr_case_ignorable.h: Likewise.
44616         * lib/unictype/pr_cased.h: Likewise.
44617         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
44618         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
44619         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
44620         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
44621         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
44622         * lib/unictype/pr_combining.h: Likewise.
44623         * lib/unictype/pr_composite.h: Likewise.
44624         * lib/unictype/pr_currency_symbol.h: Likewise.
44625         * lib/unictype/pr_decimal_digit.h: Likewise.
44626         * lib/unictype/pr_deprecated.h: Likewise.
44627         * lib/unictype/pr_format_control.h: Likewise.
44628         * lib/unictype/pr_grapheme_base.h: Likewise.
44629         * lib/unictype/pr_grapheme_extend.h: Likewise.
44630         * lib/unictype/pr_grapheme_link.h: Likewise.
44631         * lib/unictype/pr_id_continue.h: Likewise.
44632         * lib/unictype/pr_id_start.h: Likewise.
44633         * lib/unictype/pr_ideographic.h: Likewise.
44634         * lib/unictype/pr_lowercase.h: Likewise.
44635         * lib/unictype/pr_math.h: Likewise.
44636         * lib/unictype/pr_numeric.h: Likewise.
44637         * lib/unictype/pr_other_alphabetic.h: Likewise.
44638         * lib/unictype/pr_other_id_continue.h: Likewise.
44639         * lib/unictype/pr_other_math.h: Likewise.
44640         * lib/unictype/pr_punctuation.h: Likewise.
44641         * lib/unictype/pr_sentence_terminal.h: Likewise.
44642         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44643         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44644         * lib/unictype/pr_unified_ideograph.h: Likewise.
44645         * lib/unictype/pr_uppercase.h: Likewise.
44646         * lib/unictype/pr_xid_continue.h: Likewise.
44647         * lib/unictype/pr_xid_start.h: Likewise.
44648         * lib/unictype/scripts.h: Likewise.
44649         * lib/unictype/scripts_byname.gperf: Likewise.
44650         * lib/unictype/sy_java_ident.h: Likewise.
44651         * lib/unigbrk/gbrkprop.h: Likewise.
44652         * lib/unilbrk/lbrkprop1.h: Likewise.
44653         * lib/unilbrk/lbrkprop2.h: Likewise.
44654         * lib/uninorm/decomposition-table2.h: Likewise.
44655         * lib/uniwbrk/wbrkprop.h: Likewise.
44656         * tests/unicase/test-cased.c: Likewise.
44657         * tests/unicase/test-ignorable.c: Likewise.
44658         * tests/unicase/test-uc_tolower.c: Likewise.
44659         * tests/unicase/test-uc_totitle.c: Likewise.
44660         * tests/unicase/test-uc_toupper.c: Likewise.
44661         * tests/unictype/test-categ_C.c: Likewise.
44662         * tests/unictype/test-categ_Cn.c: Likewise.
44663         * tests/unictype/test-categ_L.c: Likewise.
44664         * tests/unictype/test-categ_Ll.c: Likewise.
44665         * tests/unictype/test-categ_Lm.c: Likewise.
44666         * tests/unictype/test-categ_Lo.c: Likewise.
44667         * tests/unictype/test-categ_Lu.c: Likewise.
44668         * tests/unictype/test-categ_M.c: Likewise.
44669         * tests/unictype/test-categ_Mc.c: Likewise.
44670         * tests/unictype/test-categ_Me.c: Likewise.
44671         * tests/unictype/test-categ_Mn.c: Likewise.
44672         * tests/unictype/test-categ_N.c: Likewise.
44673         * tests/unictype/test-categ_Nd.c: Likewise.
44674         * tests/unictype/test-categ_No.c: Likewise.
44675         * tests/unictype/test-categ_P.c: Likewise.
44676         * tests/unictype/test-categ_Po.c: Likewise.
44677         * tests/unictype/test-categ_S.c: Likewise.
44678         * tests/unictype/test-categ_Sc.c: Likewise.
44679         * tests/unictype/test-categ_Sk.c: Likewise.
44680         * tests/unictype/test-categ_Sm.c: Likewise.
44681         * tests/unictype/test-categ_So.c: Likewise.
44682         * tests/unictype/test-ctype_alnum.c: Likewise.
44683         * tests/unictype/test-ctype_alpha.c: Likewise.
44684         * tests/unictype/test-ctype_graph.c: Likewise.
44685         * tests/unictype/test-ctype_lower.c: Likewise.
44686         * tests/unictype/test-ctype_print.c: Likewise.
44687         * tests/unictype/test-ctype_punct.c: Likewise.
44688         * tests/unictype/test-ctype_upper.c: Likewise.
44689         * tests/unictype/test-decdigit.h: Likewise.
44690         * tests/unictype/test-digit.h: Likewise.
44691         * tests/unictype/test-numeric.h: Likewise.
44692         * tests/unictype/test-pr_alphabetic.c: Likewise.
44693         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44694         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44695         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44696         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44697         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44698         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44699         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44700         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44701         * tests/unictype/test-pr_case_ignorable.c: Likewise.
44702         * tests/unictype/test-pr_cased.c: Likewise.
44703         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
44704         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
44705         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
44706         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
44707         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
44708         * tests/unictype/test-pr_combining.c: Likewise.
44709         * tests/unictype/test-pr_composite.c: Likewise.
44710         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44711         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44712         * tests/unictype/test-pr_deprecated.c: Likewise.
44713         * tests/unictype/test-pr_format_control.c: Likewise.
44714         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44715         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44716         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44717         * tests/unictype/test-pr_id_continue.c: Likewise.
44718         * tests/unictype/test-pr_id_start.c: Likewise.
44719         * tests/unictype/test-pr_ideographic.c: Likewise.
44720         * tests/unictype/test-pr_lowercase.c: Likewise.
44721         * tests/unictype/test-pr_math.c: Likewise.
44722         * tests/unictype/test-pr_numeric.c: Likewise.
44723         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44724         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44725         * tests/unictype/test-pr_other_math.c: Likewise.
44726         * tests/unictype/test-pr_punctuation.c: Likewise.
44727         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44728         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44729         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44730         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44731         * tests/unictype/test-pr_uppercase.c: Likewise.
44732         * tests/unictype/test-pr_xid_continue.c: Likewise.
44733         * tests/unictype/test-pr_xid_start.c: Likewise.
44734         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44735         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44736         changes.
44737         * lib/unictype/categ_Cc.h: Likewise.
44738         * lib/unictype/categ_Cf.h: Likewise.
44739         * lib/unictype/categ_Co.h: Likewise.
44740         * lib/unictype/categ_Cs.h: Likewise.
44741         * lib/unictype/categ_Lt.h: Likewise.
44742         * lib/unictype/categ_Nl.h: Likewise.
44743         * lib/unictype/categ_Pc.h: Likewise.
44744         * lib/unictype/categ_Pd.h: Likewise.
44745         * lib/unictype/categ_Pe.h: Likewise.
44746         * lib/unictype/categ_Pf.h: Likewise.
44747         * lib/unictype/categ_Pi.h: Likewise.
44748         * lib/unictype/categ_Ps.h: Likewise.
44749         * lib/unictype/categ_Z.h: Likewise.
44750         * lib/unictype/categ_Zl.h: Likewise.
44751         * lib/unictype/categ_Zp.h: Likewise.
44752         * lib/unictype/categ_Zs.h: Likewise.
44753         * lib/unictype/ctype_blank.h: Likewise.
44754         * lib/unictype/ctype_cntrl.h: Likewise.
44755         * lib/unictype/ctype_digit.h: Likewise.
44756         * lib/unictype/ctype_space.h: Likewise.
44757         * lib/unictype/ctype_xdigit.h: Likewise.
44758         * lib/unictype/mirror.h: Likewise.
44759         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44760         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44761         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44762         * lib/unictype/pr_bidi_control.h: Likewise.
44763         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44764         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44765         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44766         * lib/unictype/pr_bidi_pdf.h: Likewise.
44767         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44768         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44769         * lib/unictype/pr_dash.h: Likewise.
44770         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44771         * lib/unictype/pr_diacritic.h: Likewise.
44772         * lib/unictype/pr_extender.h: Likewise.
44773         * lib/unictype/pr_hex_digit.h: Likewise.
44774         * lib/unictype/pr_hyphen.h: Likewise.
44775         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44776         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44777         * lib/unictype/pr_ignorable_control.h: Likewise.
44778         * lib/unictype/pr_iso_control.h: Likewise.
44779         * lib/unictype/pr_join_control.h: Likewise.
44780         * lib/unictype/pr_left_of_pair.h: Likewise.
44781         * lib/unictype/pr_line_separator.h: Likewise.
44782         * lib/unictype/pr_logical_order_exception.h: Likewise.
44783         * lib/unictype/pr_non_break.h: Likewise.
44784         * lib/unictype/pr_not_a_character.h: Likewise.
44785         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44786         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44787         * lib/unictype/pr_other_id_start.h: Likewise.
44788         * lib/unictype/pr_other_lowercase.h: Likewise.
44789         * lib/unictype/pr_other_uppercase.h: Likewise.
44790         * lib/unictype/pr_paired_punctuation.h: Likewise.
44791         * lib/unictype/pr_paragraph_separator.h: Likewise.
44792         * lib/unictype/pr_pattern_syntax.h: Likewise.
44793         * lib/unictype/pr_pattern_white_space.h: Likewise.
44794         * lib/unictype/pr_private_use.h: Likewise.
44795         * lib/unictype/pr_quotation_mark.h: Likewise.
44796         * lib/unictype/pr_radical.h: Likewise.
44797         * lib/unictype/pr_soft_dotted.h: Likewise.
44798         * lib/unictype/pr_space.h: Likewise.
44799         * lib/unictype/pr_titlecase.h: Likewise.
44800         * lib/unictype/pr_variation_selector.h: Likewise.
44801         * lib/unictype/pr_white_space.h: Likewise.
44802         * lib/unictype/pr_zero_width.h: Likewise.
44803         * lib/unictype/sy_c_ident.h: Likewise.
44804         * lib/unictype/sy_c_whitespace.h: Likewise.
44805         * lib/unictype/sy_java_whitespace.h: Likewise.
44806         * lib/uninorm/composition-table.gperf: Likewise.
44807         * lib/uninorm/decomposition-table1.h: Likewise.
44808         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
44809         LB8.
44810         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44811         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44812         * modules/unictype/*: Bump version number of expected libunistring
44813         version.
44815 2011-01-09  Bruno Haible  <bruno@clisp.org>
44817         Update to Unicode 5.2.0.
44818         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
44819         trailing whitespace removed.
44821 2011-01-09  Bruno Haible  <bruno@clisp.org>
44823         New Unicode character properties, from Unicode 5.2.0.
44824         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
44825         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
44826         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
44827         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
44828         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
44829         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
44830         uc_is_property_cased, uc_is_property_case_ignorable,
44831         uc_is_property_changes_when_lowercased,
44832         uc_is_property_changes_when_uppercased,
44833         uc_is_property_changes_when_titlecased,
44834         uc_is_property_changes_when_casefolded,
44835         uc_is_property_changes_when_casemapped): New declarations.
44836         * lib/unictype/pr_byname.gperf: Add the new properties.
44837         * modules/unictype/property-byname (Depends-on): Depend on the new
44838         properties modules.
44839         * modules/unictype/property-all (Depends-on): Likewise.
44840         * MODULES.html.sh (Unicode string functions): Add
44841         unictype/property-case-ignorable, unictype/property-cased,
44842         unictype/property-changes-when-casefolded,
44843         unictype/property-changes-when-casemapped,
44844         unictype/property-changes-when-lowercased,
44845         unictype/property-changes-when-titlecased,
44846         unictype/property-changes-when-uppercased.
44848         New module 'unictype/property-changes-when-casemapped'.
44849         * modules/unictype/property-changes-when-casemapped: New file.
44850         * lib/unictype/pr_changes_when_casemapped.c: New file.
44851         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
44852         generated by gen-uni-tables.
44853         * modules/unictype/property-changes-when-casemapped-tests: New file.
44854         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
44855         automatically generated by gen-uni-tables.
44857         New module 'unictype/property-changes-when-casefolded'.
44858         * modules/unictype/property-changes-when-casefolded: New file.
44859         * lib/unictype/pr_changes_when_casefolded.c: New file.
44860         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
44861         generated by gen-uni-tables.
44862         * modules/unictype/property-changes-when-casefolded-tests: New file.
44863         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
44864         automatically generated by gen-uni-tables.
44866         New module 'unictype/property-changes-when-titlecased'.
44867         * modules/unictype/property-changes-when-titlecased: New file.
44868         * lib/unictype/pr_changes_when_titlecased.c: New file.
44869         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
44870         generated by gen-uni-tables.
44871         * modules/unictype/property-changes-when-titlecased-tests: New file.
44872         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
44873         automatically generated by gen-uni-tables.
44875         New module 'unictype/property-changes-when-uppercased'.
44876         * modules/unictype/property-changes-when-uppercased: New file.
44877         * lib/unictype/pr_changes_when_uppercased.c: New file.
44878         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
44879         generated by gen-uni-tables.
44880         * modules/unictype/property-changes-when-uppercased-tests: New file.
44881         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
44882         automatically generated by gen-uni-tables.
44884         New module 'unictype/property-changes-when-lowercased'.
44885         * modules/unictype/property-changes-when-lowercased: New file.
44886         * lib/unictype/pr_changes_when_lowercased.c: New file.
44887         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
44888         generated by gen-uni-tables.
44889         * modules/unictype/property-changes-when-lowercased-tests: New file.
44890         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
44891         automatically generated by gen-uni-tables.
44893         New module 'unictype/property-case-ignorable'.
44894         * modules/unictype/property-case-ignorable: New file.
44895         * lib/unictype/pr_case_ignorable.c: New file.
44896         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
44897         by gen-uni-tables.
44898         * modules/unictype/property-case-ignorable-tests: New file.
44899         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
44900         generated by gen-uni-tables.
44902         New module 'unictype/property-cased'.
44903         * modules/unictype/property-cased: New file.
44904         * lib/unictype/pr_cased.c: New file.
44905         * lib/unictype/pr_cased.h: New file, automatically generated by
44906         gen-uni-tables.
44907         * modules/unictype/property-cased-tests: New file.
44908         * tests/unictype/test-pr_cased.c: New file, automatically generated by
44909         gen-uni-tables.
44911 2011-01-09  Bruno Haible  <bruno@clisp.org>
44913         Update to Unicode 5.2.0.
44914         * lib/gen-uni-tables.c (output_predicate, output_category,
44915         output_combclass, output_bidi_category, output_decimal_digit_test,
44916         output_decimal_digit, output_digit_test, output_digit,
44917         output_numeric_test, output_numeric, output_mirror, output_scripts,
44918         output_scripts_byname, output_blocks, output_ident_category): Fix
44919         comment header.
44920         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
44921         get_wbp.
44922         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
44923         items.
44924         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
44925         Changes_When_Lowercased, Changes_When_Uppercased,
44926         Changes_When_Titlecased, Changes_When_Casefolded,
44927         Changes_When_Casemapped.
44928         (is_property_alphabetic, is_property_default_ignorable_code_point):
44929         Update for Unicode 5.2.0.
44930         (is_property_cased, is_property_case_ignorable,
44931         is_property_changes_when_lowercased,
44932         is_property_changes_when_uppercased,
44933         is_property_changes_when_titlecased,
44934         is_property_changes_when_casefolded,
44935         is_property_changes_when_casemapped): New functions.
44936         (output_properties): Output also the properties cased, case_ignorable,
44937         changes_when_lowercased, changes_when_uppercased,
44938         changes_when_titlecased, changes_when_casefolded,
44939         changes_when_casemapped.
44940         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
44941         Unicode TR#11 revision 17 -> 19.
44942         (LBP_CP): New enumeration value.
44943         (LBP_*): Adjust values accordingly.
44944         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44945         TR#14 revision 22 -> 24.
44946         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
44947         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
44948         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44949         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
44950         is_WBP_MIDLETTER.
44951         (output_composition_tables): Allow for 24 bits instead of 16 bits in
44952         the code1 and code2 of each composition rule.
44953         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
44954         * lib/unicase/ignorable.h: Likewise.
44955         * lib/unicase/tocasefold.h: Likewise.
44956         * lib/unicase/tolower.h: Likewise.
44957         * lib/unicase/totitle.h: Likewise.
44958         * lib/unicase/toupper.h: Likewise.
44959         * lib/unictype/bidi_of.h: Likewise.
44960         * lib/unictype/blocks.h: Likewise.
44961         * lib/unictype/categ_C.h: Likewise.
44962         * lib/unictype/categ_Cf.h: Likewise.
44963         * lib/unictype/categ_Cn.h: Likewise.
44964         * lib/unictype/categ_L.h: Likewise.
44965         * lib/unictype/categ_Ll.h: Likewise.
44966         * lib/unictype/categ_Lm.h: Likewise.
44967         * lib/unictype/categ_Lo.h: Likewise.
44968         * lib/unictype/categ_Lu.h: Likewise.
44969         * lib/unictype/categ_M.h: Likewise.
44970         * lib/unictype/categ_Mc.h: Likewise.
44971         * lib/unictype/categ_Mn.h: Likewise.
44972         * lib/unictype/categ_N.h: Likewise.
44973         * lib/unictype/categ_Nd.h: Likewise.
44974         * lib/unictype/categ_Nl.h: Likewise.
44975         * lib/unictype/categ_No.h: Likewise.
44976         * lib/unictype/categ_P.h: Likewise.
44977         * lib/unictype/categ_Pd.h: Likewise.
44978         * lib/unictype/categ_Po.h: Likewise.
44979         * lib/unictype/categ_S.h: Likewise.
44980         * lib/unictype/categ_Sc.h: Likewise.
44981         * lib/unictype/categ_So.h: Likewise.
44982         * lib/unictype/categ_of.h: Likewise.
44983         * lib/unictype/combining.h: Likewise.
44984         * lib/unictype/ctype_alnum.h: Likewise.
44985         * lib/unictype/ctype_alpha.h: Likewise.
44986         * lib/unictype/ctype_graph.h: Likewise.
44987         * lib/unictype/ctype_lower.h: Likewise.
44988         * lib/unictype/ctype_print.h: Likewise.
44989         * lib/unictype/ctype_punct.h: Likewise.
44990         * lib/unictype/ctype_upper.h: Likewise.
44991         * lib/unictype/decdigit.h: Likewise.
44992         * lib/unictype/digit.h: Likewise.
44993         * lib/unictype/numeric.h: Likewise.
44994         * lib/unictype/pr_alphabetic.h: Likewise.
44995         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44996         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44997         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44998         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44999         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45000         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45001         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45002         * lib/unictype/pr_combining.h: Likewise.
45003         * lib/unictype/pr_composite.h: Likewise.
45004         * lib/unictype/pr_currency_symbol.h: Likewise.
45005         * lib/unictype/pr_dash.h: Likewise.
45006         * lib/unictype/pr_decimal_digit.h: Likewise.
45007         * lib/unictype/pr_deprecated.h: Likewise.
45008         * lib/unictype/pr_diacritic.h: Likewise.
45009         * lib/unictype/pr_extender.h: Likewise.
45010         * lib/unictype/pr_grapheme_base.h: Likewise.
45011         * lib/unictype/pr_grapheme_extend.h: Likewise.
45012         * lib/unictype/pr_grapheme_link.h: Likewise.
45013         * lib/unictype/pr_id_continue.h: Likewise.
45014         * lib/unictype/pr_id_start.h: Likewise.
45015         * lib/unictype/pr_ideographic.h: Likewise.
45016         * lib/unictype/pr_ignorable_control.h: Likewise.
45017         * lib/unictype/pr_logical_order_exception.h: Likewise.
45018         * lib/unictype/pr_lowercase.h: Likewise.
45019         * lib/unictype/pr_numeric.h: Likewise.
45020         * lib/unictype/pr_other_alphabetic.h: Likewise.
45021         * lib/unictype/pr_punctuation.h: Likewise.
45022         * lib/unictype/pr_sentence_terminal.h: Likewise.
45023         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45024         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45025         * lib/unictype/pr_unified_ideograph.h: Likewise.
45026         * lib/unictype/pr_uppercase.h: Likewise.
45027         * lib/unictype/pr_xid_continue.h: Likewise.
45028         * lib/unictype/pr_xid_start.h: Likewise.
45029         * lib/unictype/pr_zero_width.h: Likewise.
45030         * lib/unictype/scripts.h: Likewise.
45031         * lib/unictype/scripts_byname.gperf: Likewise.
45032         * lib/unictype/sy_java_ident.h: Likewise.
45033         * lib/unigbrk/gbrkprop.h: Likewise.
45034         * lib/unilbrk/lbrkprop1.h: Likewise.
45035         * lib/unilbrk/lbrkprop2.h: Likewise.
45036         * lib/unilbrk/lbrktables.h: Likewise.
45037         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
45038         LBP_CP. Implement rule LB30.
45039         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
45040         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
45041         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
45042         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
45043         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
45044         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
45045         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
45046         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
45047         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
45048         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
45049         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
45050         bits instead of 16 bits in the code1 and code2 of each composition
45051         rule.
45052         (uc_composition): Update for Unicode 5.2.0.
45053         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
45054         * lib/uninorm/decomposition-table2.h: Likewise.
45055         * lib/uniwbrk/wbrkprop.h: Likewise.
45056         * tests/unicase/test-cased.c: Likewise.
45057         * tests/unicase/test-ignorable.c: Likewise.
45058         * tests/unicase/test-uc_tolower.c: Likewise.
45059         * tests/unicase/test-uc_totitle.c: Likewise.
45060         * tests/unicase/test-uc_toupper.c: Likewise.
45061         * tests/unictype/test-categ_C.c: Likewise.
45062         * tests/unictype/test-categ_Cf.c: Likewise.
45063         * tests/unictype/test-categ_Cn.c: Likewise.
45064         * tests/unictype/test-categ_L.c: Likewise.
45065         * tests/unictype/test-categ_Ll.c: Likewise.
45066         * tests/unictype/test-categ_Lm.c: Likewise.
45067         * tests/unictype/test-categ_Lo.c: Likewise.
45068         * tests/unictype/test-categ_Lu.c: Likewise.
45069         * tests/unictype/test-categ_M.c: Likewise.
45070         * tests/unictype/test-categ_Mc.c: Likewise.
45071         * tests/unictype/test-categ_Mn.c: Likewise.
45072         * tests/unictype/test-categ_N.c: Likewise.
45073         * tests/unictype/test-categ_Nd.c: Likewise.
45074         * tests/unictype/test-categ_Nl.c: Likewise.
45075         * tests/unictype/test-categ_No.c: Likewise.
45076         * tests/unictype/test-categ_P.c: Likewise.
45077         * tests/unictype/test-categ_Pd.c: Likewise.
45078         * tests/unictype/test-categ_Po.c: Likewise.
45079         * tests/unictype/test-categ_S.c: Likewise.
45080         * tests/unictype/test-categ_Sc.c: Likewise.
45081         * tests/unictype/test-categ_So.c: Likewise.
45082         * tests/unictype/test-ctype_alnum.c: Likewise.
45083         * tests/unictype/test-ctype_alpha.c: Likewise.
45084         * tests/unictype/test-ctype_graph.c: Likewise.
45085         * tests/unictype/test-ctype_lower.c: Likewise.
45086         * tests/unictype/test-ctype_print.c: Likewise.
45087         * tests/unictype/test-ctype_punct.c: Likewise.
45088         * tests/unictype/test-ctype_upper.c: Likewise.
45089         * tests/unictype/test-decdigit.h: Likewise.
45090         * tests/unictype/test-digit.h: Likewise.
45091         * tests/unictype/test-numeric.h: Likewise.
45092         * tests/unictype/test-pr_alphabetic.c: Likewise.
45093         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45094         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45095         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45096         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45097         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45098         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45099         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45100         * tests/unictype/test-pr_combining.c: Likewise.
45101         * tests/unictype/test-pr_composite.c: Likewise.
45102         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45103         * tests/unictype/test-pr_dash.c: Likewise.
45104         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45105         * tests/unictype/test-pr_deprecated.c: Likewise.
45106         * tests/unictype/test-pr_diacritic.c: Likewise.
45107         * tests/unictype/test-pr_extender.c: Likewise.
45108         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45109         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45110         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45111         * tests/unictype/test-pr_id_continue.c: Likewise.
45112         * tests/unictype/test-pr_id_start.c: Likewise.
45113         * tests/unictype/test-pr_ideographic.c: Likewise.
45114         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45115         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45116         * tests/unictype/test-pr_lowercase.c: Likewise.
45117         * tests/unictype/test-pr_numeric.c: Likewise.
45118         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45119         * tests/unictype/test-pr_punctuation.c: Likewise.
45120         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45121         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45122         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45123         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45124         * tests/unictype/test-pr_uppercase.c: Likewise.
45125         * tests/unictype/test-pr_xid_continue.c: Likewise.
45126         * tests/unictype/test-pr_xid_start.c: Likewise.
45127         * tests/unictype/test-pr_zero_width.c: Likewise.
45128         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45129         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
45130         changed behaviour: line breaking is now disallowed between a letter
45131         or '=' and '('.
45132         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45133         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45134         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45135         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
45136         * tests/uniwidth/test-uc_width2.sh: Same updates as in
45137         lib/uniwidth/width.c.
45138         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
45139         without comments, but with the original copyright notice.
45140         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45141         changes.
45142         * lib/unictype/categ_Cc.h: Likewise.
45143         * lib/unictype/categ_Co.h: Likewise.
45144         * lib/unictype/categ_Cs.h: Likewise.
45145         * lib/unictype/categ_Lt.h: Likewise.
45146         * lib/unictype/categ_Me.h: Likewise.
45147         * lib/unictype/categ_Pc.h: Likewise.
45148         * lib/unictype/categ_Pe.h: Likewise.
45149         * lib/unictype/categ_Pf.h: Likewise.
45150         * lib/unictype/categ_Pi.h: Likewise.
45151         * lib/unictype/categ_Ps.h: Likewise.
45152         * lib/unictype/categ_Sk.h: Likewise.
45153         * lib/unictype/categ_Sm.h: Likewise.
45154         * lib/unictype/categ_Z.h: Likewise.
45155         * lib/unictype/categ_Zl.h: Likewise.
45156         * lib/unictype/categ_Zp.h: Likewise.
45157         * lib/unictype/categ_Zs.h: Likewise.
45158         * lib/unictype/ctype_blank.h: Likewise.
45159         * lib/unictype/ctype_cntrl.h: Likewise.
45160         * lib/unictype/ctype_digit.h: Likewise.
45161         * lib/unictype/ctype_space.h: Likewise.
45162         * lib/unictype/ctype_xdigit.h: Likewise.
45163         * lib/unictype/mirror.h: Likewise.
45164         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45165         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45166         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45167         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45168         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45169         * lib/unictype/pr_bidi_control.h: Likewise.
45170         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45171         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45172         * lib/unictype/pr_bidi_pdf.h: Likewise.
45173         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45174         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45175         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45176         * lib/unictype/pr_format_control.h: Likewise.
45177         * lib/unictype/pr_hex_digit.h: Likewise.
45178         * lib/unictype/pr_hyphen.h: Likewise.
45179         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45180         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45181         * lib/unictype/pr_iso_control.h: Likewise.
45182         * lib/unictype/pr_join_control.h: Likewise.
45183         * lib/unictype/pr_left_of_pair.h: Likewise.
45184         * lib/unictype/pr_line_separator.h: Likewise.
45185         * lib/unictype/pr_math.h: Likewise.
45186         * lib/unictype/pr_non_break.h: Likewise.
45187         * lib/unictype/pr_not_a_character.h: Likewise.
45188         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45189         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45190         * lib/unictype/pr_other_id_continue.h: Likewise.
45191         * lib/unictype/pr_other_id_start.h: Likewise.
45192         * lib/unictype/pr_other_lowercase.h: Likewise.
45193         * lib/unictype/pr_other_math.h: Likewise.
45194         * lib/unictype/pr_other_uppercase.h: Likewise.
45195         * lib/unictype/pr_paired_punctuation.h: Likewise.
45196         * lib/unictype/pr_paragraph_separator.h: Likewise.
45197         * lib/unictype/pr_pattern_syntax.h: Likewise.
45198         * lib/unictype/pr_pattern_white_space.h: Likewise.
45199         * lib/unictype/pr_private_use.h: Likewise.
45200         * lib/unictype/pr_quotation_mark.h: Likewise.
45201         * lib/unictype/pr_radical.h: Likewise.
45202         * lib/unictype/pr_soft_dotted.h: Likewise.
45203         * lib/unictype/pr_space.h: Likewise.
45204         * lib/unictype/pr_titlecase.h: Likewise.
45205         * lib/unictype/pr_variation_selector.h: Likewise.
45206         * lib/unictype/pr_white_space.h: Likewise.
45207         * lib/unictype/sy_c_ident.h: Likewise.
45208         * lib/unictype/sy_c_whitespace.h: Likewise.
45209         * lib/unictype/sy_java_whitespace.h: Likewise.
45210         * modules/uni*/*: Bump version number of expected libunistring version.
45211         Reported by Simon Josefsson.
45213 2011-01-09  Karl Heuer  <kwzh@gnu.org>
45215         useless-if-before-free: fix typo in --help and make the internal,
45216         automatic version date update process work once again.
45217         --help output contained a NUL character instead of the
45218         backslash-zero that was intended.  Also, the "must lie within
45219         the first 8 lines" line is on line 9, and hence not getting
45220         automatically updated.
45221         * build-aux/useless-if-before-free: Fix the former by adding a
45222         backslash, and the latter by condensing the three lines of what-it-does
45223         to a single line, leaving one line of slack for the future.
45225 2011-01-09  Bruno Haible  <bruno@clisp.org>
45227         uniwidth/width: Fix width of U+1D173..U+1D17A.
45228         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
45229         symbolic_width, output_width_property_test): New functions.
45230         (main): Invoke output_nonspacing_property, output_width_property_test.
45231         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
45232         U+1D173..U+1D17A.
45233         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
45234         1.
45235         * modules/uniwidth/*: Bump version number of expected libunistring
45236         version.
45237         * modules/unilbrk/*: Likewise.
45239 2011-01-08  Bruno Haible  <bruno@clisp.org>
45241         uninorm tests: Preserve copyright of Unicode data file.
45242         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
45243         Mention modifications.
45245 2011-01-08  Bruno Haible  <bruno@clisp.org>
45247         gen-uni-tables: Prepare for Unicode 5.2.0.
45248         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
45249         (debug_output_lbp, output_lbp): Update.
45251 2011-01-08  Bruno Haible  <bruno@clisp.org>
45253         unilbrk: Clarify gen-uni-tables.c code.
45254         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
45255         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
45256         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
45258 2011-01-07  Bruno Haible  <bruno@clisp.org>
45260         strtod: Restore errno when successfully parsing Infinity or NaN.
45261         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
45262         restore the original errno.
45264 2011-01-07  Bruno Haible  <bruno@clisp.org>
45266         remove test: Avoid failure on HP-UX 11.
45267         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
45269 2011-01-07  Bruno Haible  <bruno@clisp.org>
45271         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
45272         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
45273         error code.
45275 2011-01-07  Pádraig Brady  <P@draigBrady.com>
45277         ignore-value: fixup comments, and add Eric Blake
45278         as an author since he rewrote the macros.
45279         * lib/ignore-value.h (ignore_value):  State that
45280         we now support aggregates.  Also specify exactly
45281         when the GCC warn_unused_result feature was added.
45283 2011-01-06  Eric Blake  <eblake@redhat.com>
45285         ignore-value: support aggregate types
45286         * lib/ignore-value.h (ignore_value): Provide separate gcc
45287         definition.
45288         * modules/ignore-value-tests: New test module.
45289         * tests/test-ignore-value.c: New test.
45291         maint.mk: improve sc_prohibit_strcmp regex
45292         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45293         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45294         definition of STRNEQ.
45296         signal: work around Haiku issue with SIGBUS
45297         * lib/siglist.h: Add comment.
45298         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45299         strsignal's favoring of SIGSEGV.
45300         * tests/test-signal.c (main): Avoid test failure.
45301         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45302         Reported by Scott McCreary.
45304         maint.mk: add pre-release check to ensure submodule commits are public
45305         * top/maint.mk (public-submodule-commit): New rule.
45306         (submodule-checks): New variable.
45307         (alpha beta stable): Depend on the variable.
45309 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45310         and Jim Meyering  <meyering@redhat.com>
45312         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45313         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45314         (ATTRIBUTE_DEPRECATED): Define.
45315         (_ignore_case): New function.
45316         (ignore_value): New macro, to replace the old function.
45317         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45318         * modules/ignore-value (Depends-on): Add stdint.
45320 2011-01-04  Eric Blake  <eblake@redhat.com>
45322         doc: regenerate INSTALL
45323         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45324         @firstparagraphindent support, now that autoconf dropped it.
45325         (INSTALL_PRELUDE): Reinstate old macro.
45326         * doc/install.texi: Resync from autoconf.
45327         * doc/INSTALL: Reflect recent autoconf update.
45328         * doc/INSTALL.ISO: Likewise.
45329         * doc/INSTALL.UTF-8: Likewise.
45330         Reported by Karl Berry.
45332 2011-01-04  Bruce Korb  <address@hidden>
45334         git-version-gen: avoid a sub-shell
45335         * build-aux/git-version-gen: Redirect stderr in `...` via
45336         "exec 2>...", rather than via an added sub-shell.
45338 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45340         git-version-gen: use (...) rather than sh -c '...'
45341         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45342         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45344 2011-01-03  Jim Meyering  <meyering@redhat.com>
45346         git-version-gen: convert leading TABs to spaces
45347         * build-aux/git-version-gen: Expand leading TABs.
45349         git-version-gen: handle failed "git rev-list"
45350         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45351         from git and proceeding as if it had succeeded but printed no SHA1
45352         checksums, suppress the diagnostic and handle the failure.
45353         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45355         git-version-gen: include command name in one more diagnostic
45356         * build-aux/git-version-gen: When the required .tarball-version file
45357         was missing or unreadable, you might see the diagnostic from "cat",
45358         but no trace of the name of the invoking script.  Now, you still see
45359         the diagnostic from cat, but also get one from "git-version-gen: ".
45360         Inspired by a patch from Bruce Korb.
45362         update-copyright: adjust test to match changed code
45363         * tests/test-update-copyright.sh: Change test's expected output
45364         to match new actual output.
45366 2011-01-02  Bruno Haible  <bruno@clisp.org>
45368         getlogin_r: Avoid test failure on HP-UX 11.
45369         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45370         ERANGE when the second argument is zero.
45371         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45372         portability problem.
45374 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45376         * build-aux/update-copyright: doc Simon's changes
45378 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45380         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45381         environment variable.
45383 2011-01-02  Bruno Haible  <bruno@clisp.org>
45385         unigbrk: Avoid gcc warnings.
45386         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45387         unused variable.
45388         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45389         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45390         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45391         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45392         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45393         Change type of first argument to 'const char *'.
45394         (main): Remove unused variable.
45395         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45396         type of first argument to 'const char *'.
45397         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45398         Likewise.
45399         (main): Change type of variable 's'.
45400         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45401         to 'int'.
45403 2011-01-02  Bruno Haible  <bruno@clisp.org>
45405         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45406         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45407         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45408         bug.
45409         * lib/pwrite.c: Undo 2010-12-31 patch.
45410         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45412 2011-01-02  Bruno Haible  <bruno@clisp.org>
45414         pread: Fix test whether it works.
45415         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45417 2011-01-02  Bruno Haible  <bruno@clisp.org>
45419         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45420         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45421         ends in "6". Don't require a specific month name. Try also the locale
45422         names found on HP-UX 11 and Solaris 7.
45424 2011-01-02  Bruno Haible  <bruno@clisp.org>
45426         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45427         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45428         C linkage.
45429         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45431 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45433         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45434         for consistency, since the "cluster" term is not used elsewhere.
45435         * lib/unigbrk.in.h: Update name.
45436         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45437         * lib/unigbrk/u16-grapheme-next.c: Update name.
45438         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45439         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45440         * lib/unigbrk/u32-grapheme-next.c: Update name.
45441         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45442         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45443         * lib/unigbrk/u8-grapheme-next.c: Update name.
45444         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45445         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45446         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45447         Suggested by Bruno Haible.
45449 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45451         Remove module 'u8-grapheme-len' as too redundant with
45452         'u8-grapheme-next'.
45453         * modules/unigbrk/u8-grapheme-len: Delete file.
45454         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45455         * lib/unigbrk.in.h: Remove prototype for deleted function.
45456         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45457         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45459         Remove module 'u16-grapheme-len' as too redundant with
45460         'u16-grapheme-next'.
45461         * modules/unigbrk/u16-grapheme-len: Delete file.
45462         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45463         * lib/unigbrk.in.h: Remove prototype for deleted function.
45464         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45465         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45467         Remove module 'u32-grapheme-len' as too redundant with
45468         'u32-grapheme-next'.
45469         * modules/unigbrk/u32-grapheme-len: Delete file.
45470         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45471         * lib/unigbrk.in.h: Remove prototype for deleted function.
45472         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45473         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45475         Suggested by Bruno Haible.
45477 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45479         * unigbrk.in.h: Fix typo: "ben" => "been".
45480         Reported by Bruno Haible.
45482 2011-01-01  Jim Meyering  <meyering@redhat.com>
45484         maint: update almost all copyright ranges to include 2011
45485         Run the new "make update-copyright" rule.
45487 2011-01-01  Jim Meyering  <meyering@redhat.com>
45489         maint: update-copyright: exempt doc/INSTALL*
45490         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45491         since they are generated.  Suggested by Bruno Haible.
45493 2011-01-01  Jim Meyering  <meyering@redhat.com>
45495         maint: refine the update-copyright rule
45496         * Makefile (update-copyright): Also exclude any file that includes
45497         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45498         code that merely generates the comment.
45500 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45502         New module 'u8-grapheme-len'.
45503         * modules/unigbrk/u8-grapheme-len: New file.
45504         * modules/unigbrk/u8-grapheme-len-tests: New file.
45505         * lib/unigbrk.in.h: Add prototype for new function.
45506         * lib/unigbrk/u8-grapheme-len.c: New file.
45507         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45509         New module 'u16-grapheme-len'.
45510         * modules/unigbrk/u16-grapheme-len: New file.
45511         * modules/unigbrk/u16-grapheme-len-tests: New file.
45512         * lib/unigbrk.in.h: Add prototype for new function.
45513         * lib/unigbrk/u16-grapheme-len.c: New file.
45514         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45516         New module 'u32-grapheme-len'.
45517         * modules/unigbrk/u32-grapheme-len: New file.
45518         * modules/unigbrk/u32-grapheme-len-tests: New file.
45519         * lib/unigbrk.in.h: Add prototype for new function.
45520         * lib/unigbrk/u32-grapheme-len.c: New file.
45521         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45523         New module 'u8-grapheme-next'.
45524         * modules/unigbrk/u8-grapheme-next: New file.
45525         * modules/unigbrk/u8-grapheme-next-tests: New file.
45526         * lib/unigbrk.in.h: Add prototype for new function.
45527         * lib/unigbrk/u8-grapheme-next.c: New file.
45528         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45530         New module 'u16-grapheme-next'.
45531         * modules/unigbrk/u16-grapheme-next: New file.
45532         * modules/unigbrk/u16-grapheme-next-tests: New file.
45533         * lib/unigbrk.in.h: Add prototype for new function.
45534         * lib/unigbrk/u16-grapheme-next.c: New file.
45535         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45537         New module 'u32-grapheme-next'.
45538         * modules/unigbrk/u32-grapheme-next: New file.
45539         * modules/unigbrk/u32-grapheme-next-tests: New file.
45540         * lib/unigbrk.in.h: Add prototype for new function.
45541         * lib/unigbrk/u32-grapheme-next.c: New file.
45542         * tests/unigbrk/test-u32-grapheme-next.c: New file.
45544         New module 'u8-grapheme-prev'.
45545         * modules/unigbrk/u8-grapheme-prev: New file.
45546         * modules/unigbrk/u8-grapheme-prev-tests: New file.
45547         * lib/unigbrk.in.h: Add prototype for new function.
45548         * lib/unigbrk/u8-grapheme-prev.c: New file.
45549         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
45551         New module 'u16-grapheme-prev'.
45552         * modules/unigbrk/u16-grapheme-prev: New file.
45553         * modules/unigbrk/u16-grapheme-prev-tests: New file.
45554         * lib/unigbrk.in.h: Add prototype for new function.
45555         * lib/unigbrk/u16-grapheme-prev.c: New file.
45556         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
45558         New module 'u32-grapheme-prev'.
45559         * modules/unigbrk/u32-grapheme-prev: New file.
45560         * modules/unigbrk/u32-grapheme-prev-tests: New file.
45561         * lib/unigbrk.in.h: Add prototype for new function.
45562         * lib/unigbrk/u32-grapheme-prev.c: New file.
45563         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
45565         New module 'u8-grapheme-breaks'.
45566         * modules/unigbrk/u8-grapheme-breaks: New file.
45567         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
45568         * lib/unigbrk.in.h: Add prototype for new function.
45569         * lib/unigbrk/u8-grapheme-breaks.c: New file.
45570         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
45572         New module 'u16-grapheme-breaks'.
45573         * modules/unigbrk/u16-grapheme-breaks: New file.
45574         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
45575         * lib/unigbrk.in.h: Add prototype for new function.
45576         * lib/unigbrk/u16-grapheme-breaks.c: New file.
45577         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
45579         New module 'u32-grapheme-breaks'.
45580         * modules/unigbrk/u32-grapheme-breaks: New file.
45581         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
45582         * lib/unigbrk.in.h: Add prototype for new function.
45583         * lib/unigbrk/u32-grapheme-breaks.c: New file.
45584         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
45586         New module 'ulc-grapheme-breaks'.
45587         * modules/unigbrk/ulc-grapheme-breaks: New file.
45588         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
45589         * m4/locale-ar.m4: New file.
45590         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
45591         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
45592         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
45594 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45596         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
45597         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
45598         modified how this file was generated before I initially submitted
45599         the module, but failed to regenerate it.  This meant that several
45600         of the level2 entries were wrong.
45601         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
45602         Remove the division-by-2 that is folded into the table now that
45603         gbrkprop.h has been regenerated properly.  Now -1 entries are
45604         handled correctly.
45606         New module 'unigbrk/uc-gbrk-prop-tests'.
45607         * modules/unigbrk/uc-gbrk-prop-tests: New file.
45608         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
45609         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
45610         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
45612 2011-01-01  Bruno Haible  <bruno@clisp.org>
45614         Avoid use of hexadecimal escapes.
45615         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
45616         instead of hexadecimal escapes.
45618 2011-01-01  Jim Meyering  <meyering@redhat.com>
45620         maint: new rule to update copyright year ranges
45621         * Makefile (update-copyright): New rule.
45623         maint: indent with TABs in Makefile
45624         * Makefile: Expand leading sequences of spaces to TABs
45626         version-etc: update the copyright year it reports
45627         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
45629 2010-12-31  Bruno Haible  <bruno@clisp.org>
45631         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
45632         * lib/isfinite.c (zerof, zerod, zerol): New variables.
45633         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
45634         zero.
45636 2010-12-31  Bruno Haible  <bruno@clisp.org>
45638         pwrite: Work around HP-UX 11.11 bug.
45639         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
45640         works and set REPLACE_PWRITE if not.
45641         * lib/pwrite.c (pwrite): Add an implementation that uses the system
45642         function.
45643         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
45645 2010-12-31  Bruno Haible  <bruno@clisp.org>
45647         pread: Work around HP-UX 11 bugs.
45648         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
45649         and set REPLACE_PREAD if not.
45650         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
45652 2010-12-31  Eric Blake  <eblake@redhat.com>
45654         nl_langinfo: fix YESEXPR on Irix 6.5
45655         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
45656         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
45657         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
45658         it.
45660 2010-12-31  Bruno Haible  <bruno@clisp.org>
45662         iconv: Document HP-UX 11 bug.
45663         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
45665 2010-12-31  Bruno Haible  <bruno@clisp.org>
45667         ldexpl: Fix link error on HP-UX 11.
45668         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
45669         LDEXPL_LIBM, using $ISNANL_LIBM.
45671 2010-12-31  Eric Blake  <eblake@redhat.com>
45673         ftello: avoid compilation failure with SunStudio c89
45674         * lib/ftello.c (ftello): Use lseek, not llseek.
45676         tests: avoid failing coreutils tests on cygwin
45677         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
45678         (create_exe_shims_): Return 0 when skipping.
45680 2010-12-31  Bruno Haible  <bruno@clisp.org>
45682         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
45683         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
45685 2010-12-31  Bruno Haible  <bruno@clisp.org>
45687         waitpid: Fix link error in C++ mode.
45688         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
45690 2010-12-31  Bruno Haible  <bruno@clisp.org>
45692         isnan: Use GCC built-ins when possible.
45693         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
45694         __builtin_isnan.
45695         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
45696         (isnan): Define using GCC built-ins for GCC >= 4.0.
45698 2010-12-31  Bruno Haible  <bruno@clisp.org>
45700         isnand: Fix mistake.
45701         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
45702         __builtin_isnand.
45704 2010-12-31  Bruno Haible  <bruno@clisp.org>
45706         open: Avoid C++ error on HP-UX 11.
45707         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
45709 2010-12-31  Bruno Haible  <bruno@clisp.org>
45711         time_r: Add missing declarations on HP-UX 11.
45712         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
45713         instead of HAVE_LOCALTIME_R.
45714         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
45715         HAVE_LOCALTIME_R always.
45716         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
45717         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
45718         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
45719         HAVE_LOCALTIME_R.
45720         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
45721         * doc/posix-functions/localtime_r.texi: Likewise.
45723 2010-12-29  Eric Blake  <eblake@redhat.com>
45725         mountlist: tweak previous commit
45726         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
45727         Reported by Paul Eggert.
45729         mountlist: fix local drive detection on cygwin
45730         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
45731         that works for cygwin.
45733 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45735         ftoastr, snprintf: ftoastr + snprintf module
45736         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
45737         since the snprintf module now should be good enough here.
45738         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
45739         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
45740         and gl_MODULE_INDICATOR([snprintf]), but the former enables
45741         GNULIB_SNPRINTF only for the test directory, and the latter
45742         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
45743         seems to suffice by itself.
45745 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45747         alloca: one step towards thread-safety
45748         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
45749         need for a static variable.  All callers changed.  This does not
45750         make the alloca replacement thread-safe, but it's one step.
45752         tests: minor indenting change
45753         * tests/init.sh: Sync from coreutils housekeeping patch
45754         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
45755         to keep lines within 80 columns.
45757 2010-12-28  Jim Meyering  <meyering@redhat.com>
45759         regex: don't infloop on persistent failing calloc
45760         * lib/regexec.c (build_trtable): Return failure indication upon
45761         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45762         In glibc, this was fixed for version 2.13:
45763         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
45765 2010-12-28  Bruno Haible  <bruno@clisp.org>
45766             Paul Eggert <eggert@cs.ucla.edu>
45768         linkat: Make implementation robust against system behaviour variations.
45769         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
45770         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
45771         way, and to -2 if it needs a generic runtime test.
45772         * lib/linkat.c (solaris_optimized_link_immediate,
45773         solaris_optimized_link_follow): New functions.
45774         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
45775         (check_same_link): Use it.
45777 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
45779         New module 'unigbrk/base'.
45780         * modules/unigbrk/base: New file.
45781         * lib/unigbrk.in.h: New file.
45783         New module 'unigbrk/uc-gbrk-prop'.
45784         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
45785         * modules/unigbrk/uc-gbrk-prop: New file.
45786         * lib/unigbrk/gbrkprop.h: New file.
45787         * lib/unigbrk/uc-gbrk-prop.c: New file.
45789         New module 'unigbrk/uc-is-grapheme-break'.
45790         * modules/unigbrk/uc-is-grapheme-break: New file.
45791         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
45792         * lib/unigbrk/uc-is-grapheme-break.c: New file.
45793         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
45794         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
45795         * tests/unigbrk/GraphemeBreakTest.txt: New file.
45797         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
45799 2010-12-27  Bruno Haible  <bruno@clisp.org>
45801         linkat test: Avoid failure on Solaris 11 2010-11.
45802         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
45804 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45806         utimens: work around glibc rounding bug on more platforms
45807         * lib/utimens.c (fdutimens): Work around rounding bug even if
45808         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
45809         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
45811 2010-12-27  Bruno Haible  <bruno@clisp.org>
45813         select tests: Improve comments.
45814         * tests/test-select.c (do_select): Add comments.
45816 2010-12-27  Bruno Haible  <bruno@clisp.org>
45818         select tests: Safer way of handling timeout.
45819         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
45820         at every invocation.
45822 2010-12-27  Bruno Haible  <bruno@clisp.org>
45824         select tests: Use 'bool' where appropriate.
45825         * tests/test-select.c (connect_to_socket): Change argument type to
45826         'bool'.
45828 2010-12-27  Bruno Haible  <bruno@clisp.org>
45830         select tests: Use existing modules.
45831         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
45832         (configure.ac): Don't test for unistd.h.
45833         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
45834         declared in <unistd.h>.
45836 2010-12-27  Bruno Haible  <bruno@clisp.org>
45838         mbrtowc: Work around a Solaris 7 bug.
45839         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
45840         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
45841         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
45842         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
45843         MBRTOWC_NULL_ARG1_BUG.
45844         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
45845         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
45846         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
45847         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
45849 2010-12-27  Jim Meyering  <meyering@redhat.com>
45851         read-file.c: tweak syntax
45852         * lib/read-file.c (fread_file): Remove space after "*" in function
45853         definitions.
45855 2010-12-27  Bruno Haible  <bruno@clisp.org>
45857         times test: Avoid gcc warnings on OSF/1.
45858         * tests/test-times.c (main): Cast printf arguments from clock_t to
45859         'long int'.
45861 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45863         utimens: work around glibc rounding bug on older Linux kernels
45864         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
45865         on Linux with a glibc whose utimes might not work, then work
45866         around a longstanding glibc bug involving rounding rather than
45867         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
45868         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45870 2010-12-26  Bruno Haible  <bruno@clisp.org>
45872         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
45873         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
45874         _GL_CXXALIAS_SYS.
45875         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45877 2010-12-26  Bruno Haible  <bruno@clisp.org>
45879         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
45880         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
45881         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
45882         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
45883         looking for the declaration.
45884         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45885         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
45886         problem.
45887         * doc/posix-functions/inet_pton.texi: Likewise.
45889 2010-12-26  Bruno Haible  <bruno@clisp.org>
45891         arpa_inet: Use the common idioms with C++ support.
45892         * lib/arpa_inet.in.h: Include c++defs.h.
45893         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
45894         support.
45895         * modules/arpa_inet (Depends-on): Add c++defs.
45896         (Makefile.am): Substitute the contents of c++defs.h.
45897         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
45898         * modules/arpa_inet-c++-tests: New file.
45899         * tests/test-arpa_inet-c++.cc: New file.
45901 2010-12-25  Bruno Haible  <bruno@clisp.org>
45903         Fix more C++ link errors on Solaris 8.
45904         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
45905         $(LIB_EACCESS).
45906         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
45907         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
45908         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
45909         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
45910         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
45912 2010-12-25  Bruno Haible  <bruno@clisp.org>
45914         printf-posix: Fix link error when a non-GCC compiler is used.
45915         * lib/stdio.in.h (printf): When not using GCC, override printf
45916         correctly.
45917         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45919 2010-12-25  Bruno Haible  <bruno@clisp.org>
45921         strerror_r-posix: Update doc.
45922         * doc/posix-functions/strerror_r.texi: Update doc about the return
45923         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
45925 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45927         utimens: simplify the logic of the previous change
45928         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
45929         This should not affect whether the test succeeds or fails.
45931         utimens: configure better on hosts with NFS clock skew
45932         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
45933         uses the clock of the local host.  It might use the clock of the
45934         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
45935         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45937 2010-12-25  Bruno Haible  <bruno@clisp.org>
45939         ptsname test: Avoid failure on Solaris.
45940         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
45941         open a pseudo-terminal; don't use BSD-style ptys.
45942         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
45944 2010-12-25  Bruno Haible  <bruno@clisp.org>
45946         ptsname: Avoid ERANGE failure on some systems.
45947         * lib/ptsname.c (buffer): Increase size.
45949 2010-12-25  Bruno Haible  <bruno@clisp.org>
45951         rename, renameat: Avoid test failures at NFS mounted locations.
45952         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
45953         so that subsequent mkdir calls succeed.
45955 2010-12-25  Bruno Haible  <bruno@clisp.org>
45957         iswblank: Fix C++ link error on Solaris 8.
45958         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
45959         _GL_FUNCDECL_SYS.
45961 2010-12-25  Bruno Haible  <bruno@clisp.org>
45963         unistd: Fix C++ link error on Solaris 8.
45964         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
45966 2010-12-25  Bruno Haible  <bruno@clisp.org>
45968         readlink doc: Mention an old glibc bug.
45969         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
45971 2010-12-25  Bruno Haible  <bruno@clisp.org>
45973         fcntl-h: Fix for use of C++ on glibc systems.
45974         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
45975         also on glibc systems in C++ mode.
45976         Reported by Gary V. Vaughan <gary@gnu.org>.
45978 2010-12-25  Bruno Haible  <bruno@clisp.org>
45980         roundl-ieee: Make it work on OSF/1 5.1 with cc.
45981         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
45983 2010-12-25  Bruno Haible  <bruno@clisp.org>
45985         truncl-ieee: Make it work on OSF/1 5.1 with cc.
45986         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
45987         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
45988         test whether truncl works according to ISO C 99 with IEC 60559.
45989         * m4/truncl-ieee.m4: New file.
45990         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
45991         m4/signbit.m4.
45992         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
45994 2010-12-25  Bruno Haible  <bruno@clisp.org>
45996         ceill-ieee: Make it work on OSF/1 5.1 with cc.
45997         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
45998         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
45999         test whether ceill works according to ISO C 99 with IEC 60559.
46000         * m4/ceill-ieee.m4: New file.
46001         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
46002         m4/signbit.m4.
46003         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
46005 2010-12-25  Bruno Haible  <bruno@clisp.org>
46007         Ensure all prerequisites of <wchar.h> are included.
46008         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
46009         before <wchar.h>.
46010         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46011         gl_MBRLEN_NUL_RETVAL): Likewise.
46012         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46013         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
46014         AC_FUNC_MBRTOWC): Likewise.
46015         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46016         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46017         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46018         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46019         Likewise.
46020         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46021         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
46022         (gl_WCHAR_H): Improve comments.
46023         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
46025 2010-12-25  Bruno Haible  <bruno@clisp.org>
46027         strtok_r: Fix C syntax error in autoconf macro.
46028         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
46029         characters in test program.
46031 2010-12-24  Bruno Haible  <bruno@clisp.org>
46033         ceil, trunc, round: Fix gcc warnings.
46034         * lib/ceil.c (MIN): Undefine before redefining.
46035         * lib/trunc.c (MIN): Likewise.
46036         * lib/round.c (MIN): Likewise.
46037         Include <math.h> first.
46039 2010-12-24  Bruno Haible  <bruno@clisp.org>
46041         select tests: Avoid failures on OSF/1 5.1.
46042         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
46043         failure of closing the last socket; it may fail with ECONNRESET.
46045 2010-12-24  Eric Blake  <eblake@redhat.com>
46047         stdint: avoid HP-UX 10.20 preprocessor bug
46048         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
46049         than #if.
46050         * tests/test-floor2.c (main): Likewise.
46051         Reported by Peter O'Gorman.
46053         pipe: make obsoletion transition easier
46054         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
46055         * modules/pipe (Files): Include revived file.
46056         (Include): Drop reference, to mirror getdate's behavior.
46058 2010-12-24  Bruno Haible  <bruno@clisp.org>
46060         sys_socket: Hide mismatch of declarations on NonStop Kernel.
46061         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
46062         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
46063         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46065 2010-12-24  Bruno Haible  <bruno@clisp.org>
46067         gethostname: Ensure declaration on NonStop Kernel.
46068         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
46069         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46071 2010-12-24  Bruno Haible  <bruno@clisp.org>
46073         sys_select: Ensure all necessary types on NonStop Kernel.
46074         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
46075         include <sys/time.h>.
46076         * doc/posix-headers/sys_select.texi: Mention that it's missing on
46077         NonStop Kernel.
46078         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46080 2010-12-24  Bruno Haible  <bruno@clisp.org>
46082         sys_select: Remove unneeded include.
46083         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
46084         have <sys/select.h>.
46086 2010-12-24  Bruno Haible  <bruno@clisp.org>
46088         gethostname: Provide a fallback for HOST_NAME_MAX.
46089         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
46090         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
46091         instead.
46092         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46094 2010-12-24  Bruno Haible  <bruno@clisp.org>
46096         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
46097         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
46098         (SA_RESTART): Likewise.
46099         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46101 2010-12-24  Bruno Haible  <bruno@clisp.org>
46103         signal: Define NSIG.
46104         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
46105         * tests/test-signal.c (nsig): New variable.
46106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46108 2010-12-24  Bruno Haible  <bruno@clisp.org>
46110         rename, renameat: Avoid test failures on OSF/1 5.1.
46111         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
46112         alternative error codes.
46113         * tests/test-renameat.c (main): Likewise.
46115 2010-12-24  Bruno Haible  <bruno@clisp.org>
46117         *printf: Detect large precisions bug on Solaris 10/SPARC.
46118         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
46119         by Paul Eggert.
46120         * tests/test-snprintf-posix.h (test_function): Add this test code here
46121         too.
46122         * tests/test-sprintf-posix.h (test_function): Likewise.
46123         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46124         * tests/test-vasprintf-posix.c (test_function): Likewise.
46125         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
46126         around by gnulib.
46127         * doc/posix-functions/printf.texi: Likewise.
46128         * doc/posix-functions/snprintf.texi: Likewise.
46129         * doc/posix-functions/sprintf.texi: Likewise.
46130         * doc/posix-functions/vfprintf.texi: Likewise.
46131         * doc/posix-functions/vprintf.texi: Likewise.
46132         * doc/posix-functions/vsnprintf.texi: Likewise.
46133         * doc/posix-functions/vsprintf.texi: Likewise.
46134         * doc/posix-functions/dprintf.texi: Undo last commit.
46135         * doc/posix-functions/vdprintf.texi: Likewise.
46137 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46139         tests: port test-fdutimensat.c to Solaris 8
46140         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
46141         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
46142         On Solaris 8, it fails with errno == ENOSYS, because there is no
46143         futimens (so it can't use the fd), and there is no lutimens (so it
46144         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
46146         vsnprintf: make more consistent with snprintf; doc fixes
46148         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
46149         the byte count return problem was promoted from the snprintf-posix
46150         to the snprintf module.
46151         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46152         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
46153         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
46154         * tests/test-snprintf.c (main): Check the byte count returned.
46155         * tests/test-vsnprintf.c (main): Likewise.
46157 2010-12-23  Eric Blake  <eblake@redhat.com>
46159         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
46160         * modules/sigpipe (License): Relax license.
46162 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46164         doc: document Solaris printf bug with large float precisions
46165         * doc/posix-functions/dprintf.texi (dprintf):
46166         * doc/posix-functions/fprintf.texi (fprintf):
46167         * doc/posix-functions/printf.texi (printf):
46168         * doc/posix-functions/snprintf.texi (snprintf):
46169         * doc/posix-functions/sprintf.texi (sprintf):
46170         * doc/posix-functions/vdprintf.texi (vdprintf):
46171         * doc/posix-functions/vfprintf.texi (vfprintf):
46172         * doc/posix-functions/vprintf.texi (vprintf):
46173         * doc/posix-functions/vsnprintf.texi (vsnprintf):
46174         * doc/posix-functions/vsprintf.texi (vsprintf):
46175         Mention that these functions mishandle large floating point
46176         precisions on Solaris 10.  The same bug is also present in Solaris
46177         8, and I assume earlier.  This causes "cd gnulib-tests; make
46178         check" to fail on Solaris 8 (and I assume, later) when building
46179         the latest coreutils, in test-vasprintf-posix's call to
46180         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
46181         the wide flavors (e.g., wprintf) so this patch just updates the
46182         documentation for the narrow ones.
46184         test-posixtm.c: add two tests
46185         * tests/test-posixtm.c: Add two tests, to highlight the
46186         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
46187         around this bug; this is merely to document it.
46189 2010-12-22  Bruno Haible  <bruno@clisp.org>
46191         getlogin_r: Work around portability problem on OSF/1.
46192         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
46193         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
46194         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
46195         test for a truncated result.
46196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
46197         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
46198         * modules/getlogin_r (Depends-on): Add memchr.
46199         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
46201 2010-12-22  Bruno Haible  <bruno@clisp.org>
46203         ptsname: Avoid test failure on OSF/1 5.1.
46204         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
46205         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
46206         (same_slave): New function.
46207         (main): Use it to compare ptsname's result with the expected file name.
46209 2010-12-22  Bruno Haible  <bruno@clisp.org>
46211         Port extended stdio modules to HP NonStop Kernel.
46212         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
46213         macros.
46214         * lib/fbufmode.c: Update comments.
46215         * lib/fflush.c: Likewise.
46216         * lib/fpurge.c: Likewise.
46217         * lib/freadable.c: Likewise.
46218         * lib/freadahead.c: Likewise.
46219         * lib/freading.c: Likewise.
46220         * lib/freadptr.c: Likewise.
46221         * lib/freadseek.c: Likewise.
46222         * lib/fseeko.c: Likewise.
46223         * lib/fseterr.c: Likewise.
46224         * lib/fwritable.c: Likewise.
46225         * lib/fwriting.c: Likewise.
46226         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46228 2010-12-22  Bruno Haible  <bruno@clisp.org>
46230         ttyname_r: Work around bug on OSF/1 5.1.
46231         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
46232         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
46233         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
46234         present.
46235         * lib/ttyname_r.c (ttyname_r): Update comments.
46237 2010-12-22  Bruno Haible  <bruno@clisp.org>
46239         round: Implement result sign according to IEEE 754.
46240         * lib/round.c (MIN, MINUS_ZERO): New macros.
46241         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
46242         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
46243         * tests/test-round-ieee.c (main): Likewise.
46244         * tests/test-roundl-ieee.c (main): Likewise.
46246         trunc: Implement result sign according to IEEE 754.
46247         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
46248         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
46249         * tests/test-trunc2.c: Include minus-zero.h.
46250         (MINUS_ZERO): New macro.
46251         (trunc_reference): Keep in sync with lib/trunc.c.
46252         * tests/test-truncf2.c: Include minus-zero.h.
46253         (MINUS_ZERO): New macro.
46254         (truncf_reference): Keep in sync with lib/trunc.c.
46255         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
46256         * tests/test-trunc-ieee.c (main): Likewise.
46257         * tests/test-truncl-ieee.c (main): Likewise.
46259         ceil: Implement result sign according to IEEE 754.
46260         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
46261         (FUNC): Return -0.0 for -1 < x < 0.
46262         * tests/test-ceil2.c: Include minus-zero.h.
46263         (MINUS_ZERO): New macro.
46264         (ceil_reference): Keep in sync with lib/ceil.c.
46265         * tests/test-ceilf2.c: Include minus-zero.h.
46266         (MINUS_ZERO): New macro.
46267         (ceilf_reference): Keep in sync with lib/ceil.c.
46268         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
46269         * tests/test-ceil-ieee.c (main): Likewise.
46270         * tests/test-ceill-ieee.c (main): Likewise.
46272         floor: Implement result sign according to IEEE 754.
46273         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
46274         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
46275         * tests/test-floorf2.c (floorf_reference): Likewise.
46276         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
46277         * tests/test-floor-ieee.c (main): Likewise.
46278         * tests/test-floorl-ieee.c (main): Likewise.
46280 2010-12-22  Bruno Haible  <bruno@clisp.org>
46282         getaddrinfo: Update doc.
46283         * doc/posix-functions/gai_strerror.texi: Return type is also different
46284         on AIX and HP-UX.
46286 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46288         getaddrinfo, inet_ntop: Update doc for Solaris.
46289         * doc/posix-functions/gai_strerror.texi: Return type is also an
46290         issue on Solaris 9 and earlier.
46291         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
46292         on Solaris 10 and earlier.
46294 2010-12-21  Bruno Haible  <bruno@clisp.org>
46296         New module 'roundl-ieee'.
46297         * modules/roundl-ieee: New file.
46298         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46299         test whether roundl works according to ISO C 99 with IEC 60559.
46300         * m4/roundl-ieee.m4: New file.
46301         * modules/roundl-ieee-tests: New file.
46302         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46303         * tests/test-roundl.c (main): Remove signbit tests.
46304         * modules/roundl-tests (Depends-on): Remove signbit.
46305         * doc/posix-functions/roundl.texi: Mention the new module.
46307 2010-12-21  Bruno Haible  <bruno@clisp.org>
46309         New module 'truncl-ieee'.
46310         * modules/truncl-ieee: New file.
46311         * modules/truncl-ieee-tests: New file.
46312         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46313         * tests/test-truncl.c (main): Remove signbit tests.
46314         * modules/truncl-tests (Depends-on): Remove signbit.
46315         * doc/posix-functions/truncl.texi: Mention the new module.
46317 2010-12-21  Bruno Haible  <bruno@clisp.org>
46319         New module 'ceill-ieee'.
46320         * modules/ceill-ieee: New file.
46321         * modules/ceill-ieee-tests: New file.
46322         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46323         * tests/test-ceill.c (main): Remove signbit tests.
46324         * modules/ceill-tests (Depends-on): Remove signbit.
46325         * doc/posix-functions/ceill.texi: Mention the new module.
46327 2010-12-21  Bruno Haible  <bruno@clisp.org>
46329         New module 'floorl-ieee'.
46330         * modules/floorl-ieee: New file.
46331         * modules/floorl-ieee-tests: New file.
46332         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46333         * tests/test-floorl.c (main): Remove signbit tests.
46334         * modules/floorl-tests (Depends-on): Remove signbit.
46335         * doc/posix-functions/floorl.texi: Mention the new module.
46337 2010-12-21  Bruno Haible  <bruno@clisp.org>
46339         New module 'round-ieee'.
46340         * modules/round-ieee: New file.
46341         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46342         whether round works according to ISO C 99 with IEC 60559.
46343         * m4/round-ieee.m4: New file.
46344         * modules/round-ieee-tests: New file.
46345         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46346         * tests/test-round1.c (main): Remove signbit tests.
46347         * modules/round-tests (Depends-on): Remove 'signbit'.
46348         * doc/posix-functions/round.texi: Mention the new module.
46350 2010-12-21  Bruno Haible  <bruno@clisp.org>
46352         New module 'trunc-ieee'.
46353         * modules/trunc-ieee: New file.
46354         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46355         whether trunc works according to ISO C 99 with IEC 60559.
46356         * m4/trunc-ieee.m4: New file.
46357         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46359         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46360         * modules/trunc-ieee-tests: New file.
46361         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46362         * tests/test-trunc1.c (main): Remove signbit tests.
46363         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46364         * doc/posix-functions/trunc.texi: Mention the new module.
46366 2010-12-21  Bruno Haible  <bruno@clisp.org>
46368         New module 'ceil-ieee'.
46369         * modules/ceil-ieee: New file.
46370         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46371         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46372         ISO C 99 with IEC 60559.
46373         * m4/ceil-ieee.m4: New file.
46374         * modules/ceil (Files): Add lib/ceil.c.
46375         (Depends-on): Add 'float'.
46376         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46377         * lib/math.in.h (ceil): New declaration.
46378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46379         REPLACE_CEIL.
46380         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46381         * modules/ceil-ieee-tests: New file.
46382         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46383         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46384         * doc/posix-functions/ceil.texi: Mention the new module.
46386 2010-12-21  Bruno Haible  <bruno@clisp.org>
46388         New module 'floor-ieee'.
46389         * modules/floor-ieee: New file.
46390         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46391         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46392         ISO C 99 with IEC 60559.
46393         * m4/floor-ieee.m4: New file.
46394         * modules/floor (Files): Add lib/floor.c.
46395         (Depends-on): Add 'float'.
46396         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46397         * lib/math.in.h (floor): New declaration.
46398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46399         REPLACE_FLOOR.
46400         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46401         * modules/floor-ieee-tests: New file.
46402         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46403         * tests/test-math-c++.cc: Check the signature of 'floor'.
46404         * doc/posix-functions/floor.texi: Mention the new module.
46406 2010-12-21  Bruno Haible  <bruno@clisp.org>
46408         New module 'roundf-ieee'.
46409         * modules/roundf-ieee: New file.
46410         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46411         test whether roundf works according to ISO C 99 with IEC 60559.
46412         * m4/roundf-ieee.m4: New file.
46413         * modules/roundf-ieee-tests: New file.
46414         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46415         * tests/test-roundf1.c (main): Remove signbit tests.
46416         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46417         * doc/posix-functions/roundf.texi: Mention the new module.
46419 2010-12-21  Bruno Haible  <bruno@clisp.org>
46421         New module 'truncf-ieee'.
46422         * modules/truncf-ieee: New file.
46423         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46424         test whether truncf works according to ISO C 99 with IEC 60559.
46425         * m4/truncf-ieee.m4: New file.
46426         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46428         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46429         * modules/truncf-ieee-tests: New file.
46430         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46431         * tests/test-truncf1.c (main): Remove signbit tests.
46432         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46433         * doc/posix-functions/truncf.texi: Mention the new module.
46435 2010-12-21  Bruno Haible  <bruno@clisp.org>
46437         New module 'ceilf-ieee'.
46438         * modules/ceilf-ieee: New file.
46439         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46440         test whether ceilf works according to ISO C 99 with IEC 60559.
46441         * m4/ceilf-ieee.m4: New file.
46442         * modules/ceilf-ieee-tests: New file.
46443         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46444         * tests/test-ceilf1.c (main): Remove signbit tests.
46445         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46446         * doc/posix-functions/ceilf.texi: Mention the new module.
46448 2010-12-21  Bruno Haible  <bruno@clisp.org>
46450         New module 'floorf-ieee'.
46451         * modules/floorf-ieee: New file.
46452         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46453         test whether floorf works according to ISO C 99 with IEC 60559.
46454         * m4/floorf-ieee.m4: New file.
46455         * modules/floorf-ieee-tests: New file.
46456         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46457         * tests/test-floorf1.c (main): Remove signbit tests.
46458         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46459         * doc/posix-functions/floorf.texi: Mention the new module.
46461 2010-12-21  Bruno Haible  <bruno@clisp.org>
46463         Support for minus zero in autoconf macros.
46464         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46465         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46466         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46467         * tests/minus-zero.h: Update comments.
46469 2010-12-21  Bruno Haible  <bruno@clisp.org>
46471         Tests for module 'ceil'.
46472         * modules/ceil-tests: New file.
46473         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46474         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46476 2010-12-21  Bruno Haible  <bruno@clisp.org>
46478         Tests for module 'floor'.
46479         * modules/floor-tests: New file.
46480         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46481         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46483 2010-12-21  Bruno Haible  <bruno@clisp.org>
46485         math: Fix indentation.
46486         * lib/math.in.h (floorf): Fix indentation.
46488 2010-12-21  Bruno Haible  <bruno@clisp.org>
46490         Fix cross-compilation guesses on Solaris.
46491         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46492         not match "solaris2.10".
46493         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46494         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46495         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46497 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46499         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46500         This fixes a problem observed with the latest coreutils snapshot
46501         that caused a test to fail on Solaris 8.  src/csplit.c's call
46502         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46503         earlier, instead of returning the number of bytes that would have
46504         been generated; this causes csplit to incorrectly report memory
46505         exhaustion.
46506         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46507         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46508         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46509         comments to match.
46510         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46511         Fix typo in matching older versions of Solaris: "solaris2.10"
46512         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46513         only for guessing while cross-compiling.
46514         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46516 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46518         ftoastr: fix comment again
46519         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46520         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46521         Also, simplify example a bit by using flags = 0.
46523 2010-12-20  Bruno Haible  <bruno@clisp.org>
46525         round*, trunc*: Update documentation regarding glibc.
46526         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46527         * doc/posix-functions/round.texi: Likewise.
46528         * doc/posix-functions/roundl.texi: Likewise.
46529         * doc/posix-functions/truncf.texi: Likewise.
46530         * doc/posix-functions/trunc.texi: Likewise.
46531         * doc/posix-functions/truncl.texi: Likewise.
46533 2010-12-20  Bruno Haible  <bruno@clisp.org>
46535         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46536         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46537         * doc/posix-functions/round.texi: Likewise.
46538         * doc/posix-functions/roundl.texi: Likewise.
46540 2010-12-20  Bruno Haible  <bruno@clisp.org>
46542         ttyname_r: Add missing declaration on HP-UX 11.
46543         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
46544         HAVE_TTYNAME_R.
46545         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
46546         declared. Set HAVE_TTYNAME_R always.
46547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46548         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
46549         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
46550         HAVE_TTYNAME_R.
46551         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
46553 2010-12-20  Bruno Haible  <bruno@clisp.org>
46555         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
46556         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
46557         * doc/posix-functions/getlogin_r.texi: Likewise.
46558         * tests/test-getlogin.c: Include <errno.h>.
46559         (main): Avoid test failure on HP-UX 11.11.
46560         * tests/test-getlogin_r.c (main): Likewise.
46562 2010-12-20  Bruno Haible  <bruno@clisp.org>
46564         getlogin_r: Add missing declaration on HP-UX 11.
46565         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
46566         declared also when it exists as a function.
46567         * doc/posix-functions/getlogin_r.texi: Document this workaround.
46569 2010-12-20  Bruno Haible  <bruno@clisp.org>
46571         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
46572         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
46573         through wcrtomb.
46575 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46577         ftoastr: fix comment
46578         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46579         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
46581 2010-12-19  Bruno Haible  <bruno@clisp.org>
46583         isnan: Ensure it is a macro.
46584         * lib/math.in.h (isnan): Define as a macro if not already a macro.
46585         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
46586         Solaris.
46588 2010-12-19  Bruno Haible  <bruno@clisp.org>
46590         ldexpl test: Fix link error on OSF/1 5.1.
46591         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
46593 2010-12-19  Bruno Haible  <bruno@clisp.org>
46595         wctype: Make it work in C++ mode on OSF/1 5.1.
46596         * lib/wctype.in.h (iswblank): Declare but not define here.
46597         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
46598         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
46599         * modules/wctype (Files): Add lib/iswblank.c.
46601 2010-12-19  Bruno Haible  <bruno@clisp.org>
46603         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
46604         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
46605         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
46607 2010-12-19  Bruno Haible  <bruno@clisp.org>
46609         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
46610         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
46611         _POSIX_PII_SOCKET.
46612         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
46613         * doc/posix-functions/recvfrom.texi: Likewise.
46614         * doc/posix-functions/send.texi: Likewise.
46615         * doc/posix-functions/sendto.texi: Likewise.
46617 2010-12-19  Bruno Haible  <bruno@clisp.org>
46619         tcgetsid: Add missing declaration on OSF/1 5.1.
46620         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
46621         HAVE_TCGETSID.
46622         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
46623         Don't set HAVE_TCGETSID.
46624         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
46625         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
46626         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
46627         HAVE_TCGETSID.
46628         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
46630 2010-12-19  Bruno Haible  <bruno@clisp.org>
46632         stdio: Fix problem with popen() declaration on OSF/1 5.1.
46633         * lib/stdio.in.h: During the include_next statement, let recursive
46634         includes of this file include only the system header file.
46636 2010-12-19  Bruno Haible  <bruno@clisp.org>
46638         iconv_open: Fix regression from 2010-12-04.
46639         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
46640         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
46642 2010-12-19  Bruno Haible  <bruno@clisp.org>
46644         stdbool test: Avoid a gcc warning.
46645         * tests/test-stdbool.c (main): Fail if e1 is false.
46646         Reported by Jim Meyering.
46648 2010-12-19  Jim Meyering  <meyering@redhat.com>
46650         setenv: restore to working order
46651         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
46652         mistakenly removed.
46653         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
46654         HAVE_SETENV.
46655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
46656         HAVE_SETENV.
46658 2010-12-19  Bruno Haible  <bruno@clisp.org>
46660         Document some different function declarations on OSF/1 5.1.
46661         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
46662         * doc/posix-functions/inet_ntop.texi: Likewise.
46663         * doc/posix-functions/gethostname.texi: Likewise.
46664         * lib/unistd.in.h (gethostname): Update comment.
46666 2010-12-19  Bruno Haible  <bruno@clisp.org>
46668         doc: Mention vasprintf-posix module.
46669         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
46670         the 'vasprintf-posix' module.
46671         * doc/glibc-functions/vasprintf.texi: Likewise.
46673 2010-12-19  Bruno Haible  <bruno@clisp.org>
46675         unsetenv: Add missing declaration on OSF/1 5.1.
46676         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
46677         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
46678         Don't set HAVE_UNSETENV. In the test program, set _BSD.
46679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
46680         not HAVE_UNSETENV.
46681         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
46682         HAVE_UNSETENV.
46683         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
46685 2010-12-19  Bruno Haible  <bruno@clisp.org>
46687         setenv: Add missing declaration on OSF/1 5.1.
46688         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
46689         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
46690         declared. Don't set HAVE_SETENV.
46691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
46692         not HAVE_SETENV.
46693         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
46694         HAVE_SETENV.
46695         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
46697 2010-12-19  Bruno Haible  <bruno@clisp.org>
46699         nl_langinfo tests: Avoid gcc warning.
46700         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
46702 2010-12-19  Bruno Haible  <bruno@clisp.org>
46704         mknod: Avoid error in C++ mode on OSF/1 with GCC.
46705         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
46706         _GL_CXXALIAS_SYS.
46708 2010-12-19  Bruno Haible  <bruno@clisp.org>
46710         stdbool: Relax test.
46711         * tests/test-stdbool.c (e): Don't require that casts from a variable's
46712         address to 'bool' work in static initializer, for compilers other than
46713         GCC.
46715 2010-12-19  Bruno Haible  <bruno@clisp.org>
46717         ftello: Add missing declaration on OSF/1 5.1.
46718         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
46719         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
46720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
46721         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
46722         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
46724 2010-12-19  Bruno Haible  <bruno@clisp.org>
46726         fseeko: Add missing declaration on OSF/1 5.1.
46727         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
46728         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
46729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
46730         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
46731         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
46733 2010-12-19  Bruno Haible  <bruno@clisp.org>
46735         fchdir: Add missing declaration on OSF/1 5.1.
46736         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
46737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
46738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
46739         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
46740         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
46742 2010-12-19  Bruno Haible  <bruno@clisp.org>
46744         relocatable-prog-wrapper: Separate from relocatable-prog.
46745         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
46746         uninstall-relocwrapper rule here.
46747         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
46748         Reported by Ian Beckwith <ianb@erislabs.net>.
46750 2010-12-19  Bruno Haible  <bruno@clisp.org>
46752         unistr/u8-mbsnlen: Add missing dependency.
46753         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
46754         Reported by Ian Beckwith <ianb@erislabs.net>.
46756 2010-12-19  Bruno Haible  <bruno@clisp.org>
46758         iconv: Make it possible again to use this module without 'iconv-h'.
46759         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
46760         if it is not defined.
46761         Reported by Ian Beckwith <ianb@erislabs.net>.
46763 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46765         acl: port to Solaris 8 when copying from tmpfs to ufs
46766         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
46767         error number.  Problem observed on Solaris 8 with latest
46768         coreutils, with "mv A B", where A is on a tmpfs file system and B
46769         is on a ufs file system.  This caused coreutils' mv/part-symlink
46770         test to fail.
46772         tests: set fail=0 at start
46773         * tests/init.sh (setup_): Move fail=0 initialization here ...
46774         (mktempd_): ... from here, so that tests can rely on fail being
46775         set to 0 initially.  This fixes a problem in coreutils; see:
46776         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
46778 2010-12-18  Bruno Haible  <bruno@clisp.org>
46780         memmem-simple: Stylistic changes.
46781         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
46782         Fix preprocessor directive indentation.
46784 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46786         memmem, memmem-simple: reorganize and expand empty needle check
46787         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
46788         functional checks to memmem-simple so that one has a fully functional
46789         memmem by using just this module.
46790         Restrict the performance only check to the memmem module.
46791         Also expand the empty needle check to ensure the correct
46792         pointer is returned, not just a non NULL pointer.
46793         * doc/glibc-functions/memmem.texi: Rearrange the portability
46794         documentation to correlate with the rearranged checks.
46795         Clarify exactly how the memmem and memmem-simple modules
46796         relate to each other.
46798 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46799             Bruno Haible  <bruno@clisp.org>
46801         Improve cross-compilation guesses for uClibc.
46802         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
46803         that uClibc does not have the glibc bug.
46804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
46805         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
46807 2010-12-14  Eric Blake  <eblake@redhat.com>
46809         configmake: provide fallbacks for oldest supported autotools
46810         * m4/configmake.m4: New file.
46811         * modules/configmake (Files): Ship it.
46812         (configure.ac): Use it to guarantee fallbacks.
46814 2010-12-13  Pádraig Brady  <P@draigBrady.com>
46816         read-file: Improve handling of large files
46817         * lib/read-file.c (fread_file): Minimize realloc()s
46818         for regular files, and better manage sizes around SIZE_MAX.
46820 2010-12-13  Eric Blake  <eblake@redhat.com>
46822         cloexec, fcntl: relax license
46823         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
46824         consent from all contributors.
46825         * modules/fcntl (License): Likewise.
46827 2010-12-10  Bruno Haible  <bruno@clisp.org>
46829         Tests for module 'pipe-posix'.
46830         * modules/pipe-posix-tests: New file.
46831         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
46833 2010-12-10  Bruno Haible  <bruno@clisp.org>
46835         pipe-posix: Make it work in C++ mode.
46836         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
46837         (pipe): Use common idiom, not a macro definition.
46838         * lib/pipe.c: New file.
46839         * m4/pipe.m4: New file.
46840         * modules/pipe-posix (Description): Enhance.
46841         (Files): Add lib/pipe.c, m4/pipe.m4.
46842         (configure.ac): Invoke gl_FUNC_PIPE.
46843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
46844         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
46845         * tests/test-unistd-c++.cc: Check the signature of pipe.
46847 2010-12-10  Bruno Haible  <bruno@clisp.org>
46849         Rename module 'pipe' to 'spawn-pipe'.
46850         * modules/spawn-pipe: New file, renamed from modules/pipe.
46851         (Files, configure.ac, Makefile.am): Update.
46852         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
46853         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
46854         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
46855         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
46856         "spawn-pipe.h" instead of "pipe.h".
46857         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
46858         to gl_SPAWN_PIPE.
46859         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
46860         (Files, Makefile.am): Update.
46861         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
46862         Update.
46863         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
46864         Include "spawn-pipe.h" instead of "pipe.h".
46865         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
46866         * lib/javacomp.c: Likewise.
46867         * lib/javaversion.c: Likewise.
46868         * lib/pipe-filter-gi.c: Likewise.
46869         * lib/pipe-filter-ii.c: Likewise.
46870         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
46871         * modules/javacomp (Depends-on): Likewise.
46872         * modules/javaversion (Depends-on): Likewise.
46873         * modules/pipe-filter-gi (Depends-on): Likewise.
46874         * modules/pipe-filter-ii (Depends-on): Likewise.
46875         * MODULES.html.sh (Executing programs): Update.
46876         * NEWS: Mention the change.
46878 2010-12-10  Eric Blake  <eblake@redhat.com>
46880         pipe-posix: new module
46881         * modules/pipe-posix: New file.
46882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
46883         (gl_UNISTD_H): Check for declaration.
46884         * modules/unistd (Makefile.am): Substitute it.
46885         * lib/unistd.in.h (pipe): Provide it for mingw.
46886         * doc/posix-functions/pipe.texi (pipe): Update documentation.
46887         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
46889 2010-12-07  Bruno Haible  <bruno@clisp.org>
46891         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
46892         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
46893         u8_strcmp_gnu.
46894         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
46896 2010-12-06  Bruno Haible  <bruno@clisp.org>
46898         Update internal documentation.
46899         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
46901 2010-12-04  Bruno Haible  <bruno@clisp.org>
46903         Put more information about failed tests into the test return codes.
46904         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
46905         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
46906         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46907         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46908         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
46909         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46910         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46911         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46912         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
46913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46914         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
46915         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46916         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
46917         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46918         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
46919         returns a bit mask.
46920         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
46921         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
46922         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
46923         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
46924         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
46925         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
46926         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46927         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46928         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46929         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
46930         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46931         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
46932         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
46934         * m4/link.m4 (gl_FUNC_LINK): Likewise.
46935         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
46936         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
46937         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
46938         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46939         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
46940         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46941         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
46942         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
46943         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46944         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46945         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46946         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
46947         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
46948         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
46949         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
46950         gl_PRINTF_PRECISION): Likewise.
46951         * m4/regex.m4 (gl_REGEX): Likewise.
46952         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46953         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
46954         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
46955         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46956         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46957         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46958         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
46959         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
46960         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46961         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46962         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46963         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46964         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
46965         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46966         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46967         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
46968         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
46969         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46971         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
46972         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
46973         enumerated value.
46974         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
46976 2010-12-04  Bruno Haible  <bruno@clisp.org>
46978         Update for Solaris 11 2010-11.
46979         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
46980         Express, released in November 2010.
46982 2010-12-04  Bruno Haible  <bruno@clisp.org>
46984         nproc: Relax license.
46985         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
46986         and Paul Eggert.
46987         Requested by Ludovic Courtès <ludo@gnu.org>.
46989 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46991         utimecmp: fine-grained src to nearby coarse-grained dest
46993         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
46994         and the source is on a file system with higher-resolution time
46995         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
46996         not work, and the time stamps are close together, the algorithm to
46997         determine the exact resolution from the read-back mtime was buggy:
46998         it had a "!=" where it should have had an "==".  This bug has been
46999         in the code ever since it was introduced to gnulib.
47000         Problem reported by Dan Jacobson in
47001         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
47003 2010-11-30  Bruno Haible  <bruno@clisp.org>
47005         strerror_r-posix: Fix autoconf test.
47006         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
47008 2010-11-28  Bruno Haible  <bruno@clisp.org>
47009             Paul Eggert  <eggert@cs.ucla.edu>
47011         Tests for module 'getdomainname'.
47012         * modules/getdomainname-tests: New file.
47013         * tests/test-getdomainname.c: New file, based on
47014         tests/test-gethostname.c.
47016 2010-11-28  Bruno Haible  <bruno@clisp.org>
47017             Paul Eggert  <eggert@cs.ucla.edu>
47019         getdomainname: Use the system function when possible.
47020         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
47021         (getdomainname): Replace if needed. Provide the declaration if it is
47022         missing. Don't use _GL_CXXALIAS_SYS_CAST.
47023         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
47024         (getdomainname): When the system has getdomainname, call the system
47025         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
47026         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47027         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
47028         found in libnsl. Look for the declaration also in <netdb.h>. Replace
47029         the function if its second argument is of type 'int' or if it is found
47030         in libnsl.
47031         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
47032         <sys/systeminfo.h> and sysinfo().
47033         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
47034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47035         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
47036         HAVE_GETDOMAINNAME.
47037         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
47038         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
47039         * doc/glibc-functions/getdomainname.texi: Document the problems with
47040         the getdomainname declaration.
47042 2010-11-28  Bruno Haible  <bruno@clisp.org>
47044         sys_socket: Ensure ss_family field on AIX.
47045         * lib/sys_socket.in.h (ss_family): New macro definition.
47046         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
47047         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
47048         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47049         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47050         * modules/sys_socket (Makefile.am): Substitute
47051         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47052         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
47054 2010-11-27  Bruno Haible  <bruno@clisp.org>
47056         readline: Improve configure output.
47057         * m4/readline.m4 (gl_FUNC_READLINE): Make the
47058         "checking for readline..." result understandable.
47060 2010-11-27  Bruno Haible  <bruno@clisp.org>
47062         *printf-posix: Detect a bug on Solaris 10/x86.
47063         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
47064         for floating-point output.
47065         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
47066         directive.
47067         * tests/test-snprintf-posix.h (test_function): Likewise.
47068         * tests/test-sprintf-posix.h (test_function): Likewise.
47069         * tests/test-vasprintf-posix.c (test_function): Likewise.
47070         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
47071         * doc/posix-functions/printf.texi: Likewise.
47072         * doc/posix-functions/snprintf.texi: Likewise.
47073         * doc/posix-functions/sprintf.texi: Likewise.
47074         * doc/posix-functions/vfprintf.texi: Likewise.
47075         * doc/posix-functions/vprintf.texi: Likewise.
47076         * doc/posix-functions/vsnprintf.texi: Likewise.
47077         * doc/posix-functions/vsprintf.texi: Likewise.
47078         * doc/glibc-functions/obstack_printf.texi: Likewise.
47079         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47081 2010-11-27  Bruno Haible  <bruno@clisp.org>
47083         Fix link error when module libunistring-optional is in use.
47084         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
47085         * modules/striconveha-tests (Makefile.am): Likewise.
47087 2010-11-27  Bruno Haible  <bruno@clisp.org>
47089         regex: Mention link dependencies.
47090         * modules/regex (Link): New section.
47091         * modules/rpmatch (Link): Likewise.
47092         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
47094 2010-11-27  Bruno Haible  <bruno@clisp.org>
47096         ftoastr: Fix compilation error on Solaris.
47097         * lib/ftoastr.c: Include <config.h>.
47099 2010-11-27  Bruno Haible  <bruno@clisp.org>
47101         getloadavg: Update documentation.
47102         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
47104 2010-11-27  Bruno Haible  <bruno@clisp.org>
47106         sys_socket: Fix test whether the functions are declared.
47107         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
47108         not <sys/select.h>.
47110 2010-11-27  Bruno Haible  <bruno@clisp.org>
47112         getpass: Make sure to get system declaration on some platforms.
47113         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
47114         gl_USE_SYSTEM_EXTENSIONS.
47115         * modules/getpass (Depends-on): Add extensions.
47117 2010-11-26  Bruno Haible  <bruno@clisp.org>
47119         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
47120         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
47121         'iconv' module is present.
47122         (ICONV_CONST): New macro.
47123         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
47124         ICONV_CONST.
47125         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
47126         set ICONV_CONST.
47127         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
47128         here.
47129         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
47130         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
47131         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
47132         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
47133         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
47134         present.
47136 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47138         ftoastr: comment fix
47139         * lib/ftoastr.c: "little" -> "little or no" in comment
47141 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
47143         stdint: port to GCC 4.3 + OSX + Octave
47144         On this platform, stdint.h is buggy and defines int64_t to long
47145         long int.  The replacement defined it to long int, causing
47146         problems with C++ style name mangling.  Instead, trust the system
47147         definition if INT64_MAX is defined, and likewise for the unsigned
47148         variant.   Problem reported by Jarno Rajahalme in
47149         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
47150         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
47151         and don't mess with int64_t and INT64_MAX in this case.
47152         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
47154 2010-11-24  Bruno Haible  <bruno@clisp.org>
47156         doc: Corrections regarding MacOS X 10.4 and 10.5.
47157         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
47158         MacOS X.
47159         Reported by Simon Josefsson.
47161 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
47163         Uninstall ".bin" files installed by relocwrapper.
47164         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
47165         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
47166         unless it is already there.
47168 2010-11-21  Bruno Haible  <bruno@clisp.org>
47170         Update for NetBSD 5.0.
47171         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47172         NetBSD; the test fails on NetBSD 5.0.
47173         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47174         about NetBSD.
47176 2010-11-21  Bruno Haible  <bruno@clisp.org>
47178         Update for HP-UX 11.23 and HP-UX 11.31.
47179         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
47180         HP-UX.
47182 2010-11-21  Bruno Haible  <bruno@clisp.org>
47184         Update for MacOS X 10.5.
47185         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47186         MacOS X; the test fails on MacOS X 10.5.8.
47187         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47188         about MacOS X.
47190 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
47192         bootstrap: add bootstrap_sync option.
47193         See discussion at
47194         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
47195         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
47196         * build-aux/bootstrap: Accept --bootstrap-sync to update
47197         bootstrap if it is not identical to the local gnulib's
47198         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
47199         enable this by default.  Accept --no-bootstrap-sync to disable
47200         it.
47202 2010-11-20  Bruno Haible  <bruno@clisp.org>
47204         Ensure that <features.h> is included before __GLIBC__ is tested.
47205         * lib/printf-parse.h: Include <features.h>.
47206         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
47207         Reported by Mike Frysinger <vapier@gentoo.org>.
47209         Ensure that <features.h> is included before __GLIBC__ is tested.
47210         * lib/wchar.in.h: Include <features.h>.
47211         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
47212         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
47213         Reported by Mike Frysinger <vapier@gentoo.org>.
47215         Ensure that <features.h> is included before __GLIBC__ is tested.
47216         * lib/arpa_inet.in.h: Include <features.h>.
47217         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
47218         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
47219         Reported by Mike Frysinger <vapier@gentoo.org>.
47221         Ensure that <features.h> is included before __GLIBC__ is tested.
47222         * build-aux/link-warning.h: Include <features.h>.
47223         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
47224         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
47225         Reported by Mike Frysinger <vapier@gentoo.org>.
47227         Ensure that <features.h> is included before __GLIBC__ is tested.
47228         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
47229         Reported by Mike Frysinger <vapier@gentoo.org>.
47231 2010-11-20  Bruno Haible  <bruno@clisp.org>
47233         memmem: Fix autoconf test.
47234         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
47236 2010-11-20  Bruno Haible  <bruno@clisp.org>
47238         Port to uClibc.
47239         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
47240         * lib/fcntl.in.h: Likewise.
47241         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
47242         * lib/mbrtowc.c (mbrtowc): Likewise.
47243         * lib/relocatable.c (find_shared_library_fullname): Likewise.
47244         * lib/strerror_r.c: Likewise.
47245         * lib/unistr/u8-strnlen.c: Likewise.
47246         * lib/vasnprintf.c (decimal_point_char): Likewise.
47247         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
47248         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47249         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47250         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47251         * tests/test-sigaction.c (handler, main): Likewise.
47252         * lib/freading.h: Treat uClibc like a non-glibc platform.
47253         * lib/freading.c: Likewise.
47254         * lib/gettext.h: Likewise.
47255         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
47256         Likewise.
47257         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
47258         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47259         * lib/propername.c (proper_name_utf8): Likewise.
47260         * lib/spawn.in.h: Likewise.
47261         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
47262         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
47263         mem_cd_iconveh_internal): Likewise.
47264         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
47265         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47266         strstr, strcasestr): Likewise.
47267         * lib/unicodeio.c (unicode_to_mb): Likewise.
47268         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
47269         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
47270         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
47271         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
47272         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
47273         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
47274         * lib/unistr/u8-stpncpy.c: Likewise.
47275         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47276         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
47277         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47278         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47279         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47280         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
47281         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
47282         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
47283         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47284         Likewise.
47285         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47286         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47287         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47289         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47290         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47291         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47292         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47293         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47294         * tests/test-striconveha.c (main): Likewise.
47295         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47296         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47297         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47298         * doc/posix-functions/getline.texi: Likewise.
47299         Reported by Mike Frysinger <vapier@gentoo.org>.
47301 2010-11-20  Bruno Haible  <bruno@clisp.org>
47303         nproc: Fix condition.
47304         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47305         HAVE_PTHREAD_AFFINITY_NP.
47307 2010-11-20  Bruno Haible  <bruno@clisp.org>
47309         Fix a comment.
47310         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47312 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47314         ftoastr: don't assume snprintf
47315         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47316         Implement a subset of snprintf here, by using sprintf safely.
47317         * modules/ftoastr (Depends-on): Remove snprintf.
47319 2010-11-19  Jim Meyering  <meyering@redhat.com>
47321         test-rename.h: fix compilation failure
47322         * tests/test-rename.h (test_rename): Add omitted "}".
47324 2010-11-17  Jim Meyering  <meyering@redhat.com>
47326         maint.mk: add a URL discussing the no-@acronym policy
47327         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47329 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47331         ftoastr: depend on snprintf, improve comments
47332         * lib/ftoastr.c: Also mention Loitsch's draft.
47333         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47334         needed in the current implementation, but it might simplify
47335         speeding up the code later.
47336         * modules/ftoastr: Depend on snprintf; this improves portability.
47337         Suggested by Bruno Haible in the same email.
47339         ftoastr: port to hosts lacking strtof and strtold
47340         Problem reported by Bruno Haible in
47341         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47342         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47343         environment and strtold (and presumably strtof) are not available.
47344         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47345         (configure.ac): Require gl_C99_STRTOLD.
47347 2010-11-18  Bruno Haible  <bruno@clisp.org>
47349         c-strtold: Avoid link error on AIX 7.
47350         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47351         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47352         (gl_C_STRTOLD): Test whether strtold_l exists.
47353         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47355 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47357         intprops: new macro INT_BITS_STRLEN_BOUND
47358         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47359         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47360         not exposed.  Also, it uses a slightly tighter bound than before;
47361         though this makes no practical difference, we might as well be as
47362         tight as we easily can.
47364         ftoastr: new module, for lossless conversion of floats to short strings
47365         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47366         * modules/ftoastr: New files.
47368 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47370         bootstrap: port to Solaris sed
47371         * build-aux/bootstrap (get_version): Port to Solaris sed.
47372         See Ralf Wildenhues's note in
47373         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47375 2010-11-14  Jim Meyering  <meyering@redhat.com>
47377         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47378         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47379         and move definition closer to sole use.
47381 2010-11-13  Jim Meyering  <meyering@redhat.com>
47383         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47384         Now we require at least autoconf-2.59, which means the work-around
47385         is no longer needed.
47386         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47387         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47388         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47389         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47390         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47392 2010-11-13  Bruno Haible  <bruno@clisp.org>
47394         rename, renameat: Avoid test failures at NFS mounted locations.
47395         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47396         functions.
47397         (test_rename): Use assert_nonexistent.
47398         * tests/test-rename.c: Include <dirent.h>.
47399         * tests/test-renameat.c: Likewise.
47400         Reported by Gary V. Vaughan <gary@gnu.org>.
47402         rename, renameat: Document Linux bug with NFS
47403         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47404         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47405         * doc/posix-functions/renameat.texi: Likewise.
47406         Suggested by Eric Blake.
47408 2010-11-13  Bruno Haible  <bruno@clisp.org>
47410         rename test: Add comments.
47411         * tests/test-rename.h (test_rename): Add structure and comments.
47413 2010-11-13  Eric Blake  <eblake@redhat.com>
47415         maintainer-makefile: cover a few more files
47416         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47417         scripts generated within C files, for libvirt.
47419 2010-11-13  Bruno Haible  <bruno@clisp.org>
47421         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47422         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47423         character, return the number of bytes that belong together, not always
47424         1.
47425         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47426         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47427         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47428         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47429         number of bytes of an invalid character.
47430         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47431         (main): Invoke it.
47432         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47433         results.
47434         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47435         malformed byte sequences.
47436         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47437         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47438         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47439         Reported by Ben Pfaff and Paolo Bonzini.
47441 2010-11-13  Bruno Haible  <bruno@clisp.org>
47443         openat: Work around glibc bug with fchownat() and empty file names.
47444         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47445         (gl_FUNC_FCHOWNAT): Invoke it.
47446         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47447         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47448         Reported by Gary V. Vaughan <gary@gnu.org>.
47450 2010-11-13  Bruno Haible  <bruno@clisp.org>
47452         openat: Ensure autoconf macro ordering.
47453         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47454         gl_USE_SYSTEM_EXTENSIONS.
47455         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47457 2010-11-13  Bruno Haible  <bruno@clisp.org>
47459         Update comments.
47460         * lib/unistr/u8-check.c: Update file name in comments.
47461         * lib/unistr/u8-mblen.c: Likewise.
47462         * lib/unistr/u8-prev.c: Likewise.
47463         * lib/unistr/u8-strmblen.c: Likewise.
47464         * lib/unistr/u8-strmbtouc.c: Likewise.
47466 2010-11-13  Jim Meyering  <meyering@redhat.com>
47468         tests: avoid test failure on Solaris 10 due to lack of PATH export
47469         * tests/test-update-copyright.sh: Don't forget to export PATH.
47471         init.sh: ensure that IFS is defined, just in case...
47472         * tests/init.sh (setup_): Ensure that IFS is defined,
47473         so that saving and restoring it works as expected.  This
47474         appears to be useful at least for an old version of dash
47475         from a long time ago (RH 6).  See here for details:
47476         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47478         maint.mk: tighten "test a == b" check
47479         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47480         test to files that contain something like #!/bin/sh.
47481         Without this, coreutils would get two false positives in
47482         the comments of C source files.
47484 2010-11-12  Eric Blake  <eblake@redhat.com>
47486         bootstrap: fix typo in previous attempt
47487         * build-aux/bootstrap (buildreq): Correct the grouping.
47488         Reported by Paul Eggert.
47490         maintainer-makefile: prohibit test x == x
47491         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47492         Based on a report by Matthias Bolte.
47494         bootstrap: allow FreeBSD gzip
47495         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47496         which has no '.' and goes to stderr.
47497         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47498         Reported by Matthias Bolte.
47500         maintainer-makefile: check for i18n setup
47501         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47502         will likely work.
47504 2010-11-12  Bruno Haible  <bruno@clisp.org>
47506         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47507         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47508         * lib/nanosleep.c (nanosleep): Likewise.
47510 2010-11-11  Bruno Haible  <bruno@clisp.org>
47512         fcntl-h: Fix for use of C++ on glibc systems.
47513         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47514         also on glibc systems in C++ mode.
47515         Reported by Gary V. Vaughan <gary@gnu.org>.
47517 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47519         mknod: avoid false failure with dash
47520         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47522 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47524         unlink: Fix "is it should" typo in diagnostic.
47525         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47526         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47528 2010-11-11  Bruno Haible  <bruno@clisp.org>
47530         Tests for module 'strerror_r-posix'.
47531         * modules/strerror_r-posix-tests: New file.
47532         * tests/test-strerror_r.c: New file.
47533         * tests/test-string-c++.cc: Check the signature of strerror_r.
47535         New module 'strerror_r-posix'.
47536         * lib/string.in.h (strerror_r): New declaration.
47537         * lib/strerror_r.c: New file.
47538         * m4/strerror_r.m4: New file.
47539         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47540         of strerror_r.
47541         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47542         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47543         * modules/strerror_r-posix: New file.
47544         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
47545         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47546         * doc/posix-functions/strerror_r.texi: Mention the new module and the
47547         portability problems.
47549 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
47551         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
47552         line is also considered for output. Quoted function name in shell
47553         command, so temporary files for functions like MyClass::operator()
47554         are removed correctly without errors.
47556 2010-11-09  Bruno Haible  <bruno@clisp.org>
47558         * doc/posix-functions/strerror.texi: List more failing platforms.
47560         * doc/posix-functions/strerror.texi: Add a comment.
47562 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47564         fdopendir: fix bug on MacOS X when low on file descriptors
47566         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
47567         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
47568         All callers changed.
47569         (fdopendir): Invoke save_cwd at the top level, not after using
47570         multiple dup() calls to use up file descriptors.  Then retry
47571         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
47572         less than the maximum number of open file descriptors, because
47573         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
47574         on Mac OS X 10.6.4 for tar 1.24
47575         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
47576         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
47577         and for tar 1.25
47578         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
47580 2010-11-07  Bruno Haible  <bruno@clisp.org>
47582         vasnprintf: Support I flag on glibc systems.
47583         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
47584         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
47585         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
47586         snprintf function.
47587         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
47588         glibc systems.
47589         * tests/test-vasnprintf-posix3.c: New file.
47590         * modules/vasnprintf-posix-tests (Files): Add it.
47591         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
47593 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47595         [html] Fix copy/paste bug: Use unique name for compiler warnings.
47596         * MODULES.html.sh: For compiler warnings, use name
47597         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
47599 2010-11-05  Eric Blake  <eblake@redhat.com>
47601         ceil, floor: avoid spurious failure with icc
47602         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
47603         [denormals-as-zero] when optimizing without -mieee-fp option.
47604         * tests/test-floorf2.c (floorf_reference): Likewise.
47605         * tests/test-ceilf1.c (dummy): New function.
47606         (main): Use it to outsmart icc's optimization.
47607         * tests/test-floorf1.c (dummy, main): Likewise.
47609         tests: require working signbit
47610         * modules/ceilf-tests (Depends-on): Add signbit.
47611         * modules/ceill-tests (Depends-on): Likewise.
47612         * modules/floorf-tests (Depends-on): Likewise.
47613         * modules/floorl-tests (Depends-on): Likewise.
47614         * modules/round-tests (Depends-on): Likewise.
47615         * modules/roundf-tests (Depends-on): Likewise.
47616         * modules/roundl-tests (Depends-on): Likewise.
47617         * modules/trunc-tests (Depends-on): Likewise.
47618         * modules/truncf-tests (Depends-on): Likewise.
47619         * modules/truncl-tests (Depends-on): Likewise.
47621         strtod: work around icc bug
47622         * lib/strtod.c (minus_zero): Define to working value.
47623         (strtod): Use it to avoid icc bug.
47625         copysign: enhance tests
47626         * modules/copysign-tests (Files): Add minus-zero.h.
47627         * tests/test-copysign.c (main): Also test zeros.
47629 2010-11-04  Eric Blake  <eblake@redhat.com>
47631         ceil, floor, round, trunc: enhance tests of -0
47632         * tests/test-ceilf1.c (main): Ensure correct sign of result.
47633         * tests/test-ceill.c (main): Likewise.
47634         * tests/test-floorf1.c (main): Likewise.
47635         * tests/test-floorl.c (main): Likewise.
47636         * tests/test-round1.c (main): Likewise.
47637         * tests/test-roundf1.c (main): Likewise.
47638         * tests/test-roundl.c (main): Likewise.
47639         * tests/test-trunc1.c (main): Likewise.
47640         * tests/test-truncf1.c (main): Likewise.
47641         * tests/test-truncl.c (main): Likewise.
47643 2010-11-04  Eric Blake  <eblake@redhat.com>
47645         frexp, tests: work around ICC bug with -zero
47646         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
47647         works with more compilers.
47648         * tests/minus-zero.h: New file.
47649         * modules/ceilf-tests (Files): Include it.
47650         * modules/ceill-tests (Files): Likewise.
47651         * modules/floorf-tests (Files): Likewise.
47652         * modules/floorl-tests (Files): Likewise.
47653         * modules/frexp-nolibm-tests (Files): Likewise.
47654         * modules/frexp-tests (Files): Likewise.
47655         * modules/frexpl-nolibm-tests (Files): Likewise.
47656         * modules/frexpl-tests (Files): Likewise.
47657         * modules/isnan-tests (Files): Likewise.
47658         * modules/isnand-nolibm-tests (Files): Likewise.
47659         * modules/isnand-tests (Files): Likewise.
47660         * modules/isnanf-nolibm-tests (Files): Likewise.
47661         * modules/isnanf-tests (Files): Likewise.
47662         * modules/isnanl-nolibm-tests (Files): Likewise.
47663         * modules/isnanl-tests (Files): Likewise.
47664         * modules/round-tests (Files): Likewise.
47665         * modules/roundf-tests (Files): Likewise.
47666         * modules/roundl-tests (Files): Likewise.
47667         * modules/ldexpl-tests (Files): Likewise.
47668         * modules/signbit-tests (Files): Likewise.
47669         * modules/snprintf-posix-tests (Files): Likewise.
47670         * modules/sprintf-posix-tests (Files): Likewise.
47671         * modules/strtod-tests (Files): Likewise.
47672         * modules/trunc-tests (Files): Likewise.
47673         * modules/truncf-tests (Files): Likewise.
47674         * modules/truncl-tests (Files): Likewise.
47675         * modules/vsnprintf-posix-tests (Files): Likewise.
47676         * modules/vsprintf-posix-tests (Files): Likewise.
47677         * modules/vasnprintf-posix-tests (Files): Likewise.
47678         * modules/vasprintf-posix-tests (Files): Likewise.
47679         * tests/test-ceilf1.c (main): Use it.
47680         * tests/test-ceill.c (main): Likewise.
47681         * tests/test-floorf1.c (main): Likewise.
47682         * tests/test-floorl.c (main): Likewise.
47683         * tests/test-frexp.c (main): Likewise.
47684         * tests/test-frexpl.c (main): Likewise.
47685         * tests/test-isnan.c (main): Likewise.
47686         * tests/test-isnand.h (main): Likewise.
47687         * tests/test-isnanf.h (main): Likewise.
47688         * tests/test-isnanl.h (main): Likewise.
47689         * tests/test-ldexpl.c (main): Likewise.
47690         * tests/test-round.c (main): Likewise.
47691         * tests/test-roundf.c (main): Likewise.
47692         * tests/test-roundl.c (main): Likewise.
47693         * tests/test-signbit.c (test_signbitf, test_signbitd)
47694         (test_signbitl): Likewise.
47695         * tests/test-snprintf-posix.h (test_function): Likewise.
47696         * tests/test-sprintf-posix.h (test_function): Likewise.
47697         * tests/test-strtod.c (main): Likewise.
47698         * tests/test-trunc1.c (main): Likewise.
47699         * tests/test-truncf1.c (main): Likewise.
47700         * tests/test-truncl.c (main): Likewise.
47702         isnanl: work around icc bug
47703         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
47705 2010-11-03  Eric Blake  <eblake@redhat.com>
47707         tests: fix compiler warnings
47708         * tests/test-getopt.h (test_getopt): Fix condition.
47709         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47710         * tests/test-pipe2.c (main): Likewise.
47711         * tests/test-quotearg-simple.c (main): Avoid icc warning.
47713         utimens: fix broken m4 test
47714         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
47716 2010-10-28  Bruno Haible  <bruno@clisp.org>
47718         posix_spawn*, getdtablesize: Relax license.
47719         * modules/posix_spawn (License): Change to LGPLv2+.
47720         * modules/posix_spawnp (License): Likewise.
47721         * modules/posix_spawn-internal (License): Likewise.
47722         * modules/posix_spawnattr_init (License): Likewise.
47723         * modules/posix_spawnattr_getflags (License): Likewise.
47724         * modules/posix_spawnattr_setflags (License): Likewise.
47725         * modules/posix_spawnattr_getpgroup (License): Likewise.
47726         * modules/posix_spawnattr_setpgroup (License): Likewise.
47727         * modules/posix_spawnattr_getschedparam (License): Likewise.
47728         * modules/posix_spawnattr_setschedparam (License): Likewise.
47729         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
47730         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
47731         * modules/posix_spawnattr_getsigdefault (License): Likewise.
47732         * modules/posix_spawnattr_setsigdefault (License): Likewise.
47733         * modules/posix_spawnattr_getsigmask (License): Likewise.
47734         * modules/posix_spawnattr_setsigmask (License): Likewise.
47735         * modules/posix_spawnattr_destroy (License): Likewise.
47736         * modules/posix_spawn_file_actions_init (License): Likewise.
47737         * modules/posix_spawn_file_actions_addclose (License): Likewise.
47738         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
47739         * modules/posix_spawn_file_actions_addopen (License): Likewise.
47740         * modules/posix_spawn_file_actions_destroy (License): Likewise.
47741         * modules/getdtablesize (License): Likewise.
47742         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
47744 2010-10-26  Bruno Haible  <bruno@clisp.org>
47746         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
47747         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
47748         Cygwin and mingw.
47749         Suggested by Eric Blake.
47751 2010-10-26  Bruno Haible  <bruno@clisp.org>
47753         stdio: Work around compilation error due to renameat() on Solaris 10.
47754         * lib/stdio.in.h: Include <unistd.h> on Solaris.
47755         * lib/renameat.c: Don't include <unistd.h> here.
47756         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
47757         Reported by Paul Eggert and Eric Blake.
47759 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47761         renameat: port to Solaris 10, which declares renameat in unistd.h
47763         * lib/renameat.c: Include unistd.h before stdio.h, because
47764         Solaris 10 declares renameat in unistd.h.  Problem encountered
47765         when building GNU tar 1.24 on Solaris 10.
47767 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47769         fdopendir: fix C89 compilation
47770         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
47771         compilers.
47773 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
47775         inttostr: simplify by removing unnecessary redundancy
47776         * lib/anytostr.c: Don't include verify.h.
47777         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
47778         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
47779         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
47780         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
47781         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
47782         Likewise.
47783         * modules/inttostr (Depends-on): Remove 'verify'.
47785 2010-10-23  Bruno Haible  <bruno@clisp.org>
47787         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
47788         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
47789         Reported by Eric Blake.
47791 2010-10-23  Bruno Haible  <bruno@clisp.org>
47793         Tests: Fix LOCALE_JA on MirBSD 10.
47794         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
47795         to an UTF-8 locale.
47796         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
47797         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47798         Reported by Eric Blake.
47800 2010-10-21  Bruno Haible  <bruno@clisp.org>
47802         nl_langinfo test: Avoid test failure on NetBSD 5.
47803         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
47804         Reported by Eric Blake.
47806 2010-10-21  Eric Blake  <eblake@redhat.com>
47808         c-stack: work around libsigsegv 2.8 bug
47809         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
47810         overflow on at least PowerPC64.
47812 2010-10-17  Bruno Haible  <bruno@clisp.org>
47814         userspec: Drop redundant file.
47815         * modules/userspec (Files): Remove lib/inttostr.h.
47817 2010-10-17  Bruno Haible  <bruno@clisp.org>
47819         nl_langinfo tests: Silence some warnings.
47820         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
47821         Reported by Jim Meyering.
47823 2010-10-17  Bruno Haible  <bruno@clisp.org>
47825         Make use of GCC's attribute __alloc_size__.
47826         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
47827         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
47828         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
47829         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
47830         __alloc_size__.
47831         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47832         Suggested by Jim Meyering.
47834 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
47836         bootstrap: anchor .gitignore entries.
47837         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
47838         with...
47839         (insert_vc_ignore): ... this new function, which prepends `/' to
47840         all .gitignore entries before passing them to
47841         insert_sorted_if_absent.
47843 2010-10-16  Bruno Haible  <bruno@clisp.org>
47845         nextafter: Fix configure check.
47846         * modules/nextafter (configure.ac): Correct expected prototype.
47848 2010-10-16  Bruno Haible  <bruno@clisp.org>
47850         termios: Update documentation.
47851         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
47853 2010-10-16  Bruno Haible  <bruno@clisp.org>
47855         tests: Make them compile with TinyCC.
47856         * tests/test-strstr.c (main): Remove parentheses around array
47857         initializer.
47859 2010-10-15  Eric Blake  <eblake@redhat.com>
47861         ignore-value: make header idempotent
47862         * lib/ignore-value.h: Add double-inclusion guards.
47863         Reported by Stefan Berger.
47865 2010-10-15  Jim Meyering  <meyering@redhat.com>
47867         GNUmakefile: handle "stable" target, not "major"
47868         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
47869         lists in maint.mk and announce-gen.  Without this, "make stable"
47870         would fail to ensure that $(VERSION) is up to date.
47872 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
47874         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
47875         & co.
47877 2010-10-14  Bruno Haible  <bruno@clisp.org>
47879         vasnprintf: Don't set errno to 0.
47880         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
47881         block that sets it to 0.
47882         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
47884 2010-10-14  Bruno Haible  <bruno@clisp.org>
47886         socketlib: Fix.
47887         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
47888         gl_PREREQ_SYS_H_WINSOCK2.
47889         Reported by Ian Beckwith <ianb@erislabs.net>.
47891 2010-10-13  Jim Meyering  <meyering@redhat.com>
47893         test-select-stdin.c: avoid warn_unused_result warnings
47894         * tests/test-select-stdin.c: Include "macros.h".
47895         ASSERT that read and fflush succeed.
47897 2010-10-13  Jim Meyering  <meyering@redhat.com>
47899         git-version-gen: do require git-VC'd files in cwd
47900         * build-aux/git-version-gen: Reject a git version string
47901         if there are no commits associated with the current directory.
47902         This avoids an unlikely false-positive (unrelated dir whose parent
47903         repository also contains a tag matching v*), as pointed out
47904         by Giuseppe Scrivano in
47905         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
47907 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47909         argv-iter: omit nonconforming declaration
47910         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
47911         enum arg_iter_err declaration, which doesn't conform to C99.
47912         Solaris 10 cc warns about this.
47914 2010-10-13  Eric Blake  <eblake@redhat.com>
47916         termios: fix compilation on mingw
47917         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
47918         (gl_TERMIOS_H): Adjust it on mingw.
47919         * modules/termios (Makefile.am): Substitute new key.
47920         * lib/termios.in.h (includes): Make include_next conditional.
47921         * doc/posix-headers/termios.texi (termios.h): Update
47922         documentation.
47923         Reported by Daniel P. Berrange.
47925 2010-10-13  Jim Meyering  <meyering@redhat.com>
47927         git-version-gen: don't require that .git/ be in the current dir
47928         * build-aux/git-version-gen: Adjust this script so that it works
47929         when run from any working directory beneath the top-level .git/-
47930         containing directory.  Inspired by a patch from Giuseppe Scrivano,
47931         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
47933         test-select: avoid warn_unused_result warnings
47934         * tests/test-select.c: Include "macros.h".
47935         ASSERT that each call to read, write, and pipe succeeds.
47936         While not technically required, also check each "close".
47937         * modules/select-tests (Files): Add tests/macros.h.
47939         test-symlinkat: remove declaration of unused local
47940         * tests/test-symlinkat.c (main): Remove unused local, "buf".
47942         test-inttostr: avoid shadowing warnings
47943         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
47944         and use malloc rather than the stack for the same reason as
47945         mentioned in the comment justifying the other allocation.
47947 2010-10-11  Bruno Haible  <bruno@clisp.org>
47949         stdlib: Allow multiple gnulib generated replacements to coexist.
47950         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
47951         Reported by Sam Steingold <sds@gnu.org>.
47953 2010-10-11  Jim Meyering  <meyering@redhat.com>
47955         fix a documentation typo
47956         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
47958 2010-10-11  Eric Blake  <eblake@redhat.com>
47960         futimens: work around Solaris 11 bug
47961         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
47962         * tests/test-futimens.h (test_futimens): Enhance, rather than
47963         weaken test.
47964         * doc/posix-functions/futimens.texi (futimens): Document the bug.
47966 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47968         Indentation.
47969         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
47970         higher-level operators more to the left.
47972 2010-10-11  Jim Meyering  <meyering@redhat.com>
47974         test-futimens: avoid unwarranted test failure on Solaris 5.11
47975         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
47976         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
47977         because it tries to dereference the NULL name argument.
47979 2010-10-11  Bruno Haible  <bruno@clisp.org>
47981         Indentation.
47982         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
47983         indentation.
47985 2010-10-11  Jim Meyering  <meyering@redhat.com>
47987         spawn.in.h: make indentation consistent with parentheses
47988         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
47989         Make indentation consistent with parentheses.
47991 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
47993         Fix mismatched parens in previous commit
47994         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
47995         parens.
47997 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47999         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
48001         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
48002         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
48003         * lib/malloca.c: Include "verify.h".
48004         (verify1): Remove, replacing with a verify call.
48005         * lib/relocwrapper.c (verify1): Likewise.
48006         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
48007         Likewise.
48008         * modules/malloca (Depends-on): Add 'verify'.
48009         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
48010         * modules/vasnprintf (Depends-on): Add 'verify'.
48011         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48012         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48013         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48014         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48015         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48016         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48017         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48019         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
48021         Formerly the style was sometimes 2*X - 1, because the C standard
48022         was wrongly thought to disallow ?: in integral constant expressions.
48023         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
48024         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
48025         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
48026         * lib/stdint.in.h (_verify_intmax_size): Likewise.
48027         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
48028         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
48029         verify that time_t cannot be floating.
48031 2010-10-08  Eric Blake  <eblake@redhat.com>
48033         time: enforce recent POSIX ruling that time_t is integral
48034         * lib/time.in.h (__time_t_must_be_integral): Detect any
48035         problematic systems, allowing the rest of gnulib to assume POSIX.
48037 2010-10-08  Jim Meyering  <meyering@redhat.com>
48039         fdopendir: fix a bug on systems lacking openat and /proc support
48040         OpenBSD 4.7 is one such system.  The most noticeable effect was
48041         failure of any application making nontrivial use of fts: rm, du,
48042         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
48043           ./rm: traversal failed: `a': Bad file descriptor
48044         Debugging that, you see that even though FD 6 was closed just
48045         prior to the opendir call in fd_clone_opendir, its resulting
48046         dir->dd_fd was 8, rather than the expected value of 6:
48048         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
48049         93                close (fd);
48050         (gdb) n
48051         94                dir = fd_clone_opendir (dupfd);
48052         (gdb) n
48053         95                saved_errno = errno;
48054         (gdb) p dir->dd_fd
48055         $11 = 8
48057         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
48058         The problem is that on OpenBSD, fd_clone_opendir has to resort
48059         to using the old-style save/restore CWD mechanism, due to its
48060         lack of openat/proc support, and *that* would steal the FD (6)
48061         that opendir was supposed to use.
48063         The fix is to squirrel away the desired FD so that save_cwd uses a
48064         different one, and then free the dest FD right before calling opendir.
48065         That guarantees opendir will use the required file descriptor.
48067         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
48069 2010-10-08  Bruno Haible  <bruno@clisp.org>
48071         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
48072         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
48074 2010-10-08  Bruno Haible  <bruno@clisp.org>
48076         nanosleep: Make replacement POSIX compliant.
48077         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
48078         is out of range.
48079         Reported by Jim Meyering.
48081 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48083         bootstrap: add hook for altering gnulib.mk, for Bison
48084         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
48085         the Bison bootstrapping process can rewrite file names and variables
48086         in this file before later parts of 'bootstrap' use the file.
48087         Bison wants to include lib/gnulib.mk from the top-level makefile,
48088         so it needs the file names in this file to be relative to the top
48089         level, not relative to lib; plus it needs variable names to be
48090         rewritten.
48091         (slurp): Use the new function.
48093         bootstrap: reformat for readability
48094         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
48096 2010-10-08  Eric Blake  <eblake@redhat.com>
48098         docs: update cygwin progress
48099         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
48100         1.7.7.
48101         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
48102         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
48103         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
48104         * doc/posix-functions/carg.texi (carg): Likewise.
48105         * doc/posix-functions/cargf.texi (cargf): Likewise.
48106         * doc/posix-functions/casin.texi (casin): Likewise.
48107         * doc/posix-functions/casinf.texi (casinf): Likewise.
48108         * doc/posix-functions/casinh.texi (casinh): Likewise.
48109         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
48110         * doc/posix-functions/catan.texi (catan): Likewise.
48111         * doc/posix-functions/catanf.texi (catanf): Likewise.
48112         * doc/posix-functions/catanh.texi (catanh): Likewise.
48113         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
48114         * doc/posix-functions/ccos.texi (ccos): Likewise.
48115         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
48116         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
48117         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
48118         * doc/posix-functions/cexp.texi (cexp): Likewise.
48119         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
48120         * doc/posix-functions/cimag.texi (cimag): Likewise.
48121         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
48122         * doc/posix-functions/clog.texi (clog): Likewise.
48123         * doc/posix-functions/clogf.texi (clogf): Likewise.
48124         * doc/posix-functions/conj.texi (conj): Likewise.
48125         * doc/posix-functions/conjf.texi (conjf): Likewise.
48126         * doc/posix-functions/cpow.texi (cpow): Likewise.
48127         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
48128         * doc/posix-functions/cproj.texi (cproj): Likewise.
48129         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
48130         * doc/posix-functions/creal.texi (creal): Likewise.
48131         * doc/posix-functions/crealf.texi (crealf): Likewise.
48132         * doc/posix-functions/csin.texi (csin): Likewise.
48133         * doc/posix-functions/csinf.texi (csinf): Likewise.
48134         * doc/posix-functions/csinh.texi (csinh): Likewise.
48135         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
48136         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
48137         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
48138         * doc/posix-functions/ctan.texi (ctan): Likewise.
48139         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
48140         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
48141         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
48142         * doc/posix-headers/complex.texi (complex.h): Likewise.
48144 2010-10-07  Jim Meyering  <meyering@redhat.com>
48146         parse-datetime: avoid compilation failure on OpenBSD 4.7
48147         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
48148         This works around a compilation failure on OpenBSD 4.7:
48149         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
48151 2010-10-07  Eric Blake  <eblake@redhat.com>
48153         docs: update cygwin progress
48154         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
48155         1.7.6.
48156         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
48157         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
48158         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
48159         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
48160         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
48161         Likewise.
48162         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
48163         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
48164         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
48165         Likewise.
48166         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
48167         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
48168         Likewise.
48169         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
48170         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
48171         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
48172         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
48173         Likewise.
48174         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
48175         Likewise.
48176         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
48178         docs: update parse-datetime history
48179         * doc/parse-datetime.texi (Authors of parse_datetime): Better
48180         documentation of this function's history and alternatives.
48182         cygwin: use more robust version check
48183         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
48184         exclude an eventual cygwin 1.9.1.
48185         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48187         (gl_FUNC_STRCASESTR): Likewise.
48188         Reported by Bruno Haible.
48190 2010-10-06  Bruno Haible  <bruno@clisp.org>
48192         string, sys_select: Avoid #including large headers unless necessary.
48193         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
48194         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
48195         OSF/1, BeOS, Haiku.
48196         Reported by Jim Meyering.
48198 2010-10-05  Eric Blake  <eblake@redhat.com>
48200         memmem, strstr, strcasestr: fix bug with long periodic needle
48201         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
48202         periodic needle having false positive.
48203         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
48204         and cygwin 1.7.7.
48205         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
48206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48207         (gl_FUNC_STRCASESTR): Likewise.
48208         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48209         * tests/test-memmem.c (main): Expose the bug.
48210         * tests/test-strcasestr.c (main): Likewise.
48211         * tests/test-strstr.c (main): Likewise.
48212         * tests/test-c-strcasestr.c (main): Likewise.
48213         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
48214         * doc/posix-functions/strstr.texi (strstr): Likewise.
48215         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48216         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
48218 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48220         parse-datetime: do some more renaming
48221         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
48222         parse_datetime, not get_date.  Mention the renaming.
48223         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
48224         in comments.
48225         * m4/bison.m4: Likewise.
48227 2010-10-05  Eric Blake  <eblake@redhat.com>
48229         parse-datetime: better name than get_date
48230         * NEWS: Reword the deprecation notice.
48231         * modules/get_date: Rename to modules/parse-datetime.
48232         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
48233         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
48234         * lib/get_date.y: Rename to lib/parse-datetime.y.
48235         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
48236         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
48237         * doc/getdate.texi: Provide fallback wrapper.
48238         * lib/getdate.h: Move guts, and wrap...
48239         * lib/parse-datetime.h: ...new file.
48240         * lib/parse-datetime.y (get_date): Rename...
48241         (parse_datetime): ...to this.
48242         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
48243         (gl_PARSE_DATETIME): ...to this.
48244         * doc/posix-functions/getdate.texi (get_date): Provide fallback
48245         documentation.
48246         * modules/getdate (Files): Provide fallback docs and header.
48247         (Notice, Depends-on): Update references.
48248         * tests/test-parse-datetime.c: Likewise.
48249         * DEPENDENCIES: Likewise.
48250         * MODULES.html.sh (Date and time <time.h>): Likewise.
48251         * doc/parse-datetime.texi (Date input formats)
48252         (Authors of parse_datetime): Likewise.
48253         * modules/parse-datetime (Files, configure.ac, Makefile.am)
48254         (Include): Likewise.
48255         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
48256         * gnulib-tool: Likewise.
48257         * m4/bison.m4 (gl_BISON): Likewise.
48258         Suggested by Bruno Haible.
48260 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48262         more ports to Solaris tr, which needs [] around ranges
48263         * gnulib-tool: Solaris tr needs [] around ranges.
48264         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
48265         * tests/test-pipe-filter-gi1.c (main): Likewise.
48266         * tests/test-pipe-filter-ii1.c (main): Likewise.
48268 2010-10-05  Eric Blake  <eblake@redhat.com>
48270         bootstrap: fix Solaris regression
48271         * build-aux/bootstrap (check_versions): Solaris tr still needs []
48272         around ranges.
48273         Reported by Pádraig Brady.
48275         bootstrap: work with pkg-config
48276         * build-aux/bootstrap (check_versions): Also transliterate - in
48277         prerequisite name.
48278         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
48279         prerequisites that were already found, to avoid confusion.
48280         Reported by Justin Clift.
48282         faccessat: remove unused wrappers
48283         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
48284         presence of these wrappers dragged in -lgen on Solaris.
48285         Reported by Clemens Brogi; fix suggested by Paul Eggert.
48287 2010-10-05  Jim Meyering  <meyering@redhat.com>
48289         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
48290         * Makefile (sc_pragma_columns): New syntax-check rule.
48292 2010-10-04  Bruno Haible  <bruno@clisp.org>
48294         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48295         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48296         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48297         Reported by Bruce Korb and Eric Blake.
48299 2010-10-04  Bruno Haible  <bruno@clisp.org>
48301         threadlib: Make option --with-libpth-prefix work.
48302         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48303         use $LIBPTH, not just -lpth.
48305 2010-10-04  Bruno Haible  <bruno@clisp.org>
48307         Avoid line length limitation from HP NonStop system header files.
48308         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48309         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48310         * lib/ctype.in.h: Likewise.
48311         * lib/dirent.in.h: Likewise.
48312         * lib/errno.in.h: Likewise.
48313         * lib/fcntl.in.h: Likewise.
48314         * lib/float.in.h: Likewise.
48315         * lib/getopt.in.h: Likewise.
48316         * lib/iconv.in.h: Likewise.
48317         * lib/inttypes.in.h: Likewise.
48318         * lib/langinfo.in.h: Likewise.
48319         * lib/locale.in.h: Likewise.
48320         * lib/math.in.h: Likewise.
48321         * lib/netdb.in.h: Likewise.
48322         * lib/netinet_in.in.h: Likewise.
48323         * lib/poll.in.h: Likewise.
48324         * lib/pthread.in.h: Likewise.
48325         * lib/pty.in.h: Likewise.
48326         * lib/sched.in.h: Likewise.
48327         * lib/se-selinux.in.h: Likewise.
48328         * lib/search.in.h: Likewise.
48329         * lib/signal.in.h: Likewise.
48330         * lib/spawn.in.h: Likewise.
48331         * lib/stdarg.in.h: Likewise.
48332         * lib/stddef.in.h: Likewise.
48333         * lib/stdint.in.h: Likewise.
48334         * lib/stdio.in.h: Likewise.
48335         * lib/stdlib.in.h: Likewise.
48336         * lib/string.in.h: Likewise.
48337         * lib/strings.in.h: Likewise.
48338         * lib/sys_file.in.h: Likewise.
48339         * lib/sys_ioctl.in.h: Likewise.
48340         * lib/sys_select.in.h: Likewise.
48341         * lib/sys_socket.in.h: Likewise.
48342         * lib/sys_stat.in.h: Likewise.
48343         * lib/sys_time.in.h: Likewise.
48344         * lib/sys_times.in.h: Likewise.
48345         * lib/sys_utsname.in.h: Likewise.
48346         * lib/sys_wait.in.h: Likewise.
48347         * lib/sysexits.in.h: Likewise.
48348         * lib/termios.in.h: Likewise.
48349         * lib/time.in.h: Likewise.
48350         * lib/unistd.in.h: Likewise.
48351         * lib/wchar.in.h: Likewise.
48352         * lib/wctype.in.h: Likewise.
48353         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48354         * modules/ctype (Makefile.am): Likewise.
48355         * modules/dirent (Makefile.am): Likewise.
48356         * modules/errno (Makefile.am): Likewise.
48357         * modules/fcntl-h (Makefile.am): Likewise.
48358         * modules/float (Makefile.am): Likewise.
48359         * modules/getopt-posix (Makefile.am): Likewise.
48360         * modules/iconv-h (Makefile.am): Likewise.
48361         * modules/inttypes (Makefile.am): Likewise.
48362         * modules/langinfo (Makefile.am): Likewise.
48363         * modules/locale (Makefile.am): Likewise.
48364         * modules/math (Makefile.am): Likewise.
48365         * modules/netdb (Makefile.am): Likewise.
48366         * modules/netinet_in (Makefile.am): Likewise.
48367         * modules/poll-h (Makefile.am): Likewise.
48368         * modules/pthread (Makefile.am): Likewise.
48369         * modules/pty (Makefile.am): Likewise.
48370         * modules/sched (Makefile.am): Likewise.
48371         * modules/search (Makefile.am): Likewise.
48372         * modules/selinux-h (Makefile.am): Likewise.
48373         * modules/signal (Makefile.am): Likewise.
48374         * modules/spawn (Makefile.am): Likewise.
48375         * modules/stdarg (Makefile.am): Likewise.
48376         * modules/stddef (Makefile.am): Likewise.
48377         * modules/stdint (Makefile.am): Likewise.
48378         * modules/stdio (Makefile.am): Likewise.
48379         * modules/stdlib (Makefile.am): Likewise.
48380         * modules/string (Makefile.am): Likewise.
48381         * modules/strings (Makefile.am): Likewise.
48382         * modules/sys_file (Makefile.am): Likewise.
48383         * modules/sys_ioctl (Makefile.am): Likewise.
48384         * modules/sys_select (Makefile.am): Likewise.
48385         * modules/sys_socket (Makefile.am): Likewise.
48386         * modules/sys_stat (Makefile.am): Likewise.
48387         * modules/sys_time (Makefile.am): Likewise.
48388         * modules/sys_times (Makefile.am): Likewise.
48389         * modules/sys_utsname (Makefile.am): Likewise.
48390         * modules/sys_wait (Makefile.am): Likewise.
48391         * modules/sysexits (Makefile.am): Likewise.
48392         * modules/termios (Makefile.am): Likewise.
48393         * modules/time (Makefile.am): Likewise.
48394         * modules/unistd (Makefile.am): Likewise.
48395         * modules/wchar (Makefile.am): Likewise.
48396         * modules/wctype (Makefile.am): Likewise.
48398 2010-10-04  Bruno Haible  <bruno@clisp.org>
48400         read-file tests: Avoid a test failure on NonStop Kernel.
48401         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48402         a regular file.
48403         Reported by Joachim Schmitz <schmitz@hp.com>.
48405 2010-10-03  Bruno Haible  <bruno@clisp.org>
48407         gnulib-tool: Fixes for --create-testdir with --libtool.
48408         * gnulib-tool (func_get_automake_snippet): Don't augment
48409         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48410         an executable.
48411         (func_create_testdir): Handle module 'alloca' like func_import.
48412         Reported by Bruce Korb <bruce.korb@gmail.com>.
48414 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48416         Avoid some lines longer than 80 characters.
48417         * lib/stdint.in.h: Break long comment lines.
48418         * lib/math.in.h: Likewise.
48419         (_GL_NUM_UINT_WORDS): New macro, for readability.
48420         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48421         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48422         * lib/stdlib.in.h: Likewise.
48423         * lib/spawn.in.h: Likewise.
48424         * lib/sys_socket.in.h: Update an URL.
48425         * lib/sys_stat.in.h: Break long line.
48427 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48429         Improve pmccabe2html.
48430         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48431         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48432         when the sources change. Remove the line in the HTML about "Used
48433         ranges" (which implied that there might be other unused ranges),
48434         rename "Resume" to "Summary" (easier to understand for more users).
48435         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48436         styles, and some unnecessary blank lines.
48438 2010-10-03  Bruno Haible  <bruno@clisp.org>
48439             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48441         acl: Add support for ACLs on NonStop Kernel.
48442         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48443         Check whether the function aclsort() exists.
48444         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48445         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48446         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48447         (acl_nontrivial [HAVE_ACLSORT]: New function.
48448         (file_has_acl): Implement for NonStop Kernel.
48449         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48450         (qset_acl): Implement for NonStop Kernel.
48451         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48452         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48453         (main): Implement for NonStop Kernel.
48454         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48455         Kernel. Handle this flavor.
48456         * tests/test-set-mode-acl.sh: Likewise.
48457         * tests/test-copy-acl.sh: Likewise.
48458         * tests/test-copy-file.sh: Likewise.
48460 2010-10-03  Bruno Haible  <bruno@clisp.org>
48462         Info about ACLs on NonStop Kernel.
48463         * doc/acl-resources.txt: Add info about NonStop Kernel.
48464         References by Joachim Schmitz <schmitz@hp.com>.
48466 2010-10-02  Bruno Haible  <bruno@clisp.org>
48468         Define missing EDQUOT on NonStop Kernel.
48469         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48470         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48471         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48472         missing.
48473         * doc/posix-headers/errno.texi: Mention the NSK bug.
48474         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48475         Reported by Joachim Schmitz <schmitz@hp.com>.
48477 2010-10-02  Bruno Haible  <bruno@clisp.org>
48479         Update doc for POSIX:2008.
48480         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48481         Update URL of POSIX specification.
48483 2010-10-02  Bruno Haible  <bruno@clisp.org>
48485         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48486         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48487         from gnulib, not from Automake.
48489 2010-10-02  Bruno Haible  <bruno@clisp.org>
48491         New module 'system-posix'.
48492         * modules/system-posix: New file.
48493         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48494         module is present.
48495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48496         GNULIB_SYSTEM_POSIX.
48497         * modules/stdlib (Depends-on): Remove sys_wait.
48498         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48499         * doc/posix-functions/system.texi: Mention the new module.
48500         * doc/posix-headers/stdlib.texi: Likewise.
48501         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48502         define test_sys_wait_macros to a no-op.
48503         Reported by Sam Steingold <sds@gnu.org>.
48505 2010-09-30  Bruno Haible  <bruno@clisp.org>
48507         More renaming from 'getdate' to 'get_date'.
48508         * doc/get_date.texi: Renamed from doc/getdate.texi.
48509         * modules/get_date (Files): Update.
48510         * MODULES.html.sh (Date and time <time.h>): Update.
48511         * DEPENDENCIES: Update.
48512         * gnulib-tool: Update comment.
48513         * m4/bison.m4 (gl_BISON): Likewise.
48514         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48516 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48518         bootstrap: support ACLOCAL_FLAGS during aclocal
48519         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48520         can add additional -I dir for third-party .m4 files.
48522 2010-09-30  Eric Blake  <eblake@redhat.com>
48524         bootstrap: use glibtoolize on MacOS
48525         * build-aux/bootstrap (check_versions): Convert libtool into
48526         libtoolize.
48527         (tool search): Move libtool check earlier, and look for
48528         glibtoolize for MacOS.
48529         (gnulib_tool_options): Auto-add --libtool when appropriate.
48530         Reported by Justin Clift.
48532         poll: fix typo that broke test on MacOS
48533         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48534         Reported by Justin Clift.
48536         getdate: rename to get_date
48537         Note: getdate.h is not renamed, to minimize client impact.
48538         * modules/getdate: Mark obsolete.  Move old contents...
48539         * modules/get_date: ...to new module name.
48540         * modules/getdate-tests: Move...
48541         * modules/get_date-tests: ...here.
48542         * m4/getdate.m4: Move...
48543         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
48544         * lib/getdate.y: Move...
48545         * lib/get_date.y: ...here.
48546         * tests/test-getdate.c: Move...
48547         * tests/test-get_date.c: ...here.
48548         * doc/posix-functions/getdate.texi (getdate): Update name.
48549         * NEWS: Mention the change.
48551 2010-09-29  Bruno Haible  <bruno@clisp.org>
48553         Separate the module 'waitpid' from the module 'sys_wait'.
48554         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
48555         present.
48556         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
48557         gl_MODULE_INDICATOR_FOR_TESTS.
48558         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
48559         * modules/sys_wait (Depends-on): Remove waitpid.
48560         (Makefile.am): Substitute GNULIB_WAITPID.
48561         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
48562         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
48563         signature only if the 'waitpid' module is present.
48564         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
48565         * NEWS: Mention the change.
48566         * modules/grantpt (Depends-on): Add waitpid.
48567         * modules/wait-process (Depends-on): Likewise.
48569 2010-09-29  Bruno Haible  <bruno@clisp.org>
48571         More tests for module 'sys_wait'.
48572         * modules/sys_wait-c++-tests: New file.
48573         * tests/test-sys_wait-c++.cc: New file.
48574         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
48575         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48577 2010-09-29  Bruno Haible  <bruno@clisp.org>
48579         New module 'waitpid'.
48580         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
48581         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
48582         Don't include <process.h>.
48583         (waitpid): Declare only, using modern idiom.
48584         * m4/waitpid.m4: New file.
48585         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
48586         * modules/waitpid: New file.
48587         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
48588         (Makefile.am): Update.
48589         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48591 2010-09-28  Bruno Haible  <bruno@clisp.org>
48593         poll: Assume ANSI C.
48594         * lib/poll.c (poll): Use an ANSI C declaration.
48596 2010-09-28  Bruno Haible  <bruno@clisp.org>
48598         poll-h: Create poll.h on all platforms.
48599         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
48600         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
48601         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
48602         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
48603         (gl_REPLACE_POLL_H): Don't set POLL_H.
48604         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
48605         * modules/poll-h (Depends-on): Add include_next.
48606         (Makefile.am): Create poll.h unconditionally. Substitute also
48607         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
48609 2010-09-28  Bruno Haible  <bruno@clisp.org>
48611         Tests for module 'poll-h'.
48612         * modules/poll-h-c++-tests: New file.
48613         * tests/test-poll-h-c++.cc: New file.
48615         Tests for module 'poll-h'.
48616         * modules/poll-h-tests: New file.
48617         * tests/test-poll-h.c: New file.
48619 2010-09-28  Bruno Haible  <bruno@clisp.org>
48621         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
48622         * modules/poll-h (Depends-on): Add 'extensions'.
48624 2010-09-28  Bruno Haible  <bruno@clisp.org>
48626         New module 'poll-h'.
48627         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
48628         (poll): Use modern idiom.
48629         * modules/poll-h: New file.
48630         * modules/poll (Files): Remove lib/poll.in.h.
48631         (Depends-on): Add poll-h.
48632         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
48633         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
48634         * m4/poll_h.m4: New file.
48635         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
48636         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
48637         and invoke gl_REPLACE_POLL_H.
48638         * lib/poll.c: Use common idiom.
48639         * tests/test-poll.c: Likewise.
48640         * doc/posix-headers/poll.texi: Mention the poll-h module.
48641         Suggested by Eric Blake.
48643 2010-09-26  Bruno Haible  <bruno@clisp.org>
48645         sys_wait: Implement WSTOPSIG.
48646         * lib/sys_wait.in.h (WSTOPSIG): New macro.
48647         Reported by Simon Josefsson.
48649 2010-09-26  Simon Josefsson  <simon@josefsson.org>
48651         stdlib, sys_wait: Avoid compilation error on mingw.
48652         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
48654 2010-09-26  Bruno Haible  <bruno@clisp.org>
48656         stdlib tests: Avoid code duplication.
48657         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
48658         * modules/sys_wait-tests (Files): Likewise.
48659         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
48660         * tests/test-stdlib.c: Include test-sys_wait.h.
48661         (main): Invoke test_sys_wait_macros.
48662         * tests/test-sys_wait.c: Include test-sys_wait.h.
48663         (main): Invoke test_sys_wait_macros.
48665 2010-09-25  Simon Josefsson  <simon@josefsson.org>
48667         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
48668         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
48669         sure Windows sockets are working before calling getaddrinfo.
48670         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
48671         * doc/gnulib.texi (Windows sockets): Fix typo.
48673 2010-09-25  Bruno Haible  <bruno@clisp.org>
48675         Tests for module 'regex-quote'.
48676         * modules/regex-quote-tests: New file.
48677         * tests/test-regex-quote.c: New file.
48679         New module 'regex-quote'.
48680         * lib/regex-quote.h: New file.
48681         * lib/regex-quote.c: New file.
48682         * modules/regex-quote: New file.
48683         Suggested by Reuben Thomas <rrt@sc3d.org>.
48685 2010-09-24  Bruno Haible  <bruno@clisp.org>
48687         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
48688         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
48690 2010-09-23  Bruno Haible  <bruno@clisp.org>
48692         setenv: Relax license.
48693         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
48694         Blake.
48695         Requested by Eric Blake.
48697 2010-09-22  Bruno Haible  <bruno@clisp.org>
48699         termios: Relax license.
48700         * modules/termios (License): Change to LGPLv2+.
48701         Requested by Eric Blake.
48703 2010-09-22  Bruno Haible  <bruno@clisp.org>
48705         threadlib: Allow the package to change the default to 'no'.
48706         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
48707         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
48708         Reported by Paul Eggert.
48710 2010-09-22  Pádraig Brady  <P@draigbrady.com>
48711             Bruno Haible  <bruno@clisp.org>
48713         Fix endless loop in mbmemcasecoll.
48714         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
48715         byte.
48716         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
48718 2010-09-22  Bruno Haible  <bruno@clisp.org>
48720         Tests for module 'memcoll'.
48721         * modules/memcoll-tests: New file.
48722         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
48724         memcoll, xmemcoll: Clarify size vs. length.
48725         * modules/memcoll.c (memcoll0): Clarify specification.
48726         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
48727         passed to collate_error.
48729 2010-09-22  Bruno Haible  <bruno@clisp.org>
48731         Tests for module 'memcasecmp'.
48732         * modules/memcasecmp-tests: New file.
48733         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
48735 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48737         * lib/pthread.in.h: Add split double-inclusion guard, and include
48738         system <pthread.h> if there is one.  Use @@-style as in other
48739         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
48740         pthread.h doesn't.
48741         (pthread_mutexattr_destroy, pthread_mutexattr_init):
48742         (pthread_mutexattr_settype, pthread_mutex_trylock):
48743         New static inline functions, if there's no system <pthread.h>.
48744         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
48745         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
48746         Approximate with mutexes if the system lacks spinlocks, as in
48747         MacOS.
48748         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
48749         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
48750         @@-style.  Check for spinlocks separately.
48751         (gl_PTHREAD_DEFAULTS): New macro.
48752         * modules/pthread: Redo to use a more typical style for in.h files.
48754 2010-09-21  Eric Blake  <eblake@redhat.com>
48756         net_if: enhance tests
48757         * tests/test-net_if.c (main): Move signature checks earlier.
48758         Print failures to stderr.
48759         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
48760         Document the bug that we do not yet fix.
48762 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48764         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
48765         about gnulib, not GSS.
48767 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48769         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
48770         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
48771         for Emacs.
48772         * build-aux/pmccabe2html: Make Makefile.am example code more
48773         cut-and-paste friendly.
48775 2010-09-21  Simon Josefsson  <simon@josefsson.org>
48777         * tests/test-net_if.c: New file.
48778         * modules/net_if-tests: New file.
48780 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48782         pthread: add pthread_spin_destroy
48783         * lib/pthread.in.h (pthread_spin_destroy): New function.
48785 2010-09-19  Bruno Haible  <bruno@clisp.org>
48787         gnulib-tool: Fix --help output.
48788         * gnulib-tool (func_usage): Fix help message.
48789         Reported by Reuben Thomas <rrt@sc3d.org>.
48791 2010-09-18  Jim Meyering  <meyering@redhat.com>
48793         maint.mk: avoid unexpanded \n in two diagnostics
48794         * top/maint.mk (sc_prohibit_always_true_header_tests):
48795         Don't use a literal \n in a halt=... assignment.  It would not be
48796         expanded, and the two \n bytes would appear in the diagnostic output
48797         rather than the desired newline.  Use halt=$$(printf ... instead.
48798         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48800 2010-09-18  Bruno Haible  <bruno@clisp.org>
48802         netinet_in: Doc tweak.
48803         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
48804         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48806 2010-09-18  Jim Meyering  <meyering@redhat.com>
48808         init.sh: correct an outdated comment
48809         * tests/init.sh (create_exe_shims_):  s/function/alias/
48811         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
48812         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
48813         a file named "*.exe" is removed between the glob expansion and the
48814         processing of that oddly named file.
48816 2010-09-17  Eric Blake  <eblake@redhat.com>
48818         mirbsd: add some more support
48819         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
48820         in BSD family.
48821         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
48822         devices as OpenBSD.
48823         * m4/host-os.m4 (mirbsd): Add MirBSD.
48825         tests: fix unportable assumption on sys/wait.h
48826         * tests/test-sys_wait.c (main): Relax test.
48827         * tests/test-stdlib.c (main): Likewise.
48829         init.sh: accommodate directory with no .exes
48830         * tests/init.sh: Accomodate directory containing only scripts.
48832         tests: avoid compiler warning
48833         * tests/test-stdlib.c (main): Use the variable.
48835         fdutimens, fdutimensat: update signature, again
48836         * lib/utimens.h (gl_futimens): Delete, and move signature...
48837         (fdutimens): ...here.
48838         (fdutimensat): Rearrange signature.
48839         (lutimensat): Rename variable for clarity.
48840         * lib/fdutimensat.c (fdutimensat): Update signature.
48841         * lib/utimens.c (fdutimens): Likewise.
48842         (gl_futimens): Delete.
48843         (utimens, lutimens): Update callers.
48844         * lib/futimens.c (futimens): Likewise.
48845         * tests/test-fdutimensat.c: Likewise.
48846         * tests/test-utimens.c: Likewise.
48847         * tests/test-futimens.h: Update comment.
48848         * NEWS: Mention this.
48849         Suggested by Paul Eggert.
48851 2010-09-17  Bruno Haible  <bruno@clisp.org>
48853         Take over the maintenance of some older macros from Autoconf.
48854         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
48855         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
48856         GNU Autoconf.
48857         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
48858         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
48860 2010-09-17  Eric Blake  <eblake@redhat.com>
48862         fdutimensat: drop atflag validation
48863         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
48864         with valid fd, to close a race scenario where futimens is
48865         unsupported and FILE was replaced by a symlink.
48866         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
48867         accordingly.
48868         Suggested by Paul Eggert.
48870 2010-09-16  Bruno Haible  <bruno@clisp.org>
48872         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
48873         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
48875 2010-09-16  Bruno Haible  <bruno@clisp.org>
48877         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
48878         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
48879         login_tty exists.
48880         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48882 2010-09-16  Bruno Haible  <bruno@clisp.org>
48884         login_tty: Make the replacement code work on BSD systems.
48885         * lib/login_tty.c: Include <sys/ioctl.h>.
48886         (login_tty): Use ioctl TIOCSCTTY when available.
48887         * modules/login_tty (Depends-on): Add sys_ioctl.
48888         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48890 2010-09-16  Bruno Haible  <bruno@clisp.org>
48892         login_tty: Stricter unit test.
48893         * modules/login_tty-tests (Depends-on): Add tcgetsid.
48894         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
48895         and tcgetsid() after login_tty.
48896         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48898 2010-09-16  Bruno Haible  <bruno@clisp.org>
48900         New module 'tcgetsid'.
48901         * lib/tcgetsid.c: New file.
48902         * m4/tcgetsid.m4: New file.
48903         * modules/tcgetsid: New file.
48904         * modules/termios (Depends-on): Add c++defs, warn-on-use.
48905         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
48906         GNULIB_TCGETSID, HAVE_TCGETSID.
48907         * lib/termios.in.h: Include <sys/types.h>.
48908         (tcgetsid): New declaration.
48909         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
48910         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
48911         * doc/posix-functions/tcgetsid.texi: Mention the new module.
48912         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
48914 2010-09-16  Bruno Haible  <bruno@clisp.org>
48916         Tests for module 'termios'.
48917         * modules/termios-c++-tests: New file.
48918         * modules/termios-tests: New file.
48919         * tests/test-termios-c++.cc: New file.
48920         * tests/test-termios.c: New file.
48922         New module 'termios'.
48923         * modules/termios: New file.
48924         * lib/termios.in.h: New file.
48925         * m4/termios_h.m4: New file.
48926         * doc/posix-headers/termios.texi: Mention the new module.
48928 2010-09-16  Eric Blake  <eblake@redhat.com>
48930         fdutimensat: add an atflag parameter
48931         * lib/fdutimensat.c (fdutimensat): Add new parameter.
48932         * lib/utimens.h (fdutimensat): Update prototype.
48933         * tests/test-fdutimensat.c: Adjust test to match.
48934         * NEWS: Document the change.
48935         Suggested by Paul Eggert.
48937 2010-09-16  Bruno Haible  <bruno@clisp.org>
48939         Fix typos in comments.
48940         * lib/striconveh.h: Fix typo in comment.
48941         * lib/login_tty.c (login_tty): Likewise.
48943 2010-09-15  Bruno Haible  <bruno@clisp.org>
48945         stdlib: clarify MirBSD WEXITSTATUS bug
48946         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
48947         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48949 2010-09-15  Eric Blake  <eblake@redhat.com>
48951         stdlib: work around MirBSD WEXITSTATUS bug
48952         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
48953         * modules/stdlib (Depends-on): Add sys_wait.
48954         * tests/test-sys_wait.c (main): Enhance test.
48955         * tests/test-stdlib.c (main): Likewise.
48956         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
48958         docs: mention MacOS issue with WEXITSTATUS(constant)
48959         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
48960         issue.
48961         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48963         strnlen: add tests
48964         * modules/strnlen-tests: New file.
48965         * tests/test-strnlen.c: Likewise.
48967 2010-09-14  Bruno Haible  <bruno@clisp.org>
48969         unistr/base: Avoid link errors when module 'libunistring' is also used.
48970         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
48971         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
48972         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
48973         Declare also when HAVE_LIBUNISTRING is set.
48974         Reported by Pádraig Brady <P@draigbrady.com>.
48976 2010-09-14  Eric Blake  <eblake@redhat.com>
48978         test-rawmemchr: make more robust
48979         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
48980         (Depends-on, configure.ac): Add needed prerequisites to use it.
48981         * modules/memchr-tests (Files, Depends-on, configure.ac):
48982         Likewise, to avoid implicit reliance on memchr module prereqs.
48983         * tests/test-memchr.c (main): Ensure proper masking.
48984         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
48985         reads.
48987         memchr: detect glibc Alpha bug
48988         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
48989         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
48990         Alpha.
48991         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
48992         * tests/test-memchr.c (main): Enhance test.
48993         Reported by Nelson H. F. Beebe.
48995 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48997         fts, getcwd, glob: audit for dirfd returning -1
48998         * lib/fts.c (opendir): Remove #define; no longer used.
48999         (opendirat): New arg PDIR_FD.  All callers changed.
49000         (fts_build, _opendir2): Use new opendirat to avoid the need for
49001         dirfd, or for checking whether dirfd returns a negative value.
49002         Don't use opendir; always use openat followed by fdopendir.
49003         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
49004         it.
49005         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
49006         returns -1 here.
49007         * modules/fts (Depends-on): Remove dirfd.
49008         * modules/getcwd (Depends-on): Likewise.
49010 2010-09-13  Eric Blake  <eblake@redhat.com>
49012         float: fix broken MirBSD header
49013         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
49014         * doc/posix-headers/float.texi (float.h): Document it.
49016 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49018         fts: use O_NOFOLLOW to avoid race condition when opening a directory
49019         * lib/fts.c (opendirat): New arg extra_flags.
49020         (__opendir2): Use it to avoid following symlinks when opening
49021         a directory, if symlinks are not supposed to be followed.  See
49022         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
49024         fdopendir: preserve argument fd before returning
49025         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
49026         (fdopendir_with_dup, fd_clone_opendir): New static functions.
49027         (fdopendir): Use them, arranging for FD to be open to the same
49028         directory that it was when it started.  (It might be temporarily
49029         closed while fdopendir is running, so this not thread- or
49030         signal-safe.)  Be careful to do the right thing even when file
49031         descriptors are scarce and dup fails with errno == EMFILE.  See
49032         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
49034 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
49036         regex: Pass the system regex if its only problem is 32-bit regoff_t.
49037         * NEWS: Document change.
49038         * m4/regex.m4: Disable test for regoff_t size.
49040 2010-09-13  Jim Meyering  <meyering@redhat.com>
49042         fts: don't operate on an invalid file descriptor after failed dup
49043         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
49044         negative file descriptor.
49046 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49048         savedir: add streamsavedir, deprecate fdsavedir
49049         * NEWS: Mention deprecation of fdsavedir.
49050         * lib/savedir.c (streamsavedir): New extern function, whose name
49051         ends in "savedir" to be consistent with the others.  This differs
49052         from savedirstream in that it doesn't close its argument.  The
49053         next version of GNU tar will use this instead of fdsavedir, to
49054         avoid some race conditions and conserve file descriptors.
49055         (savedirstream): Reimplement as a wrapper around streamsavedir.
49056         (fdsavedir): Add a comment deprecating this function.  As far as
49057         I know, only GNU tar used it, and GNU tar doesn't need it any more.
49058         * lib/savedir.h (streamsavedir): New decl.
49059         (fdsavedir): Add a comment deprecating this.
49061 2010-09-10  Bruno Haible  <bruno@clisp.org>
49063         langinfo: Fix last commit.
49064         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
49065         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
49066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49068 2010-09-10  Bruno Haible  <bruno@clisp.org>
49070         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
49071         * lib/progreloc.c (O_EXEC): Define fallback.
49073 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
49075         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
49076         * NEWS: Document recent changes to fcntl-h.
49077         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
49078         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
49079         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
49080         Similarly for O_SEARCH; this last was already true, but not documented.
49081         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
49082         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
49083         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
49084         Likewise.
49085         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
49086         is zero, not whether it is defined.
49087         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
49088         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
49089         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
49091 2010-09-10  Bruno Haible  <bruno@clisp.org>
49093         langinfo, nl_langinfo: Fix for IRIX 5.3.
49094         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
49095         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
49096         HAVE_LANGINFO_YESEXPR.
49097         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
49098         HAVE_LANGINFO_YESEXPR.
49099         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
49100         HAVE_LANGINFO_T_FMT_AMPM is 0.
49101         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
49102         HAVE_LANGINFO_YESEXPR is 0.
49103         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
49104         NOEXPR.
49105         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
49106         * doc/posix-functions/nl_langinfo.texi: Likewise.
49107         Reported by Eric Blake.
49109 2010-09-10  Bruno Haible  <bruno@clisp.org>
49111         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
49112         * doc/glibc-functions/login_tty.texi: Mention the include file problem
49113         on FreeBSD 8.0 and OpenBSD 4.6.
49114         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
49115         * m4/pty_h.m4 (gl_PTY_H): Likewise.
49116         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
49117         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
49118         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
49119         ac_includes_default.
49120         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49122 2010-09-09  Eric Blake  <eblake@redhat.com>
49124         strsignal: work around NetBSD bug
49125         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
49126         * lib/string.in.h (includes): Likewise.
49127         * doc/posix-functions/strsignal.texi (strsignal): Document the
49128         bug.
49129         Reported by Nelson H. F. Beebe.
49131         gnulib-tool: work with NetBSD /bin/sh
49132         * gnulib-tool (func_cache_var, func_cache_lookup_module)
49133         (func_get_description, func_get_comment, func_get_status)
49134         (func_get_notice, func_get_applicability, func_get_filelist)
49135         (func_get_dependencies, func_get_autoconf_early_snippet)
49136         (func_get_autoconf_snippet, func_get_automake_snippet)
49137         (func_get_include_directive, func_get_link_directive)
49138         (func_get_license, func_get_maintainer, func_import): Avoid
49139         shell syntax errors from parsing syntax extensions.
49141 2010-09-09  Bruno Haible  <bruno@clisp.org>
49143         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49144         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
49145         a reliable way to determine whether the 'alias' command works.
49147 2010-09-08  Jim Meyering  <meyering@redhat.com>
49149         init.sh: penalize a set-x-impaired shell; don't disqualify it
49150         * tests/init.sh: Too many shells corrupt application stderr when
49151         you set -x, so we can't afford to disqualify them, since at least
49152         on Irix-6.5, that would disqualify all bourne shells.
49153         Instead, use a two-pass approach.
49154         On the first pass, try to find a shell that meets the stricter
49155         condition that set -x does not corrupt stderr.
49156         If no shell meets the stricter condition, retest each candidate
49157         shell, but without that extra condition.  Finally, when
49158         VERBOSE=yes is requested and set -x might cause trouble, simply
49159         issue a warning and refrain from enabling debug output.
49161 2010-09-08  Eric Blake  <eblake@redhat.com>
49163         unsetenv: fix OpenBSD bug
49164         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
49165         * doc/posix-functions/unsetenv.texi (unsetenv): Update
49166         documentation.
49167         Reported by Jim Meyering.
49169         strtod: work around IRIX 6.5 bug
49170         * lib/strtod.c (strtod): Reparse number on shorter string if
49171         exponent parse was invalid.
49172         * tests/test-strtod.c (main): Add check for "0x1p 2".
49173         Reported by Tom G. Christensen.
49175         getopt: optimize previous patch
49176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
49177         empty variable.  Speed up awk script.
49178         Reported by Paolo Bonzini.
49180 2010-09-08  Jim Meyering  <meyering@redhat.com>
49182         test.sh: disqualify shells for which set -x corrupts stderr
49183         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
49184         and OpenBSD 4.7.  They make it so with "set -x", environment settings
49185         appear in stderr output.  For example, this command:
49186             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
49187         prints "P=1" on those two systems:
49189 2010-09-08  Bruno Haible  <bruno@clisp.org>
49191         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49192         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
49193         commands, because some shells ignore redirections when there is an
49194         error in the command lookup.
49195         Reported by Eric Blake.
49197 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
49199         * lib/regex.h: Fix a mention of `regex_compile' (should be
49200         `re_compile_pattern').
49201         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
49202         (re_set_registers): Correct name of parameter in comment.
49204         * doc/regex.texi: Add documentation for missing syntax flags.
49205         Remove commented-out documentation of defunct syntax option
49206         RE_NO_EMPTY_ALTS.
49207         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
49208         Add documentation of re_set_registers.
49209         Document trick to re-use a pattern buffer by setting fastmap manually.
49210         Update documentation of struct re_pattern_buffer per public members.
49211         Uncomment documentation of equivalence class operators and
49212         collating symbol operators, since they are now implemented,
49213         Explain leftmost-longest matching in relation to alternatives.
49214         Tidy documentation of substring matching.
49215         Remove POSIX documentation, which is done better in
49216         glibc, and refer the reader there. Keep BSD API documentation, as
49217         that is not readily available elsewhere.
49219 2010-09-07  Eric Blake  <eblake@redhat.com>
49221         getopt: handle POSIXLY_CORRECT set but not exported
49222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
49223         export state of POSIXLY_CORRECT, due to bash set -o posix.
49224         Reported by Dustin J. Mitchell.
49226 2010-09-05  Bruno Haible  <bruno@clisp.org>
49228         gnulib-tool: Highlight the changed options.
49229         * gnulib-tool (func_usage): Display the --import, --add-import,
49230         --remove-import explanations in bold font.
49232 2010-09-06  Karl Berry  <karl@gnu.org>
49234         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
49236 2010-09-05  Bruno Haible  <bruno@clisp.org>
49238         uniwidth/width: Update comment.
49239         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
49240         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
49242 2010-09-05  Bruno Haible  <bruno@clisp.org>
49244         isinf, isnan: Relax license.
49245         * modules/isinf (License): Change from GPL to LGPL, with consent from
49246         Ben Pfaff.
49247         * modules/isnan (License): Likewise.
49248         Requested by Ludovic Courtès.
49250 2010-09-04  Bruno Haible  <bruno@clisp.org>
49252         gnulib-tool: Help migration from --import to --add-import or --update.
49253         * gnulib-tool: Emit a verbose error message when --import is used
49254         without any module name.
49256 2010-09-04  Bruno Haible  <bruno@clisp.org>
49258         Update doc about gnulib-tool.
49259         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
49260         'gnulib-tool --update' in more detail.
49261         Reported by Eric Blake.
49263 2010-09-04  Bruno Haible  <bruno@clisp.org>
49265         gnulib-tool: Change --import. New options --add/remove-import.
49266         * gnulib-tool: New options --add-import, --remove-import.
49267         (func_usage): Document them.
49268         (have_associative): Define always.
49269         (func_import): In import mode, don't merge the specified settings with
49270         the cached settings. Implement remove-import mode.
49271         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
49272         Explain when to use them versus --import.
49273         (Simple update): Use --add-import instead of --import.
49274         * NEWS: Mention the change.
49276 2010-09-04  Bruno Haible  <bruno@clisp.org>
49278         * doc/gnulib-tool.texi (Initial import): Update paragraph about
49279         separate gnulib.mk.
49281 2010-09-04  Bruno Haible  <bruno@clisp.org>
49283         gnulib-tool: Don't talk about CVS any more.
49284         * gnulib-tool (func_usage, func_import): Write "version control"
49285         instead of CVS.
49287 2010-09-04  Jim Meyering  <meyering@redhat.com>
49289         maint.mk: avoid obscure sc_copyright_check failure in coreutils
49290         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
49291         false positives (whose names may be ill-chosen) when searching
49292         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49293         would cause a false-positive.
49295         avoid coreutils "make distcheck" failure
49296         Coreutils tests with an absolute build directory name that contains
49297         a space.  Not quoting this directory name caused a failure.
49298         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49299         * tests/test-vc-list-files-cvs.sh: Likewise.
49301 2010-09-04  Bruno Haible  <bruno@clisp.org>
49303         gnulib-tool: Avoid error when run in a package without Makefile.am.
49304         * gnulib-tool: When collecting the m4dirs in a package that does not
49305         have a Makefile.am, eliminate those directories that contain no
49306         gnulib-cache.m4. Fix expression that counts these directories.
49308 2010-09-04  Bruno Haible  <bruno@clisp.org>
49310         update-copyright test: Improve output when perl is missing or too old.
49311         * tests/test-update-copyright.sh: Move test of Perl version down after
49312         the test whether Perl exists. Provide an explanation relating Perl's
49313         error message to Automake's SKIP: message.
49315 2010-09-04  Bruno Haible  <bruno@clisp.org>
49317         Don't augment PATH in TESTS_ENVIRONMENT.
49318         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49319         set abs_aux_dir instead of augmenting PATH.
49320         * modules/vc-list-files-tests (Makefile.am): Likewise.
49321         * tests/test-update-copyright.sh: Augment PATH here.
49322         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49323         path_prepend_.
49324         * tests/test-vc-list-files-git.sh: Likewise.
49326 2010-09-04  Jim Meyering  <meyering@redhat.com>
49328         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49329         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49331 2010-09-04  Bruno Haible  <bruno@clisp.org>
49333         strdup: Fix compilation error in C++ mode.
49334         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49335         the macro.
49337 2010-09-04  Bruno Haible  <bruno@clisp.org>
49339         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49340         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49341         macro into a function.
49342         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49344 2010-09-04  Bruno Haible  <bruno@clisp.org>
49346         Set PATH_SEPARATOR the same way autoconf does.
49347         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49348         the value of PATH_SEPARATOR the same way autoconf-generated configure
49349         scripts do.
49350         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49351         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49353 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49355         Set PATH_SEPARATOR the same way autoconf does.
49356         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49357         the same way autoconf-generated configure scripts do.
49358         * posix-modules: Likewise.
49360 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49362         hash: fix safe_hasher const typo
49363         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49364         const; otherwise, there is a type error later.
49366 2010-09-02  Jim Meyering  <meyering@redhat.com>
49368         test-update-copyright.sh: require perl 5.8.0
49369         * tests/test-update-copyright.sh: Require 5.8.0,
49370         which Tom G. Christensen has confirmed is adequate,
49371         while 5.6.1 is not.
49373 2010-09-02  Eric Blake  <eblake@redhat.com>
49375         tests: init.sh improvements for re-exec'ing with zsh
49376         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49377         -vx through shell re-exec.
49378         Reported by Tom G. Christensen.
49380         wctype: fix typo in previous commit
49381         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49382         Reported by Ludovic Courtès.
49384 2010-09-02  Jim Meyering  <meyering@redhat.com>
49386         test-update-copyright.sh: skip test if Perl is too old
49387         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49388         Reported by Tom G. Christensen.
49390 2010-09-02  Bruno Haible  <bruno@clisp.org>
49392         wctype: Avoid compilation error on IRIX 6.5.30.
49393         * lib/wctype.in.h (iswblank): Declare with a replacement if
49394         REPLACE_ISWBLANK is set.
49395         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49396         declared. Set REPLACE_ISWBLANK.
49397         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49398         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49399         * doc/posix-headers/wctype.texi: Likewise.
49400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49402 2010-09-01  Bruno Haible  <bruno@clisp.org>
49404         New module 'socketlib'.
49405         * modules/socketlib: New file.
49406         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49407         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49408         * modules/sockets (Depends-on): Add socketlib.
49409         Suggested by Sam Steingold <sds@gnu.org>.
49411 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49413         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49415         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49416         when one needs search access to a directory but not read access.
49417         On systems where it is available, it works in some cases where
49418         O_RDONLY does not, namely on directories that are searchable but
49419         not readable, and which need only to be searchable.  If O_SEARCH
49420         is not available, fall back to the traditional method of using
49421         O_RDONLY.
49423         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49424         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49425         when opening a directory that needs only to be searchable.
49426         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49427         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49428         * lib/openat-proc.c (openat_proc_name): Likewise.
49429         * lib/openat.c (openat_needs_fchdir): Likewise.
49430         * lib/save-cwd.c (save_cwd): Likewise.
49431         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49433 2010-08-28  Bruno Haible  <bruno@clisp.org>
49435         New module 'host-cpu-c-abi'.
49436         * modules/host-cpu-c-abi: New file.
49437         * m4/host-cpu-c-abi.m4: New file, based on part of
49438         clisp/src/m4/general.m4.
49439         Requested by Sam Steingold <sds@gnu.org>.
49441 2010-08-31  Eric Blake  <eblake@redhat.com>
49442         and Jim Meyering  <meyering@redhat.com>
49444         hash: factor, and guard against misbehaving hasher function
49445         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49446         of table->hasher's return value.  Also protect against a hash value
49447         so large that adding it to table->bucket results in a NULL pointer.
49448         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49449         Use it in place of open-coded check-and-abort.
49451 2010-08-30  Bruno Haible  <bruno@clisp.org>
49453         hash: silence spurious clang warning
49454         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49455         Reported by Eric Blake.
49457 2010-08-30  Eric Blake  <eblake@redhat.com>
49459         strstr, memmem, strcasestr: avoid leaked shell message
49460         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49461         FreeBSD.
49462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49463         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49465         tests: silence clang warning
49466         * tests/test-malloca.c (do_allocation): Avoid dead store.
49468 2010-08-29  Bruno Haible  <bruno@clisp.org>
49470         gettext: Fix recent mistake.
49471         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49473 2010-08-29  Bruno Haible  <bruno@clisp.org>
49475         selinux-h: Offer a --without-selinux option.
49476         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49477         --without-selinux was specified, skip all tests and define
49478         HAVE_SELINUX_SELINUX_H to 0.
49479         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49480         set LIB_SELINUX to empty.
49481         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49482         gl_LIBSELINUX. If --without-selinux was specified, replace
49483         selinux/context.h.
49484         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49486 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49487             Bruno Haible  <bruno@clisp.org>
49489         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49490         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49491         of HAVE_REALLOC.
49492         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49493         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49494         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49495         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49497 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49498             Bruno Haible  <bruno@clisp.org>
49500         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49501         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49502         HAVE_CALLOC.
49503         * lib/xmalloc.c: Update accordingly.
49504         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49505         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49506         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49508 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49509             Bruno Haible  <bruno@clisp.org>
49511         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49512         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49513         HAVE_MALLOC.
49514         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49515         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49516         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49518 2010-08-29  Bruno Haible  <bruno@clisp.org>
49520         Update modules list.
49521         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49522         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49523         (String handling <string.h>): Add astrxfrm.
49524         (File system functions): Add readlinkat.
49526 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49528         Tests for module 'realloc-gnu'.
49529         * modules/realloc-gnu-tests: New file.
49530         * tests/test-realloc-gnu.c: New file.
49532         Tests for module 'calloc-gnu'.
49533         * modules/calloc-gnu-tests: New file.
49534         * tests/test-calloc-gnu.c: New file.
49536         Tests for module 'malloc-gnu'.
49537         * modules/malloc-gnu-tests: New file.
49538         * tests/test-malloc-gnu.c: New file.
49540 2010-08-28  Bruno Haible  <bruno@clisp.org>
49542         Rename module 'realloc' -> 'realloc-gnu'.
49543         * modules/realloc-gnu: New file, copied from modules/realloc.
49544         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
49545         obsolete.
49546         * modules/mgetgroups (Depends-on): Update.
49547         * doc/posix-functions/realloc.texi: Update.
49548         * NEWS: Mention the change.
49550         Rename module 'calloc' -> 'calloc-gnu'.
49551         * modules/calloc-gnu: New file, copied from modules/calloc.
49552         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
49553         obsolete.
49554         * doc/posix-functions/calloc.texi: Update.
49555         * NEWS: Mention the change.
49557         Rename module 'malloc' -> 'malloc-gnu'.
49558         * modules/malloc-gnu: New file, copied from modules/malloc.
49559         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
49560         obsolete.
49561         * modules/argp (Depends-on): Update.
49562         * modules/regex (Depends-on): Update.
49563         * doc/posix-functions/malloc.texi: Update.
49564         * NEWS: Mention the change.
49566 2010-08-28  Eric Blake  <eblake@redhat.com>
49568         pread, pwrite: add missing dependency
49569         * modules/pread (Depends-on): Add extensions.
49570         * modules/pwrite (Depends-on): Likewise.
49572 2010-08-28  Bruno Haible  <bruno@clisp.org>
49574         unistr/u*-strchr: Fix tests dependencies.
49575         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
49576         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
49577         Reported by Ian Beckwith <ianb@erislabs.net>.
49579 2010-08-28  Bruno Haible  <bruno@clisp.org>
49581         read-file: Don't occupy too much unused memory.
49582         * lib/read-file.c (fread_file): Shrink the buffer at the end.
49584 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
49585             Eric Blake  <eblake@redhat.com>
49586             Bruno Haible  <bruno@clisp.org>
49588         read-file: Avoid memory reallocations with regular files.
49589         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
49590         (fread_file): With regular files, use the remaining length as the
49591         initial buffer size.  Check against overflow.
49592         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
49593         sys_stat.
49595 2010-08-28  Bruno Haible  <bruno@clisp.org>
49597         ftello: Relax license.
49598         * modules/ftello (License): Relax to LGPLv2+.
49599         Reported by Eric Blake.
49601 2010-08-28  Bruno Haible  <bruno@clisp.org>
49603         Avoid relocwrapper link errors due to gnulib replacement functions.
49604         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
49605         function.
49606         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49608 2010-08-28  Bruno Haible  <bruno@clisp.org>
49610         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
49611         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
49612         defined.
49613         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
49614         Suggested by Eric Blake.
49616 2010-08-28  Bruno Haible  <bruno@clisp.org>
49618         sys_socket, netdb: Ensure socklen_t gets defined.
49619         * modules/sys_socket (Depends-on): Add socklen.
49620         * modules/netdb (Depends-on): Likewise.
49621         * modules/getaddrinfo (Depends-on): Remove socklen.
49622         * modules/getsockopt (Depends-on): Likewise.
49623         * modules/setsockopt (Depends-on): Likewise.
49624         * tests/test-sys_socket.c: Check that socklen_t is defined.
49625         * tests/test-netdb.c: Likewise.
49626         * m4/socklen.m4: Update comments.
49627         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49629 2010-08-27  Eric Blake  <eblake@redhat.com>
49631         login_tty: add missing dependency
49632         * modules/login_tty (Depends-on): Add pty.
49634 2010-08-26  Eric Blake  <eblake@redhat.com>
49636         lib-symbol-versions: fix m4 quoting
49637         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
49638         format for AC_LINK_IFELSE.
49640         glob: fix compile test
49641         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
49643         btowc: fix missing file
49644         * modules/btowc (Files): Also ship locale-fr.m4.
49646         lseek: fix link test
49647         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
49648         AC_LINK_IFELSE.
49650         include_next: silence autoconf 2.68 warning
49651         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
49652         AC_COMPILE_IFELSE as special.
49653         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
49654         autoconf < 2.68.
49656         acl: fix compilation test
49657         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
49658         AC_COMPILE_IFELSE.
49660 2010-08-26  Bruno Haible  <bruno@clisp.org>
49662         Modernize AC_TRY_RUN invocations.
49663         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
49664         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
49665         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
49666         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
49667         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
49668         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
49669         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
49670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49671         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49672         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49673         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
49674         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49675         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
49676         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49677         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
49678         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
49679         gl_MBRLEN_NUL_RETVAL): Likewise.
49680         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49681         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49682         Likewise.
49683         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49684         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
49685         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
49686         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
49687         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
49688         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
49689         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
49690         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49691         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
49692         Likewise.
49693         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49694         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
49695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49696         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49698         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
49699         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
49700         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
49701         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49704 2010-08-26  Bruno Haible  <bruno@clisp.org>
49706         Modernize AC_TRY_LINK invocations.
49707         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
49708         AC_TRY_LINK.
49709         * m4/argp.m4 (gl_ARGP): Likewise.
49710         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49711         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49712         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49713         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49714         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49715         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
49716         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49717         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49718         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49719         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49720         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49721         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
49722         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
49723         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49724         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49725         * m4/hostent.m4 (gl_HOSTENT): Likewise.
49726         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49727         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
49728         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49729         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
49730         Likewise.
49731         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
49732         Likewise.
49733         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
49734         Likewise.
49735         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49736         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
49737         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
49738         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49739         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49740         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
49741         * m4/servent.m4 (gl_SERVENT): Likewise.
49742         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49743         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49744         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49745         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49746         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49747         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49748         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49749         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49750         * modules/tsearch-tests (configure.ac): Likewise.
49752 2010-08-26  Bruno Haible  <bruno@clisp.org>
49754         Modernize AC_TRY_COMPILE invocations.
49755         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
49756         AC_TRY_COMPILE.
49757         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
49758         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
49759         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49760         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49761         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49762         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49763         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49764         * m4/lock.m4 (gl_LOCK): Likewise.
49765         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
49766         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49767         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
49768         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
49769         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49770         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
49771         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49772         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
49773         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49774         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49775         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49776         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49777         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
49778         extraneous semicolon.
49780 2010-08-26  Jim Meyering  <meyering@redhat.com>
49782         stat-time: relax license LGPL
49783         * modules/stat-time (License): Change from GPL to LGPL,
49784         with consent from all contributors, for use in libguile.
49785         Requested by Ludovic Courtès.
49787 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
49789         poll: return immediately on POLLHUP.
49790         * lib/poll.c (poll): Always set timeout before wait_timeout is
49791         computed.
49793 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49795         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
49796         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
49797         rmdir ("dir/.//"), unlinkat.
49799 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49801         stdbool: avoid spurious failure with modern xlc
49802         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49804 2010-08-24  Bruno Haible  <bruno@clisp.org>
49806         getloadavg: simplify code
49807         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
49808         gl_have_func. Update comments.
49810 2010-08-24  Eric Blake  <eblake@redhat.com>
49812         getloadavg: don't define SVR4 on cygwin
49813         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
49814         only define SVR4 when -lkvm is required.
49815         Reported by Yaakov Selkowitz.
49817 2010-08-24  Bruno Haible  <bruno@clisp.org>
49819         priv-set: fix comment
49820         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
49822 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49824         priv-set: fix comments
49825         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
49826         to match code, as suggested by David Bartley in:
49827         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
49829 2010-08-23  Eric Blake  <eblake@redhat.com>
49831         stdbool: avoid rejecting clang
49832         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49833         * tests/test-stdbool.c: Enable more tests if using the system
49834         <stdbool.h> instead of the gnulib replacement.
49835         (main): Move xlc bug test to a runtime test for all compilers.
49836         Reported by Anders Kaseorg.
49838         argz: fix shell quoting issue
49839         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
49840         Reported by Charles Wilson.
49842 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
49843             Erik Faye-Lund <kusmabite@gmail.com>
49845         poll, select: handle ERROR_BROKEN_PIPE.
49846         * lib/poll.c (win32_compute_revents): Return POLLHUP when
49847         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49848         * lib/select.c (win32_compute_revents): Do not mark a pipe
49849         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49851 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
49853         fts: allow compilation with C++
49854         * lib/fts_.h: Specify extern "C" linkage with C++.
49856 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49858         Fix gnulib-tool sed script de-commentation for AIX sed.
49859         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
49860         sed.
49862 2010-08-17  Eric Blake  <eblake@redhat.com>
49864         test-stddef: test for (some) offsetof bugs
49865         * tests/test-stddef.c: Enhance test to ensure correct type of
49866         offsetof.
49867         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
49868         that we are not fixing at this time.
49870 2010-08-15  Bruno Haible  <bruno@clisp.org>
49872         stpncpy: Allow stpncpy to be defined as a macro.
49873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
49874         if it's already correctly declared.
49875         * lib/string.in.h (stpncpy): Undefine before redefining.
49876         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
49878 2010-08-14  Bruno Haible  <bruno@clisp.org>
49880         Rename module 'memxfrm' to 'amemxfrm'.
49881         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
49882         (amemxfrm): Renamed from memxfrm.
49883         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
49884         (amemxfrm): Renamed from memxfrm.
49885         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
49886         * NEWS: Mention the change.
49887         * MODULES.html.sh (String handling <string.h>): Update.
49888         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
49889         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
49890         * lib/unicase/u16-casexfrm.c: Likewise.
49891         * lib/unicase/u32-casexfrm.c: Likewise.
49892         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
49893         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
49894         * lib/uninorm/u16-normxfrm.c: Likewise.
49895         * lib/uninorm/u32-normxfrm.c: Likewise.
49896         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
49897         memxfrm.
49898         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
49899         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
49900         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
49901         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
49902         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
49903         Suggested by Paul Eggert.
49905 2010-08-14  Bruno Haible  <bruno@clisp.org>
49907         Tests for module 'astrxfrm'.
49908         * modules/astrxfrm-tests: New file.
49909         * tests/test-astrxfrm.c: New file.
49911         New module 'astrxfrm'.
49912         * lib/astrxfrm.h: New file.
49913         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
49914         * modules/astrxfrm: New file.
49916 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
49918         regex: Tweak doc.
49919         * doc/regex.texi (Overview): Don't mention regex.c.
49920         (GNU Regular Expression Compiling): Likewise.
49921         (Match-end-of-line Operator): Mention 'not_eol'.
49923 2010-08-14  Brian Gough  <bjg@gnu.org>
49924             Bruno Haible  <bruno@clisp.org>
49926         git-merge-changelog: add doc relating to use with bzr and hg.
49927         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
49929 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
49931         pthread: fix pthread.h creation for srcdir != builddir
49932         * modules/pthread (Makefile.am): Fix the rule to work also in a
49933         non-srcdir build.
49935 2010-08-13  Karl Berry  <karl@gnu.org>
49937         * doc/regex.texi (Predefined Syntaxes): @smallexample.
49938         * doc/posix-*/*: force line break before @url of POSIX
49939         specifications.
49940         Suggested by Werner Lemberg.
49942 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49944         strtod: fix const diagnostic
49945         * lib/strtod.c (strtod): Don't assign const char * to char *,
49946         as this elicits a warning from GCC when warnings are enabled.
49948 2010-08-10  Pádraig Brady  <P@draigbrady.com>
49949         and Eric Blake  <eblake@redhat.com>
49951         copy-acl: ignore ENOTSUP on HP-UX
49952         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
49953         so that it is available for HP-UX.
49954         * lib/copy-acl.c (qcopy_acl): Use it.
49955         Reported by Patrick M. Callahan.
49957 2010-08-10  Eric Blake  <eblake@redhat.com>
49959         open, chown: relax license
49960         * modules/open (License): Change to LGPLv2+, with consent by all
49961         authors, for use in augeas.
49962         * modules/chown (License): Likewise.
49963         * modules/lchown (Likewise): Likewise.
49964         Requested by Adam Stokes.
49966 2010-08-09  Karl Berry  <karl@gnu.org>
49968         * build-aux/ar-lib: new file, import from Automake.
49969         * config/srclist.txt: autocheck for updates.
49971 2010-08-09  Eric Blake  <eblake@redhat.com>
49973         readlinkat: adjust client modules
49974         * modules/areadlinkat (Depends-on): Use readlinkat, not
49975         symlinkat.
49976         * modules/areadlinkat-with-size (Depends-on): Likewise.
49978         mknod: be more vocal about danger of running tests as root
49979         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
49980         root, since that is just asking for problems.
49981         Suggested by Bruno Haible, based on a report by Rainer Tammer.
49983         readlinkat: split into its own module
49984         * modules/symlinkat: Split readlinkat...
49985         * modules/readlinkat: ...into separate module.
49986         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
49987         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
49988         * lib/symlinkat.c (readlinkat): Move...
49989         * lib/readlinkat.c: ...into new file.
49990         * modules/symlinkat-tests: Split readlinkat test...
49991         * modules/readlinkat-tests: ...into separate module.
49992         * tests/test-symlinkat.c: Split...
49993         * tests/test-readlinkat.c: ...into new file.
49994         * NEWS: Document the split.
49995         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
49996         * lib/unistd.in.h (readlinkat): Likewise.
49997         Suggested by Bruno Haible.
49999 2010-08-08  Bruno Haible  <bruno@clisp.org>
50001         memxfrm: Speed up.
50002         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
50003         that usually only one call to strxfrm is necessary for each string
50004         part.
50005         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50007 2010-08-07  Karl Berry  <karl@gnu.org>
50009         * doc/posix-headers/limits.texi,
50010         * doc/posix-functions/malloc.texi,
50011         * doc/posix-functions/strsignal.texi: missing @item.
50012         * doc/ld-version-script.texi: spurious leading i.
50013         * doc/regex.texi (Interval Operators): no commas inside @var.
50015 2010-08-01  Bruno Haible  <bruno@clisp.org>
50017         Integrate the regex documentation.
50018         * doc/gnulib.texi: Define 'cn' index.
50019         (Regular expressions): New a chapter that includes regex.texi and
50020         regexprops-generic.texi.
50021         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
50022         syntax.
50024         Whitespace cleanup.
50025         * doc/regex.texi: Remove trailing spaces.
50027         Add regex documentation.
50028         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
50029         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
50030         Written by Kathy A. Hargreaves and Karl Berry.
50032 2010-08-01  Bruno Haible  <bruno@clisp.org>
50034         link: Update documentation.
50035         * doc/posix-functions/link.texi: Update regarding Solaris.
50037 2010-07-31  Bruno Haible  <bruno@clisp.org>
50039         Update modules list.
50040         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
50041         (String handling <string.h>): Add memcmp2, memxfrm.
50042         (Container data structures): Add xlist, xsublist, xoset.
50043         (Core language properties): Add alignof, unused-parameter.
50044         (Process control, Numeric conversion functions <stdlib.h>): Renamed
50045         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
50046         (Unibyte characters <ctype.h>): New section.
50047         (String handling <string.h>): New section.
50048         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
50049         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
50050         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
50051         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
50052         tan, tanh, tanl, y0, y1, yn.
50053         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
50054         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
50055         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
50056         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
50057         unlockpt, vdprintf, vdprintf-posix.
50058         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
50059         (File system functions): Add concat-filename, sys_file, sys_ioctl,
50060         xconcat-filename.
50061         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
50062         getdtablesize, pipe2, pipe2-safer.
50063         (Security): New section.
50064         (Networking functions): Add accept4.
50065         (Signal handling): Add sigpipe.
50066         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
50067         mbmemcasecoll.
50068         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
50069         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
50070         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
50071         pipe-filter-ii.
50072         (Misc): Add argp-version-etc, login_tty, parse-duration.
50074 2010-07-31  Bruno Haible  <bruno@clisp.org>
50076         Improve doc in MODULES.html.
50077         * modules/linkat (Description): Add the word "function".
50078         * modules/mkfifo (Description): Likewise.
50079         * modules/mknod (Description): Likewise.
50080         * modules/remove (Description): Likewise.
50081         * modules/renameat (Description): Likewise.
50082         * modules/stat (Description): Likewise.
50083         * modules/symlink (Description): Likewise.
50084         * modules/unlink (Description): Likewise.
50086 2010-07-31  Bruno Haible  <bruno@clisp.org>
50088         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
50089         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
50090         option --enable/disable-c++ instead of --enable/disable-cxx.
50091         * NEWS: Mention the change.
50093 2010-07-31  Bruno Haible  <bruno@clisp.org>
50095         readlink, areadlink: Relax test a bit.
50096         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
50097         alternative to ENOTDIR.
50098         * tests/test-areadlink.h (test_areadlink): Likewise.
50099         Reported by Rainer Tammer.
50101 2010-07-31  Bruno Haible  <bruno@clisp.org>
50103         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
50104         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
50105         character, perform the search using U_STRCHR.
50106         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
50107         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
50108         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
50109         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
50110         Suggested by Paolo Bonzini.
50112 2010-07-31  Bruno Haible  <bruno@clisp.org>
50114         unistr/u*-strstr: Fix dependencies.
50115         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
50116         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
50117         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
50119 2010-07-31  Bruno Haible  <bruno@clisp.org>
50121         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
50122         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
50123         the beginning of the loop.
50124         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
50125         cases in 'switch' statement.
50127         unistr/u8-strchr: Fix several bugs.
50128         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
50129         the string. When not found, return NULL, not a pointer near the end.
50131         More tests for unistr/u8-strchr.
50132         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
50133         that the function does not read past the first occurrence of the byte
50134         being searched.
50135         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
50136         * tests/unistr/test-u16-strchr.c (main): New function.
50137         * tests/unistr/test-u32-strchr.c (main): New function.
50139 2010-07-31  Bruno Haible  <bruno@clisp.org>
50141         posix-modules: Ignore backup files of documentation files.
50142         * posix-modules: grep only through files named *.texi.
50144 2010-07-31  Bruno Haible  <bruno@clisp.org>
50146         symlinkat: Fix documentation.
50147         * doc/posix-functions/readlinkat.texi: Fix module name.
50149 2010-07-31  Bruno Haible  <bruno@clisp.org>
50151         fchownat: Replace also when chown has the trailing slash bug.
50152         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
50153         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
50154         introduced on 2010-04-10.
50155         Reported by Rainer Tammer.
50157 2010-07-31  Bruno Haible  <bruno@clisp.org>
50159         linkat: Work around AIX 7.1 bug.
50160         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
50161         whether linkat handles trailing slash correctly. If not, replace linkat
50162         and define LINKAT_TRAILING_SLASH_BUG.
50163         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
50164         check whether (fd1,file1) points to a directory if file1 or file2 ends
50165         in a slash. Code taken from lib/link.c.
50166         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
50167         Reported by Rainer Tammer.
50169 2010-07-31  Bruno Haible  <bruno@clisp.org>
50171         Correctly determine whether pow is available in libc on AIX 7 with xlc.
50172         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
50173         This disables an xlc optimization that was causing wrong test results.
50174         Reported by Rainer Tammer.
50176 2010-07-31  Bruno Haible  <bruno@clisp.org>
50178         iconv: Work around AIX 6.1..7.1 bug.
50179         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
50180         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
50181         cross-compiling, guess no on all versions of AIX.
50182         Reported by Rainer Tammer.
50184 2010-07-31  Bruno Haible  <bruno@clisp.org>
50186         readlink: Relax test a bit.
50187         * tests/test-readlink.h (test_readlink): Allow different errno value
50188         when readlink is called with a file name that ends in / and refers to
50189         a file.
50190         Suggested by Eric Blake.
50191         Reported by Rainer Tammer.
50193 2010-07-31  Bruno Haible  <bruno@clisp.org>
50195         copysign: Does not require -lm on glibc systems.
50196         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
50197         gl_COMMON_DOUBLE_MATHFUNC.
50198         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
50200 2010-07-31  Bruno Haible  <bruno@clisp.org>
50202         duplocale: Work around AIX 7.1 bug.
50203         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
50204         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
50205         * lib/duplocale.c (rpl_duplocale): Update comment.
50206         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
50207         Reported by Rainer Tammer.
50209 2010-07-30  Bruno Haible  <bruno@clisp.org>
50211         dirfd: Avoid link error on AIX 7.1.
50212         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
50213         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
50214         exist, set REPLACE_DIRFD.
50215         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
50216         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
50217         * doc/posix-functions/dirfd.texi: Update.
50218         Reported by Rainer Tammer.
50220 2010-07-30  Eric Blake  <eblake@redhat.com>
50222         strtod: next round of AIX fixes
50223         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
50224         exponent.
50225         * tests/test-strtod.c (main): Enhance tests.
50226         * doc/posix-functions/strtod.texi (strtod): Document next bug.
50227         Reported by Rainer Tammer.
50229         futimens: fix configure check
50230         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
50231         Reported by Bruno Haible.
50233 2010-07-30  Bruno Haible  <bruno@clisp.org>
50235         getline: Update regarding AIX.
50236         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
50237         Reported by Rainer Tammer.
50239 2010-07-30  Bruno Haible  <bruno@clisp.org>
50241         wcwidth: Drop replacement on AIX 7.
50242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
50243         AIX 7.
50244         Reported by Rainer Tammer.
50246 2010-07-30  Bruno Haible  <bruno@clisp.org>
50248         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
50249         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
50250         a 'char *'.
50251         Reported by Rainer Tammer.
50253 2010-07-30  Bruno Haible  <bruno@clisp.org>
50255         unlink: Update regarding AIX.
50256         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
50257         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
50258         Reported by Rainer Tammer.
50260 2010-07-30  Bruno Haible  <bruno@clisp.org>
50262         symlink: Update regarding AIX.
50263         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
50264         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
50265         Reported by Rainer Tammer.
50267 2010-07-30  Bruno Haible  <bruno@clisp.org>
50269         strndup: Update regarding AIX.
50270         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
50271         AIX 7.
50272         Reported by Rainer Tammer.
50274 2010-07-30  Bruno Haible  <bruno@clisp.org>
50276         stat: Update regarding AIX.
50277         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
50278         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
50279         Reported by Rainer Tammer.
50281 2010-07-30  Bruno Haible  <bruno@clisp.org>
50283         truncl: Fix autoconf test.
50284         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
50285         whether truncl works.
50286         Reported by Rainer Tammer.
50288 2010-07-30  Bruno Haible  <bruno@clisp.org>
50290         round: Update regarding AIX.
50291         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
50292         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50293         Reported by Rainer Tammer.
50295 2010-07-30  Bruno Haible  <bruno@clisp.org>
50297         rename: Update regarding AIX.
50298         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50299         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50300         Reported by Rainer Tammer.
50302 2010-07-30  Bruno Haible  <bruno@clisp.org>
50304         printf.m4: Update regarding AIX.
50305         * m4/printf.m4: Update comments regarding AIX.
50306         Reported by Rainer Tammer.
50308 2010-07-30  Bruno Haible  <bruno@clisp.org>
50310         iconv: Update regarding AIX.
50311         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50312         AIX 7.
50313         Reported by Rainer Tammer.
50315 2010-07-30  Bruno Haible  <bruno@clisp.org>
50317         getopt: Update regarding AIX.
50318         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50319         no on AIX.
50320         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50321         Reported by Rainer Tammer.
50323 2010-07-30  Bruno Haible  <bruno@clisp.org>
50325         ldexpl; Update regarding AIX.
50326         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50327         on AIX 7.
50328         Reported by Rainer Tammer.
50330 2010-07-30  Bruno Haible  <bruno@clisp.org>
50332         frexpl: Update regarding AIX.
50333         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50334         on AIX 7.
50335         Reported by Rainer Tammer.
50337 2010-07-30  Bruno Haible  <bruno@clisp.org>
50339         open, fopen: Update regarding AIX.
50340         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50341         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50342         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50343         * doc/posix-functions/fopen.texi: Likewise.
50344         Reported by Rainer Tammer.
50346 2010-07-30  Bruno Haible  <bruno@clisp.org>
50348         chown: Update doc regarding AIX.
50349         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50350         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50351         Reported by Rainer Tammer.
50353 2010-07-30  Eric Blake  <eblake@redhat.com>
50355         strtod: fix bug in replacement function on AIX
50356         * lib/strtod.c (strtod): Special case broken "0x" parse in
50357         underlying strtod.
50358         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50359         * doc/posix-functions/strtod.texi (strtod): Likewise.
50360         Reported by Rainer Tammer.
50362 2010-07-30  Bruno Haible  <bruno@clisp.org>
50364         mbrlen: Fix cross-compilation guess for AIX.
50365         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50366         guess. Leftover from 2008-12-22.
50368 2010-07-30  Bruno Haible  <bruno@clisp.org>
50370         mbrtowc: Fix cross-compilation guess for AIX.
50371         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50372         guess. Leftover from 2008-12-21.
50374 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50376         init.sh: work around trap limitation of some shells
50377         * tests/init.sh (setup_): Move exit trap outside of shell function.
50379 2010-07-29  Eric Blake  <eblake@redhat.com>
50381         strtod: aid debugging
50382         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50383         understanding why strtod is rejected.
50385 2010-07-28  Bruno Haible  <bruno@clisp.org>
50387         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50388         * lib/unistr/u8-chr.c: Include <string.h>.
50389         * tests/unistr/test-u8-chr.c: Likewise.
50390         * tests/unistr/test-u16-chr.c: Likewise.
50391         * tests/unistr/test-u32-chr.c: Likewise.
50392         * tests/unistr/test-u8-strchr.c: Likewise.
50393         * tests/unistr/test-u16-strchr.c: Likewise.
50394         * tests/unistr/test-u32-strchr.c: Likewise.
50395         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50396         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50397         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50398         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50400 2010-07-28  Bruno Haible  <bruno@clisp.org>
50402         Use spaces for indentation, not tabs.
50403         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50405 2010-07-27  Bruno Haible  <bruno@clisp.org>
50407         mbspcasecmp: Fix function specification.
50408         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50409         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50410         Reported by Eric Blake <eblake@redhat.com>.
50412 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50414         timespec: use cast and not conditional, as truncation isn't possible
50415         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50416         instead of a conditional.  Comment about the situation in more detail.
50417         This undoes most of the 2009-10-29 patch.
50419 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50421         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50422         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50423         * lib/unistr/u8-strchr.c: Likewise.
50424         * modules/unistr/u8-chr: Depend on memchr.
50426         unistr/u*-strchr: add tests
50427         * modules/unistr/u8-strchr-tests: New file.
50428         * modules/unistr/u16-strchr-tests: New file.
50429         * modules/unistr/u32-strchr-tests: New file.
50430         * tests/unistr/test-strchr.h: New file.
50431         * tests/unistr/test-u8-strchr.c: New file.
50432         * tests/unistr/test-u16-strchr.c: New file.
50433         * tests/unistr/test-u32-strchr.c: New file.
50435         unistr/u*-chr: test multibyte sequences more
50436         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50437         test vector.
50438         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50439         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50440         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50442         unistr/u*-chr: test multibyte sequences
50443         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50445         unistr/u*-chr: prepare for multibyte tests
50446         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50447         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50448         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50449         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50450         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50451         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50453 2010-07-18  Bruno Haible  <bruno@clisp.org>
50455         unistr/u8-strchr: Optimize non-ASCII argument case.
50456         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50457         because the first byte often matches anyway.
50458         Reported by Pádraig Brady <P@draigbrady.com>.
50460 2010-07-15  Karl Berry  <karl@gnu.org>
50462         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50464 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50466         getcwd: on Solaris, work better if ancestors are inaccessible
50467         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50468         buffer and size, try again with a large buffer.  This works better
50469         on Solaris, since its getcwd succeeds even if the path to the root
50470         is inaccessible, and this is helpful in common cases such as .zfs
50471         hidden directories.  Problem reported by J Chapman Flack in
50472         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50473         Use system getcwd if it's declared, not merely if it's partly
50474         working; use the partly-working test only to avoid needless effort
50475         if the system getcwd fails.
50476         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50477         comment that was already obsolete and is now even more obsolete.
50478         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50479         now might call strdup.
50481 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50483         pthread: Add enough so that coreutils/src/sort.c compiles.
50484         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50485         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50486         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50487         Include <sys/types.h>, in case it defines pthread_t.
50488         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50489         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50490         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50491         (pthread_rwlockattr_t, pthread_spinlock_t):
50492         New typedefs, if HAVE_PTHREAD_T is not defined.
50493         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50494         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50495         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50496         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50497         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50498         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50499         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50500         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50501         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50502         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50503         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50504         New macros.
50505         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50506         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50507         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50508         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50509         (pthread_spin_unlock): New dummy functions.
50510         (pthread_create): Return EAGAIN; don't set errno.
50511         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50512         require AC_C_INLINE.
50513         * modules/pthread (Depends-on): Add sched, time.
50514         (pthread.h): Use AM_V_GEN.
50516 2010-07-13  Bruno Haible  <bruno@clisp.org>
50518         striconveh: Don't malloc memory if the result buffer is sufficient.
50519         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50520         buffer if its size is sufficient.
50521         Reported by Ludovic Courtès <ludo@gnu.org>.
50523 2010-07-13  Bruno Haible  <bruno@clisp.org>
50525         strtod: Add safety check.
50526         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50528 2010-07-12  Bruno Haible  <bruno@clisp.org>
50530         Unify tests that set gl_cv_func_ldexpl_no_libm.
50531         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50532         gl_FUNC_LDEXPL.
50533         (gl_FUNC_LDEXPL): Invoke it.
50534         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50536 2010-07-12  Bruno Haible  <bruno@clisp.org>
50538         Unify tests that set gl_cv_func_ldexp_no_libm.
50539         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50540         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50541         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50542         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50543         * modules/strtod (Files): Add m4/ldexp.m4.
50545 2010-07-12  Bruno Haible  <bruno@clisp.org>
50547         Unify tests that set gl_cv_func_frexpl_no_libm.
50548         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
50549         gl_FUNC_FREXPL_NO_LIBM.
50550         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
50551         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50553 2010-07-12  Bruno Haible  <bruno@clisp.org>
50555         Unify tests that set gl_cv_func_frexp_no_libm.
50556         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
50557         gl_FUNC_FREXP_NO_LIBM.
50558         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
50559         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50561 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50563         memcoll: clarify sizes versus lengths, document better, and tweak perf
50564         * lib/memcoll.c (strcoll_loop, memcoll0):
50565         Improve quality of descriptive comments.  Name variables
50566         consistently as to whether they are lengths (which do not include
50567         terminating null) versus sizes (which do).
50568         * lib/xmemcoll.c (xmemcoll0): Likewise.
50569         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
50570         returned when s1size == 0; this is easier to compile and saves
50571         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
50573 2010-07-12  Bruno Haible  <bruno@clisp.org>
50575         Tests for module '_Exit'.
50576         * modules/_Exit-tests: New file.
50577         * tests/test-_Exit.sh: New file.
50578         * tests/test-_Exit.c: New file.
50580         New module '_Exit'.
50581         * lib/stdlib.in.h (__attribute__): New macro.
50582         (_Exit): New declaration.
50583         * lib/_Exit.c: New file.
50584         * m4/_Exit.m4: New file.
50585         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
50586         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
50587         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
50588         * modules/_Exit: New file.
50589         * tests/test-stdlib-c++.cc (_Exit): Check signature.
50590         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
50592 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50594         strtod: make it more-accurate typically, and don't require libm
50595         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
50596         Include limits.h.  Don't include string.h.
50597         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
50598         (locale_isspace): New function, so that no casts are needed to
50599         check whether *s is a space.
50600         (ldexp): Provide an unused dummy if not available.
50601         (scale_radix_exp, parse_number, underlying_strtod): New functions.
50602         (strtod): Use them.  This implementation prefers to use the
50603         underlying strtod if available, falling back on our own code
50604         only to fix known bugs.  This is more likely to produce an
50605         accurate result.  Also, it avoids the use of libm functions.
50606         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
50607         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
50608         was absent, but it caused a test failure with coreutils.
50609         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
50610         with libm.
50611         * modules/strtod (Makefile.am, Link): libm is no longer needed.
50612         * modules/strtod-tests (Makefile.am): Likewise.
50614 2010-07-11  Pádraig Brady  <P@draigBrady.com>
50615             Bruno Haible  <bruno@clisp.org>
50617         unistr/u8-strchr: Optimize ASCII argument case.
50618         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
50620 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50622         (x)memcoll: minor tweaks
50623         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
50624         is after the type that it qualifies.
50625         (memcoll0): Likewise.
50626         * lib/memcoll.h (memcoll0): Likewise.
50627         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
50628         * lib/xmemcoll.h (xmemcoll0): Likewise.
50629         * lib/memcoll.c (memcoll0): Correct the comment.  This function
50630         differs from memcoll in that the NUL byte is part of the argument.
50631         Omit the abort-checks, as performance is a real issue here.  Plus,
50632         the checks were wrong anyway (an off-by-one error).  Omit local
50633         variable 'diff', as it's a bit clearer that way.
50634         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
50635         no longer needed.
50637 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
50639         (x)memcoll: speedup when input is known to be NUL delimited
50640         * lib/memcoll.c: Include stdlib.
50641         (memcoll0): New function.
50642         (strcoll_loop): New function, refactored for use in both memcoll
50643         and memcoll0.
50644         * lib/memcoll.h (memcoll0): Add prototype.
50645         * lib/xmemcoll.c (xmemcoll0): New function.
50646         (collate_error): New function, refactored for use in both xmemcoll
50647         and xmemcoll0.
50648         * lib/xmemcoll.h (xmemcoll0): Add prototype.
50649         * m4/memcoll.m4: add inline invocation.
50651 2010-07-06  Pádraig Brady  <P@draigBrady.com>
50653         * build-aux/bootstrap: Remove any local translations
50654         from the translation project synchronization directory,
50655         so that local only translations are not distributed.
50657 2010-07-04  Bruno Haible  <bruno@clisp.org>
50659         fsusage: Clarify which code applies to which platforms.
50660         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
50661         platform.
50662         * lib/fsusage.c (get_fs_usage): Likewise.
50664 2010-07-04  Bruno Haible  <bruno@clisp.org>
50666         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
50667         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
50668         Reported by Martin Lambers <marlam@marlam.de>.
50670 2010-07-04  Jim Meyering  <meyering@redhat.com>
50672         hash: once again explicitly disallow insertion of NULL
50673         * lib/hash.c (hash_insert0): Reinstate just-removed test:
50674         inserting a NULL pointer cannot work with these functions.
50675         Add a comment with details.
50676         This reverts part of the 2010-07-01 commit, 5bef1a35
50677         "hash: extend module to deal with non-pointer keys".
50679 2010-07-01  Bruno Haible  <bruno@clisp.org>
50681         stdbool: Update doc.
50682         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
50683         Info from Christian Weisgerber <naddy@mips.inka.de>.
50685 2010-07-01  Jim Meyering  <meyering@redhat.com>
50687         hash: extend module to deal with non-pointer keys
50688         * lib/hash.c (hash_insert0): New interface, much like hash_insert
50689         but that allows insertion of non-pointer entries.
50690         Do not disallow an ENTRY value of NULL.
50691         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
50692         * lib/hash.h (hash_insert0): Declare.
50694 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
50696         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
50697         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
50698         not present (i.e. with autoconf 2.59 and when using gettextize, not
50699         gnulib), require AC_GNU_SOURCE instead.
50701 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
50703         idpriv-drop: Fix tests.
50704         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
50705         not to the test-idpriv-droptemp program.
50707 2010-06-29  Bruno Haible  <bruno@clisp.org>
50709         string: Fix syntax error with g++ 2.96.
50710         * lib/string.in.h (__pure__): Remove definition.
50711         (_GL_ATTRIBUTE_PURE): New macro.
50712         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
50713         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
50714         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50716 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
50718         unitypes: Fix bug introduced on 2010-05-18.
50719         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
50721 2010-06-22  Eric Blake  <eblake@redhat.com>
50723         memmem: slight optimization
50724         * lib/str-two-way.h (critical_factorization): Update comments.
50725         Reduce work during factorization phase.
50726         Reported by Carlos Bueno <carlos@bueno.org>.
50728 2010-06-21  Bruno Haible  <bruno@clisp.org>
50730         Fix HAVE_CALLOC_POSIX misnomer.
50731         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
50732         !HAVE_CALLOC_POSIX.
50733         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
50734         HAVE_CALLOC_POSIX.
50735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
50736         instead of HAVE_CALLOC_POSIX.
50737         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
50738         HAVE_CALLOC_POSIX.
50740         Use modern idiom for calloc() replacement.
50741         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
50742         AC_FUNC_CALLOC.
50743         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
50744         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
50745         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50746         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
50747         (gl_REPLACE_CALLOC): New macro.
50749 2010-06-21  Bruno Haible  <bruno@clisp.org>
50751         Fix HAVE_REALLOC_POSIX misnomer.
50752         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
50753         !HAVE_REALLOC_POSIX.
50754         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
50755         HAVE_REALLOC_POSIX.
50756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
50757         instead of HAVE_REALLOC_POSIX.
50758         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
50759         HAVE_REALLOC_POSIX.
50761         Use modern idiom for realloc() replacement.
50762         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
50763         AC_FUNC_REALLOC.
50764         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
50765         Autoconf's AC_FUNC_REALLOC.
50766         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50767         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
50768         (gl_REPLACE_REALLOC): New macro.
50769         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50771 2010-06-21  Bruno Haible  <bruno@clisp.org>
50773         Fix HAVE_MALLOC_POSIX misnomer.
50774         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
50775         !HAVE_MALLOC_POSIX.
50776         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
50777         HAVE_MALLOC_POSIX.
50778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
50779         instead of HAVE_MALLOC_POSIX.
50780         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
50781         HAVE_MALLOC_POSIX.
50783         Use modern idiom for malloc() replacement.
50784         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
50785         AC_FUNC_MALLOC.
50786         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
50787         Autoconf's AC_FUNC_MALLOC.
50788         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50789         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
50790         (gl_REPLACE_MALLOC): New macro.
50791         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50793 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
50795         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
50796         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
50797         This macro takes 3 arguments, not 4.
50799 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
50801         ipv6: fix detection under mingw
50802         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
50803         in6_addr.
50805 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
50807         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
50808         that strtod() works when cross-compiling to a glibc version known
50809         to work.
50811 2010-06-15  Bruno Haible  <bruno@clisp.org>
50813         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
50815 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
50817         select: Correct timeout.
50818         * lib/select.c (rpl_select): Compute wait_timeout correctly.
50820 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50822         git-version-gen: init shell var to avoid env var influence
50823         * build-aux/git-version-gen (v): Init shell var to empty.
50825 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
50827         priv-set: Don't assume that priv.h exists merely because getppriv does.
50828         See Jan Andersen's bug report about AIX 5L in
50829         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
50830         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
50831         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
50832         * lib/priv-set.h: Likewise.
50833         * tests/test-priv-set.c: Likewise.
50835 2010-06-13  Bruno Haible  <bruno@clisp.org>
50837         relocatable: Make it easier to test whether to install wrappers.
50838         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
50839         RELOCATABLE_VIA_WRAPPER.
50841 2010-06-13  Bruno Haible  <bruno@clisp.org>
50843         gnulib-tool: Display specified modules and dependencies differently.
50844         * gnulib-tool (func_show_module_list): New function.
50845         (func_import, func_create_testdir): Invoke it.
50846         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50848 2010-06-13  Bruno Haible  <bruno@clisp.org>
50850         gnulib-tool: Align code of func_import and func_create_testdir.
50851         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
50852         specified_modules.
50854 2010-06-12  Jim Meyering  <meyering@redhat.com>
50856         test-inttostr: avoid spurious failure on Solaris 9
50857         * tests/test-inttostr.c (main): Skip the test when snprintf fails
50858         to accept "%ju".  Reported by Bruno Haible.
50860 2010-06-11  Jim Meyering  <meyering@redhat.com>
50862         test-sys_socket: mark variables as used more readably
50863         * tests/test-sys_socket.c (main): Mark otherwise unused variables
50864         as "used" explicitly via (void) statement casts.  This is more
50865         readable than using them in an artificial return expression.
50866         Suggestion from Bruno Haible.
50868 2010-06-11  Bruno Haible  <bruno@clisp.org>
50870         Avoid some more warnings from "gcc -Wwrite-strings".
50871         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
50872         to 'const char *'.
50873         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
50874         * tests/test-c-strcasestr.c (main): Likewise.
50875         * tests/test-mbscasestr1.c (main): Likewise.
50876         * tests/test-mbscasestr2.c (main): Likewise.
50877         * tests/test-memmem.c (main): Likewise.
50878         * tests/test-strstr.c (main): Likewise.
50879         * tests/test-strcasestr.c (main): Likewise.
50881 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50883         init.sh: change framework_failure_ to fail with status 99, not 1
50884         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
50885         automake's parallel-tests rule that this is an unexpected failure,
50886         even if the test is listed in XFAIL_TESTS.
50888 2010-06-11  Jim Meyering  <meyering@redhat.com>
50890         test-inttostr: avoid warnings about 4-6KB literal strings
50891         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
50892         Include "macros.h", for its definition of ASSERT.
50893         (CK): s/assert/ASSERT/
50894         * modules/inttostr-tests (Files): Add macros.h.
50896         init.sh: don't use $ME_ or skip_ before they are defined
50897         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
50898         their first uses.  Also hoist their companions: warn_, fail_,
50899         framework_failure_, $stderr_fileno.  Prompted by a patch from
50900         Stefano Lattarini.
50902         test-sys_socket: avoid set-but-not-used warnings from gcc
50903         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
50904         avoid warning about set-but-not-used variables.
50906         test-xvasprintf: avoid 'const' discard warnings
50907         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
50908         "const" when assigning from literal strings.
50909         (test_xasprintf): Add "void" in function argument list to placate
50910         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
50912         tests: avoid compilation warnings in argmatch and exclude tests...
50913         in packages that define ARGMATCH_DIE_DECL, like coreutils.
50914         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
50915         Since it always exits, declare with the "noreturn" attribute.
50916         * tests/test-argmatch.c: Likewise.
50918         tests: avoid 'const' discard warnings in mbsstr tests
50919         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
50920         * tests/test-mbsstr2.c (main): Likewise.
50922         test-verify: avoid warning from gcc's -Wmissing-declarations
50923         * tests/test-verify.c (function): Declare to be static.
50925         test-inttostr.c: include <string.h> for use of strcmp
50926         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
50928         test-linkat: avoid failed assertion on "other" architectures
50929         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
50930         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
50931         sparc: https://bugs.launchpad.net/bugs/591968
50933 2010-06-11  Jim Meyering  <meyering@redhat.com>
50935         printf.m4: avoid autoconf's "Expanded Before Required" warning
50936         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
50937         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
50938         autoconf warning.
50940 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
50942         Replacement header templates are now named with ".in", not "_".
50943         * doc/gnulib-intro.texi: Correct.
50945 2010-06-10  Jim Meyering  <meyering@redhat.com>
50947         inttostr-tests: depend on snprintf, not snprintf-posix
50948         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
50949         snprintf-posix, to avoid this aclocal failure:
50950           missing file gnulib-tests/vasnprintf.c
50951           configure.ac:45: error: expected source file, required through \
50952           AC_LIBSOURCES, not found
50954 2010-06-10  Jim Meyering  <meyering@redhat.com>
50956         inttostr: add a new function, inttostr, and tests
50957         The namesake function was not available.  The existence of the
50958         template file, inttostr.c makes its addition nontrivial.
50959         * lib/anytostr.c: Rename from inttostr.c.
50960         (anytostr): Rename from inttostr.
50961         * lib/inttostr.c: New file.
50962         * modules/inttostr (Files): Add anytostr.c.
50963         (Makefile.am): Set lib_SOURCES instead of ...
50964         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
50965         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
50966         * lib/offtostr.c: Likewise.
50967         * lib/uinttostr.c: Likewise.
50968         * lib/umaxtostr.c: Likewise.
50969         * modules/inttostr-tests: New file.
50970         * tests/test-inttostr.c: New file.  Test these functions.
50972 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
50973             Bruno Haible  <bruno@clisp.org>
50975         Add "Extending Gnulib" chapter to manual.
50976         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
50977         chapter.
50978         (Extending Gnulib): New chapter.
50979         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
50980         chapter.
50982 2010-06-09  Bruno Haible  <bruno@clisp.org>
50984         Avoid relocwrapper link errors due to gnulib replacement functions.
50985         * lib/areadlink.c: Use the system's malloc, realloc functions.
50986         (areadlink): Set errno to ENOMEM explicitly.
50987         * modules/areadlink (Depends-on): Remove malloc-posix.
50988         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50990 2010-06-09  Bruno Haible  <bruno@clisp.org>
50992         Avoid relocwrapper link errors due to gnulib replacement functions.
50993         * lib/canonicalize-lgpl.c: Use the system's malloc function.
50994         * lib/malloca.c: Likewise.
50995         * lib/relocatable.c: Likewise.
50996         * lib/progreloc.c: Use the system's malloc, sprintf functions.
50997         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
50998         * lib/setenv.c: Use the system's malloc, realloc functions.
50999         * lib/strerror.c: Use the system's sprintf function.
51000         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51002 2010-06-04  Bruno Haible  <bruno@clisp.org>
51004         Prefer documented low-level autoconf macro names.
51005         * m4/lib-link.m4: Use m4_translit instead of translit.
51006         * m4/environ.m4: Likewise.
51007         * m4/mathfunc.m4: Likewise.
51008         * m4/onceonly.m4: Likewise.
51009         * m4/stdint.m4: Likewise.
51010         Suggested by Eric Blake.
51012 2010-06-04  Martin Lambers  <marlam@marlam.de>
51013             Bruno Haible  <bruno@clisp.org>
51015         havelib: Allow library names with '+' characters.
51016         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51017         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
51019 2010-06-09  Bruno Haible  <bruno@clisp.org>
51021         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
51022         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
51023         realloc failed.
51025 2010-06-08  Peter Simons  <simons@cryp.to>
51027         maint.mk: make the news-check rule more configurable
51028         * top/maint.mk (news-check-lines-spec): New variable.
51029         (news-check): Use "sed -n 1,10p" in place of "head".
51031 2010-06-07  Jim Meyering  <meyering@redhat.com>
51033         do-release-commit-and-tag: fix typo in --help
51034         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
51036         regex: avoid new dead-code warning with gcc-4.6.0
51037         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
51038         if-block containing a while-loop.  It's been unused for at least
51039         5 years.
51041 2010-06-05  Bruno Haible  <bruno@clisp.org>
51043         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
51044         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
51046 2010-06-04  Bruno Haible  <bruno@clisp.org>
51048         Update to GNU gettext 0.18.1.
51049         * modules/gettext (configure.ac): Require gettext infrastructure from
51050         version 0.18.1.
51052 2010-06-03  Bruno Haible  <bruno@clisp.org>
51054         Don't use AC_LIBOBJ with file names in subdirectories.
51055         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
51056         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
51057         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
51058         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
51059         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
51060         gl_LIBUNISTRING_LIBSOURCE.
51061         (Makefile.am): Augment lib_SOURCES here, conditionally.
51062         * NEWS: Drop requirement for Automake option 'subdir-objects'.
51064 2010-06-03  Bruno Haible  <bruno@clisp.org>
51066         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
51067         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
51068         expansion does not end with a newline.
51069         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
51070         unnecessary newline.
51072 2010-06-03  Bruno Haible  <bruno@clisp.org>
51074         Reduce dependencies.
51075         * tests/test-quotearg.h: New file, extracted from
51076         tests/test-quotearg.c.
51077         * tests/test-quotearg-simple.c: New file, extracted from
51078         tests/test-quotearg.c.
51079         * tests/test-quotearg.c: Don't include <ctype.h>.
51080         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
51081         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
51082         use_quote_double_quotes, use_quotearg_colon): Moved to
51083         tests/test-quotearg.h.
51084         (results_g, flag_results, custom_quotes, custom_results): Moved
51085         to tests/test-quotearg-simple.c.
51086         (main): Moved the part that does not depend on gettext to
51087         tests/test-quotearg-simple.c. Return 77 if the test cannot be
51088         performed.
51089         * modules/quotearg-simple: New file.
51090         * modules/quotearg-simple-tests: New file.
51091         * modules/quotearg (Depends-on): Add quotearg-simple.
51092         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
51093         (Files): Add tests/test-quotearg.h.
51094         Reported by Paolo Bonzini.
51096 2010-06-03  Bruno Haible  <bruno@clisp.org>
51098         Reduce dependencies.
51099         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
51101 2010-06-03  Bruno Haible  <bruno@clisp.org>
51103         time: Undefine more broken macros.
51104         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
51105         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
51106         Reported by Eric Blake.
51108 2010-06-03  Bruno Haible  <bruno@clisp.org>
51110         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
51111         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
51112         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
51113         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
51114         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
51115         Reported by Ludovic Courtès <ludo@gnu.org>.
51117 2010-06-02  Eric Blake  <eblake@redhat.com>
51119         time: work with mingw + pthreads-win32 library
51120         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
51121         if timespec is defined only in pthread.h.
51122         * modules/time (Makefile.am): Substitute it.
51123         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
51124         <pthread.h>, when needed.
51125         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
51126         from the library.
51128 2010-05-31  Bruno Haible  <bruno@clisp.org>
51130         Avoid expanding two macros in the wrong order.
51131         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
51132         gl_LIBUNISTRING if it is defined.
51133         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
51134         autoconf >= 2.64.
51135         Reported by Ludovic Courtès <ludo@gnu.org>.
51137 2010-05-27  Jim Meyering  <meyering@redhat.com>
51139         maint.mk: also prohibit "#undef" of always-defined symbols
51140         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
51141         Allow more than one space before the symbol name.
51142         (sc_prohibit_always-defined_macros): Use grep's -E, now that
51143         the regexp uses alternation.
51145 2010-05-26  Eric Blake  <eblake@redhat.com>
51147         maint.mk: avoid echo -e
51148         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
51149         Convert all uses of echo -* to printf.
51150         Reported by Matthias Bolte.
51152 2010-05-25  Bruno Haible  <bruno@clisp.org>
51154         Update to GNU gettext 0.18, part 2.
51155         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
51156         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
51158 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51160         Add missing include in test-pwrite.c.
51161         * tests/test-pwrite.c: Include string.h, for strcmp.
51163 2010-05-24  Bruno Haible  <bruno@clisp.org>
51165         * NEWS: Mention requirement for Automake option 'subdir-objects'.
51167 2010-05-24  Bruno Haible  <bruno@clisp.org>
51169         Don't use conversion with transliteration in u{8,16,32}_strcoll.
51170         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
51171         iconveh_error argument.
51172         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
51173         U_STRCONV_TO_LOCALE.
51174         * lib/unistr/u16-strcoll.c: Likewise.
51175         * lib/unistr/u32-strcoll.c: Likewise.
51176         * modules/unistr/u8-strcoll (Depends-on): Add
51177         uniconv/u8-strconv-to-enc, localcharset. Remove
51178         uniconv/u8-strconv-to-locale.
51179         (configure.ac): Bump version number.
51180         * modules/unistr/u16-strcoll (Depends-on): Add
51181         uniconv/u16-strconv-to-enc, localcharset. Remove
51182         uniconv/u16-strconv-to-locale.
51183         (configure.ac): Bump version number.
51184         * modules/unistr/u32-strcoll (Depends-on): Add
51185         uniconv/u32-strconv-to-enc, localcharset. Remove
51186         uniconv/u32-strconv-to-locale.
51187         (configure.ac): Bump version number.
51189 2010-05-24  Bruno Haible  <bruno@clisp.org>
51191         Avoid a test failure on NetBSD 5.0.
51192         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
51193         an iconv() bug.
51195 2010-05-24  Bruno Haible  <bruno@clisp.org>
51197         Adjust #include directive style.
51198         * modules/regex (Includes): Recommend to write <regex.h>.
51200 2010-05-24  Bruno Haible  <bruno@clisp.org>
51202         regex: Don't require alloca.
51203         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
51204         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
51205         only inside if (0).
51207 2010-05-23  Jim Meyering  <meyering@redhat.com>
51209         test-renameat.c: include <sys/stat.h>
51210         * tests/test-renameat.c: Include <sys/stat.h>; required for
51211         definition of S_IS* macros.
51213 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
51215         Update maintainer documentation for 'relocatable-prog' module.
51216         * doc/relocatable-maint.texi: Update.
51217         Comments by Bruno Haible.
51219 2010-05-23  Bruno Haible  <bruno@clisp.org>
51221         git-merge-changelog: Enable --split-merged-entry by default.
51222         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
51223         (usage): Don't mention this option any more.
51224         Reported by Ralf Wildenhues.
51226 2010-05-23  Jim Meyering  <meyering@redhat.com>
51228         test-pwrite: do not leave behind a test file named "out"
51229         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
51230         The trivial-looking use of init.sh is really necessary.
51231         It ensures that the temporary file, "out", is created in
51232         a temporary directory, and removed upon termination.
51233         * tests/test-pwrite.sh: Re-add file.
51234         * modules/pwrite-tests: Reference it.
51236 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51238         Fix output redirection buglet in init.sh.
51239         * tests/init.sh: Fix redirection of stderr.
51241 2010-05-20  Simon Josefsson  <simon@josefsson.org>
51243         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
51245 2010-05-17  Simon Josefsson  <simon@josefsson.org>
51247         * modules/valgrind-tests: New file.
51248         * m4/valgrind-tests.m4: New file.
51249         * doc/valgrind-tests.texi: New file.
51250         * doc/gnulib.texi (Running self-tests under valgrind): New
51251         section.
51253 2010-05-19  Bruno Haible  <bruno@clisp.org>
51255         Clean up dead code in recent commit.
51256         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
51257         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
51258         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
51259         Suggested by Paolo Bonzini.
51261 2010-05-19  Bruno Haible  <bruno@clisp.org>
51263         Avoid valgrind error reports from libunistring.
51264         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
51265         * modules/libunistring (Files): Add it.
51266         * modules/libunistring-optional (Files): Likewise.
51268 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51269             Bruno Haible  <bruno@clisp.org>
51271         New module 'libunistring-optional'.
51272         * modules/libunistring-optional: New file.
51273         * m4/libunistring-base.m4: New file.
51274         * m4/libunistring-optional.m4: New file.
51275         * lib/unicase.in.h: Renamed from lib/unicase.h.
51276         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
51277         * lib/unictype.in.h: Renamed from lib/unictype.h.
51278         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
51279         * lib/uniname.in.h: Renamed from lib/uniname.h.
51280         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
51281         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
51282         * lib/unistr.in.h: Renamed from lib/unistr.h.
51283         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
51284         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
51285         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
51286         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
51287         gl_LIBUNISTRING. If the library was found, determine the installed
51288         version and set LIBUNISTRING_VERSION.
51289         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
51290         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
51291         handle a configuration option --with-included-libunistring.
51292         * modules/libunistring (Files): Add m4/absolute-header.m4.
51293         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51294         Add m4/libunistring-base.m4.
51295         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51296         (Makefile.am): Build unicase.h from unicase.in.h.
51297         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51298         Add m4/libunistring-base.m4.
51299         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51300         (Makefile.am): Build uniconv.h from uniconv.in.h.
51301         * modules/unictype/base (Files): Use unictype.in.h instead of
51302         unictype.h. Add m4/libunistring-base.m4.
51303         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51304         (Makefile.am): Build unictype.h from unictype.in.h.
51305         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51306         Add m4/libunistring-base.m4.
51307         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51308         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51309         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51310         Add m4/libunistring-base.m4.
51311         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51312         (Makefile.am): Build uniname.h from uniname.in.h.
51313         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51314         Add m4/libunistring-base.m4.
51315         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51316         (Makefile.am): Build uninorm.h from uninorm.in.h.
51317         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51318         unistdio.h. Add m4/libunistring-base.m4.
51319         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51320         (Makefile.am): Build unistdio.h from unistdio.in.h.
51321         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51322         Add m4/libunistring-base.m4.
51323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51324         (Makefile.am): Build unistr.h from unistr.in.h.
51325         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51326         Add m4/libunistring-base.m4.
51327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51328         (Makefile.am): Build unitypes.h from unitypes.in.h.
51329         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51330         Add m4/libunistring-base.m4.
51331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51332         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51333         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51334         uniwidth.h. Add m4/libunistring-base.m4.
51335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51336         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51337         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51338         instead of augmenting lib_SOURCES.
51339         * modules/unicase/empty-suffix-context: Likewise.
51340         * modules/unicase/locale-language: Likewise.
51341         * modules/unicase/tolower: Likewise.
51342         * modules/unicase/totitle: Likewise.
51343         * modules/unicase/toupper: Likewise.
51344         * modules/unicase/u8-casecmp: Likewise.
51345         * modules/unicase/u8-casecoll: Likewise.
51346         * modules/unicase/u8-casefold: Likewise.
51347         * modules/unicase/u8-casexfrm: Likewise.
51348         * modules/unicase/u8-ct-casefold: Likewise.
51349         * modules/unicase/u8-ct-tolower: Likewise.
51350         * modules/unicase/u8-ct-totitle: Likewise.
51351         * modules/unicase/u8-ct-toupper: Likewise.
51352         * modules/unicase/u8-is-cased: Likewise.
51353         * modules/unicase/u8-is-casefolded: Likewise.
51354         * modules/unicase/u8-is-lowercase: Likewise.
51355         * modules/unicase/u8-is-titlecase: Likewise.
51356         * modules/unicase/u8-is-uppercase: Likewise.
51357         * modules/unicase/u8-prefix-context: Likewise.
51358         * modules/unicase/u8-suffix-context: Likewise.
51359         * modules/unicase/u8-tolower: Likewise.
51360         * modules/unicase/u8-totitle: Likewise.
51361         * modules/unicase/u8-toupper: Likewise.
51362         * modules/unicase/u16-casecmp: Likewise.
51363         * modules/unicase/u16-casecoll: Likewise.
51364         * modules/unicase/u16-casefold: Likewise.
51365         * modules/unicase/u16-casexfrm: Likewise.
51366         * modules/unicase/u16-ct-casefold: Likewise.
51367         * modules/unicase/u16-ct-tolower: Likewise.
51368         * modules/unicase/u16-ct-totitle: Likewise.
51369         * modules/unicase/u16-ct-toupper: Likewise.
51370         * modules/unicase/u16-is-cased: Likewise.
51371         * modules/unicase/u16-is-casefolded: Likewise.
51372         * modules/unicase/u16-is-lowercase: Likewise.
51373         * modules/unicase/u16-is-titlecase: Likewise.
51374         * modules/unicase/u16-is-uppercase: Likewise.
51375         * modules/unicase/u16-prefix-context: Likewise.
51376         * modules/unicase/u16-suffix-context: Likewise.
51377         * modules/unicase/u16-tolower: Likewise.
51378         * modules/unicase/u16-totitle: Likewise.
51379         * modules/unicase/u16-toupper: Likewise.
51380         * modules/unicase/u32-casecmp: Likewise.
51381         * modules/unicase/u32-casecoll: Likewise.
51382         * modules/unicase/u32-casefold: Likewise.
51383         * modules/unicase/u32-casexfrm: Likewise.
51384         * modules/unicase/u32-ct-casefold: Likewise.
51385         * modules/unicase/u32-ct-tolower: Likewise.
51386         * modules/unicase/u32-ct-totitle: Likewise.
51387         * modules/unicase/u32-ct-toupper: Likewise.
51388         * modules/unicase/u32-is-cased: Likewise.
51389         * modules/unicase/u32-is-casefolded: Likewise.
51390         * modules/unicase/u32-is-lowercase: Likewise.
51391         * modules/unicase/u32-is-titlecase: Likewise.
51392         * modules/unicase/u32-is-uppercase: Likewise.
51393         * modules/unicase/u32-prefix-context: Likewise.
51394         * modules/unicase/u32-suffix-context: Likewise.
51395         * modules/unicase/u32-tolower: Likewise.
51396         * modules/unicase/u32-totitle: Likewise.
51397         * modules/unicase/u32-toupper: Likewise.
51398         * modules/unicase/ulc-casecmp: Likewise.
51399         * modules/unicase/ulc-casecoll: Likewise.
51400         * modules/unicase/ulc-casexfrm: Likewise.
51401         * modules/uniconv/u8-conv-from-enc: Likewise.
51402         * modules/uniconv/u8-conv-to-enc: Likewise.
51403         * modules/uniconv/u8-strconv-from-enc: Likewise.
51404         * modules/uniconv/u8-strconv-from-locale: Likewise.
51405         * modules/uniconv/u8-strconv-to-enc: Likewise.
51406         * modules/uniconv/u8-strconv-to-locale: Likewise.
51407         * modules/uniconv/u16-conv-from-enc: Likewise.
51408         * modules/uniconv/u16-conv-to-enc: Likewise.
51409         * modules/uniconv/u16-strconv-from-enc: Likewise.
51410         * modules/uniconv/u16-strconv-from-locale: Likewise.
51411         * modules/uniconv/u16-strconv-to-enc: Likewise.
51412         * modules/uniconv/u16-strconv-to-locale: Likewise.
51413         * modules/uniconv/u32-conv-from-enc: Likewise.
51414         * modules/uniconv/u32-conv-to-enc: Likewise.
51415         * modules/uniconv/u32-strconv-from-enc: Likewise.
51416         * modules/uniconv/u32-strconv-from-locale: Likewise.
51417         * modules/uniconv/u32-strconv-to-enc: Likewise.
51418         * modules/uniconv/u32-strconv-to-locale: Likewise.
51419         * modules/unictype/bidicategory-byname: Likewise.
51420         * modules/unictype/bidicategory-name: Likewise.
51421         * modules/unictype/bidicategory-of: Likewise.
51422         * modules/unictype/bidicategory-test: Likewise.
51423         * modules/unictype/block-list: Likewise.
51424         * modules/unictype/block-test: Likewise.
51425         * modules/unictype/category-C: Likewise.
51426         * modules/unictype/category-Cc: Likewise.
51427         * modules/unictype/category-Cf: Likewise.
51428         * modules/unictype/category-Cn: Likewise.
51429         * modules/unictype/category-Co: Likewise.
51430         * modules/unictype/category-Cs: Likewise.
51431         * modules/unictype/category-L: Likewise.
51432         * modules/unictype/category-Ll: Likewise.
51433         * modules/unictype/category-Lm: Likewise.
51434         * modules/unictype/category-Lo: Likewise.
51435         * modules/unictype/category-Lt: Likewise.
51436         * modules/unictype/category-Lu: Likewise.
51437         * modules/unictype/category-M: Likewise.
51438         * modules/unictype/category-Mc: Likewise.
51439         * modules/unictype/category-Me: Likewise.
51440         * modules/unictype/category-Mn: Likewise.
51441         * modules/unictype/category-N: Likewise.
51442         * modules/unictype/category-Nd: Likewise.
51443         * modules/unictype/category-Nl: Likewise.
51444         * modules/unictype/category-No: Likewise.
51445         * modules/unictype/category-P: Likewise.
51446         * modules/unictype/category-Pc: Likewise.
51447         * modules/unictype/category-Pd: Likewise.
51448         * modules/unictype/category-Pe: Likewise.
51449         * modules/unictype/category-Pf: Likewise.
51450         * modules/unictype/category-Pi: Likewise.
51451         * modules/unictype/category-Po: Likewise.
51452         * modules/unictype/category-Ps: Likewise.
51453         * modules/unictype/category-S: Likewise.
51454         * modules/unictype/category-Sc: Likewise.
51455         * modules/unictype/category-Sk: Likewise.
51456         * modules/unictype/category-Sm: Likewise.
51457         * modules/unictype/category-So: Likewise.
51458         * modules/unictype/category-Z: Likewise.
51459         * modules/unictype/category-Zl: Likewise.
51460         * modules/unictype/category-Zp: Likewise.
51461         * modules/unictype/category-Zs: Likewise.
51462         * modules/unictype/category-and: Likewise.
51463         * modules/unictype/category-and-not: Likewise.
51464         * modules/unictype/category-byname: Likewise.
51465         * modules/unictype/category-name: Likewise.
51466         * modules/unictype/category-none: Likewise.
51467         * modules/unictype/category-of: Likewise.
51468         * modules/unictype/category-or: Likewise.
51469         * modules/unictype/category-test: Likewise.
51470         * modules/unictype/combining-class: Likewise.
51471         * modules/unictype/ctype-alnum: Likewise.
51472         * modules/unictype/ctype-alpha: Likewise.
51473         * modules/unictype/ctype-blank: Likewise.
51474         * modules/unictype/ctype-cntrl: Likewise.
51475         * modules/unictype/ctype-digit: Likewise.
51476         * modules/unictype/ctype-graph: Likewise.
51477         * modules/unictype/ctype-lower: Likewise.
51478         * modules/unictype/ctype-print: Likewise.
51479         * modules/unictype/ctype-punct: Likewise.
51480         * modules/unictype/ctype-space: Likewise.
51481         * modules/unictype/ctype-upper: Likewise.
51482         * modules/unictype/ctype-xdigit: Likewise.
51483         * modules/unictype/decimal-digit: Likewise.
51484         * modules/unictype/digit: Likewise.
51485         * modules/unictype/mirror: Likewise.
51486         * modules/unictype/numeric: Likewise.
51487         * modules/unictype/property-alphabetic: Likewise.
51488         * modules/unictype/property-ascii-hex-digit: Likewise.
51489         * modules/unictype/property-bidi-arabic-digit: Likewise.
51490         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51491         * modules/unictype/property-bidi-block-separator: Likewise.
51492         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51493         * modules/unictype/property-bidi-common-separator: Likewise.
51494         * modules/unictype/property-bidi-control: Likewise.
51495         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51496         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51497         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51498         * modules/unictype/property-bidi-european-digit: Likewise.
51499         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51500         * modules/unictype/property-bidi-left-to-right: Likewise.
51501         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51502         * modules/unictype/property-bidi-other-neutral: Likewise.
51503         * modules/unictype/property-bidi-pdf: Likewise.
51504         * modules/unictype/property-bidi-segment-separator: Likewise.
51505         * modules/unictype/property-bidi-whitespace: Likewise.
51506         * modules/unictype/property-byname: Likewise.
51507         * modules/unictype/property-combining: Likewise.
51508         * modules/unictype/property-composite: Likewise.
51509         * modules/unictype/property-currency-symbol: Likewise.
51510         * modules/unictype/property-dash: Likewise.
51511         * modules/unictype/property-decimal-digit: Likewise.
51512         * modules/unictype/property-default-ignorable-code-point: Likewise.
51513         * modules/unictype/property-deprecated: Likewise.
51514         * modules/unictype/property-diacritic: Likewise.
51515         * modules/unictype/property-extender: Likewise.
51516         * modules/unictype/property-format-control: Likewise.
51517         * modules/unictype/property-grapheme-base: Likewise.
51518         * modules/unictype/property-grapheme-extend: Likewise.
51519         * modules/unictype/property-grapheme-link: Likewise.
51520         * modules/unictype/property-hex-digit: Likewise.
51521         * modules/unictype/property-hyphen: Likewise.
51522         * modules/unictype/property-id-continue: Likewise.
51523         * modules/unictype/property-id-start: Likewise.
51524         * modules/unictype/property-ideographic: Likewise.
51525         * modules/unictype/property-ids-binary-operator: Likewise.
51526         * modules/unictype/property-ids-trinary-operator: Likewise.
51527         * modules/unictype/property-ignorable-control: Likewise.
51528         * modules/unictype/property-iso-control: Likewise.
51529         * modules/unictype/property-join-control: Likewise.
51530         * modules/unictype/property-left-of-pair: Likewise.
51531         * modules/unictype/property-line-separator: Likewise.
51532         * modules/unictype/property-logical-order-exception: Likewise.
51533         * modules/unictype/property-lowercase: Likewise.
51534         * modules/unictype/property-math: Likewise.
51535         * modules/unictype/property-non-break: Likewise.
51536         * modules/unictype/property-not-a-character: Likewise.
51537         * modules/unictype/property-numeric: Likewise.
51538         * modules/unictype/property-other-alphabetic: Likewise.
51539         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51540         * modules/unictype/property-other-grapheme-extend: Likewise.
51541         * modules/unictype/property-other-id-continue: Likewise.
51542         * modules/unictype/property-other-id-start: Likewise.
51543         * modules/unictype/property-other-lowercase: Likewise.
51544         * modules/unictype/property-other-math: Likewise.
51545         * modules/unictype/property-other-uppercase: Likewise.
51546         * modules/unictype/property-paired-punctuation: Likewise.
51547         * modules/unictype/property-paragraph-separator: Likewise.
51548         * modules/unictype/property-pattern-syntax: Likewise.
51549         * modules/unictype/property-pattern-white-space: Likewise.
51550         * modules/unictype/property-private-use: Likewise.
51551         * modules/unictype/property-punctuation: Likewise.
51552         * modules/unictype/property-quotation-mark: Likewise.
51553         * modules/unictype/property-radical: Likewise.
51554         * modules/unictype/property-sentence-terminal: Likewise.
51555         * modules/unictype/property-soft-dotted: Likewise.
51556         * modules/unictype/property-space: Likewise.
51557         * modules/unictype/property-terminal-punctuation: Likewise.
51558         * modules/unictype/property-test: Likewise.
51559         * modules/unictype/property-titlecase: Likewise.
51560         * modules/unictype/property-unassigned-code-value: Likewise.
51561         * modules/unictype/property-unified-ideograph: Likewise.
51562         * modules/unictype/property-uppercase: Likewise.
51563         * modules/unictype/property-variation-selector: Likewise.
51564         * modules/unictype/property-white-space: Likewise.
51565         * modules/unictype/property-xid-continue: Likewise.
51566         * modules/unictype/property-xid-start: Likewise.
51567         * modules/unictype/property-zero-width: Likewise.
51568         * modules/unictype/scripts: Likewise.
51569         * modules/unictype/syntax-c-ident: Likewise.
51570         * modules/unictype/syntax-c-whitespace: Likewise.
51571         * modules/unictype/syntax-java-ident: Likewise.
51572         * modules/unictype/syntax-java-whitespace: Likewise.
51573         * modules/unilbrk/u8-possible-linebreaks: Likewise.
51574         * modules/unilbrk/u8-width-linebreaks: Likewise.
51575         * modules/unilbrk/u16-possible-linebreaks: Likewise.
51576         * modules/unilbrk/u16-width-linebreaks: Likewise.
51577         * modules/unilbrk/u32-possible-linebreaks: Likewise.
51578         * modules/unilbrk/u32-width-linebreaks: Likewise.
51579         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
51580         * modules/unilbrk/ulc-width-linebreaks: Likewise.
51581         * modules/uniname/uniname: Likewise.
51582         * modules/uninorm/canonical-decomposition: Likewise.
51583         * modules/uninorm/composition: Likewise.
51584         * modules/uninorm/decomposing-form: Likewise.
51585         * modules/uninorm/decomposition: Likewise.
51586         * modules/uninorm/filter: Likewise.
51587         * modules/uninorm/nfc: Likewise.
51588         * modules/uninorm/nfd: Likewise.
51589         * modules/uninorm/nfkc: Likewise.
51590         * modules/uninorm/nfkd: Likewise.
51591         * modules/uninorm/u8-normalize: Likewise.
51592         * modules/uninorm/u8-normcmp: Likewise.
51593         * modules/uninorm/u8-normcoll: Likewise.
51594         * modules/uninorm/u8-normxfrm: Likewise.
51595         * modules/uninorm/u16-normalize: Likewise.
51596         * modules/uninorm/u16-normcmp: Likewise.
51597         * modules/uninorm/u16-normcoll: Likewise.
51598         * modules/uninorm/u16-normxfrm: Likewise.
51599         * modules/uninorm/u32-normalize: Likewise.
51600         * modules/uninorm/u32-normcmp: Likewise.
51601         * modules/uninorm/u32-normcoll: Likewise.
51602         * modules/uninorm/u32-normxfrm: Likewise.
51603         * modules/unistdio/u8-asnprintf: Likewise.
51604         * modules/unistdio/u8-asprintf: Likewise.
51605         * modules/unistdio/u8-snprintf: Likewise.
51606         * modules/unistdio/u8-sprintf: Likewise.
51607         * modules/unistdio/u8-u8-asnprintf: Likewise.
51608         * modules/unistdio/u8-u8-asprintf: Likewise.
51609         * modules/unistdio/u8-u8-snprintf: Likewise.
51610         * modules/unistdio/u8-u8-sprintf: Likewise.
51611         * modules/unistdio/u8-u8-vasnprintf: Likewise.
51612         * modules/unistdio/u8-u8-vasprintf: Likewise.
51613         * modules/unistdio/u8-u8-vsnprintf: Likewise.
51614         * modules/unistdio/u8-u8-vsprintf: Likewise.
51615         * modules/unistdio/u8-vasnprintf: Likewise.
51616         * modules/unistdio/u8-vasprintf: Likewise.
51617         * modules/unistdio/u8-vsnprintf: Likewise.
51618         * modules/unistdio/u8-vsprintf: Likewise.
51619         * modules/unistdio/u16-asnprintf: Likewise.
51620         * modules/unistdio/u16-asprintf: Likewise.
51621         * modules/unistdio/u16-snprintf: Likewise.
51622         * modules/unistdio/u16-sprintf: Likewise.
51623         * modules/unistdio/u16-u16-asnprintf: Likewise.
51624         * modules/unistdio/u16-u16-asprintf: Likewise.
51625         * modules/unistdio/u16-u16-snprintf: Likewise.
51626         * modules/unistdio/u16-u16-sprintf: Likewise.
51627         * modules/unistdio/u16-u16-vasnprintf: Likewise.
51628         * modules/unistdio/u16-u16-vasprintf: Likewise.
51629         * modules/unistdio/u16-u16-vsnprintf: Likewise.
51630         * modules/unistdio/u16-u16-vsprintf: Likewise.
51631         * modules/unistdio/u16-vasnprintf: Likewise.
51632         * modules/unistdio/u16-vasprintf: Likewise.
51633         * modules/unistdio/u16-vsnprintf: Likewise.
51634         * modules/unistdio/u16-vsprintf: Likewise.
51635         * modules/unistdio/u32-asnprintf: Likewise.
51636         * modules/unistdio/u32-asprintf: Likewise.
51637         * modules/unistdio/u32-snprintf: Likewise.
51638         * modules/unistdio/u32-sprintf: Likewise.
51639         * modules/unistdio/u32-u32-asnprintf: Likewise.
51640         * modules/unistdio/u32-u32-asprintf: Likewise.
51641         * modules/unistdio/u32-u32-snprintf: Likewise.
51642         * modules/unistdio/u32-u32-sprintf: Likewise.
51643         * modules/unistdio/u32-u32-vasnprintf: Likewise.
51644         * modules/unistdio/u32-u32-vasprintf: Likewise.
51645         * modules/unistdio/u32-u32-vsnprintf: Likewise.
51646         * modules/unistdio/u32-u32-vsprintf: Likewise.
51647         * modules/unistdio/u32-vasnprintf: Likewise.
51648         * modules/unistdio/u32-vasprintf: Likewise.
51649         * modules/unistdio/u32-vsnprintf: Likewise.
51650         * modules/unistdio/u32-vsprintf: Likewise.
51651         * modules/unistdio/ulc-asnprintf: Likewise.
51652         * modules/unistdio/ulc-asprintf: Likewise.
51653         * modules/unistdio/ulc-fprintf: Likewise.
51654         * modules/unistdio/ulc-snprintf: Likewise.
51655         * modules/unistdio/ulc-sprintf: Likewise.
51656         * modules/unistdio/ulc-vasnprintf: Likewise.
51657         * modules/unistdio/ulc-vasprintf: Likewise.
51658         * modules/unistdio/ulc-vfprintf: Likewise.
51659         * modules/unistdio/ulc-vsnprintf: Likewise.
51660         * modules/unistdio/ulc-vsprintf: Likewise.
51661         * modules/unistr/u8-check: Likewise.
51662         * modules/unistr/u8-chr: Likewise.
51663         * modules/unistr/u8-cmp: Likewise.
51664         * modules/unistr/u8-cmp2: Likewise.
51665         * modules/unistr/u8-cpy: Likewise.
51666         * modules/unistr/u8-cpy-alloc: Likewise.
51667         * modules/unistr/u8-endswith: Likewise.
51668         * modules/unistr/u8-mblen: Likewise.
51669         * modules/unistr/u8-mbsnlen: Likewise.
51670         * modules/unistr/u8-mbtouc: Likewise.
51671         * modules/unistr/u8-mbtouc-unsafe: Likewise.
51672         * modules/unistr/u8-mbtoucr: Likewise.
51673         * modules/unistr/u8-move: Likewise.
51674         * modules/unistr/u8-next: Likewise.
51675         * modules/unistr/u8-prev: Likewise.
51676         * modules/unistr/u8-set: Likewise.
51677         * modules/unistr/u8-startswith: Likewise.
51678         * modules/unistr/u8-stpcpy: Likewise.
51679         * modules/unistr/u8-stpncpy: Likewise.
51680         * modules/unistr/u8-strcat: Likewise.
51681         * modules/unistr/u8-strchr: Likewise.
51682         * modules/unistr/u8-strcmp: Likewise.
51683         * modules/unistr/u8-strcoll: Likewise.
51684         * modules/unistr/u8-strcpy: Likewise.
51685         * modules/unistr/u8-strcspn: Likewise.
51686         * modules/unistr/u8-strdup: Likewise.
51687         * modules/unistr/u8-strlen: Likewise.
51688         * modules/unistr/u8-strmblen: Likewise.
51689         * modules/unistr/u8-strmbtouc: Likewise.
51690         * modules/unistr/u8-strncat: Likewise.
51691         * modules/unistr/u8-strncmp: Likewise.
51692         * modules/unistr/u8-strncpy: Likewise.
51693         * modules/unistr/u8-strnlen: Likewise.
51694         * modules/unistr/u8-strpbrk: Likewise.
51695         * modules/unistr/u8-strrchr: Likewise.
51696         * modules/unistr/u8-strspn: Likewise.
51697         * modules/unistr/u8-strstr: Likewise.
51698         * modules/unistr/u8-strtok: Likewise.
51699         * modules/unistr/u8-to-u16: Likewise.
51700         * modules/unistr/u8-to-u32: Likewise.
51701         * modules/unistr/u8-uctomb: Likewise.
51702         * modules/unistr/u16-check: Likewise.
51703         * modules/unistr/u16-chr: Likewise.
51704         * modules/unistr/u16-cmp: Likewise.
51705         * modules/unistr/u16-cmp2: Likewise.
51706         * modules/unistr/u16-cpy: Likewise.
51707         * modules/unistr/u16-cpy-alloc: Likewise.
51708         * modules/unistr/u16-endswith: Likewise.
51709         * modules/unistr/u16-mblen: Likewise.
51710         * modules/unistr/u16-mbsnlen: Likewise.
51711         * modules/unistr/u16-mbtouc: Likewise.
51712         * modules/unistr/u16-mbtouc-unsafe: Likewise.
51713         * modules/unistr/u16-mbtoucr: Likewise.
51714         * modules/unistr/u16-move: Likewise.
51715         * modules/unistr/u16-next: Likewise.
51716         * modules/unistr/u16-prev: Likewise.
51717         * modules/unistr/u16-set: Likewise.
51718         * modules/unistr/u16-startswith: Likewise.
51719         * modules/unistr/u16-stpcpy: Likewise.
51720         * modules/unistr/u16-stpncpy: Likewise.
51721         * modules/unistr/u16-strcat: Likewise.
51722         * modules/unistr/u16-strchr: Likewise.
51723         * modules/unistr/u16-strcmp: Likewise.
51724         * modules/unistr/u16-strcoll: Likewise.
51725         * modules/unistr/u16-strcpy: Likewise.
51726         * modules/unistr/u16-strcspn: Likewise.
51727         * modules/unistr/u16-strdup: Likewise.
51728         * modules/unistr/u16-strlen: Likewise.
51729         * modules/unistr/u16-strmblen: Likewise.
51730         * modules/unistr/u16-strmbtouc: Likewise.
51731         * modules/unistr/u16-strncat: Likewise.
51732         * modules/unistr/u16-strncmp: Likewise.
51733         * modules/unistr/u16-strncpy: Likewise.
51734         * modules/unistr/u16-strnlen: Likewise.
51735         * modules/unistr/u16-strpbrk: Likewise.
51736         * modules/unistr/u16-strrchr: Likewise.
51737         * modules/unistr/u16-strspn: Likewise.
51738         * modules/unistr/u16-strstr: Likewise.
51739         * modules/unistr/u16-strtok: Likewise.
51740         * modules/unistr/u16-to-u32: Likewise.
51741         * modules/unistr/u16-to-u8: Likewise.
51742         * modules/unistr/u16-uctomb: Likewise.
51743         * modules/unistr/u32-check: Likewise.
51744         * modules/unistr/u32-chr: Likewise.
51745         * modules/unistr/u32-cmp: Likewise.
51746         * modules/unistr/u32-cmp2: Likewise.
51747         * modules/unistr/u32-cpy: Likewise.
51748         * modules/unistr/u32-cpy-alloc: Likewise.
51749         * modules/unistr/u32-endswith: Likewise.
51750         * modules/unistr/u32-mblen: Likewise.
51751         * modules/unistr/u32-mbsnlen: Likewise.
51752         * modules/unistr/u32-mbtouc: Likewise.
51753         * modules/unistr/u32-mbtouc-unsafe: Likewise.
51754         * modules/unistr/u32-mbtoucr: Likewise.
51755         * modules/unistr/u32-move: Likewise.
51756         * modules/unistr/u32-next: Likewise.
51757         * modules/unistr/u32-prev: Likewise.
51758         * modules/unistr/u32-set: Likewise.
51759         * modules/unistr/u32-startswith: Likewise.
51760         * modules/unistr/u32-stpcpy: Likewise.
51761         * modules/unistr/u32-stpncpy: Likewise.
51762         * modules/unistr/u32-strcat: Likewise.
51763         * modules/unistr/u32-strchr: Likewise.
51764         * modules/unistr/u32-strcmp: Likewise.
51765         * modules/unistr/u32-strcoll: Likewise.
51766         * modules/unistr/u32-strcpy: Likewise.
51767         * modules/unistr/u32-strcspn: Likewise.
51768         * modules/unistr/u32-strdup: Likewise.
51769         * modules/unistr/u32-strlen: Likewise.
51770         * modules/unistr/u32-strmblen: Likewise.
51771         * modules/unistr/u32-strmbtouc: Likewise.
51772         * modules/unistr/u32-strncat: Likewise.
51773         * modules/unistr/u32-strncmp: Likewise.
51774         * modules/unistr/u32-strncpy: Likewise.
51775         * modules/unistr/u32-strnlen: Likewise.
51776         * modules/unistr/u32-strpbrk: Likewise.
51777         * modules/unistr/u32-strrchr: Likewise.
51778         * modules/unistr/u32-strspn: Likewise.
51779         * modules/unistr/u32-strstr: Likewise.
51780         * modules/unistr/u32-strtok: Likewise.
51781         * modules/unistr/u32-to-u16: Likewise.
51782         * modules/unistr/u32-to-u8: Likewise.
51783         * modules/unistr/u32-uctomb: Likewise.
51784         * modules/uniwbrk/u8-wordbreaks: Likewise.
51785         * modules/uniwbrk/u16-wordbreaks: Likewise.
51786         * modules/uniwbrk/u32-wordbreaks: Likewise.
51787         * modules/uniwbrk/ulc-wordbreaks: Likewise.
51788         * modules/uniwbrk/wordbreak-property: Likewise.
51789         * modules/uniwidth/u8-strwidth: Likewise.
51790         * modules/uniwidth/u8-width: Likewise.
51791         * modules/uniwidth/u16-strwidth: Likewise.
51792         * modules/uniwidth/u16-width: Likewise.
51793         * modules/uniwidth/u32-strwidth: Likewise.
51794         * modules/uniwidth/u32-width: Likewise.
51795         * modules/uniwidth/width: Likewise.
51796         * modules/unicase/cased-tests (Makefile.am): Link all test programs
51797         with $(LIBUNISTRING).
51798         * modules/unicase/ignorable-tests: Likewise.
51799         * modules/unicase/locale-language-tests: Likewise.
51800         * modules/unicase/tolower-tests: Likewise.
51801         * modules/unicase/totitle-tests: Likewise.
51802         * modules/unicase/toupper-tests: Likewise.
51803         * modules/unicase/u8-casecmp-tests: Likewise.
51804         * modules/unicase/u8-casecoll-tests: Likewise.
51805         * modules/unicase/u8-casefold-tests: Likewise.
51806         * modules/unicase/u8-is-cased-tests: Likewise.
51807         * modules/unicase/u8-is-casefolded-tests: Likewise.
51808         * modules/unicase/u8-is-lowercase-tests: Likewise.
51809         * modules/unicase/u8-is-titlecase-tests: Likewise.
51810         * modules/unicase/u8-is-uppercase-tests: Likewise.
51811         * modules/unicase/u8-tolower-tests: Likewise.
51812         * modules/unicase/u8-totitle-tests: Likewise.
51813         * modules/unicase/u8-toupper-tests: Likewise.
51814         * modules/unicase/u16-casecmp-tests: Likewise.
51815         * modules/unicase/u16-casecoll-tests: Likewise.
51816         * modules/unicase/u16-casefold-tests: Likewise.
51817         * modules/unicase/u16-is-cased-tests: Likewise.
51818         * modules/unicase/u16-is-casefolded-tests: Likewise.
51819         * modules/unicase/u16-is-lowercase-tests: Likewise.
51820         * modules/unicase/u16-is-titlecase-tests: Likewise.
51821         * modules/unicase/u16-is-uppercase-tests: Likewise.
51822         * modules/unicase/u16-tolower-tests: Likewise.
51823         * modules/unicase/u16-totitle-tests: Likewise.
51824         * modules/unicase/u16-toupper-tests: Likewise.
51825         * modules/unicase/u32-casecmp-tests: Likewise.
51826         * modules/unicase/u32-casecoll-tests: Likewise.
51827         * modules/unicase/u32-casefold-tests: Likewise.
51828         * modules/unicase/u32-is-cased-tests: Likewise.
51829         * modules/unicase/u32-is-casefolded-tests: Likewise.
51830         * modules/unicase/u32-is-lowercase-tests: Likewise.
51831         * modules/unicase/u32-is-titlecase-tests: Likewise.
51832         * modules/unicase/u32-is-uppercase-tests: Likewise.
51833         * modules/unicase/u32-tolower-tests: Likewise.
51834         * modules/unicase/u32-totitle-tests: Likewise.
51835         * modules/unicase/u32-toupper-tests: Likewise.
51836         * modules/unicase/ulc-casecmp-tests: Likewise.
51837         * modules/unicase/ulc-casecoll-tests: Likewise.
51838         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
51839         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
51840         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
51841         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
51842         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
51843         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
51844         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
51845         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
51846         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
51847         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
51848         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
51849         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
51850         * modules/unictype/bidicategory-byname-tests: Likewise.
51851         * modules/unictype/bidicategory-name-tests: Likewise.
51852         * modules/unictype/bidicategory-of-tests: Likewise.
51853         * modules/unictype/bidicategory-test-tests: Likewise.
51854         * modules/unictype/block-list-tests: Likewise.
51855         * modules/unictype/block-of-tests: Likewise.
51856         * modules/unictype/block-test-tests: Likewise.
51857         * modules/unictype/category-C-tests: Likewise.
51858         * modules/unictype/category-Cc-tests: Likewise.
51859         * modules/unictype/category-Cf-tests: Likewise.
51860         * modules/unictype/category-Cn-tests: Likewise.
51861         * modules/unictype/category-Co-tests: Likewise.
51862         * modules/unictype/category-Cs-tests: Likewise.
51863         * modules/unictype/category-L-tests: Likewise.
51864         * modules/unictype/category-Ll-tests: Likewise.
51865         * modules/unictype/category-Lm-tests: Likewise.
51866         * modules/unictype/category-Lo-tests: Likewise.
51867         * modules/unictype/category-Lt-tests: Likewise.
51868         * modules/unictype/category-Lu-tests: Likewise.
51869         * modules/unictype/category-M-tests: Likewise.
51870         * modules/unictype/category-Mc-tests: Likewise.
51871         * modules/unictype/category-Me-tests: Likewise.
51872         * modules/unictype/category-Mn-tests: Likewise.
51873         * modules/unictype/category-N-tests: Likewise.
51874         * modules/unictype/category-Nd-tests: Likewise.
51875         * modules/unictype/category-Nl-tests: Likewise.
51876         * modules/unictype/category-No-tests: Likewise.
51877         * modules/unictype/category-P-tests: Likewise.
51878         * modules/unictype/category-Pc-tests: Likewise.
51879         * modules/unictype/category-Pd-tests: Likewise.
51880         * modules/unictype/category-Pe-tests: Likewise.
51881         * modules/unictype/category-Pf-tests: Likewise.
51882         * modules/unictype/category-Pi-tests: Likewise.
51883         * modules/unictype/category-Po-tests: Likewise.
51884         * modules/unictype/category-Ps-tests: Likewise.
51885         * modules/unictype/category-S-tests: Likewise.
51886         * modules/unictype/category-Sc-tests: Likewise.
51887         * modules/unictype/category-Sk-tests: Likewise.
51888         * modules/unictype/category-Sm-tests: Likewise.
51889         * modules/unictype/category-So-tests: Likewise.
51890         * modules/unictype/category-Z-tests: Likewise.
51891         * modules/unictype/category-Zl-tests: Likewise.
51892         * modules/unictype/category-Zp-tests: Likewise.
51893         * modules/unictype/category-Zs-tests: Likewise.
51894         * modules/unictype/category-and-not-tests: Likewise.
51895         * modules/unictype/category-and-tests: Likewise.
51896         * modules/unictype/category-byname-tests: Likewise.
51897         * modules/unictype/category-name-tests: Likewise.
51898         * modules/unictype/category-none-tests: Likewise.
51899         * modules/unictype/category-of-tests: Likewise.
51900         * modules/unictype/category-or-tests: Likewise.
51901         * modules/unictype/category-test-withtable-tests: Likewise.
51902         * modules/unictype/combining-class-tests: Likewise.
51903         * modules/unictype/ctype-alnum-tests: Likewise.
51904         * modules/unictype/ctype-alpha-tests: Likewise.
51905         * modules/unictype/ctype-blank-tests: Likewise.
51906         * modules/unictype/ctype-cntrl-tests: Likewise.
51907         * modules/unictype/ctype-digit-tests: Likewise.
51908         * modules/unictype/ctype-graph-tests: Likewise.
51909         * modules/unictype/ctype-lower-tests: Likewise.
51910         * modules/unictype/ctype-print-tests: Likewise.
51911         * modules/unictype/ctype-punct-tests: Likewise.
51912         * modules/unictype/ctype-space-tests: Likewise.
51913         * modules/unictype/ctype-upper-tests: Likewise.
51914         * modules/unictype/ctype-xdigit-tests: Likewise.
51915         * modules/unictype/decimal-digit-tests: Likewise.
51916         * modules/unictype/digit-tests: Likewise.
51917         * modules/unictype/mirror-tests: Likewise.
51918         * modules/unictype/numeric-tests: Likewise.
51919         * modules/unictype/property-alphabetic-tests: Likewise.
51920         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
51921         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
51922         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
51923         * modules/unictype/property-bidi-block-separator-tests: Likewise.
51924         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
51925         * modules/unictype/property-bidi-common-separator-tests: Likewise.
51926         * modules/unictype/property-bidi-control-tests: Likewise.
51927         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
51928         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
51929         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
51930         * modules/unictype/property-bidi-european-digit-tests: Likewise.
51931         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
51932         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
51933         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
51934         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
51935         * modules/unictype/property-bidi-pdf-tests: Likewise.
51936         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
51937         * modules/unictype/property-bidi-whitespace-tests: Likewise.
51938         * modules/unictype/property-byname-tests: Likewise.
51939         * modules/unictype/property-combining-tests: Likewise.
51940         * modules/unictype/property-composite-tests: Likewise.
51941         * modules/unictype/property-currency-symbol-tests: Likewise.
51942         * modules/unictype/property-dash-tests: Likewise.
51943         * modules/unictype/property-decimal-digit-tests: Likewise.
51944         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
51945         * modules/unictype/property-deprecated-tests: Likewise.
51946         * modules/unictype/property-diacritic-tests: Likewise.
51947         * modules/unictype/property-extender-tests: Likewise.
51948         * modules/unictype/property-format-control-tests: Likewise.
51949         * modules/unictype/property-grapheme-base-tests: Likewise.
51950         * modules/unictype/property-grapheme-extend-tests: Likewise.
51951         * modules/unictype/property-grapheme-link-tests: Likewise.
51952         * modules/unictype/property-hex-digit-tests: Likewise.
51953         * modules/unictype/property-hyphen-tests: Likewise.
51954         * modules/unictype/property-id-continue-tests: Likewise.
51955         * modules/unictype/property-id-start-tests: Likewise.
51956         * modules/unictype/property-ideographic-tests: Likewise.
51957         * modules/unictype/property-ids-binary-operator-tests: Likewise.
51958         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
51959         * modules/unictype/property-ignorable-control-tests: Likewise.
51960         * modules/unictype/property-iso-control-tests: Likewise.
51961         * modules/unictype/property-join-control-tests: Likewise.
51962         * modules/unictype/property-left-of-pair-tests: Likewise.
51963         * modules/unictype/property-line-separator-tests: Likewise.
51964         * modules/unictype/property-logical-order-exception-tests: Likewise.
51965         * modules/unictype/property-lowercase-tests: Likewise.
51966         * modules/unictype/property-math-tests: Likewise.
51967         * modules/unictype/property-non-break-tests: Likewise.
51968         * modules/unictype/property-not-a-character-tests: Likewise.
51969         * modules/unictype/property-numeric-tests: Likewise.
51970         * modules/unictype/property-other-alphabetic-tests: Likewise.
51971         * modules/unictype/property-other-default-ignorable-code-point-tests:
51972         Likewise.
51973         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
51974         * modules/unictype/property-other-id-continue-tests: Likewise.
51975         * modules/unictype/property-other-id-start-tests: Likewise.
51976         * modules/unictype/property-other-lowercase-tests: Likewise.
51977         * modules/unictype/property-other-math-tests: Likewise.
51978         * modules/unictype/property-other-uppercase-tests: Likewise.
51979         * modules/unictype/property-paired-punctuation-tests: Likewise.
51980         * modules/unictype/property-paragraph-separator-tests: Likewise.
51981         * modules/unictype/property-pattern-syntax-tests: Likewise.
51982         * modules/unictype/property-pattern-white-space-tests: Likewise.
51983         * modules/unictype/property-private-use-tests: Likewise.
51984         * modules/unictype/property-punctuation-tests: Likewise.
51985         * modules/unictype/property-quotation-mark-tests: Likewise.
51986         * modules/unictype/property-radical-tests: Likewise.
51987         * modules/unictype/property-sentence-terminal-tests: Likewise.
51988         * modules/unictype/property-soft-dotted-tests: Likewise.
51989         * modules/unictype/property-space-tests: Likewise.
51990         * modules/unictype/property-terminal-punctuation-tests: Likewise.
51991         * modules/unictype/property-test-tests: Likewise.
51992         * modules/unictype/property-titlecase-tests: Likewise.
51993         * modules/unictype/property-unassigned-code-value-tests: Likewise.
51994         * modules/unictype/property-unified-ideograph-tests: Likewise.
51995         * modules/unictype/property-uppercase-tests: Likewise.
51996         * modules/unictype/property-variation-selector-tests: Likewise.
51997         * modules/unictype/property-white-space-tests: Likewise.
51998         * modules/unictype/property-xid-continue-tests: Likewise.
51999         * modules/unictype/property-xid-start-tests: Likewise.
52000         * modules/unictype/property-zero-width-tests: Likewise.
52001         * modules/unictype/scripts-tests: Likewise.
52002         * modules/unictype/syntax-c-ident-tests: Likewise.
52003         * modules/unictype/syntax-c-whitespace-tests: Likewise.
52004         * modules/unictype/syntax-java-ident-tests: Likewise.
52005         * modules/unictype/syntax-java-whitespace-tests: Likewise.
52006         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
52007         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
52008         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
52009         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
52010         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
52011         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
52012         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
52013         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
52014         * modules/uniname/uniname-tests: Likewise.
52015         * modules/uninorm/canonical-decomposition-tests: Likewise.
52016         * modules/uninorm/compat-decomposition-tests: Likewise.
52017         * modules/uninorm/composition-tests: Likewise.
52018         * modules/uninorm/decomposing-form-tests: Likewise.
52019         * modules/uninorm/decomposition-tests: Likewise.
52020         * modules/uninorm/filter-tests: Likewise.
52021         * modules/uninorm/nfc-tests: Likewise.
52022         * modules/uninorm/nfd-tests: Likewise.
52023         * modules/uninorm/nfkc-tests: Likewise.
52024         * modules/uninorm/nfkd-tests: Likewise.
52025         * modules/uninorm/u8-normcmp-tests: Likewise.
52026         * modules/uninorm/u8-normcoll-tests: Likewise.
52027         * modules/uninorm/u16-normcmp-tests: Likewise.
52028         * modules/uninorm/u16-normcoll-tests: Likewise.
52029         * modules/uninorm/u32-normcmp-tests: Likewise.
52030         * modules/uninorm/u32-normcoll-tests: Likewise.
52031         * modules/unistdio/u8-asnprintf-tests: Likewise.
52032         * modules/unistdio/u8-vasnprintf-tests: Likewise.
52033         * modules/unistdio/u8-vasprintf-tests: Likewise.
52034         * modules/unistdio/u8-vsnprintf-tests: Likewise.
52035         * modules/unistdio/u8-vsprintf-tests: Likewise.
52036         * modules/unistdio/u16-asnprintf-tests: Likewise.
52037         * modules/unistdio/u16-vasnprintf-tests: Likewise.
52038         * modules/unistdio/u16-vasprintf-tests: Likewise.
52039         * modules/unistdio/u16-vsnprintf-tests: Likewise.
52040         * modules/unistdio/u16-vsprintf-tests: Likewise.
52041         * modules/unistdio/u32-asnprintf-tests: Likewise.
52042         * modules/unistdio/u32-vasnprintf-tests: Likewise.
52043         * modules/unistdio/u32-vasprintf-tests: Likewise.
52044         * modules/unistdio/u32-vsnprintf-tests: Likewise.
52045         * modules/unistdio/u32-vsprintf-tests: Likewise.
52046         * modules/unistdio/ulc-asnprintf-tests: Likewise.
52047         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
52048         * modules/unistdio/ulc-vasprintf-tests: Likewise.
52049         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
52050         * modules/unistdio/ulc-vsprintf-tests: Likewise.
52051         * modules/unistr/u8-check-tests: Likewise.
52052         * modules/unistr/u8-chr-tests: Likewise.
52053         * modules/unistr/u8-cmp-tests: Likewise.
52054         * modules/unistr/u8-cmp2-tests: Likewise.
52055         * modules/unistr/u8-cpy-alloc-tests: Likewise.
52056         * modules/unistr/u8-cpy-tests: Likewise.
52057         * modules/unistr/u8-mblen-tests: Likewise.
52058         * modules/unistr/u8-mbsnlen-tests: Likewise.
52059         * modules/unistr/u8-mbtouc-tests: Likewise.
52060         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
52061         * modules/unistr/u8-mbtoucr-tests: Likewise.
52062         * modules/unistr/u8-move-tests: Likewise.
52063         * modules/unistr/u8-next-tests: Likewise.
52064         * modules/unistr/u8-prev-tests: Likewise.
52065         * modules/unistr/u8-set-tests: Likewise.
52066         * modules/unistr/u8-stpcpy-tests: Likewise.
52067         * modules/unistr/u8-stpncpy-tests: Likewise.
52068         * modules/unistr/u8-strcat-tests: Likewise.
52069         * modules/unistr/u8-strcmp-tests: Likewise.
52070         * modules/unistr/u8-strcoll-tests: Likewise.
52071         * modules/unistr/u8-strcpy-tests: Likewise.
52072         * modules/unistr/u8-strdup-tests: Likewise.
52073         * modules/unistr/u8-strlen-tests: Likewise.
52074         * modules/unistr/u8-strmblen-tests: Likewise.
52075         * modules/unistr/u8-strmbtouc-tests: Likewise.
52076         * modules/unistr/u8-strncat-tests: Likewise.
52077         * modules/unistr/u8-strncmp-tests: Likewise.
52078         * modules/unistr/u8-strncpy-tests: Likewise.
52079         * modules/unistr/u8-strnlen-tests: Likewise.
52080         * modules/unistr/u8-to-u16-tests: Likewise.
52081         * modules/unistr/u8-to-u32-tests: Likewise.
52082         * modules/unistr/u8-uctomb-tests: Likewise.
52083         * modules/unistr/u16-check-tests: Likewise.
52084         * modules/unistr/u16-chr-tests: Likewise.
52085         * modules/unistr/u16-cmp-tests: Likewise.
52086         * modules/unistr/u16-cmp2-tests: Likewise.
52087         * modules/unistr/u16-cpy-alloc-tests: Likewise.
52088         * modules/unistr/u16-cpy-tests: Likewise.
52089         * modules/unistr/u16-mblen-tests: Likewise.
52090         * modules/unistr/u16-mbsnlen-tests: Likewise.
52091         * modules/unistr/u16-mbtouc-tests: Likewise.
52092         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
52093         * modules/unistr/u16-mbtoucr-tests: Likewise.
52094         * modules/unistr/u16-move-tests: Likewise.
52095         * modules/unistr/u16-next-tests: Likewise.
52096         * modules/unistr/u16-prev-tests: Likewise.
52097         * modules/unistr/u16-set-tests: Likewise.
52098         * modules/unistr/u16-stpcpy-tests: Likewise.
52099         * modules/unistr/u16-stpncpy-tests: Likewise.
52100         * modules/unistr/u16-strcat-tests: Likewise.
52101         * modules/unistr/u16-strcmp-tests: Likewise.
52102         * modules/unistr/u16-strcoll-tests: Likewise.
52103         * modules/unistr/u16-strcpy-tests: Likewise.
52104         * modules/unistr/u16-strdup-tests: Likewise.
52105         * modules/unistr/u16-strlen-tests: Likewise.
52106         * modules/unistr/u16-strmblen-tests: Likewise.
52107         * modules/unistr/u16-strmbtouc-tests: Likewise.
52108         * modules/unistr/u16-strncat-tests: Likewise.
52109         * modules/unistr/u16-strncmp-tests: Likewise.
52110         * modules/unistr/u16-strncpy-tests: Likewise.
52111         * modules/unistr/u16-strnlen-tests: Likewise.
52112         * modules/unistr/u16-to-u32-tests: Likewise.
52113         * modules/unistr/u16-to-u8-tests: Likewise.
52114         * modules/unistr/u16-uctomb-tests: Likewise.
52115         * modules/unistr/u32-check-tests: Likewise.
52116         * modules/unistr/u32-chr-tests: Likewise.
52117         * modules/unistr/u32-cmp-tests: Likewise.
52118         * modules/unistr/u32-cmp2-tests: Likewise.
52119         * modules/unistr/u32-cpy-alloc-tests: Likewise.
52120         * modules/unistr/u32-cpy-tests: Likewise.
52121         * modules/unistr/u32-mblen-tests: Likewise.
52122         * modules/unistr/u32-mbsnlen-tests: Likewise.
52123         * modules/unistr/u32-mbtouc-tests: Likewise.
52124         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
52125         * modules/unistr/u32-mbtoucr-tests: Likewise.
52126         * modules/unistr/u32-move-tests: Likewise.
52127         * modules/unistr/u32-next-tests: Likewise.
52128         * modules/unistr/u32-prev-tests: Likewise.
52129         * modules/unistr/u32-set-tests: Likewise.
52130         * modules/unistr/u32-stpcpy-tests: Likewise.
52131         * modules/unistr/u32-stpncpy-tests: Likewise.
52132         * modules/unistr/u32-strcat-tests: Likewise.
52133         * modules/unistr/u32-strcmp-tests: Likewise.
52134         * modules/unistr/u32-strcoll-tests: Likewise.
52135         * modules/unistr/u32-strcpy-tests: Likewise.
52136         * modules/unistr/u32-strdup-tests: Likewise.
52137         * modules/unistr/u32-strlen-tests: Likewise.
52138         * modules/unistr/u32-strmblen-tests: Likewise.
52139         * modules/unistr/u32-strmbtouc-tests: Likewise.
52140         * modules/unistr/u32-strncat-tests: Likewise.
52141         * modules/unistr/u32-strncmp-tests: Likewise.
52142         * modules/unistr/u32-strncpy-tests: Likewise.
52143         * modules/unistr/u32-strnlen-tests: Likewise.
52144         * modules/unistr/u32-to-u16-tests: Likewise.
52145         * modules/unistr/u32-to-u8-tests: Likewise.
52146         * modules/unistr/u32-uctomb-tests: Likewise.
52147         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
52148         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
52149         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
52150         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
52151         * modules/uniwidth/u8-strwidth-tests: Likewise.
52152         * modules/uniwidth/u8-width-tests: Likewise.
52153         * modules/uniwidth/u16-strwidth-tests: Likewise.
52154         * modules/uniwidth/u16-width-tests: Likewise.
52155         * modules/uniwidth/u32-strwidth-tests: Likewise.
52156         * modules/uniwidth/u32-width-tests: Likewise.
52157         * modules/uniwidth/width-tests: Likewise.
52159 2010-05-18  Richard Jones  <rjones@redhat.com>
52161         doc: users.txt: list hivex
52162         * users.txt: Add hivex.
52164 2010-05-18  Richard Jones  <rjones@redhat.com>
52166         doc: users.txt: list febootstrap
52167         * users.txt: Add febootstrap.
52169 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
52171         bootstrap: fix an error when gnulib is not used as a git submodule
52172         * build-aux/bootstrap (gnulib_path): If its length is zero then
52173         assign "gnulib" to it.
52174         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
52176 2010-05-16  Bruno Haible  <bruno@clisp.org>
52178         Avoid autoconf warnings about AM_ICONV.
52179         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
52180         2.64.
52182 2010-05-16  Bruno Haible  <bruno@clisp.org>
52184         absolute-header: Make the macro usable in more situations.
52185         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
52186         from gl_ABSOLUTE_HEADER.
52187         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
52189 2010-05-16  James Youngman  <jay@gnu.org>
52191         doc: update users.txt
52192         * users.txt: Add CSSC.
52194 2010-05-16  Jim Meyering  <meyering@redhat.com>
52196         init.sh: fix an error in the previous change; add more comments
52197         * tests/init.sh: Compare exit code in loop against 9, not 2.
52198         Patch by Bruno Haible.
52199         Make the two tests more similar by adding an empty "then" clause.
52200         Add comments.
52202         init.sh: avoid unnecessary shell re-exec
52203         * tests/init.sh: Improve the re-exec-required check to first test the
52204         current shell.  If it passes the test, do not search for a shell that
52205         does pass, and do not re-exec.  This test is particularly contorted to
52206         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
52207         of $(...) evokes a syntax error and causes immediate shell exit with
52208         status 2.  Bruno Haible reported that the re-exec made it impossible
52209         to single-step through any init.sh-using script.
52211 2010-05-16  Bruno Haible  <bruno@clisp.org>
52213         Fix collision between gnulib's and libintl's printf replacements.
52214         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
52215         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
52216         (printf): When using GNU C, map the __printf__ function to rpl_printf
52217         via __asm__. When not using GNU C, define rpl_printf instead of
52218         __printf__.
52219         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
52220         commit.
52221         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
52222         commit.
52223         * m4/asm-underscore.m4: New file.
52224         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
52225         * modules/stdio (Files): Add m4/asm-underscore.m4.
52226         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
52227         Reported by Ben Pfaff.
52229 2010-05-16  Bruno Haible  <bruno@clisp.org>
52231         verify: Avoid skipping the test on openSUSE 11.0.
52232         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
52234 2010-05-13  Bruno Haible  <bruno@clisp.org>
52236         Avoid useless warnings from G++.
52237         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
52238         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
52239         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52241 2010-05-11  Jim Meyering  <meyering@redhat.com>
52243         maint.mk: tweak preceding change
52244         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
52245         regexps tighter by anchoring at EOL, and make the new group "shy"
52246         for slightly decreased overhead.
52248 2010-05-11  Eric Blake  <eblake@redhat.com>
52250         maint.mk: gnulib doesn't guarantee NSIG
52251         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
52253 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52255         test-pwrite.c: Remove unused variable declaration.
52256         * tests/test-pwrite.c (main): Remove read_buf declaration.
52258         Remove useless test-pwrite.sh file.
52259         * tests/test-pwrite.sh: Delete file.
52260         * modules/pwrite-tests: Remove references.
52261         Reported by Bruno Haible.
52263 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52265         init.sh: fix a typo
52266         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
52268 2010-05-10  Jim Meyering  <meyering@redhat.com>
52270         maint.mk: avoid using a temporary file in the always-defined-macros check
52271         * top/maint.mk (.re-defmac): Remove rule.
52272         (gl_trap_): Remove definition.
52273         (sc_prohibit_always-defined_macros): Rewrite not to create and
52274         depend on a temporary file.  Instead, depend on GNU grep's ability
52275         to read a list of regular expressions from stdin when given "-f -".
52277 2010-05-09  Bruno Haible  <bruno@clisp.org>
52279         Update to GNU gettext 0.18, part 1.
52280         * m4/gettext.m4: Update to GNU gettext 0.18.
52281         * m4/intl.m4: Likewise.
52282         * m4/po.m4: Likewise.
52283         * modules/gettext (Files): Add m4/fcntl-o.m4.
52284         (configure.ac): Require gettext infrastructure from version 0.18.
52286 2010-05-09  Jim Meyering  <meyering@redhat.com>
52288         init.sh: enable MALLOC_PERTURB_
52289         * tests/init.sh: Enable glibc's malloc-perturbing option.
52291         maint.mk: improve sc_cross_check_PATH_usage_in_tests
52292         With my recent change in init.sh from the two-line form:
52293             -#   : ${srcdir=.}
52294             -#   . "$srcdir/init.sh"; path_prepend_ .
52295             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52296         I noticed that using the one-line form would cause this test
52297         to fail with a false-positive, or to stop working altogether,
52298         depending on whether help-version changed or all the tests did.
52299         * top/maint.mk (_hv_regex): Remove this definition.
52300         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52301         (_hv_regex_strong): Use a stronger regex to check for conformance.
52302         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52303         Give a separate diagnostic for lack of conforming use.
52305         maint.mk: prohibit definition of symbols defined by gnulib
52306         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52307         definition of symbols defined by gnulib.
52309 2010-05-09  Bruno Haible  <bruno@clisp.org>
52311         acl: Avoid test failure on Cygwin-hosted mingw.
52312         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52314 2010-05-09  Bruno Haible  <bruno@clisp.org>
52316         error: Use system's fcntl function.
52317         * lib/error.c (fcntl): Undefine.
52319 2010-05-09  Jim Meyering  <meyering@redhat.com>
52321         verify: adjust formatting to be more consistent
52322         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52323         argument-list '('s, and after one comma.
52325 2010-05-09  Bruno Haible  <bruno@clisp.org>
52327         error: More reliable output on mingw.
52328         * lib/error.c: Include <windows.h>.
52329         (is_open): New function.
52330         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52331         defined.
52333 2010-05-09  Bruno Haible  <bruno@clisp.org>
52335         vasnprintf: Fix syntax errors in libintl build on mingw.
52336         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52337         pad_ourselves and prec_ourselves after use.
52339 2010-05-08  Bruno Haible  <bruno@clisp.org>
52341         * lib/config.charset: Update comments for Cygwin 1.7.
52342         * lib/localcharset.c: Likewise.
52344 2010-05-07  Jim Meyering  <meyering@redhat.com>
52346         init.sh: improve comments
52347         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52348         . "${srcdir=.}/init.sh"; path_prepend_ .
52349         Add a note about path_prepend_ and the alternative of using
52350         TESTS_ENVIRONMENT.
52352 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52354         exclude: Unescape hashed patterns in wildcard mode.
52355         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52356         to the hash list.
52357         * tests/test-exclude8.sh: New test case.
52358         * modules/exclude-tests: Add new test.
52360 2010-05-05  Eric Blake  <eblake@redhat.com>
52362         verify: automate tests
52363         * modules/verify-tests: New module.
52364         * tests/test-verify.sh: New file.
52365         * tests/test-verify.c: Guard each negative test with a unique id.
52366         Also avoid warning about unused left hand of comma expressions.
52368 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52370         Further improvements to verify.h, suggested by Eric Blake.
52371         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52372         the GL_* versions, to avoid collision with OpenGL.
52373         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52374         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52375         than testing merely whether it's defined.
52377         Modify verify.h to pacify gcc -Wredundant_decls.
52378         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52379         These use the prefix "GL_" since they're likely to be useful elsewhere.
52380         We may need to break them out into a different .h file.
52381         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52382         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52383         of verify_function__.
52385 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52387         Tests for module pwrite.
52388         * modules/pwrite-tests: New file.
52389         * tests/test-pwrite.sh: New file.
52390         * tests/test-pwrite.c: New file.
52392         New module pwrite.
52393         * lib/unistd.in.h (pwrite): New declaration.
52394         * lib/pwrite.c: New file, from glibc with modifications.
52395         * m4/pwrite.m4: New file.
52396         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52397         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52398         REPLACE_PWRITE.
52399         * modules/pwrite: New file.
52400         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52401         REPLACE_PWRITE.
52402         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52403         * doc/posix-functions/pwrite.texi: Mention the new module.
52405 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52407         pread: Update documentation.
52408         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52410 2010-05-04  Eric Blake  <eblake@redhat.com>
52412         docs: update cygwin progress
52413         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52414         this bug.
52415         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52416         Added in cygwin 1.7.2.
52417         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52418         Likewise.
52419         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52420         Likewise.
52421         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52422         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52423         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52424         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52425         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52426         Mention nproc module.
52427         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52428         bug in cygwin 1.7.5 addition.
52429         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52430         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52431         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52432         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52433         1.7.5.
52434         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52435         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52436         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52437         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52438         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52439         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52440         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52441         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52442         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52443         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52444         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52445         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52446         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52447         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52448         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52449         Likewise.
52450         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52451         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52452         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52453         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52454         Likewise.
52455         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52456         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52457         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52458         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52459         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52460         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52461         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52462         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52463         Likewise.
52464         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52465         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52466         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52467         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52468         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52469         Likewise.
52470         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52471         Likewise.
52472         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52473         Likewise.
52474         * doc/glibc-functions/xdrrec_endofrecord.texi
52475         (xdrrec_endofrecord): Likewise.
52476         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52477         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52478         Likewise.
52479         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52480         Likewise.
52482 2010-05-04  Jim Meyering  <meyering@redhat.com>
52484         gendocs.sh: make its "-s FILE" option more useful
52485         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52486         $PACKAGE to reflect the probably-different basename of "FILE".
52488 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52490         bootstrap: don't ignore download_po_files failure
52491         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52492         failure.
52494 2010-05-03  Jim Meyering  <meyering@redhat.com>
52496         maint.mk: allow to pass options to gendocs.sh
52497         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52498         (gendocs_options_): New overridable variable.
52500         gnu-web-doc-update: don't ignore configure or build failure
52501         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52503         announce-gen: backslash-escape '@'s in --help output
52504         * build-aux/announce-gen: Fix syntax errors.
52506         maint.mk, announce-gen: allow project-specific announcement mail headers
52507         * top/maint.mk (translation_project_): Define default.
52508         (announcement_Cc_, announcement_mail_headers_): Likewise.
52509         (announcement): Invoke announce-gen with new --mail-headers option.
52510         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52512         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52513         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52514         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52515         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52516         line in the "err2" output file when running "make check" in verbose
52517         mode (i.e., with set -x enabled).
52519 2010-05-03  Bruno Haible  <bruno@clisp.org>
52521         wctob: Fix for weird platforms.
52522         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52523         argument value.
52525 2010-05-03  Jim Meyering  <meyering@redhat.com>
52527         maint.mk: prohibit unwarranted use of <strings.h>
52528         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52529         strings.h in a file that does not also use strcasecmp, strncasecmp,
52530         ffs or ffsll.
52532         maint.mk: remove obsolete comments
52533         * top/maint.mk: Remove stale, commented-out rules.
52535 2010-05-02  Bruno Haible  <bruno@clisp.org>
52537         wcwidth: Declare also when it's aliased.
52538         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52539         macro.
52541 2010-05-02  Bruno Haible  <bruno@clisp.org>
52543         Fix regression from 2010-04-25.
52544         * gnulib-tool (func_modules_transitive_closure): Check the status of
52545         all modules, not only of the tests that are of the form foo-tests where
52546         foo is a module.
52548 2010-05-02  Bruno Haible  <bruno@clisp.org>
52550         wctob: Work around nasty Cygwin 1.7.2 bug.
52551         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
52552         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
52554 2010-05-01  Bruno Haible  <bruno@clisp.org>
52556         fpurge: Sharper test.
52557         * tests/test-fpurge.c (main): Add one more ftell check.
52558         * modules/fpurge-tests (Depends-on): Add ftell.
52559         Suggested by Eric Blake.
52561 2010-05-01  Bruno Haible  <bruno@clisp.org>
52563         ftello: Another test.
52564         * tests/test-ftello3.c: New file.
52565         * modules/ftello-tests (Files): Add it.
52566         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52567         MOSTLYCLEANFILES.
52569         ftell: Another test.
52570         * tests/test-ftell3.c: New file.
52571         * modules/ftell-tests (Files): Add it.
52572         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52573         MOSTLYCLEANFILES.
52575 2010-05-01  Bruno Haible  <bruno@clisp.org>
52577         ftell, ftello: Work around Solaris bug.
52578         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
52579         * lib/ftello.c: Include stdio-impl.h.
52580         (ftello): On Solaris, when _IOWRT is set, compute the result without
52581         looking at _IOREAD.
52582         * modules/ftello (Files): Add lib/stdio-impl.h.
52583         * doc/posix-functions/ftell.texi: Mention Solaris bug.
52584         * doc/posix-functions/ftello.texi: Likewise.
52585         Reported by Eric Blake.
52587 2010-05-01  Bruno Haible  <bruno@clisp.org>
52589         freading: Adapt to special meaning of _IOREAD flag on Solaris.
52590         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
52591         the _IOWRT flag is also set.
52593 2010-05-01  Bruno Haible  <bruno@clisp.org>
52595         Fix doc about a HP-UX stdio bug.
52596         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
52597         * doc/posix-functions/ftello.texi: Likewise.
52599 2010-05-01  Bruno Haible  <bruno@clisp.org>
52601         lseek test: Fix failure on Solaris.
52602         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
52603         output.
52605 2010-04-30  Jim Meyering  <meyering@redhat.com>
52607         bootstrap: don't ignore failure to generate po*/Makevars
52608         * build-aux/bootstrap (with_gettext): Don't ignore failure
52609         to create po/Makevars or runtime-po/Makevars.
52611 2010-04-29  Eric Blake  <eblake@redhat.com>
52613         headers: relax license to LGPLv2+
52614         * modules/fcntl-h (License): Relax license.
52615         * modules/getopt-posix (License): Likewise.
52616         * modules/locale (License): Likewise.
52617         * modules/math (License): Likewise.
52618         * modules/pty (License): Likewise.
52619         * modules/sched (License): Likewise.
52620         * modules/search (License): Likewise.
52621         * modules/spawn (License): Likewise.
52622         * modules/stdarg (License): Likewise.
52623         * modules/sysexits (License): Likewise.
52625 2010-04-29  Jim Meyering  <meyering@redhat.com>
52627         inttypes: relax license to LGPLv2+
52628         * modules/inttypes (License): Relax license.
52630 2010-04-29  Simon Josefsson  <simon@josefsson.org>
52632         * top/maint.mk (indent): Run twice to produce idempotent results.
52634 2010-04-28  Bruno Haible  <bruno@clisp.org>
52636         getdate: Generate getdate.c in the source directory.
52637         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
52638         MOSTLYCLEANFILES.
52639         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
52641 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
52643         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
52644         is not declared as a const *; avoid warnings in that case.
52646 2010-04-28  Eric Blake  <eblake@redhat.com>
52648         canonicalize-lgpl: avoid compiler warning
52649         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
52650         declaration' / 'extraneous semicolon' warning with some compilers.
52651         Reported by Andreas Gruenbacher.
52653 2010-04-28  Jim Meyering  <meyering@redhat.com>
52655         init.sh: ensure a more reliable exit status when exiting via trap
52656         * tests/init.sh (setup_): Don't rely on $? in signal handler.
52657         Inspired by patches from Dmitry V. Levin.
52658         Also trap on signal 3 (SIGQUIT).
52660 2010-04-27  Bruno Haible  <bruno@clisp.org>
52662         Update doc about utimes().
52663         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
52664         'utimens' module.
52665         Reported by Andreas Gruenbacher <agruen@suse.de>.
52667 2010-04-27  Eric Blake  <eblake@redhat.com>
52669         full-read, full-write: relax license
52670         * modules/full-read (License): Drop to LGPLv2+.
52671         * modules/full-write (License): Likewise.
52672         * modules/safe-read (License): Likewise.
52673         * modules/safe-write (License): Likewise.
52675         pthread: mention library for linking
52676         * modules/pthread (Link): Mention $(LIB_PTHREAD).
52678 2010-04-27  Jim Meyering  <meyering@redhat.com>
52680         maint.mk: fix a bug introduced in last change
52681         * top/maint.mk (gl_assured_headers_): Now that all names are on
52682         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
52683         is not anchored to end of word, it should be adequate.
52685         maint.mk: avoid side-effect in latest syntax-check
52686         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
52687         to run commands via $(shell...), and hence to incur cost only when
52688         the new rule is actually run.
52690         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
52691         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
52692         and use that to create a regexp used to detect all #if HAVE_..._H uses.
52693         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
52694         (gl_assured_headers_, az_, AZ_): Define.
52695         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
52697 2010-04-26  Jim Meyering  <jim@meyering.net>
52698             Bruno Haible  <bruno@clisp.org>
52700         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
52701         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
52702         Prompted by an exchange with Gilles Espinasse.
52704 2010-04-26  Jim Meyering  <meyering@redhat.com>
52706         git-version-gen: aesthetic tweak
52707         * build-aux/git-version-gen: Use "$nl" rather than a literal,
52708         so that the command remains on a single line.
52710 2010-04-26  Eric Blake  <eblake@redhat.com>
52712         git-version-gen: allow use on EBCDIC hosts
52713         * build-aux/git-version-gen (dirty): Use literal rather than tying
52714         ourselves to ascii.
52715         Reported by Steve Goetze.
52717 2010-04-25  Bruno Haible  <bruno@clisp.org>
52719         netdb: Add support for GNULIB_POSIXCHECK.
52720         * lib/netdb.in.h: Include warn-on-use.h.
52721         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
52722         functions are used when GNULIB_POSIXCHECK is defined and the
52723         getaddrinfo module is not in use.
52724         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
52725         freeaddrinfo, gai_strerror, getnameinfo are declared.
52726         * modules/netdb (Depends-on): Add warn-on-use.
52727         (Makefile.am): Include warn-on-use.h in netdb.h.
52729 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
52731         build: avoid "make check" failure without .git/ directory
52732         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
52733         there is no .git/ directory.
52735 2010-04-25  Bruno Haible  <bruno@clisp.org>
52737         ptsname: Fix misuse of ttyname_r.
52738         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
52739         of errno.
52741 2010-04-25  Bruno Haible  <bruno@clisp.org>
52743         ttyname_r: Make it work on Solaris 10.
52744         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
52745         if the system function has the POSIX declaration. Test whether the
52746         function fails if the buffer is less than 128 bytes large.
52747         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
52748         system's ttyname_r function. Provide a reasonably large buffer.
52749         * modules/ttyname_r (Depends-on): Add extensions.
52750         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
52752 2010-04-25  Bruno Haible  <bruno@clisp.org>
52754         Use the 'extensions' module for some more functions on Solaris.
52755         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
52756         module.
52757         * doc/posix-functions/ctime_r.texi: Likewise.
52758         * doc/posix-functions/getgrgid_r.texi: Likewise.
52759         * doc/posix-functions/getgrnam_r.texi: Likewise.
52760         * doc/posix-functions/getpwnam_r.texi: Likewise.
52761         * doc/posix-functions/getpwuid_r.texi: Likewise.
52762         * doc/posix-functions/readdir_r.texi: Likewise.
52763         * doc/posix-functions/sigwait.texi: Likewise.
52764         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
52765         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
52767 2010-04-25  Bruno Haible  <bruno@clisp.org>
52769         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
52770         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
52771         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
52772         * lib/ttyname_r.c: Include <limits.h>.
52773         (ttyname_r): Define using the system's ttyname_r function, if it exists
52774         and not on Solaris.
52775         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
52776         set.
52777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
52778         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
52779         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
52780         Reported by Simon Josefsson.
52782 2010-04-25  Bruno Haible  <bruno@clisp.org>
52784         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
52785         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
52786         * doc/posix-functions/ctime_r.texi: Likewise.
52787         * doc/posix-functions/getgrgid_r.texi: Likewise.
52788         * doc/posix-functions/getgrnam_r.texi: Likewise.
52789         * doc/posix-functions/getlogin_r.texi: Likewise.
52790         * doc/posix-functions/getpwnam_r.texi: Likewise.
52791         * doc/posix-functions/getpwuid_r.texi: Likewise.
52792         * doc/posix-functions/readdir_r.texi: Likewise.
52793         * doc/posix-functions/sigwait.texi: Likewise.
52794         * doc/posix-functions/ttyname_r.texi: Likewise.
52795         Reported by Simon Josefsson.
52797 2010-04-25  Bruno Haible  <bruno@clisp.org>
52799         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
52800         * gnulib-tool (func_usage): Document that --with-*-tests options apply
52801         also to --create-testdir.
52802         (func_acceptable): Don't consider the status of *-tests modules here.
52803         (func_modules_transitive_closure): Consider it here, before including a
52804         test module.
52805         (func_import, func_create_testdir): Set inc_all_direct_tests,
52806         inc_all_indirect_tests.
52807         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
52808         --create-testdir and --create-megatestdir.
52810 2010-04-25  Bruno Haible  <bruno@clisp.org>
52812         gnulib-tool: Add --without-*-tests options.
52813         * gnulib-tool (func_usage): Document the --without-*-tests options.
52814         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
52815         excl_unportable_tests): New variables.
52816         Fail if they are specified with --import or --update.
52817         (func_acceptable): Respect the excl_*_tests variables.
52818         (func_import): Set the excl_*_tests variables to empty.
52820 2010-04-25  Simon Josefsson  <simon@josefsson.org>
52821             Bruno Haible  <bruno@clisp.org>
52823         Work around a MacOS X 10.4 bug with openpty.
52824         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
52825         * tests/test-openpty.c (main): Close the master side explicitly.
52827 2010-04-25  Bruno Haible  <bruno@clisp.org>
52829         strnlen: Fix a C++ test error on MacOS X and Solaris.
52830         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
52831         the function is not declared.
52832         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
52833         Simon Josefsson.
52835 2010-04-24  Bruno Haible  <bruno@clisp.org>
52837         Avoid a gcc warning.
52838         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
52839         of correct type for %08lx directive.
52840         Reported by Eric Blake.
52842 2010-04-24  Bruno Haible  <bruno@clisp.org>
52844         vasnprintf: Correct errno value in case of out-of-memory.
52845         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
52846         or sprintf. Use the errno value from SNPRINTF or sprintf.
52847         Reported by Ian Beckwith <ianb@erislabs.net>.
52849 2010-04-24  Bruno Haible  <bruno@clisp.org>
52851         ansi-c++-opt: Find correct compiler when cross-compiling.
52852         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
52853         AC_CHECK_PROGS.
52854         Reported by Simon Josefsson.
52856 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
52858         vc-list-files: Add support for subversion
52859         * build-aux/vc-list-files: Use "svn list" to generate the list of
52860         files controlled by subversion.
52862 2010-04-23  Jim Meyering  <meyering@redhat.com>
52864         vc-list-files tests: convert to use init.sh
52865         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
52866         path_prepend_.
52867         Use Exit, not exit.
52868         Use skip_ rather than open coding it.
52869         Remove trap set-up and compare definitions.
52870         * tests/test-vc-list-files-git.sh: Likewise.
52871         * modules/vc-list-files-tests (Files): Add tests/init.sh.
52873 2010-04-22  Simon Josefsson  <simon@josefsson.org>
52875         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
52876         backup files.
52878 2010-04-21  Simon Josefsson  <simon@josefsson.org>
52880         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
52882 2010-04-20  Eric Blake  <eblake@redhat.com>
52884         tests: be robust to ignored SIGPIPE
52885         * tests/test-select-in.sh: Consume all output.
52886         * tests/test-lseek.sh: Check correct exit status, while avoiding
52887         EPIPE.
52889 2010-04-20  Simon Josefsson  <simon@josefsson.org>
52890             Bruno Haible  <bruno@clisp.org>
52892         visibility: Don't use -fvisibility if it leads to a warning.
52893         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
52894         yes, don't pretend that visibility works if it leads to a warning.
52895         Reported by Mike Gran <spk121@yahoo.com>.
52897 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
52899         * build-aux/bootstrap: Use "git -h" for testing for supported options
52900         instead of "git --help".  The short-form option only shows a summary,
52901         and doesn't layout the full man page.  Grep for the full option name
52902         in the summary, too.
52904 2010-04-19  Bruno Haible  <bruno@clisp.org>
52906         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
52907         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
52908         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
52909         mention of RELOCATABLE_STRIP.
52910         Reported by Sylvain Beucler <beuc@beuc.net>.
52912 2010-04-19  Bruno Haible  <bruno@clisp.org>
52914         * lib/diffseq.h: Fix typo in comment.
52915         Reported by Eric Blake.
52917 2010-04-19  Bruno Haible  <bruno@clisp.org>
52919         ioctl: Move autoconf macro to a .m4 file.
52920         * m4/ioctl.m4: New file, extracted from modules/ioctl.
52921         * modules/ioctl (Files): Add it.
52922         (configure.ac): Simply invoke gl_FUNC_IOCTL.
52923         Reported by Ian Beckwith <ianb@erislabs.net>.
52925 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
52926             Bruno Haible  <bruno@clisp.org>
52928         diffseq: Accommodate use-case with abstract arrays.
52929         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
52930         is not defined.
52931         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
52932         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
52934 2010-04-18  Bruno Haible  <bruno@clisp.org>
52936         * doc/posix-headers/stdbool.texi: More precise wording.
52938 2010-04-17  Jim Meyering  <meyering@redhat.com>
52940         maint.mk: use gnu-style indentation in an embedded perl script
52941         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
52942         Rename variable: s/two/last_two_bytes/
52944 2010-04-16  Eric Blake  <eblake@redhat.com>
52946         test-stdbool: skip test that fails with Solaris CC
52947         * tests/test-stdbool.c (f): Skip test that causes compilation
52948         error under buggy C++ compiler.
52949         * lib/stdbool.in.h: Document the limitation.
52950         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
52952         setenv: allow compilation with C++
52953         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
52954         register keyword.
52956         stdint: allow test to pass with C++
52957         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
52959         getopt: allow compilation with C++
52960         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
52961         struct.
52962         * lib/getopt.c (_getopt_internal_r): Use correct type.
52963         Reported by Dagobert Michelson, via Joel E. Denny.
52965 2010-04-16  Bruno Haible  <bruno@clisp.org>
52967         Override netdb.h always.
52968         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
52969         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
52970         Reported by Ludovic Courtès <ludo@gnu.org>.
52972 2010-04-15  Bruno Haible  <bruno@clisp.org>
52974         openpty: Fix mistake from 2010-03-21.
52975         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
52976         Reported by Simon Josefsson.
52978 2010-04-15  Eric Blake  <eblake@redhat.com>
52980         test-forkpty: fix expected signature
52981         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
52982         Reported by Simon Josefsson.
52984 2010-04-15  Jim Meyering  <meyering@redhat.com>
52986         maint.mk: texinfo_suffix_re_: correct the default regexp
52987         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
52989         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
52990         make it configurable via texinfo_suffix_re_.
52992 2010-04-14  Eric Blake  <eblake@redhat.com>
52994         strtok_r: relax license to LGPLv2+
52995         * modules/strtok_r (License): Relax license.
52996         Reported by Matthias Bolte.
52998 2010-04-14  Simon Josefsson  <simon@josefsson.org>
53000         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
53001         version 1.4.4 by default instead of requiring the libgcrypt
53002         version used during build.  This makes it possible to use the
53003         application with older but still binary compatible libgcrypt
53004         versions.
53006 2010-04-13  Eric Blake  <eblake@redhat.com>
53008         getopt-gnu: match recent glibc fixes and posix ruling
53009         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
53010         '+' handling, when requesting extensions.
53011         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
53012         'W;' handling.
53013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
53014         * doc/posix-functions/getopt.texi (getopt): Document this.
53015         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53016         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53017         Likewise.
53019         getopt: merge bug fixes from glibc
53020         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
53021         diagnostics.  Honor '+:' correctly.  Reject ';'.
53023         getopt-posix: detect MacOS bug
53024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
53025         optind when missing a required argument.
53026         * doc/posix-functions/getopt.texi (getopt): Document the bug.
53027         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53028         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53029         Likewise.
53031         getopt-posix: avoid spurious failure on Solaris
53032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
53033         an indicator that setting optind=1 is sufficient for reset.
53035         getopt-posix: avoid spurious failure on FreeBSD
53036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
53037         in POSIX mode, since the m4 test uses it.
53039         gnulib-tool: silence warning on BSD sh
53040         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
53042 2010-04-13  Jim Meyering  <meyering@redhat.com>
53044         doc: users.txt: GNU patch now uses gnulib
53045         * users.txt: Add patch.
53047 2010-04-12  Jim Meyering  <meyering@redhat.com>
53049         maint.mk: generate more concise timing data for syntax-check rules
53050         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
53051         " done" from each line that reports a syntax-check test duration.
53053 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
53055         git-version-gen: use "git update-index..." rather than "git status"
53056         * build-aux/git-version-gen: Use git update-index --refresh, not
53057         "git status".  With some versions of git, "git status" would fail
53058         to update the index and result in an unwarranted "-dirty" suffix.
53060 2010-04-11  Jim Meyering  <meyering@redhat.com>
53062         openat: correct formatting (no semantic change)
53063         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
53064         Suggested by Bruno Haible.
53066 2010-04-11  Bruno Haible  <bruno@clisp.org>
53068         Stricter declaration checking in testdirs.
53069         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53070         If for_tests is true, augment AM_CPPFLAGS to define
53071         GNULIB_STRICT_CHECKING.
53072         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
53073         GNULIB_STRICT_CHECKING is defined, verify that the function is
53074         declared.
53076 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
53077             Bruno Haible  <bruno@clisp.org>
53079         libunistring: Improve configure output.
53080         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
53081         Don't say "consider installing GNU libunistring" when checking again
53082         with libiconv.
53084 2010-04-11  Bruno Haible  <bruno@clisp.org>
53086         libunistring: Correct value of $LTLIBUNISTRING.
53087         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
53088         correct the value of $LTLIBUNISTRING.
53090 2010-04-11  Bruno Haible  <bruno@clisp.org>
53092         havelib: Add static libraries to LIBS in the right order.
53093         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
53094         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
53096 2010-04-11  Bruno Haible  <bruno@clisp.org>
53098         libunistring: Detect libunistring also when it depends on libiconv.
53099         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
53100         the second AC_LIB_HAVE_LINKFLAGS invocation.
53102 2010-04-11  James Youngman  <jay@gnu.org>
53104         close-stream: declare local scalars to be "const"
53105         * lib/close-stream.c (close_stream): Make boolean variables const
53106         to document the fact that we set but do not change them.
53108 2010-04-11  Bruno Haible  <bruno@clisp.org>
53110         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
53112 2010-04-11  Jim Meyering  <meyering@redhat.com>
53114         maint.mk: don't include dist-check.mk
53115         * top/maint.mk: Remove bogus include directive.
53117         maint.mk: improve empty-line-at-EOF check
53118         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
53119         solution, rather than tail+Perl-based one.  The latter would read
53120         a few kilobytes from the end of each file, and did not handle empty
53121         files properly.
53123         maint.mk: print the elapsed time for each syntax-check rule
53124         * top/maint.mk (sc_m_rules_): Save start time in a file.
53125         (sc_z_rules_): New rules: remove temp file and print elapsed time.
53126         (local-check): Interpose the .z rules
53128 2010-04-11  Jim Meyering  <meyering@redhat.com>
53130         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
53131         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
53132         empty file with one that ends in an empty line.
53134 2010-04-10  Bruno Haible  <bruno@clisp.org>
53136         mkdir: Make it work on mingw64.
53137         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
53138         * lib/mkdir.c: Update comment.
53139         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
53141 2010-04-10  Bruno Haible  <bruno@clisp.org>
53143         Don't override improved macro from newer autoconf.
53144         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
53145         autoconf >= 2.62.
53146         Reported by Joel E. Denny <jdenny@clemson.edu>.
53148 2010-04-10  Jim Meyering  <meyering@redhat.com>
53150         maint.mk: new syntax-check rule: prohibit empty lines at end of file
53151         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
53153         maint.mk: correct a diagnostic
53154         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
53155         in diagnostic; now use $prohibit.
53157 2010-04-10  Bruno Haible  <address@hidden>
53159         fchownat: Fix a C++ test error on Solaris 8.
53160         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
53161         the function does not exist.
53163 2010-04-10  Bruno Haible  <bruno@clisp.org>
53165         vasnprintf: Add more tests.
53166         * tests/test-vasnprintf-posix.c: Include <errno.h>.
53167         (test_function): Test converting an invalid wide string.
53169         vasnprintf: Correct handling of unconvertible wide string arguments.
53170         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
53171         VASNPRINTF.
53172         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
53173         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
53174         smaller than the expected maximum need for the directive. Set errno to
53175         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
53176         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
53177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
53178         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
53179         * modules/vasnprintf (Files): Add m4/printf.m4.
53180         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53182 2010-04-10  Bruno Haible  <bruno@clisp.org>
53184         vasnprintf: Fix crash in %ls directive.
53185         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
53186         string is passed as argument to %ls, with no precision and no width.
53187         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53189 2010-04-10  Bruno Haible  <bruno@clisp.org>
53191         vasnprintf: Fix multiple test failures on mingw.
53192         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
53193         _snprintf, or snwprintf, not _snwprintf.
53195 2010-04-10  Bruno Haible  <bruno@clisp.org>
53197         write: Fix a C++ test error on mingw.
53198         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
53200 2010-04-10  Bruno Haible  <bruno@clisp.org>
53202         vasnprintf test: Reduce code duplication.
53203         * tests/test-vasnprintf.c (test_function): New function, extracted from
53204         test_vasnprintf.
53205         (test_vasnprintf, test_asnprintf): Invoke it.
53207 2010-04-10  Bruno Haible  <bruno@clisp.org>
53209         strnlen: Fix warning in C++ mode on MacOS X.
53210         * lib/string.in.h (strnlen): Use the modern idiom.
53211         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
53212         defining strnlen as a macro already in <config.h>.
53213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53214         REPLACE_STRNLEN.
53215         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
53216         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53218 2010-04-08  James Youngman  <jay@gnu.org>
53220         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
53221         the example.
53223 2010-04-09  Jim Meyering  <meyering@redhat.com>
53225         maint.mk: print better diagnostic when there is no $(_hv_file)
53226         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
53227         announce that when $(_hv_file) (aka help-version) does not exist.
53229         init.sh: run tr in the "C" locale to avoid multibyte interpretation
53230         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
53231         not try to interpret its random input bytes.  Jarno Rajahalme reported
53232         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
53233         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
53234         (mktempd_): Likewise, just in case.
53236         ftruncate: add two years to projected module removal date: 2012
53237         * m4/ftruncate.m4: Adjust comments.
53239         ftruncate: mark module as obsolete; even MinGW provides it, now
53240         * modules/ftruncate (Status): Obsolete.
53241         (Notice): Say that.
53242         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
53243         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
53245 2010-04-08  Bruno Haible  <bruno@clisp.org>
53247         Fix side effects from tests-related modules.
53248         * modules/dprintf-posix (Comment): New section.
53249         * modules/fprintf-posix (Comment): Likewise.
53250         * modules/obstack-printf-posix (Comment): Likewise.
53251         * modules/printf-posix (Comment): Likewise.
53252         * modules/snprintf-posix (Comment): Likewise.
53253         * modules/sprintf-posix (Comment): Likewise.
53254         * modules/vasnprintf-posix (Comment): Likewise.
53255         * modules/vasprintf-posix (Comment): Likewise.
53256         * modules/vdprintf-posix (Comment): Likewise.
53257         * modules/vfprintf-posix (Comment): Likewise.
53258         * modules/vprintf-posix (Comment): Likewise.
53259         * modules/vsnprintf-posix (Comment): Likewise.
53260         * modules/vsprintf-posix (Comment): Likewise.
53261         * modules/xprintf-posix (Comment): Likewise.
53262         * modules/xvasprintf-posix (Comment): Likewise.
53263         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
53264         * modules/floorf-tests (Depends-on): Likewise.
53265         * modules/round-tests (Depends-on): Likewise.
53266         * modules/roundf-tests (Depends-on): Likewise.
53267         * modules/trunc-tests (Depends-on): Likewise.
53268         * modules/truncf-tests (Depends-on): Likewise.
53269         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
53270         'fprintf-posix' module is not present.
53271         * tests/test-floorf2.c (check): Likewise.
53272         * tests/test-trunc2.c (check): Likewise.
53273         * tests/test-truncf2.c (check): Likewise.
53274         * tests/test-round2.c (equal): Likewise.
53275         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53277 2010-04-07  Karl Berry  <karl@gnu.org>
53279         * config/srclist.txt,
53280         * config/srclistvars.sh,
53281         * config/srclist-update: doc fixes.
53283 2010-04-07  Jim Meyering  <meyering@redhat.com>
53285         maint.mk: add a PATH crosschecking syntax-check rule
53286         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
53287         Useful if you use a test like the one in help-version (coreutils,
53288         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53289         printed by prog --version.
53291 2010-04-06  Bruno Haible  <bruno@clisp.org>
53293         Fix link error on mingw.
53294         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53295         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53297 2010-04-06  Bruno Haible  <bruno@clisp.org>
53299         Assume rmdir exists.
53300         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53302 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53304         doc: update users.txt
53305         * users.txt: Add gcal.
53307 2010-04-06  Jim Meyering  <meyering@redhat.com>
53309         init.sh: simply unset TMPDIR rather than risking env -i
53310         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53311         although it probably works fine on all Unix-based systems, some
53312         systems (Cygwin?) cannot tolerate a totally cleared environment.
53313         Suggestion from Eric Blake.
53315 2010-04-06  Jim Meyering  <meyering@redhat.com>
53317         init.sh: portability fix: use env's POSIX-specified -i option not -u
53318         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53319         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53321 2010-04-05  Bruno Haible  <bruno@clisp.org>
53323         btowc: Work around Cygwin 1.7.2 bug.
53324         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53325         does not map NUL to 0.
53326         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53328 2010-04-05  Bruno Haible  <bruno@clisp.org>
53330         Make the multithread modules work on Cygwin 1.7.2.
53331         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53332         imported symbols can be declared weak, so that it returns "no" on
53333         Cygwin 1.7.2.
53335 2010-04-05  Bruno Haible  <bruno@clisp.org>
53337         Use the module 'strncat'.
53338         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53340         Tests for module 'strncat'.
53341         * modules/strncat-tests: New file.
53342         * tests/test-strncat.c: New file.
53344         New module 'strncat'.
53345         * lib/string.in.h (strncat): New declaration.
53346         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53347         * m4/strncat.m4: New file, based on m4/memchr.m4.
53348         * modules/strncat: New file.
53349         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53350         is declared.
53351         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53352         REPLACE_STRNCAT.
53353         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53354         REPLACE_STRNCAT.
53355         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53356         module.
53357         * tests/test-string-c++.cc: Check signature of strncat.
53359 2010-04-05  Jim Meyering  <meyering@redhat.com>
53361         xstrtoumax-tests: convert to use init.sh
53362         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53363         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53364         Use Exit, not exit.
53365         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53367         xstrtoimax-tests: convert to use init.sh
53368         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53369         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53370         Use Exit, not exit.
53371         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53373 2010-04-05  Bruno Haible  <bruno@clisp.org>
53375         sys_socket: Avoid #define replacements in C++ mode.
53376         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53377         warning to the function if possible, rather than #defining the symbol
53378         to a dysfunctional alias.
53380 2010-04-05  Bruno Haible  <bruno@clisp.org>
53382         fseeko: Fix C++ test error on mingw.
53383         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53384         gl_FUNC_FSEEKO.
53385         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53386         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53387         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53388         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53390 2010-04-05  Bruno Haible  <bruno@clisp.org>
53392         duplocale: Improve test output.
53393         * tests/test-duplocale.c (main): Print reason for skipped test.
53395 2010-04-05  Bruno Haible  <bruno@clisp.org>
53397         Assume rmdir exists.
53398         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53399         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53401 2010-04-05  Bruno Haible  <bruno@clisp.org>
53403         Fix link error on Solaris 8 with cc.
53404         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53406 2010-04-05  Bruno Haible  <bruno@clisp.org>
53408         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53409         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53411 2010-04-05  Bruno Haible  <bruno@clisp.org>
53413         vasprintf: Update documentation.
53414         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53416 2010-04-05  Bruno Haible  <bruno@clisp.org>
53418         ptsname: Improve test.
53419         * tests/test-ptsname.c (main): Also try the various master names of BSD
53420         systems.
53422 2010-04-05  Bruno Haible  <bruno@clisp.org>
53424         memchr: Avoid a possible C++ test error.
53425         * lib/string.in.h (memchr): Provide declaration if function is missing.
53426         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53427         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53429         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53431 2010-04-05  Bruno Haible  <bruno@clisp.org>
53433         strtok_r: Improve idiom.
53434         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53435         AC_LIBOBJ is used.
53437 2010-04-05  Bruno Haible  <bruno@clisp.org>
53439         strdup: Improve idiom.
53440         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53441         AC_LIBOBJ is used.
53442         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53443         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53444         when AC_LIBOBJ is used.
53446 2010-04-05  Bruno Haible  <bruno@clisp.org>
53448         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53449         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53450         don't set REPLACE_MBSINIT to 1.
53451         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53452         don't set REPLACE_MBRTOWC to 1.
53453         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53454         exist, don't set REPLACE_MBSRTOWCS to 1.
53455         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53456         exist, don't set REPLACE_MBSNRTOWCS to 1.
53457         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53458         don't set REPLACE_WCRTOMB to 1.
53459         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53460         exist, don't set REPLACE_WCSRTOMBS to 1.
53461         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53462         exist, don't set REPLACE_WCSNRTOMBS to 1.
53464 2010-04-05  Bruno Haible  <bruno@clisp.org>
53466         ldexpl: Improve idiom.
53467         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53468         make sure to set HAVE_DECL_LDEXPL to 0.
53470 2010-04-05  Jim Meyering  <meyering@redhat.com>
53472         xstrtol-tests: convert to use init.sh
53473         * modules/xstrtol-tests (Files): Add tests/init.sh.
53474         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53475         Use Exit, not exit.
53476         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53478         atexit-tests: convert to use init.sh
53479         * modules/atexit-tests (Files): Add tests/init.sh.
53480         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53481         Use Exit, not exit.
53482         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53484         init.sh: fix typo
53485         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53487         init.sh: make it easier for a test script to write to the tty, ...
53488         when using automake's parallel-tests mode.
53489         * tests/init.sh (stderr_fileno_): Define overridable variable.
53490         (warn_): New function, to use it.
53491         (fail_, skip_, framework_failure_): Use warn_.
53493 2010-04-04  Bruno Haible  <bruno@clisp.org>
53495         btowc: Avoid warning.
53496         * lib/btowc.c: Include <stdlib.h>.
53497         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53499 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53500             Bruno Haible  <bruno@clisp.org>
53502         wchar: Port to NetBSD 1.5.
53503         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53504         * lib/wctype.in.h (WEOF): Likewise.
53506 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53507             Bruno Haible  <bruno@clisp.org>
53509         Port extended stdio to NetBSD 1.5.
53510         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53511         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53512         older.
53514 2010-04-04  Bruno Haible  <bruno@clisp.org>
53516         string: Remove unused substitution.
53517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53518         HAVE_DECL_STRERROR.
53519         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53521 2010-04-04  Bruno Haible  <bruno@clisp.org>
53523         strtod: Avoid a possible C++ test error.
53524         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53525         set REPLACE_STRTOD.
53527 2010-04-04  Bruno Haible  <bruno@clisp.org>
53529         strerror: Update documentation.
53530         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53532 2010-04-04  Bruno Haible  <bruno@clisp.org>
53534         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53535         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53536         _GL_CXXALIAS_SYS_CAST.
53538 2010-04-04  Bruno Haible  <bruno@clisp.org>
53540         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53541         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53542         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53543         REPLACE_FREXPL to 1.
53544         * doc/posix-functions/frexpl.texi: Update documentation.
53546 2010-04-04  Bruno Haible  <bruno@clisp.org>
53548         math: Fix some C++ test errors on Solaris 8 and Cygwin.
53549         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
53551 2010-04-04  Bruno Haible  <bruno@clisp.org>
53553         Implement nanosleep for native Windows.
53554         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
53556 2010-04-04  Bruno Haible  <bruno@clisp.org>
53558         math: Fix some C++ test errors on Solaris 8.
53559         * lib/math.in.h (truncf, trunc): Use simpler idiom.
53561 2010-04-04  Bruno Haible  <bruno@clisp.org>
53563         math: Fix some C++ test errors on Cygwin.
53564         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
53565         truncl): Provide declaration if the system does not have it.
53566         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
53567         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
53568         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
53569         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
53570         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
53571         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
53572         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
53573         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
53574         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
53575         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
53576         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
53577         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
53578         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
53579         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
53580         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
53581         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
53582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
53583         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53584         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53585         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
53586         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53587         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53589 2010-04-04  Bruno Haible  <bruno@clisp.org>
53591         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
53592         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
53593         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
53594         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53595         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
53596         * m4/isinf.m4 (gl_ISINF): Likewise.
53597         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
53599 2010-04-04  Bruno Haible  <bruno@clisp.org>
53601         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
53602         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
53604 2010-04-04  Bruno Haible  <bruno@clisp.org>
53606         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
53607         * modules/tmpfile (configure.ac): Update.
53609         tmpfile: Fix C++ test error on mingw.
53610         * lib/stdio.in.h (tmpfile): New declaration.
53611         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
53612         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
53613         * modules/tmpfile (Depends-on): Add stdio.
53614         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53615         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
53616         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
53617         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
53618         REPLACE_TMPFILE.
53619         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
53621 2010-04-04  Bruno Haible  <bruno@clisp.org>
53623         ioctl: Fix C++ test error on mingw.
53624         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
53625         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
53626         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
53628 2010-04-03  Bruno Haible  <bruno@clisp.org>
53630         wcwidth: Fix C++ test error on mingw.
53631         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
53632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
53633         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
53635 2010-04-03  Bruno Haible  <bruno@clisp.org>
53637         nanosleep: Fix C++ test error on mingw.
53638         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
53639         * lib/time.in.h (nanosleep): Use modern idiom.
53640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
53641         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
53642         REPLACE_NANOSLEEP to 1.
53643         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
53644         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
53646 2010-04-03  Bruno Haible  <bruno@clisp.org>
53648         strptime: Fix C++ test error on mingw.
53649         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
53650         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
53651         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
53652         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
53653         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
53654         not REPLACE_STRPTIME.
53655         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
53656         REPLACE_STRPTIME.
53658 2010-04-03  Bruno Haible  <bruno@clisp.org>
53660         timegm: Fix C++ test error on mingw.
53661         * lib/time.in.h (timegm): Use modern idiom.
53662         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
53663         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
53664         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
53665         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
53667 2010-04-03  Bruno Haible  <bruno@clisp.org>
53669         timegm: Assume declaration if function exists.
53670         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
53671         if it exists. Don't clobber ac_cv_func_timegm.
53673 2010-04-03  Bruno Haible  <bruno@clisp.org>
53675         time_r: Fix C++ test error on mingw.
53676         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
53677         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
53678         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
53679         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
53680         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
53682 2010-04-03  Bruno Haible  <bruno@clisp.org>
53684         time_r: Minor updates.
53685         * modules/time_r (Description): Mention the provided functions.
53686         * lib/time_r.c: Don't include <string.h>.
53687         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
53688         * doc/posix-functions/localtime_r.texi: Likewise.
53690 2010-04-03  Bruno Haible  <bruno@clisp.org>
53692         time: Fix regression introduced on 2010-03-08.
53693         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
53694         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
53696 2010-04-03  Jim Meyering  <meyering@redhat.com>
53698         maint.mk: don't silently disable project-specific syntax-check rules
53699         * top/maint.mk (_prohibit_regexp): Define, to help people realize
53700         that they need to convert their project-specific syntax-check rules
53701         to use the new _sc_search_regexp.
53703 2010-04-03  Bruno Haible  <bruno@clisp.org>
53705         fchdir: Fix regression introduced on 2010-03-08.
53706         * lib/unistd.in.h (fchdir): Fix declaration.
53707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
53708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
53709         REPLACE_FCHDIR.
53710         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
53711         REPLACE_FCHDIR.
53713 2010-04-03  Bruno Haible  <bruno@clisp.org>
53715         getpagesize: Fix C++ test error on mingw.
53716         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
53717         system does not declare the function.
53718         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
53719         declared.
53720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53721         HAVE_DECL_GETPAGESIZE.
53722         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
53724 2010-04-03  Bruno Haible  <bruno@clisp.org>
53726         stdio: Make C++ tests work on mingw.
53727         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
53728         does not declare the function.
53730 2010-04-03  Bruno Haible  <bruno@clisp.org>
53732         ftello: Fix C++ test error on mingw.
53733         * lib/stdio.in.h (ftello): Use modern idiom.
53734         * lib/ftello.c (ftello): Renamed from rpl_ftello.
53735         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
53736         is missing and that it needs to be replaced.
53737         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
53738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
53739         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
53741 2010-04-03  Bruno Haible  <bruno@clisp.org>
53743         fseeko: Fix C++ test error on mingw.
53744         * lib/stdio.in.h (fseeko): Use modern idiom.
53745         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
53746         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
53747         is missing and that it needs to be replaced.
53748         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
53749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
53750         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
53752 2010-04-03  Bruno Haible  <bruno@clisp.org>
53754         mkstemp: Fix C++ test error on mingw.
53755         * lib/stdlib.in.h (mkstemp): Use modern idiom.
53756         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
53757         function is missing and that it needs to be replaced.
53758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
53759         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
53761 2010-04-03  Bruno Haible  <bruno@clisp.org>
53763         stpncpy: Fix C++ test error on mingw.
53764         * lib/string.in.h (stpncpy): Use modern idiom.
53765         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
53766         function is missing and that it needs to be replaced.
53767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53768         REPLACE_STPNCPY.
53769         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
53771 2010-04-03  Bruno Haible  <bruno@clisp.org>
53773         sys_stat: Fix C++ test error on mingw.
53774         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
53775         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
53777 2010-04-03  Bruno Haible  <bruno@clisp.org>
53779         pty: Update doc.
53780         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
53782 2010-04-03  Bruno Haible  <bruno@clisp.org>
53784         unistd: Fix C++ test error on mingw.
53785         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
53787 2010-04-03  Bruno Haible  <bruno@clisp.org>
53789         Update doc regarding mingw.
53790         * doc/glibc-functions/openpty.texi: Update regarding mingw.
53791         * doc/glibc-functions/login_tty.texi: Likewise.
53792         * doc/glibc-functions/forkpty.texi: Likewise.
53794 2010-04-03  Bruno Haible  <bruno@clisp.org>
53796         stdlib: Avoid compilation failure of c-strtold on mingw.
53797         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
53799 2010-04-03  Bruno Haible  <bruno@clisp.org>
53801         locale: Make C++ tests work on Cygwin and mingw.
53802         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
53803         cannot provide the function.
53804         Reported by Simon Josefsson.
53806 2010-04-03  Bruno Haible  <bruno@clisp.org>
53808         localename: Port to MacOS X 10.6.
53809         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
53810         memory layout of the locales in MacOS X 10.6 as well.
53811         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
53813 2010-04-02  Bruno Haible  <bruno@clisp.org>
53815         gnulib-tool: Ensure that long-running tests are executed last.
53816         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
53817         running tests after the one for the other tests.
53819 2010-04-02  Bruno Haible  <bruno@clisp.org>
53821         gnulib-tool: Ensure the tests in the main directory are executed first.
53822         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
53823         start with the current directory.
53825 2010-04-02  Bruno Haible  <bruno@clisp.org>
53827         Tests for module 'havelib', moved here from GNU gettext.
53828         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
53829         modifications.
53830         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
53831         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
53832         with modifications.
53833         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
53834         modifications.
53835         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
53836         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
53837         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
53838         with modifications.
53839         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
53840         with modifications.
53841         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
53842         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
53843         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
53844         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
53845         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
53846         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
53847         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
53848         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
53849         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
53850         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
53851         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
53852         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
53853         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
53854         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
53855         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
53856         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
53857         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
53858         with modifications.
53859         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
53860         with modifications.
53861         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
53862         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
53863         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
53864         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
53865         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
53866         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
53867         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
53868         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
53869         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
53870         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
53871         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
53872         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
53873         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
53874         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
53875         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
53876         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
53877         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
53878         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
53879         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
53880         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
53881         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
53882         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
53883         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
53884         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
53885         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
53886         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
53887         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
53888         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
53889         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
53890         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
53891         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
53892         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
53893         * tests/havelib/rpathx/rpathx.c: New file, from
53894         gettext/autoconf-lib-link.
53895         * tests/havelib/rpathx/Makefile.am: New file, from
53896         gettext/autoconf-lib-link.
53897         * tests/havelib/rpathx/configure.ac: New file, from
53898         gettext/autoconf-lib-link with modifications.
53899         * tests/havelib/rpathy/rpathy.c: New file, from
53900         gettext/autoconf-lib-link.
53901         * tests/havelib/rpathy/Makefile.am: New file, from
53902         gettext/autoconf-lib-link.
53903         * tests/havelib/rpathy/configure.ac: New file, from
53904         gettext/autoconf-lib-link with modifications.
53905         * tests/havelib/rpathz/rpathz.c: New file, from
53906         gettext/autoconf-lib-link.
53907         * tests/havelib/rpathz/Makefile.am: New file, from
53908         gettext/autoconf-lib-link.
53909         * tests/havelib/rpathz/configure.ac: New file, from
53910         gettext/autoconf-lib-link with modifications.
53911         * tests/havelib/rpathlx/usex.c: New file, from
53912         gettext/autoconf-lib-link.
53913         * tests/havelib/rpathlx/Makefile.am: New file, from
53914         gettext/autoconf-lib-link.
53915         * tests/havelib/rpathlx/configure.ac: New file, from
53916         gettext/autoconf-lib-link with modifications.
53917         * tests/havelib/rpathly/usey.c: New file, from
53918         gettext/autoconf-lib-link.
53919         * tests/havelib/rpathly/Makefile.am: New file, from
53920         gettext/autoconf-lib-link.
53921         * tests/havelib/rpathly/configure.ac: New file, from
53922         gettext/autoconf-lib-link with modifications.
53923         * tests/havelib/rpathlz/usez.c: New file, from
53924         gettext/autoconf-lib-link.
53925         * tests/havelib/rpathlz/Makefile.am: New file, from
53926         gettext/autoconf-lib-link.
53927         * tests/havelib/rpathlz/configure.ac: New file, from
53928         gettext/autoconf-lib-link with modifications.
53929         * tests/havelib/rpathlyx/usey.c: New file, from
53930         gettext/autoconf-lib-link.
53931         * tests/havelib/rpathlyx/Makefile.am: New file, from
53932         gettext/autoconf-lib-link.
53933         * tests/havelib/rpathlyx/configure.ac: New file, from
53934         gettext/autoconf-lib-link with modifications.
53935         * tests/havelib/rpathlzyx/usez.c: New file, from
53936         gettext/autoconf-lib-link.
53937         * tests/havelib/rpathlzyx/Makefile.am: New file, from
53938         gettext/autoconf-lib-link.
53939         * tests/havelib/rpathlzyx/configure.ac: New file, from
53940         gettext/autoconf-lib-link with modifications.
53941         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
53942         with modifications.
53944 2010-04-02  Bruno Haible  <bruno@clisp.org>
53946         gnulib-tool: Create distributed built sources also for the tests.
53947         * gnulib-tool (func_create_testdir): Also generate distributed built
53948         sources in the tests directory.
53950 2010-04-02  Bruno Haible  <bruno@clisp.org>
53952         gnulib-tool: Obey user's environment variables.
53953         * gnulib-tool (func_create_testdir): When creating built sources,
53954         respect the environment variables for autoconf, automake, etc. given by
53955         the user.
53957 2010-04-02  Bruno Haible  <bruno@clisp.org>
53959         gnulib-tool: Provide the value of --m4-base to modules.
53960         * gnulib-tool (func_import, func_create_testdir): Emit a definition
53961         of gl_m4_base.
53963 2010-04-02  Eric Blake  <eblake@redhat.com>
53965         maint.mk: fix some fallout
53966         * NEWS: Document the incompatible change, and its effect on cfg.mk.
53967         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
53969 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
53971         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
53972         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
53973         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
53974         (sc_cast_of_x_alloc_return_value): Likewise.
53975         (sc_cast_of_alloca_return_value): Likewise.
53976         (sc_space_tab): Likewise.
53977         (sc_prohibit_atoi_atof): Likewise.
53978         (sc_prohibit_magic_number_exit): Likewise.
53979         (sc_error_exit_success): Likewise.
53980         (sc_file_system): Likewise.
53981         (sc_prohibit_have_config_h): Likewise.
53982         (sc_require_config_h): Likewise.
53983         (sc_prohibit_HAVE_MBRTOWC): Likewise.
53984         (sc_obsolete_symbols): Likewise.
53985         (sc_changelog): Likewise.
53986         (sc_program_name): Likewise.
53987         (sc_the_the): Likewise.
53988         (sc_trailing_blank): Likewise.
53989         (sc_two_space_separator_in_usage): Likewise.
53990         (sc_useless_cpp_parens): Likewise.
53991         (sc_GPL_version): Likewise.
53992         (sc_GFDL_version): Likewise.
53993         (sc_texinfo_acronym): Likewise.
53994         (sc_prohibit_cvs_keyword): Likewise.
53995         (sc_prohibit_stat_st_blocks): Likewise.
53996         (sc_prohibit_S_IS_definition): Likewise.
53997         (sc_redundant_const): Likewise.
53998         (sc_makefile_TAB_only_indentation): Likewise.
53999         (sc_m4_quote_check): Likewise.
54000         (sc_makefile_path_separator_check): Likewise.
54001         (sc_copyright_check): Likewise.
54002         (sc_Wundef_boolean): Likewise.
54003         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
54005         maint.mk: match 0 or more whitespace-before-function-call '('
54006         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
54007         that have zero or two-and-more spaces between the function name
54008         and the open parenthesis.
54009         (sc_error_message_warn_fatal): Likewise.
54010         (sc_error_message_uppercase): Likewise.
54011         (sc_error_message_period): Likewise.
54013 2010-03-31  Eric Blake  <eblake@redhat.com>
54015         maint.mk: check for [ as well as test
54016         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
54017         Based on a libvirt report by Matthias Bolte.
54019         gnumakefile: don't squelch _version output
54020         * top/GNUmakefile (_version): Create one-shot dependency rather
54021         than using $(shell) when version must be regenerated.
54022         (_autoreconf): Run verbosely, by default.
54024         sys_time: avoid compiler warnings
54025         * lib/sys_time.in.h (includes): Ensure gcc pragma is
54026         unconditional, fixing regression from 2010-03-29.
54027         Reported by Simon Josefsson.
54029 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54031         maint.mk: s/_header_without_use/_sc_header_without_use/
54032         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
54033         (sc_prohibit_assert_without_use): Use the new name.
54034         (sc_prohibit_close_stream_without_use): Likewise.
54035         (sc_prohibit_getopt_without_use): Likewise.
54036         (sc_prohibit_quotearg_without_use): Likewise.
54037         (sc_prohibit_quote_without_use): Likewise.
54038         (sc_prohibit_long_options_without_use): Likewise.
54039         (sc_prohibit_inttostr_without_use): Likewise.
54040         (sc_prohibit_ignore_value_without_use): Likewise.
54041         (sc_prohibit_error_without_use): Likewise.
54042         (sc_prohibit_xalloc_without_use): Likewise.
54043         (sc_prohibit_hash_without_use): Likewise.
54044         (sc_prohibit_hash_pjw_without_use): Likewise.
54045         (sc_prohibit_safe_read_without_use): Likewise.
54046         (sc_prohibit_argmatch_without_use): Likewise.
54047         (sc_prohibit_canonicalize_without_use): Likewise.
54048         (sc_prohibit_root_dev_ino_without_use): Likewise.
54049         (sc_prohibit_openat_without_use): Likewise.
54050         (sc_prohibit_c_ctype_without_use): Likewise.
54051         (sc_prohibit_signal_without_use): Likewise.
54052         (sc_prohibit_intprops_without_use): Likewise.
54054 2010-03-30  Eric Blake  <eblake@redhat.com>
54056         maint: improve module indicators
54057         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
54058         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
54059         columns, and avoid extra macro expansion.
54061         fdopendir: work around FreeBSD bug
54062         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
54063         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
54064         * modules/dirent (Makefile.am): Substitute it.
54065         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
54066         declaration.
54067         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
54068         fix.
54069         Reported by Christian Weisgerber <naddy@mips.inka.de>.
54071 2010-03-29  Bruno Haible  <bruno@clisp.org>
54073         Emit #pragma system_header after the inclusion guard, not before.
54074         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
54075         guard that spans the entire file, not before. This enables an
54076         optimization in GCC's preprocessor.
54077         * lib/ctype.in.h: Likewise.
54078         * lib/dirent.in.h: Likewise.
54079         * lib/errno.in.h: Likewise.
54080         * lib/float.in.h: Likewise.
54081         * lib/getopt.in.h: Likewise.
54082         * lib/iconv.in.h: Likewise.
54083         * lib/langinfo.in.h: Likewise.
54084         * lib/locale.in.h: Likewise.
54085         * lib/math.in.h: Likewise.
54086         * lib/netdb.in.h: Likewise.
54087         * lib/netinet_in.in.h: Likewise.
54088         * lib/pty.in.h: Likewise.
54089         * lib/sched.in.h: Likewise.
54090         * lib/se-selinux.in.h: Likewise.
54091         * lib/search.in.h: Likewise.
54092         * lib/spawn.in.h: Likewise.
54093         * lib/stdarg.in.h: Likewise.
54094         * lib/stdint.in.h: Likewise.
54095         * lib/string.in.h: Likewise.
54096         * lib/strings.in.h: Likewise.
54097         * lib/sys_file.in.h: Likewise.
54098         * lib/sys_ioctl.in.h: Likewise.
54099         * lib/sys_time.in.h: Likewise.
54100         * lib/sys_times.in.h: Likewise.
54101         * lib/sys_utsname.in.h: Likewise.
54102         * lib/sys_wait.in.h: Likewise.
54103         * lib/sysexits.in.h: Likewise.
54104         * lib/wctype.in.h: Likewise.
54106 2010-03-28  James Youngman  <jay@gnu.org>
54108         save-cwd: don't leak a file descriptor when the caller execs.
54109         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
54110         saved file descriptor.
54111         * modules/save-cwd (Depends-on): Depend on cloexec.
54113 2010-03-29  Bruno Haible  <bruno@clisp.org>
54115         Remove vestiges of fts-lgpl module.
54116         * lib/fts_.h: Assume GNULIB_FTS is 1.
54117         * lib/fts.c: Likewise.
54118         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54120 2010-03-28  Bruno Haible  <bruno@clisp.org>
54122         Fix definition of tests witness macro.
54123         * gnulib-tool (func_import): Fix definition of witness macro.
54125 2010-03-28  Bruno Haible  <bruno@clisp.org>
54127         Fix ioctl's protoype on glibc systems.
54128         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
54129         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
54130         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
54131         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
54132         signature. If not, arrange to replace the ioctl function.
54133         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
54134         REPLACE_IOCTL.
54135         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
54136         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
54137         Reported by Ludovic Courtès <ludo@gnu.org>.
54139 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
54141         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
54142         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
54143         made it so grep -r --include=GLOB* ... did not work.
54145 2010-03-26  Jim Meyering  <meyering@redhat.com>
54146             Eric Blake  <eblake@redhat.com>
54148         maint.mk: prohibit use of test's -o and -a operators
54149         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
54151 2010-03-28  Bruno Haible  <bruno@clisp.org>
54153         Remove unused GNULIB_XYZ macro definitions.
54154         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
54155         invocation.
54157 2010-03-28  Bruno Haible  <bruno@clisp.org>
54159         Mark privileged tests modules.
54160         * modules/idpriv-drop-tests (Status): New section.
54161         * modules/idpriv-droptemp-tests (Status): New section.
54163 2010-03-28  Bruno Haible  <bruno@clisp.org>
54165         Split C++ tests into separate tests modules.
54166         * modules/dirent-c++-tests: New file, extracted from
54167         modules/dirent-tests.
54168         * modules/dirent-tests: Depend on it.
54169         * modules/fcntl-h-c++-tests: New file, extracted from
54170         modules/fcntl-h-tests.
54171         * modules/fcntl-h-tests: Depend on it.
54172         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
54173         * modules/glob-tests: Depend on it.
54174         * modules/iconv-h-c++-tests: New file, extracted from
54175         modules/iconv-h-tests.
54176         * modules/iconv-h-tests: Depend on it.
54177         * modules/langinfo-c++-tests: New file, extracted from
54178         modules/langinfo-tests.
54179         * modules/langinfo-tests: Depend on it.
54180         * modules/locale-c++-tests: New file, extracted from
54181         modules/locale-tests.
54182         * modules/locale-tests: Depend on it.
54183         * modules/math-c++-tests: New file, extracted from modules/math-tests.
54184         * modules/math-tests: Depend on it.
54185         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
54186         * modules/pty-tests: Depend on it.
54187         * modules/search-c++-tests: New file, extracted from
54188         modules/search-tests.
54189         * modules/search-tests: Depend on it.
54190         * modules/signal-c++-tests: New file, extracted from
54191         modules/signal-tests.
54192         * modules/signal-tests: Depend on it.
54193         * modules/spawn-c++-tests: New file, extracted from
54194         modules/spawn-tests.
54195         * modules/spawn-tests: Depend on it.
54196         * modules/stdio-c++-tests: New file, extracted from
54197         modules/stdio-tests.
54198         * modules/stdio-tests: Depend on it.
54199         * modules/stdlib-c++-tests: New file, extracted from
54200         modules/stdlib-tests.
54201         * modules/stdlib-tests: Depend on it.
54202         * modules/string-c++-tests: New file, extracted from
54203         modules/string-tests.
54204         * modules/string-tests: Depend on it.
54205         * modules/sys_ioctl-c++-tests: New file, extracted from
54206         modules/sys_ioctl-tests.
54207         * modules/sys_ioctl-tests: Depend on it.
54208         * modules/sys_select-c++-tests: New file, extracted from
54209         modules/sys_select-tests.
54210         * modules/sys_select-tests: Depend on it.
54211         * modules/sys_socket-c++-tests: New file, extracted from
54212         modules/sys_socket-tests.
54213         * modules/sys_socket-tests: Depend on it.
54214         * modules/sys_stat-c++-tests: New file, extracted from
54215         modules/sys_stat-tests.
54216         * modules/sys_stat-tests: Depend on it.
54217         * modules/sys_time-c++-tests: New file, extracted from
54218         modules/sys_time-tests.
54219         * modules/sys_time-tests: Depend on it.
54220         * modules/time-c++-tests: New file, extracted from modules/time-tests.
54221         * modules/time-tests: Depend on it.
54222         * modules/unistd-c++-tests: New file, extracted from
54223         modules/unistd-tests.
54224         * modules/unistd-tests: Depend on it.
54225         * modules/wchar-c++-tests: New file, extracted from
54226         modules/wchar-tests.
54227         * modules/wchar-tests: Depend on it.
54228         * modules/wctype-c++-tests: New file, extracted from
54229         modules/wctype-tests.
54230         * modules/wctype-tests: Depend on it.
54231         Reported by Simon Josefsson.
54233 2010-03-28  Bruno Haible  <bruno@clisp.org>
54235         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
54236         * gnulib-tool (func_exists_module): New function, extracted from
54237         func_verify_module.
54238         (func_verify_module): Use it.
54239         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
54240         'foo' only if 'foo' exists.
54241         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
54242         module.
54244 2010-03-28  Bruno Haible  <bruno@clisp.org>
54246         gnulib-tool: Add support for special categories of tests.
54247         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
54248         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
54249         (func_usage): Document them.
54250         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
54251         inc_unportable_tests, inc_all_tests): New variables.
54252         (func_acceptable): Consider these variables.
54253         (func_modules_transitive_closure): Make it work when the 'Status' field
54254         consists of multiple words.
54255         (func_import): Store and restore the values of inc_cxx_tests,
54256         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
54257         inc_all_tests in gnulib-comp.m4.
54258         (func_create_testdir): Set inc_all_tests to true.
54259         * doc/gnulib.texi (Extra tests modules): New section.
54260         Suggested by Jim Meyering.
54262 2010-03-28  Bruno Haible  <bruno@clisp.org>
54264         ansi-c++-opt: Allow turning off the C++ build by default.
54265         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
54266         gl_CXX_CHOICE_DEFAULT_NO is defined.
54267         Requested by Eric Blake.
54269 2010-03-28  Bruno Haible  <bruno@clisp.org>
54271         unistd: Avoid #define replacements in C++ mode.
54272         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
54273         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
54274         setsockopt, shutdown, select): In C++, attach a warning to the function
54275         if possible, rather than #defining the symbol to a dysfunctional alias.
54276         Reported by John W. Eaton <jwe@gnu.org>.
54278 2010-03-28  Bruno Haible  <bruno@clisp.org>
54280         Fix link errors on mingw.
54281         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
54282         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
54283         $(LIBSOCKET).
54284         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
54285         $(LIBSOCKET).
54287 2010-03-28  Bruno Haible  <bruno@clisp.org>
54288             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54290         lib-ignore: Determine different options for different compilers.
54291         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
54292         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54293         Add comments.
54294         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54295         * NEWS: Mention the change.
54297 2010-03-27  Bruno Haible  <bruno@clisp.org>
54299         Remove unused GNULIB_XYZ macro definitions.
54300         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54301         * modules/fseek (configure.ac): Likewise.
54302         * modules/ioctl (configure.ac): Likewise.
54303         * modules/open (configure.ac): Likewise.
54304         * modules/stdlib-safer (configure.ac): Likewise.
54306 2010-03-27  Bruno Haible  <bruno@clisp.org>
54308         Add a remark about certain modules.
54309         * modules/malloc (Comment): New section.
54310         * modules/realloc (Comment): Likewise.
54311         * modules/sigpipe (Comment): Likewise.
54313 2010-03-27  Bruno Haible  <bruno@clisp.org>
54315         Resolve conflict between the two kinds of module indicators.
54316         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54317         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54318         * modules/canonicalize (configure.ac): Invoke
54319         gl_MODULE_INDICATOR_FOR_TESTS.
54320         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54321         GNULIB_XYZ.
54322         * tests/test-dirent-c++.cc: Likewise.
54323         * tests/test-dirent-safer.c: Likewise.
54324         * tests/test-dup2.c: Likewise.
54325         * tests/test-fchdir.c: Likewise.
54326         * tests/test-fcntl-h-c++.cc: Likewise.
54327         * tests/test-getopt.c: Likewise.
54328         * tests/test-getopt.h: Likewise.
54329         * tests/test-langinfo-c++.cc: Likewise.
54330         * tests/test-locale-c++.cc: Likewise.
54331         * tests/test-math-c++.cc: Likewise.
54332         * tests/test-pty-c++.cc: Likewise.
54333         * tests/test-search-c++.cc: Likewise.
54334         * tests/test-signal-c++.cc: Likewise.
54335         * tests/test-spawn-c++.cc: Likewise.
54336         * tests/test-stdio-c++.cc: Likewise.
54337         * tests/test-stdlib-c++.cc: Likewise.
54338         * tests/test-string-c++.cc: Likewise.
54339         * tests/test-sys_ioctl-c++.cc: Likewise.
54340         * tests/test-sys_select-c++.cc: Likewise.
54341         * tests/test-sys_socket-c++.cc: Likewise.
54342         * tests/test-sys_stat-c++.cc: Likewise.
54343         * tests/test-sys_time-c++.cc: Likewise.
54344         * tests/test-time-c++.cc: Likewise.
54345         * tests/test-unistd-c++.cc: Likewise.
54346         * tests/test-wchar-c++.cc: Likewise.
54347         * tests/uninorm/test-u8-nfc.c: Likewise.
54348         * tests/uninorm/test-u8-nfd.c: Likewise.
54349         * tests/uninorm/test-u8-nfkc.c: Likewise.
54350         * tests/uninorm/test-u8-nfkd.c: Likewise.
54351         * tests/uninorm/test-u16-nfc.c: Likewise.
54352         * tests/uninorm/test-u16-nfd.c: Likewise.
54353         * tests/uninorm/test-u16-nfkc.c: Likewise.
54354         * tests/uninorm/test-u16-nfkd.c: Likewise.
54355         * tests/uninorm/test-u32-nfc.c: Likewise.
54356         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54357         * tests/uninorm/test-u32-nfd.c: Likewise.
54358         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54359         * tests/uninorm/test-u32-nfkc.c: Likewise.
54360         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54361         * tests/uninorm/test-u32-nfkd.c: Likewise.
54362         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54363         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54365 2010-03-27  Bruno Haible  <bruno@clisp.org>
54367         Distinguish two kinds of module indicators.
54368         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54369         gl_MODULE_INDICATOR.
54370         (gl_MODULE_INDICATOR): New macro.
54371         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54372         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54373         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54374         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54375         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54376         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54377         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54378         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54379         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54380         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54381         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54382         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54383         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54384         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54385         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54386         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54387         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54388         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54389         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54390         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54391         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54392         * modules/cloexec (configure.ac): Likewise.
54393         * modules/getopt-gnu (configure.ac): Likewise.
54394         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54395         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54396         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54397         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54399 2010-03-27  Bruno Haible  <bruno@clisp.org>
54401         New module description field 'Comment'.
54402         * gnulib-tool: New option --extract-comment.
54403         (func_usage): Document it.
54404         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54405         (func_get_comment): New function.
54406         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54408 2010-03-27  Bruno Haible  <bruno@clisp.org>
54410         Addendum to 2010-02-07 commit.
54411         * gnulib-tool (func_usage): Document --extract-applicability option.
54413 2010-03-27  Bruno Haible  <bruno@clisp.org>
54415         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54416         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54417         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54418         rather than link errors.
54420 2010-03-27  Bruno Haible  <bruno@clisp.org>
54422         Avoid side effects from tests-related modules on the compilation of lib.
54423         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54424         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54425         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54426         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54427         macro.
54428         (func_import): Define a witness macro. Assign it a value that depends
54429         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54430         tests-related modules.
54431         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54432         Reported by Jim Meyering.
54434 2010-03-27  Bruno Haible  <bruno@clisp.org>
54436         Factorize common .m4 code.
54437         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54438         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54439         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54440         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54441         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54442         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54443         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54444         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54445         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54446         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54447         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54448         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54449         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54450         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54451         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54452         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54453         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54454         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54456         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54457         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54458         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54459         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54460         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54461         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54462         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54463         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54464         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54465         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54466         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54467         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54468         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54470 2010-03-27  Bruno Haible  <bruno@clisp.org>
54472         Fix a compilation error on Cygwin with g++ >= 4.3.
54473         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54474         if it is undefined or if we alias it to chmod.
54475         (lstat): Don't warn about the use of this function if it is undefined
54476         or if we alias it to stat.
54477         Reported by Simon Josefsson.
54479 2010-03-27  Bruno Haible  <bruno@clisp.org>
54481         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54482         * modules/getlogin (configure.ac): Update.
54484         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54485         * modules/getlogin_r (configure.ac): Update.
54487         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54489         * modules/inet_ntop (configure.ac): Update.
54491         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54492         * modules/inet_pton (configure.ac): Update.
54494         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54495         * modules/mbslen (configure.ac): Update.
54497         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54498         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54499         * modules/forkpty (configure.ac): Update.
54500         * modules/openpty (configure.ac): Update.
54502 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54504         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54505         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54507 2010-03-25  Eric Blake  <eblake@redhat.com>
54509         maint: use pragma consistently across replacement headers
54510         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54511         * lib/dirent.in.h (system_header): Likewise.
54512         * lib/errno.in.h (system_header): Likewise.
54513         * lib/float.in.h (system_header): Likewise.
54514         * lib/getopt.in.h (system_header): Likewise.
54515         * lib/iconv.in.h (system_header): Likewise.
54516         * lib/inttypes.in.h (system_header): Likewise.
54517         * lib/langinfo.in.h (system_header): Likewise.
54518         * lib/locale.in.h (system_header): Likewise.
54519         * lib/math.in.h (system_header): Likewise.
54520         * lib/netdb.in.h (system_header): Likewise.
54521         * lib/netinet_in.in.h (system_header): Likewise.
54522         * lib/pty.in.h (system_header): Likewise.
54523         * lib/sched.in.h (system_header): Likewise.
54524         * lib/se-selinux.in.h (system_header): Likewise.
54525         * lib/search.in.h (system_header): Likewise.
54526         * lib/spawn.in.h (system_header): Likewise.
54527         * lib/stdarg.in.h (system_header): Likewise.
54528         * lib/stdint.in.h (system_header): Likewise.
54529         * lib/string.in.h (system_header): Likewise.
54530         * lib/strings.in.h (system_header): Likewise.
54531         * lib/sys_file.in.h (system_header): Likewise.
54532         * lib/sys_ioctl.in.h (system_header): Likewise.
54533         * lib/sys_socket.in.h (system_header): Likewise.
54534         * lib/sys_times.in.h (system_header): Likewise.
54535         * lib/sys_utsname.in.h (system_header): Likewise.
54536         * lib/sys_wait.in.h (system_header): Likewise.
54537         * lib/sysexits.in.h (system_header): Likewise.
54538         * lib/unistd.in.h (system_header): Likewise.
54539         * lib/wctype.in.h (system_header): Likewise.
54541         arpa/inet: fix mingw compilation warning
54542         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54543         Reported by Matthew Bolte.
54545 2010-03-25  Bruno Haible  <bruno@clisp.org>
54547         Avoid collision between gnulib wrapper and libintl wrapper.
54548         * lib/printf.c (printf): Don't define if a printf wrapper is already
54549         defined in intl/printf.c.
54550         Reported by Michel Boaventura <michel@michelboaventura.com>.
54552 2010-03-25  Bruno Haible  <bruno@clisp.org>
54554         Use ANSI C.
54555         * lib/readutmp.h (getutent): Provide ANSI C prototype.
54557 2010-03-25  Bruno Haible  <bruno@clisp.org>
54559         Minor formatting changes.
54560         * lib/acosl.c: Insert space before function argument list.
54561         * lib/argz.c: Likewise.
54562         * lib/asinl.c: Likewise.
54563         * lib/expl.c: Likewise.
54564         * lib/gen-uni-tables.c: Likewise.
54565         * lib/gettext.h: Likewise.
54566         * lib/glthread/lock.h: Likewise.
54567         * lib/tanl.c: Likewise.
54568         * lib/uniname/uniname.c: Likewise.
54569         * tests/test-idpriv-drop.c: Likewise.
54570         * tests/test-idpriv-droptemp.c: Likewise.
54571         * tests/test-lock.c: Likewise.
54572         * tests/test-tls.c: Likewise.
54573         * lib/argp-help.c: Insert space before function-like macro argument
54574         list.
54575         * lib/memcmp.c: Likewise.
54576         * tests/test-base64.c: Likewise.
54577         * lib/localename.c: Insert space before sizeof's argument list.
54578         * lib/safe-alloc.h: Likewise.
54579         * lib/file-set.h: Insert space before macro argument list.
54580         * tests/test-argp.c: Likewise.
54581         * lib/argp-namefrob.h: Insert space before function parameter list.
54582         * lib/getaddrinfo.c: Likewise.
54583         * lib/netdb.in.h: Likewise.
54584         * lib/parse-duration.h: Likewise.
54585         * lib/parse-duration.c: Likewise.
54586         * lib/poll.c: Likewise.
54587         * lib/select.c: Likewise.
54588         * lib/trim.h: Likewise.
54589         * tests/test-usleep.c: Likewise.
54590         * lib/ldexpl.c: Insert space before function parameter list and before
54591         function argument list.
54592         * lib/logl.c: Likewise.
54593         * lib/sqrtl.c: Likewise.
54594         * lib/trim.c: Likewise.
54595         * lib/cosl.c: Use GNU style indentation. Insert space before function
54596         argument list.
54597         * lib/sinl.c: Likewise.
54598         * lib/tsearch.c: Insert space after 'for'.
54599         Reported by Jim Meyering.
54601 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
54603         * maint.mk (sc_Wundef_boolean): Check for the presence of the
54604         config header before grepping, as it's not present before
54605         autoreconf/configure are run.  Reported by Simon Josefsson.
54607 2010-03-23  Bruno Haible  <bruno@clisp.org>
54609         pt_chown: Make it work with automake < 1.11.
54610         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
54611         Reported by Simon Josefsson.
54613 2010-03-23  Bruno Haible  <bruno@clisp.org>
54615         pt_chown: Don't depend on GPLed modules.
54616         * lib/pt_chown.c: Don't include idpriv.h.
54617         (main): Don't drop privileges.
54618         * modules/pt_chown (Depends-on): Remove idpriv-drop.
54619         Reported by Simon Josefsson.
54621 2010-03-24  Simon Josefsson  <simon@josefsson.org>
54623         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
54624         suggestions from karl@freefriends.org (Karl Berry).
54626 2010-03-22  Eric Blake  <eblake@redhat.com>
54628         gethostname: further tweaks
54629         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
54630         are overriding gethostname.
54631         Suggested by Bruno Haible.
54633 2010-03-21  Bruno Haible  <bruno@clisp.org>
54635         Fix comments.
54636         * lib/forkpty.c (rpl_forkpty): Fix comment.
54637         * lib/openpty.c (rpl_openpty): Likewise.
54638         Reported by Eric Blake.
54640 2010-03-22  Eric Blake  <eblake@redhat.com>
54642         gethostname: fix build on mingw
54643         * lib/unistd.in.h (includes): Work around fact that mingw
54644         <winsock2.h> re-includes <unistd.h>, by avoiding any
54645         redeclarations if we are being included by <winsock2.h>.
54646         Reported by Matthias Bolte.
54648 2010-03-21  Bruno Haible  <bruno@clisp.org>
54650         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54651         * lib/forkpty.c (forkpty): New replacement function, from glibc with
54652         modifications.
54653         * lib/pty.in.h (forkpty): Update declaration. Add comments.
54654         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
54655         provide the replacement.
54656         * modules/forkpty (Depends-on): Add openpty, login_tty.
54657         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
54658         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
54659         * doc/glibc-functions/forkpty.texi: More supported platforms.
54660         * config/srclist.txt: Add forkpty.c (commented).
54662 2010-03-21  Bruno Haible  <bruno@clisp.org>
54664         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
54665         (Makefile.am): Verify that PTY_LIB is defined.
54667         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
54669 2010-03-21  Bruno Haible  <bruno@clisp.org>
54671         Tests for module 'login_tty'.
54672         * modules/login_tty-tests: New file.
54673         * tests/test-login_tty.c: New file.
54675         New module 'login_tty'.
54676         * lib/login_tty.c: New file.
54677         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
54678         * modules/login_tty: New file.
54679         * doc/glibc-functions/login_tty.texi: Mention the new module.
54681 2010-03-21  Bruno Haible  <bruno@clisp.org>
54683         login_tty: Documentation.
54684         * doc/glibc-functions/login_tty.texi: New file.
54685         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
54687 2010-03-21  Bruno Haible  <bruno@clisp.org>
54689         pty: Consistent macro naming.
54690         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
54691         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
54692         * modules/pty (configure.ac): Update.
54694 2010-03-21  Bruno Haible  <bruno@clisp.org>
54696         Tests for openpty: Make stricter.
54697         * tests/test-openpty.c (main): Add test of canonical processing and
54698         erase.
54699         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
54701         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54702         * lib/openpty.c (openpty): New replacement function.
54703         * lib/pty.in.h: Include <termios.h>.
54704         (openpty): Update declaration. Add comments.
54705         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
54706         is not declared, arrange to provide the replacement. Check for _getpty
54707         and posix_openpt.
54708         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
54709         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
54710         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
54711         * modules/pty-tests (test_pty_c___LDADD): New variable.
54712         * doc/glibc-functions/openpty.texi: More supported platforms.
54714 2010-03-21  Bruno Haible  <bruno@clisp.org>
54716         setenv: Tweaks.
54717         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
54718         the test program.
54719         * doc/posix-functions/setenv.texi: Update platforms list.
54721 2010-03-21  Bruno Haible  <bruno@clisp.org>
54723         New module 'unlockpt'.
54724         * lib/unlockpt.c: New file, from glibc with modifications.
54725         * m4/unlockpt.m4: New file.
54726         * modules/unlockpt: New file.
54727         * lib/stdlib.in.h (unlockpt): New declaration.
54728         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
54729         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
54730         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
54731         HAVE_UNLOCKPT.
54732         * doc/posix-functions/unlockpt.texi: Mention the new module.
54733         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
54734         * config/srclist.txt: Add unlockpt.c (commented).
54736 2010-03-21  Jim Meyering  <meyering@redhat.com>
54738         maint.mk: prohibit inclusion of "intprops.h" without use
54739         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
54741 2010-03-21  Bruno Haible  <bruno@clisp.org>
54743         New module 'grantpt'.
54744         * lib/grantpt.c: New file, from glibc with modifications.
54745         * m4/grantpt.m4: New file.
54746         * modules/grantpt: New file.
54747         * lib/stdlib.in.h (grantpt): New declaration.
54748         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
54749         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
54750         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
54751         HAVE_GRANTPT.
54752         * doc/posix-functions/grantpt.texi: Mention the new module.
54753         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
54754         * config/srclist.txt: Add grantpt.c (commented).
54756 2010-03-21  Bruno Haible  <bruno@clisp.org>
54758         New module 'pt_chown'.
54759         * lib/pt_chown.c: New file, from glibc with modifications.
54760         * lib/pty-private.h: New file, from glibc with modifications.
54761         * modules/pt_chown: New file.
54762         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
54764 2010-03-21  Bruno Haible  <bruno@clisp.org>
54766         Tests for module 'ptsname'.
54767         * modules/ptsname-tests: New file.
54768         * tests/test-ptsname.c: New file.
54770         New module 'ptsname'.
54771         * lib/ptsname.c: New file, from glibc with modifications.
54772         * m4/ptsname.m4: New file.
54773         * modules/ptsname: New file.
54774         * lib/stdlib.in.h (ptsname): New declaration.
54775         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
54776         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
54777         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
54778         HAVE_PTSNAME.
54779         * doc/posix-functions/ptsname.texi: Mention the new module.
54780         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
54781         * config/srclist.txt: Add ptsname.c (commented).
54783 2010-03-21  Bruno Haible  <bruno@clisp.org>
54785         Tests for module 'ttyname_r'.
54786         * modules/ttyname_r-tests: New file.
54787         * tests/test-ttyname_r.c: New file.
54789         New module 'ttyname_r'.
54790         * lib/ttyname_r.c: New file.
54791         * m4/ttyname_r.m4: New file.
54792         * modules/ttyname_r: New file.
54793         * lib/unistd.in.h (ttyname_r): New declaration.
54794         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
54795         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
54796         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
54797         HAVE_TTYNAME_R.
54798         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
54799         * doc/posix-functions/ttyname_r.texi: Mention the new module.
54801 2010-03-20  Bruno Haible  <bruno@clisp.org>
54803         signal: Undefine macro definitions in C++ mode.
54804         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
54805         sigfillset): Undefine macro definitions from the system header in C++
54806         mode.
54807         Reported by John W. Eaton <jwe@gnu.org>.
54809 2010-03-20  Bruno Haible  <bruno@clisp.org>
54811         Ensure no #include statements inside extern "C" { ... }.
54812         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
54813         contain #include statements.
54814         * lib/time.in.h: Likewise.
54816 2010-03-20  Bruno Haible  <bruno@clisp.org>
54818         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
54819         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
54820         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
54821         Reported by John W. Eaton <jwe@gnu.org>.
54823 2010-03-20  Bruno Haible  <bruno@clisp.org>
54825         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
54826         Reported by Jim Meyering.
54828 2010-03-20  Bruno Haible  <bruno@clisp.org>
54830         pipe: Set errno upon failure.
54831         * lib/pipe.h: Specify that when -1 is returned, errno is set.
54832         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
54833         errno value in error message.
54835 2010-03-20  Bruno Haible  <bruno@clisp.org>
54836             Jim Meyering  <meyering@redhat.com>
54838         lchown: Avoid "unused variable" warning.
54839         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
54841 2010-03-20  Bruno Haible  <bruno@clisp.org>
54843         Work around unlink() bug on MacOS X 10.5.6.
54844         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
54845         attempting to unlink a parent directory.
54846         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
54847         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
54848         activate for the replacement function.
54849         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
54851 2010-03-20  Bruno Haible  <bruno@clisp.org>
54853         Fix link errors on Solaris 8.
54854         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
54855         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
54857 2010-03-19  Jim Meyering  <meyering@redhat.com>
54859         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
54860         The _LIBC implementation of build_range_exp correctly honors the
54861         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
54862         However, the non-_LIBC implementation would ignore that syntax-bit
54863         flag and return REG_ERANGE unconditionally.
54864         This change makes it honor that flag.
54865         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
54866         Make two pointer parameters "const".
54867         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
54868         (parse_bracket_exp): Update caller.
54870         regex.m4: correct the reversed range endpoint ([b-a]) test
54871         * m4/regex.m4: When requiring that [b-a] evoke failure,
54872         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
54873         test pass once again for x86-based systems.
54875 2010-03-19  Bruno Haible  <bruno@clisp.org>
54877         scandir: Fix link error on Solaris 8.
54878         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
54879         macros.
54881 2010-03-19  Bruno Haible  <bruno@clisp.org>
54883         getusershell: Fix documentation.
54884         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
54885         module.
54886         * doc/glibc-functions/setusershell.texi: Likewise.
54888         getusershell: Provide declaration, missing on Solaris 9.
54889         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
54890         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
54891         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
54892         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
54893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54894         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
54895         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
54896         HAVE_GETUSERSHELL.
54897         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
54899 2010-03-19  Bruno Haible  <bruno@clisp.org>
54901         wctype: Provide iswblank function.
54902         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
54903         exists and is fine.
54904         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
54905         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
54906         * tests/test-wctype.c (main): Re-enable the iswblank tests.
54907         * doc/posix-functions/iswblank.texi: Update.
54909 2010-03-19  Bruno Haible  <bruno@clisp.org>
54911         Tests of module 'pty' in C++ mode.
54912         * modules/pty-tests: New file.
54913         * tests/test-pty-c++.cc: New file.
54914         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
54916 2010-03-19  Eric Blake  <eblake@redhat.com>
54918         logb: fix documentation
54919         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
54920         1.5 declaration bug.
54922         forkpty, openpty: prefer glibc's const-safe prototype
54923         * lib/forkpty.c (rpl_forkpty): New file.
54924         * lib/openpty.c (rpl_openpty): Likewise.
54925         * modules/forkpty (Files): Distribute it.
54926         * modules/openpty (Files): Likewise.
54927         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
54928         check...
54929         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
54930         replacement for non-const BSD signature.
54931         * modules/pty (Makefile.am): Substitute witnesses.
54932         * lib/pty.in.h (forkpty, openpty): Declare replacements.
54933         * tests/test-forkpty.c: Update signature check.
54934         * tests/test-openpty.c: Likewise.
54935         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
54936         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54938         forkpty, openpty: split functions into new modules
54939         * modules/pty (Makefile.am): Substitute new witnesses.
54940         (Libraries): Move library detection...
54941         * modules/forkpty: ...into new module.
54942         * modules/openpty: Another new module.
54943         * modules/pty-tests: Rename and split...
54944         * modules/forkpty-tests: ...to this...
54945         * modules/openpty-tests: ...and this.
54946         * tests/test-pty.c: Rename and split...
54947         * tests/test-forkpty.c: ...to this...
54948         * tests/test-openpty.c: ...and this.
54949         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
54950         (gl_PTY): Split library searching...
54951         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
54952         (gl_FORKPTY, gl_OPENPTY): New macros.
54953         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
54954         * NEWS: Mention the split.
54955         * MODULES.html.sh (Misc): Document the modules.
54956         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
54957         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54959         pty: improve replacement header
54960         * lib/pty.in.h: New file.
54961         * modules/pty (Files): Ship it.
54962         (Makefile.am): Always build replacement.
54963         * m4/pty.m4: Rename...
54964         * m4/pty_h.m4: ...to this.
54965         (gl_PTY): Modernize setting of witness macros; update check of
54966         forkpty to take proper advantage of cache.
54967         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
54969         getopt: avoid compiler warning
54970         * lib/getopt.c (attribute_hidden): Remove unused macro.
54972 2010-03-18  Bruno Haible  <bruno@clisp.org>
54974         Fix link errors on Solaris 8.
54975         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
54976         * modules/search-tests (test_search_c___LDADD): Likewise.
54977         * modules/signal-tests (test_signal_c___LDADD): Likewise.
54978         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
54979         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
54980         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
54981         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
54982         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
54983         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
54985 2010-03-18  Bruno Haible  <bruno@clisp.org>
54987         Fix bug introduced on 2010-03-14.
54988         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
54989         (gl_SPAWN_H): Require it.
54990         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
54991         Reported by Simon Josefsson.
54993 2010-03-18  Bruno Haible  <bruno@clisp.org>
54995         Fix typo introduced on 2009-12-31.
54996         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
54997         posix_spawn_file_actions_adddup2.
54999 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
55000         and Eric Blake  <eblake@redhat.com>
55002         test-vc-list-files-git: make more robust
55003         * tests/test-vc-list-files-git.sh: Unset problematic environment
55004         variables.  Chain commands together.
55006 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
55008         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
55009         `AC_CHECK_DECL' invocation.
55011 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
55013         * lib/inttostr.c (inttostr): Make sure the invocation of verify
55014         appears before executable statements. Suggested by Petr Sumbera
55015         <Petr.Sumbera@Sun.COM>.
55017 2010-03-14  Bruno Haible  <bruno@clisp.org>
55019         * tests/test-flock.c (test_exclusive): Comment out a test that causes
55020         portability problems. Instead use a simpler test.
55021         (main): Check that invalid arguments are rejected only on Linux.
55023 2010-03-14  Bruno Haible  <bruno@clisp.org>
55025         Fix bug introduced on 2009-12-31.
55026         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55027         gl_PREREQ_SYS_H_WINSOCK2 always.
55028         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
55029         SYS_SOCKET_H variable.
55030         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
55031         Update comments.
55032         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
55033         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55034         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55035         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55036         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
55038 2010-03-14  Bruno Haible  <bruno@clisp.org>
55040         Fix values returned by sinl, cosl.
55041         * lib/trigl.h: Add specification comments.
55042         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
55043         that combines the values from the precomputed table with the values of
55044         the Chebyshev polynomials.
55046 2010-03-14  Bruno Haible  <bruno@clisp.org>
55048         Fix compilation error when modules 'posix_spawn[p]' are not used.
55049         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
55050         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
55052 2010-03-14  Bruno Haible  <bruno@clisp.org>
55054         Fix compilation error on mingw when module 'time_r' is not used.
55055         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
55056         is 1.
55057         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
55058         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55059         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
55060         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
55062 2010-03-14  Bruno Haible  <bruno@clisp.org>
55064         Fix compilation error with Sun C.
55065         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
55066         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
55067         instead of GCC specific ULONG_LONG_MAX.
55068         * lib/xstrtoll.c: Likewise.
55069         * lib/xstrtoull.c: Likewise.
55071 2010-03-13  Bruno Haible  <bruno@clisp.org>
55073         Allow the user to disable C++ code and tests.
55074         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
55075         (gl_PROG_ANSI_CXX): Require it.
55077 2010-03-13  Bruno Haible  <bruno@clisp.org>
55079         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
55080         cases.
55082 2010-03-13  Bruno Haible  <bruno@clisp.org>
55084         Test that gnulib does not break the standard C++ headers.
55085         * tests/test-locale-c++2.cc: New file.
55086         * modules/locale-tests (Files): Add it.
55087         (Makefile.am): Compile it for test-locale-c++.
55088         * tests/test-math-c++2.cc: New file.
55089         * modules/math-tests (Files): Add it.
55090         (Makefile.am): Compile it for test-math-c++.
55091         * tests/test-signal-c++2.cc: New file.
55092         * modules/signal-tests (Files): Add it.
55093         (Makefile.am): Compile it for test-signal-c++.
55094         * tests/test-stdio-c++2.cc: New file.
55095         * modules/stdio-tests (Files): Add it.
55096         (Makefile.am): Compile it for test-stdio-c++.
55097         * tests/test-stdlib-c++2.cc: New file.
55098         * modules/stdlib-tests (Files): Add it.
55099         (Makefile.am): Compile it for test-stdlib-c++.
55100         * tests/test-string-c++2.cc: New file.
55101         * modules/string-tests (Files): Add it.
55102         (Makefile.am): Compile it for test-string-c++.
55103         * tests/test-time-c++2.cc: New file.
55104         * modules/time-tests (Files): Add it.
55105         (Makefile.am): Compile it for test-time-c++.
55106         Reported by John W. Eaton <jwe@gnu.org>.
55108 2010-03-13  Bruno Haible  <bruno@clisp.org>
55110         * gnulib-tool (func_usage): Clarify which options are available for
55111         --create-testdir and --create-megatestdir.
55113 2010-03-13  Bruno Haible  <bruno@clisp.org>
55115         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
55116         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
55117         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
55118         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55119         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
55120         when appropriate.
55121         Reported by Jim Meyering.
55123 2010-03-12  Simon Josefsson  <simon@josefsson.org>
55125         * gnulib-tool (func_import): Explain origin of code.
55127 2010-03-12  Bruno Haible  <bruno@clisp.org>
55129         Fix problem with automake's definition of CXXLINK.
55130         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
55131         Reported by Simon Josefsson and Ludovic Courtès.
55133 2010-03-12  Bruno Haible  <bruno@clisp.org>
55135         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
55136         stable releases.
55138 2010-03-11  Bruno Haible  <bruno@clisp.org>
55140         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
55141         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
55142         whether the system provides one variant or multiple variants of the
55143         function.
55144         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
55145         C++ compilers.
55146         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
55147         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
55148         Reported by Jim Meyering.
55150 2010-03-09  Simon Josefsson  <simon@josefsson.org>
55152         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
55154 2010-03-08  Bruno Haible  <bruno@clisp.org>
55156         gnulib-tool: Add support for --libtool in --create-testdir.
55157         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
55158         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
55160 2010-03-08  Eric Blake  <eblake@redhat.com>
55162         gnulib-tool.texi: mention possibility of git submodule
55163         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
55164         submodules.
55165         * doc/.gitignore: Ignore another generated file.
55167 2010-03-08  Karl Berry  <karl@gnu.org>
55169         * doc/gnulib-tool.texi (VCS Issues): Mention third option
55170         of committing gnulib files while skipping others.
55172 2010-03-07  Bruno Haible  <bruno@clisp.org>
55174         Tests of module 'wctype' in C++ mode.
55175         * tests/test-wctype-c++.cc: New file.
55176         * modules/wctype-tests (Files): Add it and tests/signature.h.
55177         (Depends-on): Add ansi-c++-opt.
55178         (Makefile.am): Arrange to compile and run test-wctype-c++.
55180         Tests of module 'wchar' in C++ mode.
55181         * tests/test-wchar-c++.cc: New file.
55182         * modules/wchar-tests (Files): Add it and tests/signature.h.
55183         (Depends-on): Add ansi-c++-opt.
55184         (Makefile.am): Arrange to compile and run test-wchar-c++.
55185         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
55186         gl_MODULE_INDICATOR.
55188         Tests of module 'unistd' in C++ mode.
55189         * tests/test-unistd-c++.cc: New file.
55190         * modules/unistd-tests (Files): Add it and tests/signature.h.
55191         (Depends-on): Add ansi-c++-opt.
55192         (Makefile.am): Arrange to compile and run test-unistd-c++.
55193         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
55194         gl_MODULE_INDICATOR.
55196         Tests of module 'time' in C++ mode.
55197         * tests/test-time-c++.cc: New file.
55198         * modules/time-tests (Files): Add it and tests/signature.h.
55199         (Depends-on): Add ansi-c++-opt.
55200         (Makefile.am): Arrange to compile and run test-time-c++.
55201         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55203         Tests of module 'sys_time' in C++ mode.
55204         * tests/test-sys_time-c++.cc: New file.
55205         * modules/sys_time-tests (Files): Add it and tests/signature.h.
55206         (Depends-on): Add ansi-c++-opt.
55207         (Makefile.am): Arrange to compile and run test-sys_time-c++.
55208         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
55209         gl_MODULE_INDICATOR.
55211         Tests of module 'sys_stat' in C++ mode.
55212         * tests/test-sys_stat-c++.cc: New file.
55213         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
55214         (Depends-on): Add ansi-c++-opt.
55215         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
55216         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
55217         gl_MODULE_INDICATOR.
55219         Tests of module 'sys_socket' in C++ mode.
55220         * tests/test-sys_socket-c++.cc: New file.
55221         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
55222         (Depends-on): Add ansi-c++-opt.
55223         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
55224         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
55225         gl_MODULE_INDICATOR.
55227         Tests of module 'sys_select' in C++ mode.
55228         * tests/test-sys_select-c++.cc: New file.
55229         * modules/sys_select-tests (Files): Add it and tests/signature.h.
55230         (Depends-on): Add ansi-c++-opt.
55231         (Makefile.am): Arrange to compile and run test-sys_select-c++.
55232         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
55233         gl_MODULE_INDICATOR.
55235         Tests of module 'sys_ioctl' in C++ mode.
55236         * tests/test-sys_ioctl-c++.cc: New file.
55237         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
55238         (Depends-on): Add ansi-c++-opt.
55239         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
55240         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
55241         gl_MODULE_INDICATOR.
55243         Tests of module 'string' in C++ mode.
55244         * tests/test-string-c++.cc: New file.
55245         * modules/string-tests (Files): Add it and tests/signature.h.
55246         (Depends-on): Add ansi-c++-opt.
55247         (Makefile.am): Arrange to compile and run test-string-c++.
55248         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
55249         gl_MODULE_INDICATOR.
55251         Tests of module 'stdlib' in C++ mode.
55252         * tests/test-stdlib-c++.cc: New file.
55253         * modules/stdlib-tests (Files): Add it and tests/signature.h.
55254         (Depends-on): Add ansi-c++-opt.
55255         (Makefile.am): Arrange to compile and run test-stdlib-c++.
55256         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
55257         gl_MODULE_INDICATOR.
55259         Tests of module 'stdio' in C++ mode.
55260         * tests/test-stdio-c++.cc: New file.
55261         * modules/stdio-tests (Files): Add it and tests/signature.h.
55262         (Depends-on): Add ansi-c++-opt.
55263         (Makefile.am): Arrange to compile and run test-stdio-c++.
55264         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
55265         gl_MODULE_INDICATOR.
55267         Tests of module 'spawn' in C++ mode.
55268         * tests/test-spawn-c++.cc: New file.
55269         * modules/spawn-tests (Files): Add it and tests/signature.h.
55270         (Depends-on): Add ansi-c++-opt.
55271         (Makefile.am): Arrange to compile and run test-spawn-c++.
55272         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
55273         gl_MODULE_INDICATOR.
55275         Tests of module 'signal' in C++ mode.
55276         * tests/test-signal-c++.cc: New file.
55277         * modules/signal-tests (Files): Add it and tests/signature.h.
55278         (Depends-on): Add ansi-c++-opt.
55279         (Makefile.am): Arrange to compile and run test-signal-c++.
55280         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
55281         gl_MODULE_INDICATOR.
55283         Tests of module 'search' in C++ mode.
55284         * tests/test-search-c++.cc: New file.
55285         * modules/search-tests (Files): Add it and tests/signature.h.
55286         (Depends-on): Add ansi-c++-opt.
55287         (Makefile.am): Arrange to compile and run test-search-c++.
55288         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
55289         gl_MODULE_INDICATOR.
55291         Tests of module 'math' in C++ mode.
55292         * tests/test-math-c++.cc: New file.
55293         * modules/math-tests (Files): Add it and tests/signature.h.
55294         (Depends-on): Add ansi-c++-opt.
55295         (Makefile.am): Arrange to compile and run test-math-c++.
55296         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55298         Tests of module 'locale' in C++ mode.
55299         * tests/test-locale-c++.cc: New file.
55300         * modules/locale-tests (Files): Add it and tests/signature.h.
55301         (Depends-on): Add ansi-c++-opt.
55302         (Makefile.am): Arrange to compile and run test-locale-c++.
55303         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55304         gl_MODULE_INDICATOR.
55306         Tests of module 'langinfo' in C++ mode.
55307         * tests/test-langinfo-c++.cc: New file.
55308         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55309         (Depends-on): Add ansi-c++-opt.
55310         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55311         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55312         gl_MODULE_INDICATOR.
55314         Tests of module 'iconv-h' in C++ mode.
55315         * tests/test-iconv-h-c++.cc: New file.
55316         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55317         (Depends-on): Add ansi-c++-opt.
55318         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55320         Tests of module 'glob' in C++ mode.
55321         * tests/test-glob-c++.cc: New file.
55322         * modules/glob-tests (Files): Add it.
55323         (Depends-on): Add ansi-c++-opt.
55324         (Makefile.am): Arrange to compile and run test-glob-c++.
55326         Tests of module 'fcntl-h' in C++ mode.
55327         * tests/test-fcntl-h-c++.cc: New file.
55328         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55329         (Depends-on): Add ansi-c++-opt.
55330         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55331         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55332         gl_MODULE_INDICATOR.
55334         Tests of module 'dirent' in C++ mode.
55335         * tests/test-dirent-c++.cc: New file.
55336         * modules/dirent-tests (Files): Add it and tests/signature.h.
55337         (Depends-on): Add ansi-c++-opt.
55338         (Makefile.am): Arrange to compile and run test-dirent-c++.
55339         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55340         gl_MODULE_INDICATOR.
55342         New module 'ansi-c++-opt'.
55343         * modules/ansi-c++-opt: New file.
55344         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55346         Document C++ namespace mode.
55347         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55349         wctype: Avoid #define replacements in C++ mode.
55350         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55351         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55352         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55353         In C++, define a namespaced alias symbol.
55354         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55355         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55356         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55357         rule.
55359         wchar: Avoid #define replacements in C++ mode.
55360         * lib/wchar.in.h: Include c++defs.h.
55361         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55362         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55363         symbol.
55364         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55365         * modules/wchar (Depends-on): Add c++defs.
55366         (Makefile.am): Update wchar.h rule.
55368         unistd: Avoid #define replacements in C++ mode.
55369         * lib/unistd.in.h: Include c++defs.h.
55370         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55371         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55372         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55373         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55374         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55375         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55376         symbol.
55377         (environ): Update.
55378         * modules/unistd (Depends-on): Add c++defs.
55379         (Makefile.am): Update unistd.h rule.
55381         time: Avoid #define replacements in C++ mode.
55382         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55383         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55384         define a namespaced alias symbol.
55385         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55386         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55387         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55388         * modules/time (Depends-on): Add c++defs, warn-on-use.
55389         (Makefile.am): Update time.h rule.
55390         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55391         * modules/nanosleep (configure.ac): Likewise.
55392         * modules/strptime (configure.ac): Likewise.
55393         * modules/timegm (configure.ac): Likewise.
55395         sys_time: Avoid #define replacements in C++ mode.
55396         * lib/sys_time.in.h: Include c++defs.h.
55397         (gettimeofday): In C++, define a namespaced alias symbol.
55398         * modules/sys_time (Depends-on): Add c++defs.
55399         (Makefile.am): Update sys/time.h rule.
55401         sys_stat: Avoid #define replacements in C++ mode.
55402         * lib/sys_stat.in.h: Include c++defs.h.
55403         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55404         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55405         namespaced alias symbol.
55406         In C++, define a namespaced alias symbol.
55407         * modules/sys_stat (Depends-on): Add c++defs.
55408         (Makefile.am): Update sys/stat.h rule.
55410         sys_socket: Avoid #define replacements in C++ mode.
55411         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55412         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55413         definitions also when the system has a <sys/socket.h>.
55414         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55415         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55416         In C++, define a namespaced alias symbol.
55417         * modules/sys_socket (Depends-on): Add c++defs.
55418         (Makefile.am): Update sys/socket.h rule.
55420         sys_select: Avoid #define replacements in C++ mode.
55421         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55422         definitions also when the system has a <sys/select.h>.
55423         (select): In C++, define a namespaced alias symbol.
55424         * modules/sys_select (Depends-on): Add c++defs.
55425         (Makefile.am): Update sys/select.h rule.
55427         sys_ioctl: Avoid #define replacements in C++ mode.
55428         * lib/sys_ioctl.in.h: Include c++defs.h.
55429         (ioctl): In C++, define a namespaced alias symbol.
55430         * modules/sys_ioctl (Depends-on): Add c++defs.
55431         (Makefile.am): Update sys/ioctl.h rule.
55433         string: Avoid #define replacements in C++ mode.
55434         * lib/string.in.h: Include c++defs.h.
55435         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55436         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55437         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55438         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55439         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55440         * modules/string (Depends-on): Add c++defs.
55441         (Makefile.am): Update string.h rule.
55443         stdlib: Avoid #define replacements in C++ mode.
55444         * lib/stdlib.in.h: Include c++defs.h.
55445         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55446         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55447         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55448         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55449         symbol.
55450         * modules/stdlib (Depends-on): Add c++defs.
55451         (Makefile.am): Update stdlib.h rule.
55453         stdio: Avoid #define replacements in C++ mode.
55454         * lib/stdio.in.h: Include c++defs.h.
55455         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55456         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55457         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55458         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55459         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55460         namespaced alias symbol.
55461         * modules/stdio (Depends-on): Add c++defs.
55462         (Makefile.am): Update stdio.h rule.
55464         spawn: Avoid #define replacements in C++ mode.
55465         * lib/spawn.in.h: Include c++defs.h.
55466         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55467         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55468         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55469         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55470         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55471         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55472         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55473         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55474         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55475         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55476         In C++, define a namespaced alias symbol.
55477         * modules/spawn (Depends-on): Add c++defs.
55478         (Makefile.am): Update spawn.h rule.
55480         signal: Avoid #define replacements in C++ mode.
55481         * lib/signal.in.h: Include c++defs.h.
55482         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55483         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55484         namespaced alias symbol.
55485         * modules/signal (Depends-on): Add c++defs.
55486         (Makefile.am): Update signal.h rule.
55488         search: Avoid #define replacements in C++ mode.
55489         * lib/search.in.h: Include c++defs.h.
55490         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55491         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55492         symbol.
55493         * modules/search (Depends-on): Add c++defs.
55494         (Makefile.am): Update search.h rule.
55496         math: Avoid #define replacements in C++ mode.
55497         * lib/math.in.h: Include c++defs.h.
55498         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55499         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55500         trunc, truncl): In C++, define a namespaced alias symbol.
55501         * modules/math (Depends-on): Add c++defs.
55502         (Makefile.am): Update math.h rule.
55504         locale: Avoid #define replacements in C++ mode.
55505         * lib/locale.in.h: Include c++defs.h.
55506         (duplocale): In C++, define a namespaced alias symbol.
55507         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55508         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55509         * modules/locale (Depends-on): Add c++defs.
55510         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55512         langinfo: Avoid #define replacements in C++ mode.
55513         * lib/langinfo.in.h: Include c++defs.h.
55514         (nl_langinfo): In C++, define a namespaced alias symbol.
55515         * modules/langinfo (Depends-on): Add c++defs.
55516         (Makefile.am): Update langinfo.h rule.
55518         iconv-h: Avoid #define replacements in C++ mode.
55519         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55520         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55521         symbol.
55522         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55523         whenever iconv is present.
55524         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55525         (Makefile.am): Update iconv.h rule.
55527         glob: Avoid #define replacements in C++ mode.
55528         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55529         (_gl_glob_errfunc_fn): New type.
55530         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55531         symbol.
55532         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55533         (Makefile.am): Update glob.h rule.
55535         fcntl-h: Avoid #define replacements in C++ mode.
55536         * lib/fcntl.in.h: Include c++defs.h.
55537         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55538         * modules/fcntl-h (Depends-on): Add c++defs.
55539         (Makefile.am): Update fcntl.h rule.
55541         dirent: Avoid #define replacements in C++ mode.
55542         * lib/dirent.in.h: Include c++defs.h.
55543         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
55544         namespaced alias symbol.
55545         (dirfd): Update declaration.
55546         * modules/dirent (Depends-on): Add c++defs.
55547         (Makefile.am): Update dirent.h rule.
55549         ctype: Make it usable in C++ code.
55550         * lib/ctype.in.h: Include c++defs.h.
55551         (isblank): Declare as extern "C".
55552         * modules/ctype (Depends-on): Add c++defs.
55553         (Makefile.am): Update ctype.h rule.
55555         New module 'c++defs'.
55556         * modules/c++defs: New file.
55557         * build-aux/c++defs.h: New file.
55558         Reported by John W. Eaton <jwe@gnu.org>.
55560 2010-03-07  Bruno Haible  <bruno@clisp.org>
55562         logb: Provide missing declaration for Cygwin.
55563         * lib/math.in.h (logb): New declaration.
55564         * m4/logb.m4: New file.
55565         * modules/logb (Files): Add m4/logb.m4.
55566         (Depends-on): Add math.
55567         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
55568         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
55569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
55570         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
55571         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
55573 2010-03-07  Bruno Haible  <bruno@clisp.org>
55575         Fix test-cond link error.
55576         * tests/test-cond.c: Include <stdio.h>.
55578 2010-03-07  Bruno Haible  <bruno@clisp.org>
55580         Fix test-dirent-safer link error.
55581         * modules/dirent-safer-tests (Makefile.am): Define
55582         test_dirent_safer_LDADD.
55584 2010-03-07  Bruno Haible  <bruno@clisp.org>
55586         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
55587         among default module list.
55589 2010-03-07  Bruno Haible  <bruno@clisp.org>
55591         Fix link error on platforms with GNU libiconv.
55592         * modules/unistr/u8-strcoll-tests (Makefile): Define
55593         test_u8_strcoll_LDADD.
55594         * modules/unistr/u16-strcoll-tests (Makefile): Define
55595         test_u16_strcoll_LDADD.
55596         * modules/unistr/u32-strcoll-tests (Makefile): Define
55597         test_u32_strcoll_LDADD.
55599 2010-03-07  Bruno Haible  <bruno@clisp.org>
55601         Use POSIX declarations for socket functions.
55602         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
55603         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
55604         rpl_sendto): Change declaration to match POSIX.
55605         * lib/connect.c (rpl_connect): Likewise.
55606         * lib/accept.c (rpl_accept): Likewise.
55607         * lib/bind.c (rpl_bind): Likewise.
55608         * lib/getpeername.c (rpl_getpeername): Likewise.
55609         * lib/getsockname.c (rpl_getsockname): Likewise.
55610         * lib/recv.c (rpl_recv): Likewise.
55611         * lib/send.c (rpl_send): Likewise.
55612         * lib/recvfrom.c (rpl_recvfrom): Likewise.
55613         * lib/sendto.c (rpl_sendto): Likewise.
55615 2010-03-06  Bruno Haible  <bruno@clisp.org>
55617         Clarify access, euidaccess, faccessat.
55618         * doc/posix-functions/faccessat.texi: Mention security problem under
55619         "Other problems", not "Portability problems".
55620         * doc/posix-functions/access.texi: Likewise. Mention a related security
55621         problem.
55622         * doc/glibc-functions/euidaccess.texi: Mention security problems.
55623         * lib/euidaccess.c: Add comments about platforms.
55624         * lib/unistd.in.h (access, euidaccess): Add warnings.
55626 2010-03-07  Bruno Haible  <bruno@clisp.org>
55628         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
55629         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
55630         (POSIX_SPAWN_SETSCHEDULER): Likewise.
55631         (POSIX_SPAWN_USEVFORK): Define in a way that works when
55632         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55633         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
55634         declare when POSIX_SPAWN_SETSCHEDULER is zero.
55635         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
55636         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
55637         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
55638         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
55639         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
55640         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
55641         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
55642         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
55643         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
55644         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
55645         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
55646         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
55647         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
55648         Likewise.
55649         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
55650         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
55651         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
55652         Likewise.
55653         * tests/test-spawn.c (main): Make it work when
55654         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55656 2010-03-07  Bruno Haible  <bruno@clisp.org>
55658         Fix incorrect Makefile.am generation in German locale.
55659         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55660         Execute sed command with character range in C locale.
55662 2010-03-06  Bruno Haible  <bruno@clisp.org>
55664         Tests for module 'iconv-h'.
55665         * modules/iconv-h-tests: New file.
55666         * tests/test-iconv-h.c: New file.
55668         New module 'iconv-h'.
55669         * modules/iconv-h: New file.
55670         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
55671         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
55672         (configure.ac): Remove gl_ICONV_H.
55673         (Makefile.am): Remove rule for iconv.h.
55675 2010-03-06  Bruno Haible  <bruno@clisp.org>
55677         More consistent naming of *.m4 files.
55678         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
55679         * modules/wctype (Files): Update.
55681         More consistent naming of *.m4 files.
55682         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
55683         * modules/wchar (Files): Update.
55685 2010-03-06  Jim Meyering  <meyering@redhat.com>
55687         euidaccess: relax license to LGPLv2+
55688         * modules/euidaccess (License): Relax to LGPLv2+.
55690 2010-03-06  Bruno Haible  <bruno@clisp.org>
55692         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
55693         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
55694         (Makefile.am): Augment lib_SOURCES instead.
55696 2010-03-04  Jim Meyering  <meyering@redhat.com>
55698         utime: remove obsolete module
55699         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
55700         unnecessary for years, and has been marked as obsolete for 10 months.
55701         * modules/utime: Remove file.
55702         * lib/utime.c: Remove file.
55703         * m4/utime.m4: Remove file.
55704         * m4/utimes-null.m4: Remove file.
55705         * doc/posix-functions/utime.texi (utime): Remove reference to
55706         the module.  Move the sole "fixed by gnulib" item into the
55707         "problems not fixed by Gnulib" list.
55708         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
55710 2010-03-05  Simon Josefsson  <simon@josefsson.org>
55712         * modules/exit (License): Relax license to LGPLv2+.
55713         (Status): Mark as obsolete.
55714         * NEWS: Mention deprecated 'exit' module.
55715         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
55716         of now obsolete 'exit'.
55718 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55720         fts-lgpl: remove unused module
55721         * modules/fts-lgpl: Remove.
55722         * MODULES.html.sh (func_all_modules): Adjust.
55723         * check-module (find_included_lib_files): Adjust.
55724         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
55726 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
55728         copy-acl: enhance Solaris ACL error handling
55729         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
55730         * lib/set-mode-acl.c (qset_acl): Likewise.
55732 2010-03-02  Bruno Haible  <bruno@clisp.org>
55734         spawn: Don't override the system defined values on FreeBSD 8.
55735         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
55736         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
55737         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
55738         if HAVE_POSIX_SPAWN is 1.
55739         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
55741 2010-03-01  Bruno Haible  <bruno@clisp.org>
55743         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
55744         regarding Automake.
55746 2010-02-25  Bruno Haible  <bruno@clisp.org>
55748         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
55749         * gnulib-tool: Define 'echo' as a function only before the ksh alias
55750         setting, not afterwards.
55751         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
55753 2010-02-24  Eric Blake  <eblake@redhat.com>
55755         bootstrap, git-version-gen: use timestamp
55756         * build-aux/git-version-gen (scriptversion): Force UTC.
55757         * build-aux/bootstrap (scriptversion): New variable.
55759         bootstrap: allow older git
55760         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
55761         older than 1.6.4.  Requested by the libvirt project.
55763 2010-02-23  Eric Blake  <eblake@redhat.com>
55765         warn-on-use: work with old autoconf
55766         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
55767         AS_VAR semantics of autoconf 2.60.
55768         Reported by Bruno Haible.
55770         bootstrap: improve some comments
55771         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
55772         clarification comments.
55774         gettimeofday: provide correct function
55775         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
55776         when replacement is declared, otherwise provide gettimeofday.
55777         Reported by Michael Goffioul.
55779 2010-02-23  Jim Meyering  <meyering@redhat.com>
55781         lib-ignore: relax license to "unlimited", not LGPLv2+
55782         * modules/lib-ignore (License): Relax to "unlimited".
55784 2010-02-23  Jim Meyering  <meyering@redhat.com>
55786         lib-ignore: relax license to LGPLv2+
55787         * modules/lib-ignore (License): Relax to LGPLv2+.
55789 2010-02-22  Eric Blake  <eblake@redhat.com>
55791         lseek: avoid bash 3.2 broken pipe bug
55792         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
55793         warning from bash 3.2.
55794         Reported by Ben Pfaff, with analysis from Bruno Haible.
55796         bootstrap: support non-FSF copyright holder
55797         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
55798         bootstrap.conf override of COPYRIGHT_HOLDER.
55799         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
55801         bootstrap: interoperate with gettext 0.14.1
55802         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
55804         bootstrap: allow for alternate submodule location
55805         * build-aux/bootstrap (gnulib_path): New variable; use instead of
55806         hardcoding submodule location.
55807         (gnulib_mk): Allow direct use of Makefile.am.
55809         bootstrap: use GNULIB_SRCDIR to reduce disk usage
55810         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
55811         rather than reconfiguring where the submodule points.
55813         gettimeofday: restore support for platforms that lack function
55814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
55815         replacement if function is missing.
55816         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
55817         * modules/sys_time (Makefile.am): Substitute it.
55818         * lib/sys_time.in.h (gettimeofday): Check it.
55819         Reported by Michael Goffioul.
55821 2010-02-21  Bruno Haible  <bruno@clisp.org>
55823         * lib/stdio.in.h (obstack_printf): Fix typo.
55825 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
55827         vc-list-files: use bzr ls's -R option
55828         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
55829         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
55831 2010-02-21  Jim Meyering  <meyering@redhat.com>
55833         init.sh: fix EXEEXT shims to work also for names like test-prog
55834         * tests/init.sh: Re-exec a better shell, when needed.
55835         If the current shell lacks support for posix $(...), an init.sh-using
55836         test will now try to find a shell that supports that.  If EXEEXT is
55837         nonempty, we also require support for hyphen-in-alias-name and shell
55838         substitutions like ${var#glob}.  Failure to find such a shell results
55839         in a skipped test.
55841 2010-02-21  Bruno Haible  <bruno@clisp.org>
55843         Really work around "broken pipe" error message from bash 3.2.
55844         * gnulib-tool (func_reset_sigpipe): Remove function.
55845         (echo): In bash 3.2, define to a function that uses printf.
55846         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
55848 2010-02-20  Bruno Haible  <bruno@clisp.org>
55850         Restore support for automake 1.9.6 with autoconf 2.61.
55851         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
55852         Reported by James Youngman <jay@gnu.org>.
55854 2010-02-20  Bruno Haible  <bruno@clisp.org>
55856         Improve *printf warning condition.
55857         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
55858         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
55859         and the function is overridden due to SIGPIPE emulation.
55861 2010-02-20  Bruno Haible  <bruno@clisp.org>
55863         * lib/stdio.in.h: Tweak comments.
55865 2010-02-19  Bruno Haible  <bruno@clisp.org>
55867         Make it easier to find modules. New gnulib-tool option '--find'.
55868         * gnulib-tool: New option --find.
55869         (func_usage): Document it.
55870         (func_sanitize_modulelist): New function, extracted from
55871         func_all_modules.
55872         (func_all_modules): Invoke it.
55873         * doc/gnulib-tool.texi (Which modules?): New node.
55875 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
55877         * lib/sys_select.in.h: Provide select replacement even if
55878         sys/select.h exists on a system, for Interix.
55880 2010-02-18  Jim Meyering  <meyering@redhat.com>
55882         init.sh: don't use $(...) just yet
55883         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
55884         to accommodate e.g., Solaris' /bin/sh.
55886 2010-02-17  Bruno Haible  <bruno@clisp.org>
55888         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
55889         Reported by Ludovic Courtès <ludo@gnu.org>.
55891 2010-02-16  Simon Josefsson  <simon@josefsson.org>
55893         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
55894         linking with -lintl.
55896 2010-02-17  Simon Josefsson  <simon@josefsson.org>
55898         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
55899         if not provided by the system's netdb.h.  Reported by
55900         ludo@gnu.org (Ludovic Courtès).
55902 2010-02-15  Jim Meyering  <meyering@redhat.com>
55904         init.sh: improve portability and efficiency
55905         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
55906         "dummy" in a for loop.
55907         Use '!', not '^' to select the complement of a character set used
55908         in a "case" statement.
55909         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
55910         Suggestions from Eric Blake.
55912         init.sh: automatically accommodate programs with the .exe suffix
55913         Automatically arrange for an invocation of "prog" to execute the
55914         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
55915         may use the simpler "prog", yet still work when built on a system
55916         that requires specifying the added suffix.
55917         Do this by constructing a function named "prog" that invokes
55918         "prog.exe" for each .exe file in selected directories.
55919         * tests/init.sh (find_exe_basenames_): New function.
55920         (create_exe_shim_functions_): New function.
55921         (path_prepend_): Use it.
55923         maint.mk: mark syntax-check sc_*.m rules as .PHONY
55924         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
55925         "make -t syntax-check" doesn't create a ton of sc_*.m files.
55927 2010-02-14  Jim Meyering  <meyering@redhat.com>
55929         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
55930         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
55931         (sc_prohibit_hash_pjw_without_use): New rule.
55933         maint.mk: allow the default upload destination dir to be overridden
55934         * top/maint.mk (upload_dest_dir_): Define with a default that
55935         preserves the status quo.
55936         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
55937         Reported by Peter Simons.
55939         maint.mk: prohibit inclusion of "hash.h" without_use
55940         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
55942 2010-02-10  Jim Meyering  <meyering@redhat.com>
55944         maint.mk: prohibit inclusion of "ignore-value.h" without_use
55945         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
55947 2010-02-09  Eric Blake  <ebb9@byu.net>
55948         and Bruno Haible  <bruno@clisp.org>
55950         obstack-printf-posix: ensure declaration
55951         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
55952         extracted from gl_FUNC_OBSTACK_PRINTF.
55953         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
55954         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55955         Likewise.
55956         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
55957         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
55958         0.
55960 2010-02-08  Bruno Haible  <bruno@clisp.org>
55962         gnulib-tool: Fix typo in 2010-02-07 commit.
55963         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
55964         Reported by Eric Blake.
55966 2010-02-07  Bruno Haible  <bruno@clisp.org>
55968         gnulib-tool: Fix up caching patches.
55969         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
55970         option --no-cache. Use associative arrays when supported by the shell.
55971         (sed_comments): New variable.
55972         (modcache): Renamed from do_cache.
55973         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
55974         abbreviate unnecessarily.
55975         (have_associative): New variable.
55976         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
55977         way also for ksh and zsh.
55978         (func_init_sed_convert_to_cache_statements): New function, extracted
55979         from func_cache_lookup_module. Add support for associative arrays.
55980         Don't set the c_MODULE_cached variable here. Ignore all lines before
55981         the first field header. Remove only the final newline, not all trailing
55982         newlines. Support empty fields correctly. Limit the use of 'eval' to
55983         assignments.
55984         (func_get_description, func_get_status, func_get_notice,
55985         func_get_applicability, func_get_filelist, func_get_dependencies,
55986         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
55987         func_get_automake_snippet, func_get_include_directive,
55988         func_get_link_directive, func_get_license, func_get_maintainer):
55989         Update documentation. List the unoptimized code first. Add support for
55990         associative arrays. Limit the use of 'eval' to assignments.
55991         (func_get_applicability): Undo stylistic pessimisations.
55992         (func_get_automake_snippet, func_get_include_directive): Reduce code
55993         duplication.
55994         (func_modules_transitive_closure, func_modules_add_dummy,
55995         func_modules_notice, func_modules_to_filelist, func_add_file,
55996         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
55997         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
55998         func_create_testdir, func_create_megatestdir): Update documentation.
56000 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56002         * gnulib-tool (func_cache_lookup_module): Store the module name
56003         belonging to the cache variable; error out if two different
56004         module names map to the same cache variable name.
56006 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56008         gnulib-tool: Make caching optional.
56009         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
56010         Update matching short versions of --no-changelog.
56011         (func_usage): Update.
56012         (sed_extract_cache_prog): Renamed from ...
56013         (sed_extract_prog): ... this; revert to old extraction script.
56014         (func_get_description, func_get_status)
56015         (func_get_notice, func_get_applicability, func_get_filelist)
56016         (func_get_dependencies, func_get_autoconf_early_snippet)
56017         (func_get_autoconf_snippet, func_get_automake_snippet)
56018         (func_get_include_directive, func_get_link_directive)
56019         (func_get_license, func_get_maintainer): If $do_cache is false,
56020         use old, non-caching extraction scripts.
56021         Suggestion by Bruno Haible.
56023 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56025         gnulib-tool: cache module metainformation.
56026         * gnulib-tool (sed_extract_prog): Match newline before each
56027         header, and rewrite header to a shell variable suffix.
56028         (func_cache_var, func_cache_lookup_module): New functions,
56029         to turn a module name into a cache variable prefix, and to
56030         look up and cache module metainformation.
56031         (func_get_description, func_get_status)
56032         (func_get_notice, func_get_applicability, func_get_filelist)
56033         (func_get_dependencies, func_get_autoconf_early_snippet)
56034         (func_get_autoconf_snippet, func_get_automake_snippet)
56035         (func_get_include_directive, func_get_link_directive)
56036         (func_get_license, func_get_maintainer): Use
56037         func_cache_lookup_module.
56039 2010-02-07  Bruno Haible  <bruno@clisp.org>
56041         fnctl: Fix missing dependency.
56042         * modules/fcntl (Depends-on): Add getdtablesize.
56043         Reported by John W. Eaton <jwe@gnu.org>.
56045 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56047         Argp: fix recognition of short alias options.
56049         * lib/argp-parse.c (convert_options): Fix improper use of
56050         `|' between character values.
56051         * tests/test-argp.c (group1_option): New alias option
56052         --read (-r).
56053         (group1_parser): Special handling for 'r'.
56054         (test15): New test case.
56055         (test_fun): Add test15.
56056         * tests/test-argp-2.sh: Update expected --help and --usage
56057         outputs.
56059 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56061         * tests/test-argp.c: Fix indentation.
56063 2010-02-04  Eric Blake  <ebb9@byu.net>
56065         gettimeofday: expose type of second argument
56066         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
56067         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
56068         * tests/test-gettimeofday.c: Use it to silence warning.
56069         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
56070         the issue.
56072 2010-02-03  Jim Meyering  <meyering@redhat.com>
56074         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
56075         * lib/regcomp.c (TYPE_SIGNED): Define.
56076         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
56078         regcomp.c: avoid a new -Wshadow warning
56079         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
56081 2010-02-01  Jim Meyering  <meyering@redhat.com>
56083         removing useless parentheses in cpp #define directives
56084         For motivation, see commit c0221df4, "define STREQ(a,b)
56085         consistently, removing useless parentheses"
56086         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
56087         * lib/mountlist.c (MNT_IGNORE): Likewise.
56088         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
56090 2010-02-01  Eric Blake  <ebb9@byu.net>
56092         sys_time: use link-warning
56093         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
56094         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
56095         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
56096         * modules/sys_time (Depends-on): Add warn-on-use.
56097         (Makefile.am): Always build replacement.
56098         (configure.ac): Update substitutions.
56099         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
56100         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
56101         bother with SYS_TIME_H.
56102         * modules/gettimeofday (configure.ac): Declare indicator.
56103         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
56104         in use.
56106         closein-tests: silence compiler warning
56107         * tests/test-closein.c (main): Ignore fread result.
56108         * modules/closein-tests (Depends-on): Add ignore-value.
56110         tests: silence warning about system return
56111         * tests/test-areadlink-with-size.c (main): Ignore system result.
56112         * tests/test-areadlink.c (main): Likewise.
56113         * tests/test-areadlinkat-with-size.c (main): Likewise.
56114         * tests/test-areadlinkat.c (main): Likewise.
56115         * tests/test-canonicalize-lgpl.c (main): Likewise.
56116         * tests/test-canonicalize.c (main): Likewise.
56117         * tests/test-chown.c (main): Likewise.
56118         * tests/test-fchownat.c (main): Likewise.
56119         * tests/test-fdutimensat.c (main): Likewise.
56120         * tests/test-fstatat.c (main): Likewise.
56121         * tests/test-futimens.c (main): Likewise.
56122         * tests/test-lchown.c (main): Likewise.
56123         * tests/test-link.c (main): Likewise.
56124         * tests/test-linkat.c (main): Likewise.
56125         * tests/test-lstat.c (main): Likewise.
56126         * tests/test-mkdir.c (main): Likewise.
56127         * tests/test-mkdirat.c (main): Likewise.
56128         * tests/test-mkfifo.c (main): Likewise.
56129         * tests/test-mkfifoat.c (main): Likewise.
56130         * tests/test-mknod.c (main): Likewise.
56131         * tests/test-readlink.c (main): Likewise.
56132         * tests/test-remove.c (main): Likewise.
56133         * tests/test-rename.c (main): Likewise.
56134         * tests/test-renameat.c (main): Likewise.
56135         * tests/test-rmdir.c (main): Likewise.
56136         * tests/test-symlink.c (main): Likewise.
56137         * tests/test-symlinkat.c (main): Likewise.
56138         * tests/test-unlink.c (main): Likewise.
56139         * tests/test-unlinkat.c (main): Likewise.
56140         * tests/test-utimens.c (main): Likewise.
56141         * tests/test-utimensat.c (main): Likewise.
56142         * modules/areadlink-tests (Depends-on): Add ignore-value.
56143         * modules/areadlink-with-size-tests (Depends-on): Likewise.
56144         * modules/areadlinkat-tests (Depends-on): Likewise.
56145         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
56146         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56147         * modules/canonicalize-tests (Depends-on): Likewise.
56148         * modules/chown-tests (Depends-on): Likewise.
56149         * modules/fdutimensat-tests (Depends-on): Likewise.
56150         * modules/futimens-tests (Depends-on): Likewise.
56151         * modules/lchown-tests (Depends-on): Likewise.
56152         * modules/link-tests (Depends-on): Likewise.
56153         * modules/linkat-tests (Depends-on): Likewise.
56154         * modules/lstat-tests (Depends-on): Likewise.
56155         * modules/mkdir-tests (Depends-on): Likewise.
56156         * modules/mkfifo-tests (Depends-on): Likewise.
56157         * modules/mkfifoat-tests (Depends-on): Likewise.
56158         * modules/mknod-tests (Depends-on): Likewise.
56159         * modules/openat-tests (Depends-on): Likewise.
56160         * modules/readlink-tests (Depends-on): Likewise.
56161         * modules/remove-tests (Depends-on): Likewise.
56162         * modules/rename-tests (Depends-on): Likewise.
56163         * modules/renameat-tests (Depends-on): Likewise.
56164         * modules/rmdir-tests (Depends-on): Likewise.
56165         * modules/symlink-tests (Depends-on): Likewise.
56166         * modules/symlinkat-tests (Depends-on): Likewise.
56167         * modules/unlink-tests (Depends-on): Likewise.
56168         * modules/utimens-tests (Depends-on): Likewise.
56169         * modules/utimensat-tests (Depends-on): Likewise.
56171 2010-01-31  Bruno Haible  <bruno@clisp.org>
56173         Perform the same test for many <math.h> functions.
56174         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
56175         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
56176         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
56177         of gl_MATHFUNC.
56178         * modules/acos (configure.ac): Likewise.
56179         * modules/asin (configure.ac): Likewise.
56180         * modules/atan (configure.ac): Likewise.
56181         * modules/atan2 (configure.ac): Likewise.
56182         * modules/cbrt (configure.ac): Likewise.
56183         * modules/copysign (configure.ac): Likewise.
56184         * modules/cos (configure.ac): Likewise.
56185         * modules/cosh (configure.ac): Likewise.
56186         * modules/erf (configure.ac): Likewise.
56187         * modules/erfc (configure.ac): Likewise.
56188         * modules/exp (configure.ac): Likewise.
56189         * modules/fmod (configure.ac): Likewise.
56190         * modules/hypot (configure.ac): Likewise.
56191         * modules/j0 (configure.ac): Likewise.
56192         * modules/j1 (configure.ac): Likewise.
56193         * modules/jn (configure.ac): Likewise.
56194         * modules/lgamma (configure.ac): Likewise.
56195         * modules/log (configure.ac): Likewise.
56196         * modules/log10 (configure.ac): Likewise.
56197         * modules/log1p (configure.ac): Likewise.
56198         * modules/pow (configure.ac): Likewise.
56199         * modules/remainder (configure.ac): Likewise.
56200         * modules/sin (configure.ac): Likewise.
56201         * modules/sinh (configure.ac): Likewise.
56202         * modules/tan (configure.ac): Likewise.
56203         * modules/tanh (configure.ac): Likewise.
56204         * modules/y0 (configure.ac): Likewise.
56205         * modules/y1 (configure.ac): Likewise.
56206         * modules/yn (configure.ac): Likewise.
56207         Suggested by Paolo Bonzini.
56209 2010-01-31  Bruno Haible  <bruno@clisp.org>
56211         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
56213 2010-01-31  Bruno Haible  <bruno@clisp.org>
56215         Work around getdelim() bug on FreeBSD 8.0.
56216         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
56217         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
56218         not work.
56219         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
56220         is 1.
56221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
56222         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
56223         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
56224         a non-zero size.
56225         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
56227 2010-01-31  Bruno Haible  <bruno@clisp.org>
56229         Work around getline() bug on FreeBSD 8.0.
56230         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
56231         and a non-zero size.
56232         * tests/test-getline.c (main): Likewise.
56233         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
56234         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
56236 2010-01-28  Eric Blake  <ebb9@byu.net>
56238         regex: fix build failure
56239         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
56240         platforms.
56242 2010-01-28  Jim Meyering  <meyering@redhat.com>
56244         regex: do not ignore memory allocation failure
56245         * lib/regex_internal.c (create_cd_newstate): Detect
56246         re_node_set_init_copy failure.   Extracted from glibc commit
56247         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56249         regex: sync more white-space changes from libc
56250         * lib/regex_internal.c: White-space only changes.
56251         * lib/regexec.c: Likewise.
56253         regex: add many uses of __attribute_warn_unused_result__
56254         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
56255         * lib/regexec.c: Likewise.
56256         Extracted from a messy glibc commit.
56258         regcomp.c: spelling and merge-artifact from glibc
56259         * lib/regcomp.c: Merge remainder of glibc's
56260         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56262         regcomp.c: sync white-space changes from glibc
56263         * lib/regcomp.c: Merge to accommodate white space
56264         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56266         regcomp.c: do not ignore internal return values
56267         * lib/regcomp.c: Do not ignore internal return values.
56268         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
56269         but without its white-space changes and spelling fixes.
56271         regex_internal.h: define __attribute_warn_unused_result__
56272         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
56274         maint: add a syntax-check rule to check for vulnerable Makefile.in
56275         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
56277 2010-01-27  Jim Meyering  <meyering@redhat.com>
56279         ncftpput-ftp: clean up spaces
56280         * build-aux/ncftpput-ftp: Make Copyright line consistent.
56281         Remove trailing blanks.
56283 2010-01-27  Simon Josefsson  <simon@josefsson.org>
56285         * build-aux/git-version-gen: Fix copyright statement.
56286         * build-aux/gnupload: Likewise.
56287         * tests/test-arcfour.c: Likewise.
56288         * tests/test-arctwo.c: Likewise.
56289         * tests/test-count-one-bits.c: Likewise.
56290         * tests/test-crc.c: Likewise.
56291         * tests/test-des.c: Likewise.
56292         * tests/test-gc-arcfour.c: Likewise.
56293         * tests/test-gc-arctwo.c: Likewise.
56294         * tests/test-gc-des.c: Likewise.
56295         * tests/test-gc-hmac-md5.c: Likewise.
56296         * tests/test-gc-hmac-sha1.c: Likewise.
56297         * tests/test-gc-md2.c: Likewise.
56298         * tests/test-gc-md4.c: Likewise.
56299         * tests/test-gc-md5.c: Likewise.
56300         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56301         * tests/test-gc-rijndael.c: Likewise.
56302         * tests/test-gc-sha1.c: Likewise.
56303         * tests/test-gc.c: Likewise.
56304         * tests/test-gethostname.c: Likewise.
56305         * tests/test-gettimeofday.c: Likewise.
56306         * tests/test-hash.c: Likewise.
56307         * tests/test-hmac-md5.c: Likewise.
56308         * tests/test-hmac-sha1.c: Likewise.
56309         * tests/test-md2.c: Likewise.
56310         * tests/test-md4.c: Likewise.
56311         * tests/test-md5.c: Likewise.
56312         * tests/test-memchr.c: Likewise.
56313         * tests/test-memchr2.c: Likewise.
56314         * tests/test-memcmp.c: Likewise.
56315         * tests/test-memmem.c: Likewise.
56316         * tests/test-memrchr.c: Likewise.
56317         * tests/test-rawmemchr.c: Likewise.
56318         * tests/test-read-file.c: Likewise.
56319         * tests/test-rijndael.c: Likewise.
56320         * tests/test-sockets.c: Likewise.
56321         * tests/test-strchrnul.c: Likewise.
56322         * tests/test-strstr.c: Likewise.
56323         * tests/test-strtod.c: Likewise.
56324         * build-aux/ncftpput-ftp: Likewise.
56326 2010-01-26  Eric Blake  <ebb9@byu.net>
56328         ignore-value: update recommended header name
56329         * modules/ignore-value (Include): Only use <> for headers that
56330         exist in glibc.
56332 2010-01-26  Jim Meyering  <meyering@redhat.com>
56334         test-userspec.c: avoid compiler warnings
56335         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56336         and "initialization discards qualifiers..." warnings.
56337         Put the first "uid" in its own scope, and make char* members "const".
56339 2010-01-25  Bruno Haible  <bruno@clisp.org>
56341         gnulib-tool: Make warning diagnostics consistent.
56342         * gnulib-tool (func_warning): New function.
56343         Use it everywhere where gnulib-tool produces output to stderr and it is
56344         not a fatal error.
56346 2010-01-25  Bruno Haible  <bruno@clisp.org>
56348         Fix test dependencies.
56349         * modules/xstrtol-tests (Depends-on): Add inttypes.
56350         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56352 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56354         syntax-check: detect incorrect boolean macro values in config.h
56355         * modules/maintainer-makefile (configure.ac): Parameterize the location
56356         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56357         The logic is from Eric Blake and the location indicated by Jim Meyering.
56358         Note the more natural CONFIG_HEADER name is prohibited by automake
56359         for backwards compatibility reasons.
56360         * top/maint.mk (sc_Wundef_boolean): New rule.
56362 2010-01-25  Jim Meyering  <meyering@redhat.com>
56364         bootstrap: detect MacOS 10.6's shasum, too
56365         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56366         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56368 2010-01-23  Jim Meyering  <meyering@redhat.com>
56370         xstrtoll: new module
56371         * modules/xstrtoll: New file.
56372         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56373         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56374         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56375         ./configure fails if you use this module and lack "long long".
56376         * modules/xstrtoll-tests: New module.
56377         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56378         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56379         new init.sh-based test framework.
56381 2010-01-24  Bruno Haible  <bruno@clisp.org>
56383         Tests for module 'yn'.
56384         * modules/yn-tests: New file.
56385         * tests/test-yn.c: New file.
56387         Tests for module 'y1'.
56388         * modules/y1-tests: New file.
56389         * tests/test-y1.c: New file.
56391         Tests for module 'y0'.
56392         * modules/y0-tests: New file.
56393         * tests/test-y0.c: New file.
56395         Tests for module 'tanh'.
56396         * modules/tanh-tests: New file.
56397         * tests/test-tanh.c: New file.
56399         Tests for module 'tan'.
56400         * modules/tan-tests: New file.
56401         * tests/test-tan.c: New file.
56403         Tests for module 'sqrt'.
56404         * modules/sqrt-tests: New file.
56405         * tests/test-sqrt.c: New file.
56407         Tests for module 'sinh'.
56408         * modules/sinh-tests: New file.
56409         * tests/test-sinh.c: New file.
56411         Tests for module 'sin'.
56412         * modules/sin-tests: New file.
56413         * tests/test-sin.c: New file.
56415         Tests for module 'rint'.
56416         * modules/rint-tests: New file.
56417         * tests/test-rint.c: New file.
56419         Tests for module 'remainder'.
56420         * modules/remainder-tests: New file.
56421         * tests/test-remainder.c: New file.
56423         Tests for module 'pow'.
56424         * modules/pow-tests: New file.
56425         * tests/test-pow.c: New file.
56427         Tests for module 'nextafter'.
56428         * modules/nextafter-tests: New file.
56429         * tests/test-nextafter.c: New file.
56431         Tests for module 'modf'.
56432         * modules/modf-tests: New file.
56433         * tests/test-modf.c: New file.
56435         Tests for module 'logb'.
56436         * modules/logb-tests: New file.
56437         * tests/test-logb.c: New file.
56439         Tests for module 'log1p'.
56440         * modules/log1p-tests: New file.
56441         * tests/test-log1p.c: New file.
56443         Tests for module 'log10'.
56444         * modules/log10-tests: New file.
56445         * tests/test-log10.c: New file.
56447         Tests for module 'log'.
56448         * modules/log-tests: New file.
56449         * tests/test-log.c: New file.
56451         Tests for module 'lgamma'.
56452         * modules/lgamma-tests: New file.
56453         * tests/test-lgamma.c: New file.
56455         Tests for module 'ldexp'.
56456         * modules/ldexp-tests: New file.
56457         * tests/test-ldexp.c: New file.
56459         Tests for module 'jn'.
56460         * modules/jn-tests: New file.
56461         * tests/test-jn.c: New file.
56463         Tests for module 'j1'.
56464         * modules/j1-tests: New file.
56465         * tests/test-j1.c: New file.
56467         Tests for module 'j0'.
56468         * modules/j0-tests: New file.
56469         * tests/test-j0.c: New file.
56471         Tests for module 'hypot'.
56472         * modules/hypot-tests: New file.
56473         * tests/test-hypot.c: New file.
56475         Tests for module 'fmod'.
56476         * modules/fmod-tests: New file.
56477         * tests/test-fmod.c: New file.
56479         Tests for module 'fabs'.
56480         * modules/fabs-tests: New file.
56481         * tests/test-fabs.c: New file.
56483         Tests for module 'exp'.
56484         * modules/exp-tests: New file.
56485         * tests/test-exp.c: New file.
56487         Tests for module 'erfc'.
56488         * modules/erfc-tests: New file.
56489         * tests/test-erfc.c: New file.
56491         Tests for module 'erf'.
56492         * modules/erf-tests: New file.
56493         * tests/test-erf.c: New file.
56495         Tests for module 'cosh'.
56496         * modules/cosh-tests: New file.
56497         * tests/test-cosh.c: New file.
56499         Tests for module 'cos'.
56500         * modules/cos-tests: New file.
56501         * tests/test-cos.c: New file.
56503         Tests for module 'copysign'.
56504         * modules/copysign-tests: New file.
56505         * tests/test-copysign.c: New file.
56507         Tests for module 'cbrt'.
56508         * modules/cbrt-tests: New file.
56509         * tests/test-cbrt.c: New file.
56511         Tests for module 'atan2'.
56512         * modules/atan2-tests: New file.
56513         * tests/test-atan2.c: New file.
56515         Tests for module 'atan'.
56516         * modules/atan-tests: New file.
56517         * tests/test-atan.c: New file.
56519         Tests for module 'asin'.
56520         * modules/asin-tests: New file.
56521         * tests/test-asin.c: New file.
56523         Tests for module 'acos'.
56524         * modules/acos-tests: New file.
56525         * tests/test-acos.c: New file.
56527 2010-01-24  Bruno Haible  <bruno@clisp.org>
56529         Fix tests for common <math.h> functions.
56530         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56531         code snippet that references the function pointer, rather than merely
56532         calling the function. Substitute the FUNC_LIBM variable.
56533         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56534         * modules/acos (configure.ac): Likewise.
56535         * modules/asin (configure.ac): Likewise.
56536         * modules/atan (configure.ac): Likewise.
56537         * modules/atan2 (configure.ac): Likewise.
56538         * modules/cbrt (configure.ac): Likewise.
56539         * modules/copysign (configure.ac): Likewise.
56540         * modules/cos (configure.ac): Likewise.
56541         * modules/cosh (configure.ac): Likewise.
56542         * modules/erf (configure.ac): Likewise.
56543         * modules/erfc (configure.ac): Likewise.
56544         * modules/exp (configure.ac): Likewise.
56545         * modules/fabs (configure.ac): Likewise.
56546         * modules/fmod (configure.ac): Likewise.
56547         * modules/hypot (configure.ac): Likewise.
56548         * modules/j0 (configure.ac): Likewise.
56549         * modules/j1 (configure.ac): Likewise.
56550         * modules/jn (configure.ac): Likewise.
56551         * modules/ldexp (configure.ac): Likewise.
56552         * modules/lgamma (configure.ac): Likewise.
56553         * modules/log (configure.ac): Likewise.
56554         * modules/log10 (configure.ac): Likewise.
56555         * modules/log1p (configure.ac): Likewise.
56556         * modules/logb (configure.ac): Likewise.
56557         * modules/modf (configure.ac): Likewise.
56558         * modules/nextafter (configure.ac): Likewise.
56559         * modules/pow (configure.ac): Likewise.
56560         * modules/remainder (configure.ac): Likewise.
56561         * modules/rint (configure.ac): Likewise.
56562         * modules/sin (configure.ac): Likewise.
56563         * modules/sinh (configure.ac): Likewise.
56564         * modules/tan (configure.ac): Likewise.
56565         * modules/tanh (configure.ac): Likewise.
56566         * modules/y0 (configure.ac): Likewise.
56567         * modules/y1 (configure.ac): Likewise.
56568         * modules/yn (configure.ac): Likewise.
56570 2010-01-24  Bruno Haible  <bruno@clisp.org>
56572         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
56573         * tests/test-acosl.c (x): New variable.
56574         (main): Store argument in x and fetch it from x.
56575         * tests/test-asinl.c (x): New variable.
56576         (main): Store argument in x and fetch it from x.
56577         * tests/test-atanl.c (x): New variable.
56578         (main): Store argument in x and fetch it from x.
56579         * tests/test-cosl.c (x): New variable.
56580         (main): Store argument in x and fetch it from x.
56581         * tests/test-expl.c (x): New variable.
56582         (main): Store argument in x and fetch it from x.
56583         * tests/test-logl.c (x): New variable.
56584         (main): Store argument in x and fetch it from x.
56585         * tests/test-sinl.c (x): New variable.
56586         (main): Store argument in x and fetch it from x.
56587         * tests/test-sqrtl.c (x): New variable.
56588         (main): Store argument in x and fetch it from x.
56589         * tests/test-tanl.c (x): New variable.
56590         (main): Store argument in x and fetch it from x.
56592 2010-01-24  Bruno Haible  <bruno@clisp.org>
56594         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
56595         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
56596         assignments to the initial TESTS_ENVIRONMENT.
56597         * doc/gnulib.texi (Unit test modules): Document it.
56598         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
56599         TESTS_ENVIRONMENT.
56600         * modules/btowc-tests (Makefile.am): Likewise.
56601         * modules/c-stack-tests (Makefile.am): Likewise.
56602         * modules/c-strcase-tests (Makefile.am): Likewise.
56603         * modules/copy-file-tests (Makefile.am): Likewise.
56604         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
56605         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
56606         * modules/mbrtowc-tests (Makefile.am): Likewise.
56607         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56608         * modules/mbscasestr-tests (Makefile.am): Likewise.
56609         * modules/mbschr-tests (Makefile.am): Likewise.
56610         * modules/mbscspn-tests (Makefile.am): Likewise.
56611         * modules/mbsinit-tests (Makefile.am): Likewise.
56612         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56613         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
56614         * modules/mbspbrk-tests (Makefile.am): Likewise.
56615         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56616         * modules/mbsrchr-tests (Makefile.am): Likewise.
56617         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
56618         * modules/mbsspn-tests (Makefile.am): Likewise.
56619         * modules/mbsstr-tests (Makefile.am): Likewise.
56620         * modules/nl_langinfo-tests (Makefile.am): Likewise.
56621         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
56622         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56623         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56624         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56625         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56626         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
56627         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56628         * modules/wcrtomb-tests (Makefile.am): Likewise.
56629         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
56630         * modules/wcsrtombs-tests (Makefile.am): Likewise.
56631         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
56632         assignments from TESTS_ENVIRONMENT.
56633         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
56634         augmentation.
56635         * modules/argp-version-etc-tests (Makefile.am): Likewise.
56636         * modules/atexit-tests (Makefile.am): Likewise.
56637         * modules/binary-io-tests (Makefile.am): Likewise.
56638         * modules/closein-tests (Makefile.am): Likewise.
56639         * modules/dprintf-posix-tests (Makefile.am): Likewise.
56640         * modules/exclude-tests (Makefile.am): Likewise.
56641         * modules/fflush-tests (Makefile.am): Likewise.
56642         * modules/fpending-tests (Makefile.am): Likewise.
56643         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56644         * modules/freadahead-tests (Makefile.am): Likewise.
56645         * modules/freadptr-tests (Makefile.am): Likewise.
56646         * modules/freadseek-tests (Makefile.am): Likewise.
56647         * modules/fseek-tests (Makefile.am): Likewise.
56648         * modules/fseeko-tests (Makefile.am): Likewise.
56649         * modules/ftell-tests (Makefile.am): Likewise.
56650         * modules/ftello-tests (Makefile.am): Likewise.
56651         * modules/idpriv-drop-tests (Makefile.am): Likewise.
56652         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
56653         * modules/lseek-tests (Makefile.am): Likewise.
56654         * modules/parse-duration-tests (Makefile.am): Likewise.
56655         * modules/perror-tests (Makefile.am): Likewise.
56656         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
56657         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
56658         * modules/pipe-tests (Makefile.am): Likewise.
56659         * modules/pread-tests (Makefile.am): Likewise.
56660         * modules/printf-posix-tests (Makefile.am): Likewise.
56661         * modules/select-tests (Makefile.am): Likewise.
56662         * modules/sigpipe-tests (Makefile.am): Likewise.
56663         * modules/tsearch-tests (Makefile.am): Likewise.
56664         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
56665         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
56666         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56667         * modules/uniwidth/width-tests (Makefile.am): Likewise.
56668         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
56669         * modules/version-etc-tests (Makefile.am): Likewise.
56670         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56671         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56672         * modules/xalloc-die-tests (Makefile.am): Likewise.
56673         * modules/xprintf-posix-tests (Makefile.am): Likewise.
56674         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56675         * modules/xstrtol-tests (Makefile.am): Likewise.
56676         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56677         * modules/yesno-tests (Makefile.am): Likewise.
56678         Suggested by Jim Meyering.
56680 2010-01-24  Bruno Haible  <bruno@clisp.org>
56682         More documentation.
56683         * doc/gnulib.texi (Writing modules): New chapter.
56684         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
56685         the new chapter.
56687 2010-01-24  Jim Meyering  <meyering@redhat.com>
56689         maint.mk: do not prepend "./" after filtering
56690         * top/maint.mk (_prepend_srcdir_prefix): New variable
56691         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
56692         "./" when $(srcdir) is ".".
56694         define STREQ(a,b) consistently, removing useless parentheses
56695         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
56696         since the only risk is that "a" or "b" contains an unparenthesized
56697         comma, but if either did that, STREQ would have 3 or more arguments.
56698         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
56699         * lib/fts.c (STREQ): Remove unnecessary parentheses.
56700         * lib/hash-triple.c (STREQ): Likewise.
56701         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
56702         * lib/getugroups.c (STREQ): Likewise.
56704 2010-01-23  Jim Meyering  <meyering@redhat.com>
56706         maint.mk: fix syntax-check in a non-srcdir build directory
56707         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
56708         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
56710 2010-01-22  Jim Meyering  <meyering@redhat.com>
56712         userspec: add unit tests
56713         * tests/test-userspec.c: New file.
56714         * modules/userspec-tests: Likewise.
56716 2010-01-21  Jim Meyering  <meyering@redhat.com>
56718         maint.mk: handle source file names containing "." robustly
56719         * top/maint.mk (_dot_escaped_srcdir): Define.
56720         (VC_LIST): Use it in LHS of sed substitution.
56722 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
56724         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
56725         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
56726         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
56727         from a non-srcdir build.
56729 2010-01-20  Eric Blake  <ebb9@byu.net>
56731         warn-on-use: use instead of link-warning
56732         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
56733         * modules/unistd (Depends-on, Makefile.am): Likewise.
56734         * modules/arpa_inet (Depends-on): Replace link-warning with
56735         warn-on-use.
56736         (Makefile.am): Update rules accordingly.
56737         * modules/ctype (Depends-on, Makefile.am): Likewise.
56738         * modules/dirent (Depends-on, Makefile.am): Likewise.
56739         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
56740         * modules/inttypes (Depends-on, Makefile.am): Likewise.
56741         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56742         * modules/locale (Depends-on, Makefile.am): Likewise.
56743         * modules/math (Depends-on, Makefile.am): Likewise.
56744         * modules/search (Depends-on, Makefile.am): Likewise.
56745         * modules/signal (Depends-on, Makefile.am): Likewise.
56746         * modules/spawn (Depends-on, Makefile.am): Likewise.
56747         * modules/stdlib (Depends-on, Makefile.am): Likewise.
56748         * modules/string (Depends-on, Makefile.am): Likewise.
56749         * modules/strings (Depends-on, Makefile.am): Likewise.
56750         * modules/sys_file (Depends-on, Makefile.am): Likewise.
56751         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
56752         * modules/sys_select (Depends-on, Makefile.am): Likewise.
56753         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
56754         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
56755         * modules/sys_times (Depends-on, Makefile.am): Likewise.
56756         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56757         * modules/wchar (Depends-on, Makefile.am): Likewise.
56758         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
56759         should be poisoned.
56760         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
56761         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
56762         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
56763         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56764         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56765         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56766         * m4/math_h.m4 (gl_MATH_H): Likewise.
56767         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56768         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56769         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56770         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56771         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56772         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56773         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
56774         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
56775         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
56776         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56777         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56778         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56779         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56780         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56781         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56782         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56783         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
56784         GL_LINK_WARNING.
56785         * lib/ctype.in.h: Likewise.
56786         * lib/dirent.in.h: Likewise.
56787         * lib/fcntl.in.h: Likewise.
56788         * lib/inttypes.in.h: Likewise.
56789         * lib/langinfo.in.h: Likewise.
56790         * lib/locale.in.h: Likewise.
56791         * lib/math.in.h: Likewise.
56792         * lib/search.in.h: Likewise.
56793         * lib/signal.in.h: Likewise.
56794         * lib/spawn.in.h: Likewise.
56795         * lib/stdio.in.h: Likewise.
56796         * lib/stdlib.in.h: Likewise.
56797         * lib/string.in.h: Likewise.
56798         * lib/strings.in.h: Likewise.
56799         * lib/sys_file.in.h: Likewise.
56800         * lib/sys_ioctl.in.h: Likewise.
56801         * lib/sys_select.in.h: Likewise.
56802         * lib/sys_socket.in.h: Likewise.
56803         * lib/sys_stat.in.h: Likewise.
56804         * lib/sys_times.in.h: Likewise.
56805         * lib/sys_utsname.in.h: Likewise.
56806         * lib/unistd.in.h: Likewise.
56807         * lib/wchar.in.h: Likewise.
56809 2010-01-20  Bruno Haible  <bruno@clisp.org>
56811         Avoid duplicate -lm.
56812         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
56813         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
56814         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
56815         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
56816         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
56817         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
56818         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
56819         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
56820         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
56821         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
56822         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
56823         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
56824         Reported by Paolo Bonzini.
56826 2010-01-19  Bruno Haible  <bruno@clisp.org>
56828         langinfo, nl_langinfo: Relicense under LGPLv2+.
56829         * modules/langinfo (License): Change to LGPLv2+.
56830         * modules/nl_langinfo (License): Likewise.
56831         Patch by David Lutterkort <lutter@redhat.com>.
56833 2010-01-19  Bruno Haible  <bruno@clisp.org>
56835         Avoid compilation error with cc on OSF/1 5.1.
56836         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
56837         statement, not before.
56838         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56840 2010-01-18  Bruno Haible  <bruno@clisp.org>
56842         Avoid a link error due to the __printf__ symbol.
56843         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
56844         and 2.6.x.
56845         (__format__, __printf__): Remove definitions.
56846         * lib/argp-fmtstream.h: Likewise.
56847         * lib/argp.h: Likewise.
56848         * lib/error.h: Likewise.
56849         * lib/vasnprintf.h: Likewise.
56850         * lib/xprintf.h: Likewise.
56851         * lib/xvasprintf.h: Likewise.
56852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56854 2010-01-18  Bruno Haible  <bruno@clisp.org>
56856         Tests for module 'tanl'.
56857         * modules/tanl-tests: New file.
56858         * tests/test-tanl.c: New file.
56860         Tests for module 'sqrtl'.
56861         * modules/sqrtl-tests: New file.
56862         * tests/test-sqrtl.c: New file.
56864         Tests for module 'sinl'.
56865         * modules/sinl-tests: New file.
56866         * tests/test-sinl.c: New file.
56868         Tests for module 'logl'.
56869         * modules/logl-tests: New file.
56870         * tests/test-logl.c: New file.
56872         Tests for module 'expl'.
56873         * modules/expl-tests: New file.
56874         * tests/test-expl.c: New file.
56876         Tests for module 'cosl'.
56877         * modules/cosl-tests: New file.
56878         * tests/test-cosl.c: New file.
56880         Tests for module 'atanl'.
56881         * modules/atanl-tests: New file.
56882         * tests/test-atanl.c: New file.
56884         Tests for module 'asinl'.
56885         * modules/asinl-tests: New file.
56886         * tests/test-asinl.c: New file.
56888         Tests for module 'acosl'.
56889         * modules/acosl-tests: New file.
56890         * tests/test-acosl.c: New file.
56892         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56893         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
56894         tanl): Use the standard gnulib idiom.
56895         * lib/cosl.c: Don't include trigl.c and sincosl.c.
56896         * lib/sinl.c: Likewise.
56897         * lib/tanl.c: Don't include trigl.c.
56898         (kernel_tanl): Make static.
56899         * lib/sincosl.c: Include trigl.h first.
56900         * lib/trigl.c: Likewise.
56901         * m4/acosl.m4: New file.
56902         * m4/asinl.m4: New file.
56903         * m4/atanl.m4: New file.
56904         * m4/cosl.m4: New file.
56905         * m4/expl.m4: New file.
56906         * m4/logl.m4: New file.
56907         * m4/sinl.m4: New file.
56908         * m4/sqrtl.m4: New file.
56909         * m4/tanl.m4: New file.
56910         * m4/mathl.m4: Remove file.
56911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
56912         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56913         Don't initialize GNULIB_MATHL.
56914         * modules/acosl: New file.
56915         * modules/asinl: New file.
56916         * modules/atanl: New file.
56917         * modules/cosl: New file.
56918         * modules/expl: New file.
56919         * modules/logl: New file.
56920         * modules/sinl: New file.
56921         * modules/sqrtl: New file.
56922         * modules/tanl: New file.
56923         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
56924         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
56925         substitute GNULIB_MATHL.
56926         * modules/mathl: Rewritten.
56927         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
56928         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
56929         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
56930         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
56931         * doc/posix-functions/expl.texi: Mention the 'expl' module.
56932         * doc/posix-functions/logl.texi: Mention the 'logl' module.
56933         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
56934         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
56935         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
56937 2010-01-18  Bruno Haible  <bruno@clisp.org>
56939         sqrt: Make gl_FUNC_SQRT requirable.
56940         * m4/sqrt.m4: New file.
56941         * modules/sqrt (Files): Add it.
56942         (configure.ac): Invoke gl_FUNC_SQRT.
56944 2010-01-18  Bruno Haible  <bruno@clisp.org>
56946         New modules for common <math.h> functions.
56947         * m4/mathfunc.m4: New file.
56948         * modules/acos: New file.
56949         * modules/asin: New file.
56950         * modules/atan: New file.
56951         * modules/atan2: New file.
56952         * modules/cbrt: New file.
56953         * modules/copysign: New file.
56954         * modules/cos: New file.
56955         * modules/cosh: New file.
56956         * modules/erf: New file.
56957         * modules/erfc: New file.
56958         * modules/exp: New file.
56959         * modules/fabs: New file.
56960         * modules/fmod: New file.
56961         * modules/hypot: New file.
56962         * modules/j0: New file.
56963         * modules/j1: New file.
56964         * modules/jn: New file.
56965         * modules/ldexp: New file.
56966         * modules/lgamma: New file.
56967         * modules/log: New file.
56968         * modules/log10: New file.
56969         * modules/log1p: New file.
56970         * modules/logb: New file.
56971         * modules/modf: New file.
56972         * modules/nextafter: New file.
56973         * modules/pow: New file.
56974         * modules/remainder: New file.
56975         * modules/rint: New file.
56976         * modules/sin: New file.
56977         * modules/sinh: New file.
56978         * modules/sqrt: New file.
56979         * modules/tan: New file.
56980         * modules/tanh: New file.
56981         * modules/y0: New file.
56982         * modules/y1: New file.
56983         * modules/yn: New file.
56984         * doc/posix-functions/acos.texi: Mention the 'acos' module.
56985         * doc/posix-functions/asin.texi: Mention the 'asin' module.
56986         * doc/posix-functions/atan.texi: Mention the 'atan' module.
56987         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
56988         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
56989         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
56990         * doc/posix-functions/cos.texi: Mention the 'cos' module.
56991         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
56992         * doc/posix-functions/erf.texi: Mention the 'erf' module.
56993         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
56994         * doc/posix-functions/exp.texi: Mention the 'exp' module.
56995         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
56996         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
56997         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
56998         * doc/posix-functions/j0.texi: Mention the 'j0' module.
56999         * doc/posix-functions/j1.texi: Mention the 'j1' module.
57000         * doc/posix-functions/jn.texi: Mention the 'jn' module.
57001         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
57002         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
57003         * doc/posix-functions/log.texi: Mention the 'log' module.
57004         * doc/posix-functions/log10.texi: Mention the 'log10' module.
57005         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
57006         * doc/posix-functions/logb.texi: Mention the 'logb' module.
57007         * doc/posix-functions/modf.texi: Mention the 'modf' module.
57008         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
57009         * doc/posix-functions/pow.texi: Mention the 'pow' module.
57010         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
57011         * doc/posix-functions/rint.texi: Mention the 'rint' module.
57012         * doc/posix-functions/sin.texi: Mention the 'sin' module.
57013         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
57014         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
57015         * doc/posix-functions/tan.texi: Mention the 'tan' module.
57016         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
57017         * doc/posix-functions/y0.texi: Mention the 'y0' module.
57018         * doc/posix-functions/y1.texi: Mention the 'y1' module.
57019         * doc/posix-functions/yn.texi: Mention the 'yn' module.
57021 2010-01-18  Jim Meyering  <meyering@redhat.com>
57023         ignore-value: relax license to LGPLv2+
57024         * modules/ignore-value (License): Relax to LGPLv2+.
57026         getdate: don't leak when TZ contains two or more '"'s
57027         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
57028         double quote in TZ after the first one.
57030         readtokens: do not leak internal token_lengths buffer
57031         * lib/readtokens.c (readtokens): Free the local, lengths,
57032         when the supplied "token_lengths" parameter is NULL.
57034 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57036         Fix a couple of missing LIBTHREAD link failures on AIX.
57037         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
57038         $(LIBTHREAD).
57039         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
57041         Link test-poll against INET_PTON_LIB.
57042         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
57043         for inet_pton on Solaris 10.
57045 2010-01-17  Bruno Haible  <bruno@clisp.org>
57047         unistdio/*-sprintf: Fix typo in module description.
57048         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
57049         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
57050         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
57051         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
57052         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
57053         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
57054         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
57055         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57057 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57059         gnulib-tool: fix filelist for AIX, HP-UX ksh.
57060         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
57061         variables in shell case patterns, for AIX and HP-UX ksh.
57063         Split large sed scripts, for HP-UX sed.
57064         * modules/stdio: Split sed scripts around 50 sed commands,
57065         to avoid HP-UX limit of 99 commands, in the near future.
57066         * modules/string: Likewise.
57067         * modules/unistd: Likewise.
57069         gnulib-tool: avoid writing in the current directory.
57070         * gnulib-tool (func_emit_lib_Makefile_am)
57071         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
57072         not in the current directory, so concurrent gnulib-tool
57073         instances do not interfere.
57075 2010-01-16  Jim Meyering  <meyering@redhat.com>
57077         doc: update users.txt
57078         * users.txt: Add grep.
57079         (diffutils, gzip): Update URLs.
57081 2010-01-12  Bruno Haible  <bruno@clisp.org>
57083         posix_spawn: Avoid test failure on Cygwin.
57084         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
57085         characters.
57086         Reported by Simon Josefsson.
57088 2010-01-12  Bruno Haible  <bruno@clisp.org>
57090         * tests/test-cond.c (main): When skipping the test, show the reason.
57092 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57094         * lib/striconv.c (str_cd_iconv): Avoid if before free.
57096 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57098         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
57099         VC_LIST_ALWAYS_EXCLUDE_REGEX.
57101 2010-01-12  Eric Blake  <ebb9@byu.net>
57103         build: guarantee AS_VAR_IF
57104         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
57105         (gl_AS_VAR_IF): Move...
57106         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
57107         Reported by Simon Josefsson.
57109 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57111         * lib/stdio.in.h: Fix typo.
57113 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57115         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
57116         libgpg-error.
57118 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57120         * tests/test-xalloc-die.sh: Use $EXEEXT.
57122 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57123             Bruno Haible  <bruno@clisp.org>
57125         getlogin, getlogin_r: Avoid test failure.
57126         * tests/test-getlogin.c: Include <stdio.h>.
57127         (main): Skip the test when the function fails because stdin is not a
57128         tty.
57129         * tests/test-getlogin_r.c: Include <stdio.h>.
57130         (main): Skip the test when the function fails because stdin is not a
57131         tty.
57133 2010-01-11  Eric Blake  <ebb9@byu.net>
57135         tests: avoid more large file warnings
57136         * tests/test-fflush.c: Avoid warning about ftell use.
57137         * tests/test-fseek.c: Avoid warning about fseek use.
57139 2010-01-10  Bruno Haible  <bruno@clisp.org>
57141         nproc: Work better on Linux when /proc and /sys are not mounted.
57142         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
57143         as lower bound when, on glibc/Linux systems,
57144         sysconf (_SC_NPROCESSORS_CONF) returns 1.
57145         Suggested by Pádraig Brady <P@draigbrady.com>.
57146         Reported by Dmitry V. Levin <ldv@altlinux.org>.
57148         nproc: Refactor.
57149         * lib/nproc.c (num_processors_via_affinity_mask): New function,
57150         extracted from num_processors.
57151         (num_processors): Call it.
57153 2010-01-11  Jim Meyering  <meyering@redhat.com>
57155         utimecmp: avoid new warning from upcoming gcc-4.5.0
57156         * lib/utimecmp.c (BILLION): Define using #define rather than an
57157         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
57159 2010-01-11  Eric Blake  <ebb9@byu.net>
57161         math: add portability warnings for classification macros
57162         * modules/math (Depends-on): Add warn-on-use.
57163         (Makefile.am): Provide new substitutions.
57164         * m4/math_h.m4 (gl_MATH_H): Require inline.
57165         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
57166         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
57167         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
57168         implement warnings.
57170         unistd: warn on use of environ without module
57171         * modules/unistd (Depends-on): Add warn-on-use.
57172         (Makefile.am): Provide new substitutions.
57173         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
57174         * lib/unistd.in.h (environ): Wrap with a warning helper function.
57176         stdio: warn on suspicious uses
57177         * modules/stdio (Depends-on): Add warn-on-use.
57178         (Makefile.am): Provide new substitutions.
57179         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
57180         fseeko.
57181         * lib/stdio.in.h (gets): Always warn on use.
57182         (fseek, ftell): Adjust when warnings are issued, and honor
57183         _GL_NO_LARGE_FILES as a way to silence the warning.
57184         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
57185         any warning about large file offsets.
57186         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
57187         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
57188         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
57189         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
57190         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
57191         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
57192         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
57193         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
57195         warn-on-use: new module
57196         * modules/warn-on-use: New file.
57197         * build-aux/warn-on-use.h: Likewise.
57198         * m4/warn-on-use.m4: Likewise.
57199         * MODULES.html.sh (Support for building): Mention it.
57201 2010-01-10  Bruno Haible  <bruno@clisp.org>
57203         Tests for module 'unistr/u32-strdup'.
57204         * modules/unistr/u32-strdup-tests: New file.
57205         * tests/unistr/test-u32-strdup.c: New file.
57207         Tests for module 'unistr/u16-strdup'.
57208         * modules/unistr/u16-strdup-tests: New file.
57209         * tests/unistr/test-u16-strdup.c: New file.
57211         Tests for module 'unistr/u8-strdup'.
57212         * modules/unistr/u8-strdup-tests: New file.
57213         * tests/unistr/test-u8-strdup.c: New file.
57214         * tests/unistr/test-strdup.h: New file.
57216         Tests for module 'unistr/u32-strncmp'.
57217         * modules/unistr/u32-strncmp-tests: New file.
57218         * tests/unistr/test-u32-strncmp.c: New file.
57220         Tests for module 'unistr/u16-strncmp'.
57221         * modules/unistr/u16-strncmp-tests: New file.
57222         * tests/unistr/test-u16-strncmp.c: New file.
57224         Tests for module 'unistr/u8-strncmp'.
57225         * modules/unistr/u8-strncmp-tests: New file.
57226         * tests/unistr/test-u8-strncmp.c: New file.
57227         * tests/unistr/test-strncmp.h: New file.
57229         Tests for module 'unistr/u32-strcoll'.
57230         * modules/unistr/u32-strcoll-tests: New file.
57231         * tests/unistr/test-u32-strcoll.c: New file.
57233         Tests for module 'unistr/u16-strcoll'.
57234         * modules/unistr/u16-strcoll-tests: New file.
57235         * tests/unistr/test-u16-strcoll.c: New file.
57237         Tests for module 'unistr/u8-strcoll'.
57238         * modules/unistr/u8-strcoll-tests: New file.
57239         * tests/unistr/test-u8-strcoll.c: New file.
57241         Tests for module 'unistr/u32-strcmp'.
57242         * modules/unistr/u32-strcmp-tests: New file.
57243         * tests/unistr/test-u32-strcmp.c: New file.
57244         * tests/unistr/test-u32-strcmp.h: New file.
57246         Tests for module 'unistr/u16-strcmp'.
57247         * modules/unistr/u16-strcmp-tests: New file.
57248         * tests/unistr/test-u16-strcmp.c: New file.
57249         * tests/unistr/test-u16-strcmp.h: New file.
57251         Tests for module 'unistr/u8-strcmp'.
57252         * modules/unistr/u8-strcmp-tests: New file.
57253         * tests/unistr/test-u8-strcmp.c: New file.
57254         * tests/unistr/test-u8-strcmp.h: New file.
57255         * tests/unistr/test-strcmp.h: New file.
57257         Tests for module 'unistr/u32-strncat'.
57258         * modules/unistr/u32-strncat-tests: New file.
57259         * tests/unistr/test-u32-strncat.c: New file.
57261         Tests for module 'unistr/u16-strncat'.
57262         * modules/unistr/u16-strncat-tests: New file.
57263         * tests/unistr/test-u16-strncat.c: New file.
57265         Tests for module 'unistr/u8-strncat'.
57266         * modules/unistr/u8-strncat-tests: New file.
57267         * tests/unistr/test-u8-strncat.c: New file.
57268         * tests/unistr/test-strncat.h: New file.
57270         Tests for module 'unistr/u32-strcat'.
57271         * modules/unistr/u32-strcat-tests: New file.
57272         * tests/unistr/test-u32-strcat.c: New file.
57274         Tests for module 'unistr/u16-strcat'.
57275         * modules/unistr/u16-strcat-tests: New file.
57276         * tests/unistr/test-u16-strcat.c: New file.
57278         Tests for module 'unistr/u8-strcat'.
57279         * modules/unistr/u8-strcat-tests: New file.
57280         * tests/unistr/test-u8-strcat.c: New file.
57281         * tests/unistr/test-strcat.h: New file.
57283         Tests for module 'unistr/u32-stpncpy'.
57284         * modules/unistr/u32-stpncpy-tests: New file.
57285         * tests/unistr/test-u32-stpncpy.c: New file.
57287         Tests for module 'unistr/u16-stpncpy'.
57288         * modules/unistr/u16-stpncpy-tests: New file.
57289         * tests/unistr/test-u16-stpncpy.c: New file.
57291         Tests for module 'unistr/u8-stpncpy'.
57292         * modules/unistr/u8-stpncpy-tests: New file.
57293         * tests/unistr/test-u8-stpncpy.c: New file.
57294         * tests/unistr/test-stpncpy.h: New file.
57296         Tests for module 'unistr/u32-strncpy'.
57297         * modules/unistr/u32-strncpy-tests: New file.
57298         * tests/unistr/test-u32-strncpy.c: New file.
57300         Tests for module 'unistr/u16-strncpy'.
57301         * modules/unistr/u16-strncpy-tests: New file.
57302         * tests/unistr/test-u16-strncpy.c: New file.
57304         Tests for module 'unistr/u8-strncpy'.
57305         * modules/unistr/u8-strncpy-tests: New file.
57306         * tests/unistr/test-u8-strncpy.c: New file.
57307         * tests/unistr/test-strncpy.h: New file.
57309         Tests for module 'unistr/u32-stpcpy'.
57310         * modules/unistr/u32-stpcpy-tests: New file.
57311         * tests/unistr/test-u32-stpcpy.c: New file.
57313         Tests for module 'unistr/u16-stpcpy'.
57314         * modules/unistr/u16-stpcpy-tests: New file.
57315         * tests/unistr/test-u16-stpcpy.c: New file.
57317         Tests for module 'unistr/u8-stpcpy'.
57318         * modules/unistr/u8-stpcpy-tests: New file.
57319         * tests/unistr/test-u8-stpcpy.c: New file.
57320         * tests/unistr/test-stpcpy.h: New file.
57322         Tests for module 'unistr/u32-strcpy'.
57323         * modules/unistr/u32-strcpy-tests: New file.
57324         * tests/unistr/test-u32-strcpy.c: New file.
57326         Tests for module 'unistr/u16-strcpy'.
57327         * modules/unistr/u16-strcpy-tests: New file.
57328         * tests/unistr/test-u16-strcpy.c: New file.
57330         Tests for module 'unistr/u8-strcpy'.
57331         * modules/unistr/u8-strcpy-tests: New file.
57332         * tests/unistr/test-u8-strcpy.c: New file.
57333         * tests/unistr/test-strcpy.h: New file.
57335         Tests for module 'unistr/u32-strnlen'.
57336         * modules/unistr/u32-strnlen-tests: New file.
57337         * tests/unistr/test-u32-strnlen.c: New file.
57339         Tests for module 'unistr/u16-strnlen'.
57340         * modules/unistr/u16-strnlen-tests: New file.
57341         * tests/unistr/test-u16-strnlen.c: New file.
57343         Tests for module 'unistr/u8-strnlen'.
57344         * modules/unistr/u8-strnlen-tests: New file.
57345         * tests/unistr/test-u8-strnlen.c: New file.
57346         * tests/unistr/test-strnlen.h: New file.
57348         Tests for module 'unistr/u32-strlen'.
57349         * modules/unistr/u32-strlen-tests: New file.
57350         * tests/unistr/test-u32-strlen.c: New file.
57352         Tests for module 'unistr/u16-strlen'.
57353         * modules/unistr/u16-strlen-tests: New file.
57354         * tests/unistr/test-u16-strlen.c: New file.
57356         Tests for module 'unistr/u8-strlen'.
57357         * modules/unistr/u8-strlen-tests: New file.
57358         * tests/unistr/test-u8-strlen.c: New file.
57360         Tests for module 'unistr/u32-prev'.
57361         * modules/unistr/u32-prev-tests: New file.
57362         * tests/unistr/test-u32-prev.c: New file.
57364         Tests for module 'unistr/u16-prev'.
57365         * modules/unistr/u16-prev-tests: New file.
57366         * tests/unistr/test-u16-prev.c: New file.
57368         Tests for module 'unistr/u8-prev'.
57369         * modules/unistr/u8-prev-tests: New file.
57370         * tests/unistr/test-u8-prev.c: New file.
57372         Tests for module 'unistr/u32-next'.
57373         * modules/unistr/u32-next-tests: New file.
57374         * tests/unistr/test-u32-next.c: New file.
57376         Tests for module 'unistr/u16-next'.
57377         * modules/unistr/u16-next-tests: New file.
57378         * tests/unistr/test-u16-next.c: New file.
57380         Tests for module 'unistr/u8-next'.
57381         * modules/unistr/u8-next-tests: New file.
57382         * tests/unistr/test-u8-next.c: New file.
57384         Tests for module 'unistr/u32-strmbtouc'.
57385         * modules/unistr/u32-strmbtouc-tests: New file.
57386         * tests/unistr/test-u32-strmbtouc.c: New file.
57388         Tests for module 'unistr/u16-strmbtouc'.
57389         * modules/unistr/u16-strmbtouc-tests: New file.
57390         * tests/unistr/test-u16-strmbtouc.c: New file.
57392         Tests for module 'unistr/u8-strmbtouc'.
57393         * modules/unistr/u8-strmbtouc-tests: New file.
57394         * tests/unistr/test-u8-strmbtouc.c: New file.
57396         Tests for module 'unistr/u32-strmblen'.
57397         * modules/unistr/u32-strmblen-tests: New file.
57398         * tests/unistr/test-u32-strmblen.c: New file.
57400         Tests for module 'unistr/u16-strmblen'.
57401         * modules/unistr/u16-strmblen-tests: New file.
57402         * tests/unistr/test-u16-strmblen.c: New file.
57404         Tests for module 'unistr/u8-strmblen'.
57405         * modules/unistr/u8-strmblen-tests: New file.
57406         * tests/unistr/test-u8-strmblen.c: New file.
57408         Tests for module 'unistr/u32-cpy-alloc'.
57409         * modules/unistr/u32-cpy-alloc-tests: New file.
57410         * tests/unistr/test-u32-cpy-alloc.c: New file.
57412         Tests for module 'unistr/u16-cpy-alloc'.
57413         * modules/unistr/u16-cpy-alloc-tests: New file.
57414         * tests/unistr/test-u16-cpy-alloc.c: New file.
57416         Tests for module 'unistr/u8-cpy-alloc'.
57417         * modules/unistr/u8-cpy-alloc-tests: New file.
57418         * tests/unistr/test-u8-cpy-alloc.c: New file.
57419         * tests/unistr/test-cpy-alloc.h: New file.
57421         Tests for module 'unistr/u32-mbsnlen'.
57422         * modules/unistr/u32-mbsnlen-tests: New file.
57423         * tests/unistr/test-u32-mbsnlen.c: New file.
57425         Tests for module 'unistr/u16-mbsnlen'.
57426         * modules/unistr/u16-mbsnlen-tests: New file.
57427         * tests/unistr/test-u16-mbsnlen.c: New file.
57429         Tests for module 'unistr/u8-mbsnlen'.
57430         * modules/unistr/u8-mbsnlen-tests: New file.
57431         * tests/unistr/test-u8-mbsnlen.c: New file.
57433         Tests for module 'unistr/u32-chr'.
57434         * modules/unistr/u32-chr-tests: New file.
57435         * tests/unistr/test-u32-chr.c: New file.
57437         Tests for module 'unistr/u16-chr'.
57438         * modules/unistr/u16-chr-tests: New file.
57439         * tests/unistr/test-u16-chr.c: New file.
57441         Tests for module 'unistr/u8-chr'.
57442         * modules/unistr/u8-chr-tests: New file.
57443         * tests/unistr/test-u8-chr.c: New file.
57444         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57446         Tests for module 'unistr/u32-cmp2'.
57447         * modules/unistr/u32-cmp2-tests: New file.
57448         * tests/unistr/test-u32-cmp2.c: New file.
57450         Tests for module 'unistr/u16-cmp2'.
57451         * modules/unistr/u16-cmp2-tests: New file.
57452         * tests/unistr/test-u16-cmp2.c: New file.
57454         Tests for module 'unistr/u8-cmp2'.
57455         * modules/unistr/u8-cmp2-tests: New file.
57456         * tests/unistr/test-u8-cmp2.c: New file.
57457         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57459         Tests for module 'unistr/u32-cmp'.
57460         * modules/unistr/u32-cmp-tests: New file.
57461         * tests/unistr/test-u32-cmp.c: New file.
57463         Tests for module 'unistr/u16-cmp'.
57464         * modules/unistr/u16-cmp-tests: New file.
57465         * tests/unistr/test-u16-cmp.c: New file.
57467         Tests for module 'unistr/u8-cmp'.
57468         * modules/unistr/u8-cmp-tests: New file.
57469         * tests/unistr/test-u8-cmp.c: New file.
57470         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57472         Tests for module 'unistr/u32-set'.
57473         * modules/unistr/u32-set-tests: New file.
57474         * tests/unistr/test-u32-set.c: New file.
57476         Tests for module 'unistr/u16-set'.
57477         * modules/unistr/u16-set-tests: New file.
57478         * tests/unistr/test-u16-set.c: New file.
57480         Tests for module 'unistr/u8-set'.
57481         * modules/unistr/u8-set-tests: New file.
57482         * tests/unistr/test-u8-set.c: New file.
57483         * tests/unistr/test-set.h: New file.
57485         Tests for module 'unistr/u32-move'.
57486         * modules/unistr/u32-move-tests: New file.
57487         * tests/unistr/test-u32-move.c: New file.
57489         Tests for module 'unistr/u16-move'.
57490         * modules/unistr/u16-move-tests: New file.
57491         * tests/unistr/test-u16-move.c: New file.
57493         Tests for module 'unistr/u8-move'.
57494         * modules/unistr/u8-move-tests: New file.
57495         * tests/unistr/test-u8-move.c: New file.
57496         * tests/unistr/test-move.h: New file.
57498         Tests for module 'unistr/u32-cpy'.
57499         * modules/unistr/u32-cpy-tests: New file.
57500         * tests/unistr/test-u32-cpy.c: New file.
57502         Tests for module 'unistr/u16-cpy'.
57503         * modules/unistr/u16-cpy-tests: New file.
57504         * tests/unistr/test-u16-cpy.c: New file.
57506         Tests for module 'unistr/u8-cpy'.
57507         * modules/unistr/u8-cpy-tests: New file.
57508         * tests/unistr/test-u8-cpy.c: New file.
57509         * tests/unistr/test-cpy.h: New file.
57511 2010-01-09  Bruno Haible  <bruno@clisp.org>
57513         Tests for module 'unistr/u32-uctomb'.
57514         * modules/unistr/u32-uctomb-tests: New file.
57515         * tests/unistr/test-u32-uctomb.c: New file.
57517         Tests for module 'unistr/u16-uctomb'.
57518         * modules/unistr/u16-uctomb-tests: New file.
57519         * tests/unistr/test-u16-uctomb.c: New file.
57521         Tests for module 'unistr/u8-uctomb'.
57522         * modules/unistr/u8-uctomb-tests: New file.
57523         * tests/unistr/test-u8-uctomb.c: New file.
57525         Tests for module 'unistr/u32-mbtoucr'.
57526         * modules/unistr/u32-mbtoucr-tests: New file.
57527         * tests/unistr/test-u32-mbtoucr.c: New file.
57529         Tests for module 'unistr/u16-mbtoucr'.
57530         * modules/unistr/u16-mbtoucr-tests: New file.
57531         * tests/unistr/test-u16-mbtoucr.c: New file.
57533         Tests for module 'unistr/u8-mbtoucr'.
57534         * modules/unistr/u8-mbtoucr-tests: New file.
57535         * tests/unistr/test-u8-mbtoucr.c: New file.
57537         Tests for module 'unistr/u32-mbtouc'.
57538         * modules/unistr/u32-mbtouc-tests: New file.
57539         * tests/unistr/test-u32-mbtouc.c: New file.
57541         Tests for module 'unistr/u16-mbtouc'.
57542         * modules/unistr/u16-mbtouc-tests: New file.
57543         * tests/unistr/test-u16-mbtouc.c: New file.
57545         Tests for module 'unistr/u8-mbtouc'.
57546         * modules/unistr/u8-mbtouc-tests: New file.
57547         * tests/unistr/test-u8-mbtouc.c: New file.
57549         Tests for module 'unistr/u32-mbtouc-unsafe'.
57550         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
57551         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
57552         * tests/unistr/test-u32-mbtouc.h: New file.
57554         Tests for module 'unistr/u16-mbtouc-unsafe'.
57555         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
57556         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
57557         * tests/unistr/test-u16-mbtouc.h: New file.
57559         Tests for module 'unistr/u8-mbtouc-unsafe'.
57560         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
57561         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
57562         * tests/unistr/test-u8-mbtouc.h: New file.
57564         Tests for module 'unistr/u32-mblen'.
57565         * modules/unistr/u32-mblen-tests: New file.
57566         * tests/unistr/test-u32-mblen.c: New file.
57568         Tests for module 'unistr/u16-mblen'.
57569         * modules/unistr/u16-mblen-tests: New file.
57570         * tests/unistr/test-u16-mblen.c: New file.
57572         Tests for module 'unistr/u8-mblen'.
57573         * modules/unistr/u8-mblen-tests: New file.
57574         * tests/unistr/test-u8-mblen.c: New file.
57576         Tests for module 'unistr/u32-to-u16'.
57577         * modules/unistr/u32-to-u16-tests: New file.
57578         * tests/unistr/test-u32-to-u16.c: New file.
57580         Tests for module 'unistr/u32-to-u8'.
57581         * modules/unistr/u32-to-u8-tests: New file.
57582         * tests/unistr/test-u32-to-u8.c: New file.
57584         Tests for module 'unistr/u16-to-u32'.
57585         * modules/unistr/u16-to-u32-tests: New file.
57586         * tests/unistr/test-u16-to-u32.c: New file.
57588         Tests for module 'unistr/u16-to-u8'.
57589         * modules/unistr/u16-to-u8-tests: New file.
57590         * tests/unistr/test-u16-to-u8.c: New file.
57592         Tests for module 'unistr/u8-to-u32'.
57593         * modules/unistr/u8-to-u32-tests: New file.
57594         * tests/unistr/test-u8-to-u32.c: New file.
57596         Tests for module 'unistr/u8-to-u16'.
57597         * modules/unistr/u8-to-u16-tests: New file.
57598         * tests/unistr/test-u8-to-u16.c: New file.
57600         Tests for module 'unistr/u32-check'.
57601         * modules/unistr/u32-check-tests: New file.
57602         * tests/unistr/test-u32-check.c: New file.
57604         Tests for module 'unistr/u16-check'.
57605         * modules/unistr/u16-check-tests: New file.
57606         * tests/unistr/test-u16-check.c: New file.
57608         Tests for module 'unistr/u8-check'.
57609         * modules/unistr/u8-check-tests: New file.
57610         * tests/unistr/test-u8-check.c: New file.
57612         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
57613         (category_equals): New function.
57614         (main): Add more tests.
57615         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
57617         * tests/unictype/test-bidi_byname.c (main): Add more tests.
57619 2010-01-10  Bruno Haible  <bruno@clisp.org>
57621         unistr/u*-strcoll: Try harder to distinguish different strings.
57622         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
57623         compare s1 and s2 to see if they are different.
57625 2010-01-10  Bruno Haible  <bruno@clisp.org>
57627         unistr/u*-stpncpy: Fix the return value.
57628         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
57629         description of the return value consistent with stpncpy in glibc.
57630         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
57631         written non-NUL unit.
57633 2010-01-10  Bruno Haible  <bruno@clisp.org>
57635         unistr/u*-next: Add missing dependencies.
57636         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
57637         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
57638         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
57640 2010-01-10  Bruno Haible  <bruno@clisp.org>
57642         unistr/u8-mbsnlen: Fix return value for incomplete character.
57643         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
57644         u8_mblen.
57645         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
57646         Remove unistr/u8-mblen.
57647         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
57648         u16_mblen.
57649         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
57650         Remove unistr/u16-mblen.
57652 2010-01-10  Bruno Haible  <bruno@clisp.org>
57654         wchar: Fix compilation error when <wchar.h> is used from coreutils.
57655         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
57656         Reported by Brian Gough <bjg@gnu.org> and
57657         Chris Clayton <chris2553@googlemail.com> via
57658         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
57660 2010-01-09  Bruno Haible  <bruno@clisp.org>
57662         unistr/u16-to-u32: Reject invalid input.
57663         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
57664         u16_mbtouc.
57665         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
57666         Remove unistr/u16-mbtouc.
57668         unistr/u16-to-u8: Reject invalid input.
57669         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
57670         u16_mbtouc.
57671         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
57672         Remove unistr/u16-mbtouc.
57674         unistr/u8-to-u32: Reject invalid input.
57675         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
57676         u8_mbtouc.
57677         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
57678         Remove unistr/u8-mbtouc.
57680         unistr/u8-to-u16: Reject invalid input.
57681         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
57682         u8_mbtouc.
57683         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
57684         Remove unistr/u8-mbtouc.
57686 2010-01-09  Bruno Haible  <bruno@clisp.org>
57688         Tests for module 'getlogin'.
57689         * modules/getlogin-tests: New file.
57690         * tests/test-getlogin.c: New file.
57692         New module 'getlogin'.
57693         * lib/unistd.in.h (getlogin): New declaration.
57694         * lib/getlogin.c: New file.
57695         * m4/getlogin.m4: New file.
57696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
57697         HAVE_GETLOGIN.
57698         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
57699         HAVE_GETLOGIN.
57700         * modules/getlogin: New file.
57701         * doc/posix-functions/getlogin.texi: Mention the new module.
57702         Reported by John W. Eaton <jwe@gnu.org>.
57704 2010-01-09  Bruno Haible  <bruno@clisp.org>
57706         getlogin_r: Support for native Windows.
57707         * lib/getlogin_r.c: Include <windows.h>
57708         (getlogin_r): Implement for native Windows.
57709         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
57710         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
57711         via John W. Eaton <jwe@gnu.org>.
57713 2010-01-09  Bruno Haible  <bruno@clisp.org>
57715         getlogin_r: Small fixes.
57716         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
57717         succeeds.
57718         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
57719         before testing whether getlogin_r is declared. No need to set
57720         HAVE_DECL_GETLOGIN_R to 1.
57721         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
57723 2010-01-09  Bruno Haible  <bruno@clisp.org>
57725         * lib/unistd.in.h (getlogin_r): Add comment.
57727 2010-01-09  Bruno Haible  <bruno@clisp.org>
57729         Tests for module 'getlogin_r'.
57730         * modules/getlogin_r-tests: New file.
57731         * tests/test-getlogin_r.c: New file.
57733 2010-01-09  Jim Meyering  <meyering@redhat.com>
57735         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
57736         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
57737         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
57739 2010-01-08  Simon Josefsson  <simon@josefsson.org>
57741         * lib/dup2.c (rpl_dup2): Improve comment.
57743 2010-01-08  Eric Blake  <ebb9@byu.net>
57745         maint.mk: allow packages to add makefile @@ exceptions
57746         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
57747         (sc_makefile_check): Rename...
57748         (sc_makefile_at_at_check): ...to this, and use hook.
57750         dup2: work around mingw bug
57751         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
57752         Reported by Simon Josefsson.
57754 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
57756         glob: Fix C++ compilation.
57757         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
57758         C++.
57760 2010-01-07  Bruno Haible  <bruno@clisp.org>
57762         Fix indentation of wctype.in.h, broken since 2007-01-06.
57763         * lib/wctype.in.h: Fix indentation of preprocessor directives.
57765 2010-01-07  Bruno Haible  <bruno@clisp.org>
57767         mbslen: Avoid collision with system function.
57768         * lib/string.in.h [MirBSD]: Include <wchar.h>.
57769         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
57770         * m4/mbslen.m4: New file.
57771         * modules/mbslen (Files): Add it.
57772         (configure.ac): Invoke gl_MBSLEN.
57773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
57774         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
57775         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
57776         via Ian Beckwith <ianb@erislabs.net>.
57778 2010-01-07  Bruno Haible  <bruno@clisp.org>
57780         dirent: Document the last fix.
57781         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
57783 2010-01-07  Bruno Haible  <bruno@clisp.org>
57785         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
57786         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
57787         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
57788         va_list are defined.
57789         * doc/posix-headers/stdio.texi: Document the bug of missing types.
57790         Reported by Eric Blake.
57792 2010-01-07  Bruno Haible  <bruno@clisp.org>
57794         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
57795         * modules/xlist (Depends-on): Add 'list',
57796         * modules/xoset (Depends-on): Add 'oset'.
57797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57799 2010-01-07  Bruno Haible  <bruno@clisp.org>
57801         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
57802         * doc/posix-functions/strncasecmp.texi: Likewise.
57804 2010-01-07  Bruno Haible  <bruno@clisp.org>
57806         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
57808 2010-01-07  John W. Eaton  <jwe@octave.org>
57810         wctype: allow C++ use
57811         * lib/wctype.in.h: Add extern "C" block for C++.
57813 2010-01-06  Eric Blake  <ebb9@byu.net>
57815         maint.mk: detect incorrect GFDL usage
57816         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
57818 2010-01-06  Jim Meyering  <meyering@redhat.com>
57819         and Eric Blake  <ebb9@byu.net>
57821         maint.mk: ignore multi-line copyright in NEWS
57822         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
57824 2010-01-06  Eric Blake  <ebb9@byu.net>
57826         select: add missing dependency
57827         * modules/select-tests (Depends-on): Move sockets dependency...
57828         * modules/select (Depends-on): ...here.
57829         Reported by Ian Beckwith.
57831         doc: regenerate INSTALL
57832         * doc/INSTALL: Reflect recent autoconf update.
57833         * doc/INSTALL.ISO: Likewise.
57834         * doc/INSTALL.UTF-8: Likewise.
57836         pread: fix compilation on glibc
57837         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
57838         Reported by Ralf Wildenhues.
57840         dirent: fix test failure
57841         * lib/dirent.in.h (includes): Guarantee ino_t.
57842         Reported by Ralf Wildenhues.
57844 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
57846         linkat, renameat: avoid bad free
57847         * lib/at-func2.c (at_func2): Fix typo.
57848         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
57850 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57852         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
57853         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
57854         to avoid failure of symlink test later.
57856 2010-01-06  Eric Blake  <ebb9@byu.net>
57858         stdio, unistd: guarantee ssize_t
57859         * lib/unistd.in.h (includes): Ensure that types required by POSIX
57860         2008 are exposed when needed.
57861         * lib/stdio.in.h (includes): Likewise.
57862         Reported by Ralf Wildenhues.
57864 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
57866         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
57867         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
57868         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
57870 2010-01-06  Jim Meyering  <meyering@redhat.com>
57872         readtokens: this module *does* require xalloc.h
57873         It uses only functions that were omitted by the old syntax-check rule.
57874         * lib/readtokens.c: Include "xalloc.h" once again.
57875         * modules/readtokens (Depends-on): Add xalloc.
57876         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
57878 2010-01-05  Eric Blake  <ebb9@byu.net>
57880         maint: support 'make announcement' from a VPATH build
57881         * top/maint.mk (announcement): Look for correct NEWS file.
57883 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
57885         utimens (fdutimens): ignore a negative FD, per contract
57886         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
57887         when we have a valid file descriptor.  Otherwise, using a brand
57888         new glibc (with just-patched futimens that now fails with EBADF)
57889         would cause this function to fail with ENOSYS.
57890         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
57891         See also http://bugzilla.redhat.com/552320.
57893 2010-01-05  Eric Blake  <ebb9@byu.net>
57895         strcase: document what it provides
57896         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
57897         gnulib module.
57898         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
57899         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
57901 2010-01-05  Jim Meyering  <meyering@redhat.com>
57903         maint: remove useless inclusions of "xalloc.h"
57904         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
57905         * lib/readtokens.c: Likewise.
57906         * lib/same.c: Likewise.
57907         * modules/getloadavg (Depends-on): Remove xalloc.
57908         * modules/readtokens: Likewise.
57909         * modules/same: Likewise.
57911         maint.mk: include 4 more function names in alloca.h-checking regexp
57912         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
57913         regexp.  Before, we would give a false-positive (saying alloca.h
57914         is included unnecessarily) when the only uses involved omitted symbols.
57916         xalloc.h: use consistent formatting
57917         * lib/xalloc.h: Move declarations to start in the first column.
57919 2010-01-05  Eric Blake  <ebb9@byu.net>
57921         mkdir: avoid xalloc
57922         * lib/mkdir.c (includes): Drop unused header.
57923         Reported by John W. Eaton.
57925 2010-01-04  Jim Meyering  <meyering@redhat.com>
57927         nl_langinfo: avoid configure-time syntax error
57928         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
57929         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
57930         the empty string.  Don't let that provoke a shell syntax error.
57932         regcomp, regexec, fnmatch: avoid array bounds read error
57933         * lib/regcomp.c (build_equiv_class): From glibc:
57934         Use only the low 24 bits of a findidx return value as an index
57935         into the weights array.  Patch by Ulrich Drepper:
57936         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
57937         * lib/regexec.c (check_node_accept_bytes): Likewise.
57938         * lib/fnmatch_loop.c (FCT): Likewise.
57940         regcomp: skip collseq lookup when there are no rules
57941         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
57942         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
57944         regcomp: recognize ill-formed { } expressions
57945         * lib/regcomp.c (parse_dup_op): From glibc:
57946         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
57948         regcomp: fix typo in comment
57949         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
57950         s/satisfy/satisfies/.
57952         regcomp: sync from glibc: remove dead store
57953         * lib/regcomp.c (duplicate_node_closure): Remove useless
57954         search_duplicated_node call and dead store.
57956         regcomp: sync from glibc; always use nl_langinfo
57957         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
57958         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
57959         * modules/regex (Depends-on): Add nl_langinfo.
57961 2010-01-04  Eric Blake  <ebb9@byu.net>
57963         fdopendir: fix configure test
57964         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
57966 2010-01-01  Bruno Haible  <bruno@clisp.org>
57968         wchar: Remove unused configure check.
57969         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
57971 2010-01-01  Eric Blake  <ebb9@byu.net>
57973         headers: make check of system header explicit
57974         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
57975         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
57976         ourselves.
57977         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57978         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57979         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57980         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
57981         internals.
57982         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
57983         missing.
57984         Suggested by Bruno Haible.
57986 2010-01-01  Jim Meyering  <meyering@redhat.com>
57988         ChangeLog: tweak to eliminate unnecessary copyright line
57989         * ChangeLog: Remove a copyright line that was mistakenly updated
57990         by today's update-copyright run.  Reported by Eric Blake.
57992         test-update-copyright: don't let envvar setting cause test failure
57993         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
57995 2010-01-01  Bruno Haible  <bruno@clisp.org>
57997         localename: Avoid gcc warning.
57998         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
57999         function if it is not used.
58001 2010-01-01  Jim Meyering  <meyering@redhat.com>
58003         update nearly all FSF copyright year lists to include 2010
58004         Use the same procedure as for 2009, outlined in
58005         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
58007         version-etc: set COPYRIGHT_YEAR to 2010
58008         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
58010 2009-12-31  Eric Blake  <ebb9@byu.net>
58012         doc: correct availability of cygwin 1.5.x getopt
58013         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
58014         variables.
58015         * doc/posix-functions/opterr.texi (opterr): Likewise.
58016         * doc/posix-functions/optind.texi (optind): Likewise.
58017         * doc/posix-functions/optopt.texi (optopt): Likewise.
58018         * doc/posix-functions/tzname.texi (tzname): Likewise.
58020         openat: update maintainer
58021         * modules/openat (Maintainer): Add myself.
58023         utimens: avoid shadowing warning
58024         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
58025         buffers into one, to avoid shadowing, as well as avoiding a
58026         redundant stat.
58027         Reported by Jim Meyering.
58029         test-dup2: avoid compiler warning
58030         * tests/test-dup2.c (is_inheritable): Only define if used.
58032 2010-01-01  Bruno Haible  <bruno@clisp.org>
58034         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
58035         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
58036         defined, use wctomb instead of wcrtomb.
58038 2010-01-01  Bruno Haible  <bruno@clisp.org>
58040         iconv: Reject native Solaris iconv.
58041         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
58042         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
58044 2009-12-31  Bruno Haible  <bruno@clisp.org>
58046         * tests/test-signal.c (main): Remove test of 'SIG'.
58048 2009-12-31  Bruno Haible  <bruno@clisp.org>
58050         spawn: Fix incomplete fix.
58051         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58052         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58053         warnings for GNULIB_POSIXCHECK again.
58054         Reported by Eric Blake.
58056 2009-12-31  Bruno Haible  <bruno@clisp.org>
58058         Avoid namespace pollution on glibc systems.
58059         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
58060         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
58061         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
58062         glibc systems.
58064 2009-12-31  Bruno Haible  <bruno@clisp.org>
58066         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
58067         (gl_REPLACE_WCHAR_H): Turn into a no-op.
58068         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
58069         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
58070         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
58071         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
58072         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
58074 2009-12-31  Bruno Haible  <bruno@clisp.org>
58076         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
58077         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
58078         afterwards.
58080 2009-12-31  Bruno Haible  <bruno@clisp.org>
58082         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
58083         SYS_UTSNAME_H.
58085 2009-12-31  Bruno Haible  <bruno@clisp.org>
58087         spawn: Fix misapplied patch.
58088         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58089         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58090         warnings for GNULIB_POSIXCHECK.
58092 2009-12-31  Bruno Haible  <bruno@clisp.org>
58094         times: Update after sys_times changed.
58095         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
58096         * modules/times (Files): Add it.
58097         (configure.ac): Invoke gl_FUNC_TIMES.
58099 2009-12-31  Bruno Haible  <bruno@clisp.org>
58101         Use AC_C_INLINE where necessary.
58102         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
58103         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58104         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58105         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58106         * m4/mbfile.m4 (gl_MBFILE): Likewise.
58107         * m4/mbiter.m4 (gl_MBITER): Likewise.
58108         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58109         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58110         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
58111         * modules/u64 (configure.ac): Likewise.
58113 2009-12-31  Bruno Haible  <bruno@clisp.org>
58115         Use AC_C_INLINE instead of module 'inline' where possible.
58116         * modules/inline (Description): Clarify purpose.
58117         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
58118         * modules/count-one-bits (Depends-on): Remove inline.
58119         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
58120         * modules/openat (Depends-on): Remove inline.
58121         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
58122         instead of depending on module 'inline'.
58123         * modules/filevercmp (Depends-on, configure.ac): Likewise.
58124         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
58125         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
58126         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
58127         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
58128         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
58129         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
58130         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
58131         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
58132         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
58133         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
58134         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
58135         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
58136         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
58137         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
58138         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
58139         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
58140         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
58141         Likewise.
58142         * modules/unictype/property-ascii-hex-digit (Depends-on,
58143         configure.ac): Likewise.
58144         * modules/unictype/property-bidi-arabic-digit (Depends-on,
58145         configure.ac): Likewise.
58146         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
58147         configure.ac): Likewise.
58148         * modules/unictype/property-bidi-block-separator (Depends-on,
58149         configure.ac): Likewise.
58150         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
58151         configure.ac): Likewise.
58152         * modules/unictype/property-bidi-common-separator (Depends-on,
58153         configure.ac): Likewise.
58154         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
58155         Likewise.
58156         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
58157         configure.ac): Likewise.
58158         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
58159         configure.ac): Likewise.
58160         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
58161         configure.ac): Likewise.
58162         * modules/unictype/property-bidi-european-digit (Depends-on,
58163         configure.ac): Likewise.
58164         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
58165         configure.ac): Likewise.
58166         * modules/unictype/property-bidi-left-to-right (Depends-on,
58167         configure.ac): Likewise.
58168         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
58169         configure.ac): Likewise.
58170         * modules/unictype/property-bidi-other-neutral (Depends-on,
58171         configure.ac): Likewise.
58172         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
58173         Likewise.
58174         * modules/unictype/property-bidi-segment-separator (Depends-on,
58175         configure.ac): Likewise.
58176         * modules/unictype/property-bidi-whitespace (Depends-on,
58177         configure.ac): Likewise.
58178         * modules/unictype/property-combining (Depends-on, configure.ac):
58179         Likewise.
58180         * modules/unictype/property-composite (Depends-on, configure.ac):
58181         Likewise.
58182         * modules/unictype/property-currency-symbol (Depends-on,
58183         configure.ac): Likewise.
58184         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
58185         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
58186         Likewise.
58187         * modules/unictype/property-default-ignorable-code-point (Depends-on,
58188         configure.ac): Likewise.
58189         * modules/unictype/property-deprecated (Depends-on, configure.ac):
58190         Likewise.
58191         * modules/unictype/property-diacritic (Depends-on, configure.ac):
58192         Likewise.
58193         * modules/unictype/property-extender (Depends-on, configure.ac):
58194         Likewise.
58195         * modules/unictype/property-format-control (Depends-on, configure.ac):
58196         Likewise.
58197         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
58198         Likewise.
58199         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
58200         Likewise.
58201         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
58202         Likewise.
58203         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
58204         Likewise.
58205         * modules/unictype/property-hyphen (Depends-on, configure.ac):
58206         Likewise.
58207         * modules/unictype/property-id-continue (Depends-on, configure.ac):
58208         Likewise.
58209         * modules/unictype/property-id-start (Depends-on, configure.ac):
58210         Likewise.
58211         * modules/unictype/property-ideographic (Depends-on, configure.ac):
58212         Likewise.
58213         * modules/unictype/property-ids-binary-operator (Depends-on,
58214         configure.ac): Likewise.
58215         * modules/unictype/property-ids-trinary-operator (Depends-on,
58216         configure.ac): Likewise.
58217         * modules/unictype/property-ignorable-control (Depends-on,
58218         configure.ac): Likewise.
58219         * modules/unictype/property-iso-control (Depends-on, configure.ac):
58220         Likewise.
58221         * modules/unictype/property-join-control (Depends-on, configure.ac):
58222         Likewise.
58223         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
58224         Likewise.
58225         * modules/unictype/property-line-separator (Depends-on, configure.ac):
58226         Likewise.
58227         * modules/unictype/property-logical-order-exception (Depends-on,
58228         configure.ac): Likewise.
58229         * modules/unictype/property-lowercase (Depends-on, configure.ac):
58230         Likewise.
58231         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
58232         * modules/unictype/property-non-break (Depends-on, configure.ac):
58233         Likewise.
58234         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
58235         Likewise.
58236         * modules/unictype/property-numeric (Depends-on, configure.ac):
58237         Likewise.
58238         * modules/unictype/property-other-alphabetic (Depends-on,
58239         configure.ac): Likewise.
58240         * modules/unictype/property-other-default-ignorable-code-point
58241         (Depends-on, configure.ac): Likewise.
58242         * modules/unictype/property-other-grapheme-extend (Depends-on,
58243         configure.ac): Likewise.
58244         * modules/unictype/property-other-id-continue (Depends-on,
58245         configure.ac): Likewise.
58246         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
58247         Likewise.
58248         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
58249         Likewise.
58250         * modules/unictype/property-other-math (Depends-on, configure.ac):
58251         Likewise.
58252         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
58253         Likewise.
58254         * modules/unictype/property-paired-punctuation (Depends-on,
58255         configure.ac): Likewise.
58256         * modules/unictype/property-paragraph-separator (Depends-on,
58257         configure.ac): Likewise.
58258         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
58259         Likewise.
58260         * modules/unictype/property-pattern-white-space (Depends-on,
58261         configure.ac): Likewise.
58262         * modules/unictype/property-private-use (Depends-on, configure.ac):
58263         Likewise.
58264         * modules/unictype/property-punctuation (Depends-on, configure.ac):
58265         Likewise.
58266         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
58267         Likewise.
58268         * modules/unictype/property-radical (Depends-on, configure.ac):
58269         Likewise.
58270         * modules/unictype/property-sentence-terminal (Depends-on,
58271         configure.ac): Likewise.
58272         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
58273         Likewise.
58274         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
58275         * modules/unictype/property-terminal-punctuation (Depends-on,
58276         configure.ac): Likewise.
58277         * modules/unictype/property-titlecase (Depends-on, configure.ac):
58278         Likewise.
58279         * modules/unictype/property-unassigned-code-value (Depends-on,
58280         configure.ac): Likewise.
58281         * modules/unictype/property-unified-ideograph (Depends-on,
58282         configure.ac): Likewise.
58283         * modules/unictype/property-uppercase (Depends-on, configure.ac):
58284         Likewise.
58285         * modules/unictype/property-variation-selector (Depends-on,
58286         configure.ac): Likewise.
58287         * modules/unictype/property-white-space (Depends-on, configure.ac):
58288         Likewise.
58289         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
58290         Likewise.
58291         * modules/unictype/property-xid-start (Depends-on, configure.ac):
58292         Likewise.
58293         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58294         Likewise.
58295         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58296         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58297         Likewise.
58299 2009-12-31  Bruno Haible  <bruno@clisp.org>
58301         Remove unnecessary AC_C_INLINE invocation.
58302         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58303         since 2009-08-21.
58305 2009-12-31  Jim Meyering  <meyering@redhat.com>
58307         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58308         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58309         With this change, we can all remove the gpg_key_ID = ... definition
58310         from our respective cfg.mk files.
58312         maint.mk: create announcement template in ~/, not in /tmp
58313         * top/maint.mk (emit_upload_commands): Adjust.
58314         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58315         Remove temporary file, .ci-msg.
58317 2009-12-31  Eric Blake  <ebb9@byu.net>
58319         link-warning: always build headers with link warnings
58320         * modules/arpa_inet (Makefile.am): Always build replacement
58321         header.
58322         * modules/ctype (Makefile.am): Likewise.
58323         * modules/dirent (Makefile.am): Likewise.
58324         * modules/inttypes (Makefile.am): Likewise.
58325         * modules/langinfo (Makefile.am): Likewise.
58326         * modules/locale (Makefile.am): Likewise.
58327         * modules/spawn (Makefile.am): Likewise.
58328         * modules/sys_file (Makefile.am): Likewise.
58329         * modules/sys_ioctl (Makefile.am): Likewise.
58330         * modules/sys_select (Makefile.am): Likewise.
58331         * modules/sys_socket (Makefile.am): Likewise.
58332         * modules/sys_times (Makefile.am): Likewise.
58333         * modules/sys_utsname (Makefile.am): Likewise.
58334         * modules/sys_wait (Makefile.am): Likewise.
58335         * modules/wchar (Makefile.am): Likewise.
58336         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58337         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58338         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58339         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58340         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58341         Likewise.
58342         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58343         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58344         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58345         Likewise.
58346         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58347         Likewise.
58348         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58349         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58350         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58351         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58352         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58353         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58354         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58355         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58356         (gl_WCHAR_H_DEFAULTS): Likewise.
58358 2009-12-31  Eric Blake  <ebb9@byu.net>
58360         signal, spawn: use link warnings
58361         * lib/signal.in.h (sigset_t): Make unconditional.
58362         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58363         (sigpending, sigprocmask, sigaction): Add link warnings.
58364         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58365         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58366         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58367         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58368         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58369         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58370         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58371         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58372         (posix_spawn_file_actions_destroy)
58373         (posix_spawn_file_actions_addopen)
58374         (posix_spawn_file_actions_addclose)
58375         (posix_spawn_file_actions_adddup2): Likewise.
58376         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58377         * tests/test-signal.c (main): Enhance test.
58379         spawn: improve wrapper support
58380         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58381         (gl_SPAWN_H_DEFAULTS): New defaults.
58382         * modules/spawn (Makefile.am): Substitute them.
58383         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58384         Only declare if missing or broken.
58386         sys_times, sys_utsname: use include_next
58387         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58388         header.
58389         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58390         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58391         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58392         * modules/sys_times (Depends-on): Add include_next.
58393         (Makefile.am): Substitute additional values.
58394         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58395         * lib/sys_times.in.h (includes): Include native header, if
58396         available.
58397         * lib/sys_utsname.in.h (includes): Likewise.
58398         * tests/test-sys_times.c (main): Enhance test.
58400         fdutimensat: revert prior patch
58401         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58402         utimens.h.
58403         Reported by Bruno Haible.
58405 2009-12-30  Eric Blake  <ebb9@byu.net>
58407         sys_wait: drop link-warning dependency
58408         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58409         link-warning efforts.
58410         * lib/sys_wait.in.h: Likewise.
58412         fdutimensat: remove bogus dependency
58413         * modules/fdutimensat (Depends-on): Drop inline.
58415         unistd: fix typo
58416         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58418 2009-12-30  Bruno Haible  <bruno@clisp.org>
58420         Fix compilation error with Solaris cc.
58421         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58422         * lib/unicase/u16-is-invariant.c: Likewise.
58423         * lib/unicase/u32-is-invariant.c: Likewise.
58424         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58426 2009-12-30  Bruno Haible  <bruno@clisp.org>
58428         Fix test crash.
58429         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58430         locales.
58431         Reported by Simon Josefsson <simon@josefsson.org>.
58433 2009-12-30  Bruno Haible  <bruno@clisp.org>
58435         Fix compilation error on most platforms.
58436         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58437         Reported by Simon Josefsson <simon@josefsson.org>
58438         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58440 2009-12-30  Eric Blake  <ebb9@byu.net>
58442         futimens, utimensat: work around ntfs-3g bug
58443         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58444         a ctime bug is present, and expand workaround to cover ntfs-3g.
58445         * lib/utimens.c (fdutimens, lutimens): Likewise.
58446         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58447         (validate_timespec): Adjust return value.
58448         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58449         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58450         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58452 2009-12-29  Eric Blake  <ebb9@byu.net>
58454         link-warning: make usage consistent
58455         * modules/ctype (Depends-on): Add link-warning.
58456         (Makefile.am): Update rules accordingly.
58457         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58458         * modules/locale (Depends-on, Makefile.am): Likewise.
58459         * modules/sys_file (Makefile.am): Likewise.
58460         * modules/getopt-posix (Makefile.am): Delete unused link warning
58461         efforts.
58462         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58463         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58464         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58465         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58467         stdio: remove unused variables
58468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58469         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58470         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58472         tests: test more substitute headers
58473         * modules/ctype-tests: New file.
58474         * modules/dirent-tests: Likewise.
58475         * modules/spawn-tests: Likewise.
58476         * modules/sys_file-tests: Likewise.
58477         * modules/sys_ioctl-tests: Likewise.
58478         * modules/sys_wait-tests: Likewise.
58479         * tests/test-ctype.c: Likewise.
58480         * tests/test-dirent.c: Likewise.
58481         * tests/test-spawn.c: Likewise.
58482         * tests/test-sys_file.c: Likewise.
58483         * tests/test-sys_ioctl.c: Likewise.
58484         * tests/test-sys_wait.c: Likewise.
58485         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58486         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58487         whether or not flock is in use.
58489         tests: remove License section from module
58490         * modules/arpa_inet-tests: Remove unneeded section.
58491         * modules/byteswap-tests: Likewise.
58492         * modules/ceilf-tests: Likewise.
58493         * modules/ceill-tests: Likewise.
58494         * modules/crypto/des-tests: Likewise.
58495         * modules/crypto/gc-arcfour-tests: Likewise.
58496         * modules/crypto/gc-arctwo-tests: Likewise.
58497         * modules/crypto/gc-des-tests: Likewise.
58498         * modules/crypto/gc-hmac-md5-tests: Likewise.
58499         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58500         * modules/crypto/gc-md2-tests: Likewise.
58501         * modules/crypto/gc-md4-tests: Likewise.
58502         * modules/crypto/gc-md5-tests: Likewise.
58503         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58504         * modules/crypto/gc-rijndael-tests: Likewise.
58505         * modules/crypto/gc-sha1-tests: Likewise.
58506         * modules/crypto/gc-tests: Likewise.
58507         * modules/crypto/md2-tests: Likewise.
58508         * modules/crypto/md4-tests: Likewise.
58509         * modules/fcntl-h-tests: Likewise.
58510         * modules/floorf-tests: Likewise.
58511         * modules/floorl-tests: Likewise.
58512         * modules/frexp-nolibm-tests: Likewise.
58513         * modules/frexp-tests: Likewise.
58514         * modules/frexpl-nolibm-tests: Likewise.
58515         * modules/frexpl-tests: Likewise.
58516         * modules/getaddrinfo-tests: Likewise.
58517         * modules/inttypes-tests: Likewise.
58518         * modules/isfinite-tests: Likewise.
58519         * modules/isinf-tests: Likewise.
58520         * modules/ldexpl-tests: Likewise.
58521         * modules/locale-tests: Likewise.
58522         * modules/math-tests: Likewise.
58523         * modules/netdb-tests: Likewise.
58524         * modules/netinet_in-tests: Likewise.
58525         * modules/printf-frexp-tests: Likewise.
58526         * modules/printf-frexpl-tests: Likewise.
58527         * modules/priv-set-tests: Likewise.
58528         * modules/random_r-tests: Likewise.
58529         * modules/round-tests: Likewise.
58530         * modules/roundf-tests: Likewise.
58531         * modules/roundl-tests: Likewise.
58532         * modules/search-tests: Likewise.
58533         * modules/select-tests: Likewise.
58534         * modules/signal-tests: Likewise.
58535         * modules/stdbool-tests: Likewise.
58536         * modules/stddef-tests: Likewise.
58537         * modules/stdint-tests: Likewise.
58538         * modules/stdio-tests: Likewise.
58539         * modules/stdlib-tests: Likewise.
58540         * modules/string-tests: Likewise.
58541         * modules/strings-tests: Likewise.
58542         * modules/sys_select-tests: Likewise.
58543         * modules/sys_socket-tests: Likewise.
58544         * modules/sys_stat-tests: Likewise.
58545         * modules/sys_time-tests: Likewise.
58546         * modules/sys_utsname-tests: Likewise.
58547         * modules/sysexits-tests: Likewise.
58548         * modules/time-tests: Likewise.
58549         * modules/trunc-tests: Likewise.
58550         * modules/truncf-tests: Likewise.
58551         * modules/truncl-tests: Likewise.
58552         * modules/tsearch-tests: Likewise.
58553         * modules/unistd-tests: Likewise.
58554         * modules/wchar-tests: Likewise.
58555         * modules/wctype-tests: Likewise.
58557         tests: fix license on several tests
58558         * tests/test-des.c: Update to GPLv3+.
58559         * tests/test-flock.c: Likewise.
58560         * tests/test-fsync.c: Likewise.
58561         * tests/test-futimens.h: Likewise.
58562         * tests/test-gc-arcfour.c: Likewise.
58563         * tests/test-gc-arctwo.c: Likewise.
58564         * tests/test-gc-des.c: Likewise.
58565         * tests/test-gc-hmac-md5.c: Likewise.
58566         * tests/test-gc-hmac-sha1.c: Likewise.
58567         * tests/test-gc-md2.c: Likewise.
58568         * tests/test-gc-md4.c: Likewise.
58569         * tests/test-gc-md5.c: Likewise.
58570         * tests/test-gc-pbkdf2-sha1.c: Likewise.
58571         * tests/test-gc-rijndael.c: Likewise.
58572         * tests/test-gc-sha1.c: Likewise.
58573         * tests/test-gc.c: Likewise.
58574         * tests/test-getcwd.c: Likewise.
58575         * tests/test-link.c: Likewise.
58576         * tests/test-link.h: Likewise.
58577         * tests/test-lutimens.h: Likewise.
58578         * tests/test-md2.c: Likewise.
58579         * tests/test-md4.c: Likewise.
58580         * tests/test-mkdir.h: Likewise.
58581         * tests/test-rename.c: Likewise.
58582         * tests/test-rename.h: Likewise.
58583         * tests/test-safe-alloc.c: Likewise.
58584         * tests/test-utimens-common.h: Likewise.
58585         * tests/test-utimens.h: Likewise.
58587         maint: sync license texts
58588         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
58589         * doc/gpl-3.0.texi: Revert copyright year update.
58590         * doc/lgpl-3.0.texi: Likewise.
58592 2009-12-29  Jim Meyering  <meyering@redhat.com>
58594         update nearly all FSF copyright year lists to include 2009
58595         The files named by the following are exempted:
58596             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
58597               test -f "$dst" && { echo "$dst"; continue; }
58598               test -d "$dst" || continue
58599               echo "$dst"/$(basename "$src")
58600             done > exempt
58601             git ls-files tests/unictype >> exempt
58602         In the remaining files, convert to all-interval notation if
58603         - there is already at least one year interval like 2000-2003
58604         - the file is maintained by me
58605         - the file is in lib/uni*/, where that style already prevails
58606         Otherwise, use update-copyright's default.
58608 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58609         and Eric Blake  <ebb9@byu.net>
58611         tests: don't require debug system() to pass
58612         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
58613         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58614         * tests/test-unlink.h (test_unlink_func): Likewise.
58615         * tests/test-fstatat.c (main): ...into callers.
58616         * tests/test-lstat.c (main): Likewise.
58617         * tests/test-rmdir.c (main): Likewise.
58618         * tests/test-unlink.c (main): Likewise.
58619         * tests/test-unlinkat.c (main): Likewise.
58620         * tests/test-areadlink-with-size.c (main): Don't require a
58621         debug-only system call to pass, aiding cross-testing to mingw.
58622         * tests/test-areadlink.c (main): Likewise.
58623         * tests/test-areadlinkat-with-size.c (main): Likewise.
58624         * tests/test-areadlinkat.c (main): Likewise.
58625         * tests/test-canonicalize-lgpl.c (main): Likewise.
58626         * tests/test-canonicalize.c (main): Likewise.
58627         * tests/test-chown.c (main): Likewise.
58628         * tests/test-fchownat.c (main): Likewise.
58629         * tests/test-lchown.c (main): Likewise.
58630         * tests/test-fdutimensat.c (main): Likewise.
58631         * tests/test-futimens.c (main): Likewise.
58632         * tests/test-link.c (main): Likewise.
58633         * tests/test-linkat.c (main): Likewise.
58634         * tests/test-mkdir.c (main): Likewise.
58635         * tests/test-mkdirat.c (main): Likewise.
58636         * tests/test-mkfifo.c (main): Likewise.
58637         * tests/test-mkfifoat.c (main): Likewise.
58638         * tests/test-mknod.c (main): Likewise.
58639         * tests/test-readlink.c (main): Likewise.
58640         * tests/test-remove.c (main): Likewise.
58641         * tests/test-rename.c (main): Likewise.
58642         * tests/test-renameat.c (main): Likewise.
58643         * tests/test-symlink.c (main): Likewise.
58644         * tests/test-symlinkat.c (main): Likewise.
58645         * tests/test-utimens.c (main): Likewise.
58646         * tests/test-utimensat.c (main): Likewise.
58648 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58650         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
58651         on $(UNUSED_PARAMETER_H) to avoid build failure.
58653 2009-12-28  Jim Meyering  <meyering@redhat.com>
58655         update-copyright: you may specify a max. line length other than 72
58656         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58658         maint: use consistent FSF copyright line syntax
58659         * lib/posixtm.c: Add missing comma in FSF copyright line.
58660         * lib/posixtm.h: Likewise.
58661         * lib/getugroups.c: Add missing ", Inc.".
58663         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
58664         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
58665         FSF copyright line.  Remove trailing blanks.
58667 2009-12-28  Eric Blake  <ebb9@byu.net>
58669         test-dup2: reduce dependencies
58670         * modules/cloexec (Configure.ac): Set witness.
58671         * modules/dup2-tests (Depends-on): Drop cloexec.
58672         * tests/test-dup2.c (main): Skip portion of test if cloexec module
58673         not present.
58674         Suggested by Bruno Haible.
58676 2009-12-26  Bruno Haible  <bruno@clisp.org>
58678         Remove an unneeded dependency.
58679         * modules/fseterr (Depends-on): Remove dup2.
58681 2009-12-26  Eric Blake  <ebb9@byu.net>
58683         tests: use macros.h in more places
58684         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
58685         (ASSERT_STREAM): Provide default of stderr.
58686         * tests/test-dirent-safer.c: Include macros.h, using alternate
58687         stream for assertions.
58688         * tests/test-dup-safer.c: Likewise.
58689         * tests/test-freopen-safer.c: Likewise.
58690         * tests/test-getopt.c: Likewise.
58691         * tests/test-openat-safer.c: Likewise.
58692         * tests/test-pipe.c: Likewise.
58693         * tests/test-popen-safer.c: Likewise.
58694         * modules/dirent-safer-tests (Files): Include macros.h.
58695         * modules/unistd-safer-tests (Files): Likewise.
58696         * modules/freopen-safer-tests (Files): Likewise.
58697         * modules/getopt-posix-tests (Files): Likewise.
58698         * modules/openat-safer-tests (Files): Likewise.
58699         * modules/pipe-tests (Files): Likewise.
58701 2009-12-26  Bruno Haible  <bruno@clisp.org>
58703         javacomp-script: Portability fix.
58704         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
58705         that it also works on Solaris.
58707 2009-12-26  Bruno Haible  <bruno@clisp.org>
58709         localename: Fix storage allocation of gl_locale_name_thread's result.
58710         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
58711         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
58712         all platforms that have 'uselocale'.
58713         (gl_locale_name_thread_unsafe): New function, extracted from
58714         gl_locale_name_thread.
58715         (gl_locale_name_thread): Call struniq on all platforms that have
58716         'uselocale'.
58717         * tests/test-localename.c (test_locale_name_thread): Check that the
58718         resulting strings are permanently allocated.
58719         * modules/localename-tests (Depends-on): Add strdup.
58721 2009-12-26  Bruno Haible  <bruno@clisp.org>
58723         * tests/test-localename.c (categories): Fill in the strings.
58725 2009-12-26  Jim Meyering  <meyering@redhat.com>
58727         isdir: complete the removal of m4/isdir.m4
58728         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
58730         isdir: clean up, since at least grep still uses it
58731         * lib/isdir.c: Include "isdir.h".
58732         (S_ISDIR): Remove now-unneeded definition.
58733         * modules/isdir (Files): Add lib/isdir.h.
58734         * lib/isdir.h: New file, with declaration.
58735         * m4/isdir.m4: Remove file -- unneeded.
58737 2009-12-25  Bruno Haible  <bruno@clisp.org>
58739         selinux-h: Make generated .h files standalone.
58740         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
58741         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
58742         * lib/se-selinux.in.h: Likewise.
58743         * modules/selinux-h (Depends-on): Add unused-parameter.
58744         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
58745         selinux/selinux.h and selinux/context.h.
58746         Suggested by Eric Blake.
58748 2009-12-25  Bruno Haible  <bruno@clisp.org>
58750         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
58751         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
58752         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
58753         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
58754         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
58756 2009-12-24  Bruno Haible  <bruno@clisp.org>
58758         openat: Fix warning.
58759         * lib/openat-proc.c: Include <unistd.h>.
58761 2009-12-24  Bruno Haible  <bruno@clisp.org>
58763         New module 'unused-parameter'.
58764         * build-aux/unused-parameter.h: New file, extracted from earlier
58765         gnulib-common.m4.
58766         * modules/unused-parameter: New file.
58767         * lib/unistr.h: Include unused-parameter.h.
58768         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
58769         _GL_UNUSED.
58770         * modules/unistr/base (Depends-on): Add unused-parameter.
58772 2009-12-24  Bruno Haible  <bruno@clisp.org>
58774         Add missing dependencies to 'extensions' module.
58775         * m4/extensions.m4: Add comment.
58776         * modules/accept4 (Depends-on): Add extensions.
58777         * modules/dup3 (Depends-on): Likewise.
58778         * modules/fcntl (Depends-on): Likewise.
58779         * modules/futimens (Depends-on): Likewise.
58780         * modules/mknod (Depends-on): Likewise.
58781         * modules/pipe2 (Depends-on): Likewise.
58782         * modules/stat-time (Depends-on): Likewise.
58783         * modules/strcasestr-simple (Depends-on): Likewise.
58784         * modules/strsignal (Depends-on): Likewise.
58785         * modules/utimensat (Depends-on): Likewise.
58786         * modules/localcharset (Depends-on): Likewise. Needed because of
58787         gl_FCNTL_O_FLAGS.
58788         * modules/wcrtomb (Depends-on): Likewise. Needed because of
58789         AC_TYPE_MBSTATE_T.
58790         * modules/wcsnrtombs (Depends-on): Likewise.
58791         * modules/wcsrtombs (Depends-on): Likewise.
58793 2009-12-24  Bruno Haible  <bruno@clisp.org>
58795         binary-io: Avoid gcc warning due to SET_BINARY.
58796         * lib/binary-io.h (SET_BINARY): Cast the result to void.
58797         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
58799 2009-12-24  Bruno Haible  <bruno@clisp.org>
58801         Avoid future namespace pollution on glibc systems.
58802         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
58803         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
58804         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
58805         glibc systems.
58807 2009-12-24  Bruno Haible  <bruno@clisp.org>
58809         Refactor common macros used in tests.
58810         * tests/macros.h: New file.
58811         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
58812         and/or <stdlib.h>, if appropriate.
58813         (ASSERT, SIZEOF): Remove macros.
58814         * tests/test-areadlink-with-size.c: Likewise.
58815         * tests/test-areadlinkat.c: Likewise.
58816         * tests/test-areadlinkat-with-size.c: Likewise.
58817         * tests/test-argmatch.c: Likewise.
58818         * tests/test-argv-iter.c: Likewise.
58819         * tests/test-array-mergesort.c: Likewise.
58820         * tests/test-array_list.c: Likewise.
58821         * tests/test-array_oset.c: Likewise.
58822         * tests/test-avltree_list.c: Likewise.
58823         * tests/test-avltree_oset.c: Likewise.
58824         * tests/test-avltreehash_list.c: Likewise.
58825         * tests/test-base64.c: Likewise.
58826         * tests/test-binary-io.c: Likewise.
58827         * tests/test-bitrotate.c: Likewise.
58828         * tests/test-btowc.c: Likewise.
58829         * tests/test-byteswap.c: Likewise.
58830         * tests/test-c-ctype.c: Likewise.
58831         * tests/test-c-stack.c: Likewise.
58832         * tests/test-c-strcasecmp.c: Likewise.
58833         * tests/test-c-strcasestr.c: Likewise.
58834         * tests/test-c-strncasecmp.c: Likewise.
58835         * tests/test-c-strstr.c: Likewise.
58836         * tests/test-canonicalize-lgpl.c: Likewise.
58837         * tests/test-canonicalize.c: Likewise.
58838         * tests/test-carray_list.c: Likewise.
58839         * tests/test-ceilf1.c: Likewise.
58840         * tests/test-ceilf2.c: Likewise.
58841         * tests/test-ceill.c: Likewise.
58842         * tests/test-chown.c: Likewise.
58843         * tests/test-cloexec.c: Likewise.
58844         * tests/test-copy-acl.c: Likewise.
58845         * tests/test-copy-file.c: Likewise.
58846         * tests/test-count-one-bits.c: Likewise.
58847         * tests/test-dprintf-posix.c: Likewise.
58848         * tests/test-dup2.c: Likewise.
58849         * tests/test-dup3.c: Likewise.
58850         * tests/test-duplocale.c: Likewise.
58851         * tests/test-fbufmode.c: Likewise.
58852         * tests/test-fchdir.c: Likewise.
58853         * tests/test-fchownat.c: Likewise.
58854         * tests/test-fcntl-safer.c: Likewise.
58855         * tests/test-fcntl.c: Likewise.
58856         * tests/test-fdopendir.c: Likewise.
58857         * tests/test-fdutimensat.c: Likewise.
58858         * tests/test-fflush2.c: Likewise.
58859         * tests/test-file-has-acl.c: Likewise.
58860         * tests/test-filevercmp.c: Likewise.
58861         * tests/test-flock.c: Likewise.
58862         * tests/test-floorf1.c: Likewise.
58863         * tests/test-floorf2.c: Likewise.
58864         * tests/test-floorl.c: Likewise.
58865         * tests/test-fnmatch.c: Likewise.
58866         * tests/test-fopen.h: Likewise.
58867         * tests/test-fpending.c: Likewise.
58868         * tests/test-fprintf-posix.c: Likewise.
58869         * tests/test-fpurge.c: Likewise.
58870         * tests/test-freadable.c: Likewise.
58871         * tests/test-freadahead.c: Likewise.
58872         * tests/test-freading.c: Likewise.
58873         * tests/test-freadptr.c: Likewise.
58874         * tests/test-freadptr2.c: Likewise.
58875         * tests/test-freadseek.c: Likewise.
58876         * tests/test-freopen.c: Likewise.
58877         * tests/test-frexp.c: Likewise.
58878         * tests/test-frexpl.c: Likewise.
58879         * tests/test-fseek.c: Likewise.
58880         * tests/test-fseeko.c: Likewise.
58881         * tests/test-fstatat.c: Likewise.
58882         * tests/test-fstrcmp.c: Likewise.
58883         * tests/test-fsync.c: Likewise.
58884         * tests/test-ftell.c: Likewise.
58885         * tests/test-ftello.c: Likewise.
58886         * tests/test-func.c: Likewise.
58887         * tests/test-futimens.c: Likewise.
58888         * tests/test-fwritable.c: Likewise.
58889         * tests/test-fwriting.c: Likewise.
58890         * tests/test-getcwd.c: Likewise.
58891         * tests/test-getdate.c: Likewise.
58892         * tests/test-getdelim.c: Likewise.
58893         * tests/test-getdtablesize.c: Likewise.
58894         * tests/test-getgroups.c: Likewise.
58895         * tests/test-getline.c: Likewise.
58896         * tests/test-getndelim2.c: Likewise.
58897         * tests/test-glob.c: Likewise.
58898         * tests/test-hash.c: Likewise.
58899         * tests/test-i-ring.c: Likewise.
58900         * tests/test-iconv-utf.c: Likewise.
58901         * tests/test-iconv.c: Likewise.
58902         * tests/test-idpriv-drop.c: Likewise.
58903         * tests/test-idpriv-droptemp.c: Likewise.
58904         * tests/test-inet_ntop.c: Likewise.
58905         * tests/test-inet_pton.c: Likewise.
58906         * tests/test-isblank.c: Likewise.
58907         * tests/test-isfinite.c: Likewise.
58908         * tests/test-isinf.c: Likewise.
58909         * tests/test-isnan.c: Likewise.
58910         * tests/test-isnand.h: Likewise.
58911         * tests/test-isnanf.h: Likewise.
58912         * tests/test-isnanl.h: Likewise.
58913         * tests/test-lchown.c: Likewise.
58914         * tests/test-ldexpl.c: Likewise.
58915         * tests/test-link.c: Likewise.
58916         * tests/test-linkat.c: Likewise.
58917         * tests/test-linked_list.c: Likewise.
58918         * tests/test-linkedhash_list.c: Likewise.
58919         * tests/test-localename.c: Likewise.
58920         * tests/test-lseek.c: Likewise.
58921         * tests/test-lstat.c: Likewise.
58922         * tests/test-mbmemcasecmp.c: Likewise.
58923         * tests/test-mbmemcasecoll.c: Likewise.
58924         * tests/test-mbrtowc.c: Likewise.
58925         * tests/test-mbscasecmp.c: Likewise.
58926         * tests/test-mbscasestr1.c: Likewise.
58927         * tests/test-mbscasestr2.c: Likewise.
58928         * tests/test-mbscasestr3.c: Likewise.
58929         * tests/test-mbscasestr4.c: Likewise.
58930         * tests/test-mbschr.c: Likewise.
58931         * tests/test-mbscspn.c: Likewise.
58932         * tests/test-mbsinit.c: Likewise.
58933         * tests/test-mbsncasecmp.c: Likewise.
58934         * tests/test-mbsnrtowcs.c: Likewise.
58935         * tests/test-mbspbrk.c: Likewise.
58936         * tests/test-mbspcasecmp.c: Likewise.
58937         * tests/test-mbsrchr.c: Likewise.
58938         * tests/test-mbsrtowcs.c: Likewise.
58939         * tests/test-mbsspn.c: Likewise.
58940         * tests/test-mbsstr1.c: Likewise.
58941         * tests/test-mbsstr2.c: Likewise.
58942         * tests/test-mbsstr3.c: Likewise.
58943         * tests/test-memchr.c: Likewise.
58944         * tests/test-memchr2.c: Likewise.
58945         * tests/test-memcmp.c: Likewise.
58946         * tests/test-memmem.c: Likewise.
58947         * tests/test-memrchr.c: Likewise.
58948         * tests/test-mkdir.c: Likewise.
58949         * tests/test-mkdirat.c: Likewise.
58950         * tests/test-mkfifo.c: Likewise.
58951         * tests/test-mkfifoat.c: Likewise.
58952         * tests/test-mknod.c: Likewise.
58953         * tests/test-nanosleep.c: Likewise.
58954         * tests/test-nl_langinfo.c: Likewise.
58955         * tests/test-obstack-printf.c: Likewise.
58956         * tests/test-open.c: Likewise.
58957         * tests/test-openat.c: Likewise.
58958         * tests/test-pipe-filter-gi1.c: Likewise.
58959         * tests/test-pipe-filter-gi2-main.c: Likewise.
58960         * tests/test-pipe-filter-ii1.c: Likewise.
58961         * tests/test-pipe-filter-ii2-main.c: Likewise.
58962         * tests/test-pipe2.c: Likewise.
58963         * tests/test-popen.h: Likewise.
58964         * tests/test-posixtm.c: Likewise.
58965         * tests/test-pread.c: Likewise.
58966         * tests/test-printf-frexp.c: Likewise.
58967         * tests/test-printf-frexpl.c: Likewise.
58968         * tests/test-printf-posix.c: Likewise.
58969         * tests/test-priv-set.c: Likewise.
58970         * tests/test-quotearg.c: Likewise.
58971         * tests/test-random_r.c: Likewise.
58972         * tests/test-rawmemchr.c: Likewise.
58973         * tests/test-rbtree_list.c: Likewise.
58974         * tests/test-rbtree_oset.c: Likewise.
58975         * tests/test-rbtreehash_list.c: Likewise.
58976         * tests/test-readlink.c: Likewise.
58977         * tests/test-remove.c: Likewise.
58978         * tests/test-rename.c: Likewise.
58979         * tests/test-renameat.c: Likewise.
58980         * tests/test-rmdir.c: Likewise.
58981         * tests/test-round1.c: Likewise.
58982         * tests/test-roundf1.c: Likewise.
58983         * tests/test-roundl.c: Likewise.
58984         * tests/test-safe-alloc.c: Likewise.
58985         * tests/test-sameacls.c: Likewise.
58986         * tests/test-set-mode-acl.c: Likewise.
58987         * tests/test-setenv.c: Likewise.
58988         * tests/test-sigaction.c: Likewise.
58989         * tests/test-signbit.c: Likewise.
58990         * tests/test-sleep.c: Likewise.
58991         * tests/test-snprintf-posix.c: Likewise.
58992         * tests/test-snprintf.c: Likewise.
58993         * tests/test-sprintf-posix.c: Likewise.
58994         * tests/test-stat-time.c: Likewise.
58995         * tests/test-stat.c: Likewise.
58996         * tests/test-strcasestr.c: Likewise.
58997         * tests/test-strchrnul.c: Likewise.
58998         * tests/test-strerror.c: Likewise.
58999         * tests/test-striconv.c: Likewise.
59000         * tests/test-striconveh.c: Likewise.
59001         * tests/test-striconveha.c: Likewise.
59002         * tests/test-strsignal.c: Likewise.
59003         * tests/test-strstr.c: Likewise.
59004         * tests/test-strtod.c: Likewise.
59005         * tests/test-strverscmp.c: Likewise.
59006         * tests/test-symlink.c: Likewise.
59007         * tests/test-symlinkat.c: Likewise.
59008         * tests/test-trunc1.c: Likewise.
59009         * tests/test-trunc2.c: Likewise.
59010         * tests/test-truncf1.c: Likewise.
59011         * tests/test-truncf2.c: Likewise.
59012         * tests/test-truncl.c: Likewise.
59013         * tests/test-uname.c: Likewise.
59014         * tests/test-unlink.c: Likewise.
59015         * tests/test-unlinkat.c: Likewise.
59016         * tests/test-unsetenv.c: Likewise.
59017         * tests/test-usleep.c: Likewise.
59018         * tests/test-utimens.c: Likewise.
59019         * tests/test-utimensat.c: Likewise.
59020         * tests/test-vasnprintf-posix.c: Likewise.
59021         * tests/test-vasnprintf-posix2.c: Likewise.
59022         * tests/test-vasnprintf.c: Likewise.
59023         * tests/test-vasprintf-posix.c: Likewise.
59024         * tests/test-vasprintf.c: Likewise.
59025         * tests/test-vdprintf-posix.c: Likewise.
59026         * tests/test-vfprintf-posix.c: Likewise.
59027         * tests/test-vprintf-posix.c: Likewise.
59028         * tests/test-vsnprintf-posix.c: Likewise.
59029         * tests/test-vsnprintf.c: Likewise.
59030         * tests/test-vsprintf-posix.c: Likewise.
59031         * tests/test-wcrtomb.c: Likewise.
59032         * tests/test-wcsnrtombs.c: Likewise.
59033         * tests/test-wcsrtombs.c: Likewise.
59034         * tests/test-wctype.c: Likewise.
59035         * tests/test-wcwidth.c: Likewise.
59036         * tests/test-xfprintf-posix.c: Likewise.
59037         * tests/test-xmemdup0.c: Likewise.
59038         * tests/test-xprintf-posix.c: Likewise.
59039         * tests/test-xvasprintf.c: Likewise.
59040         * tests/unicase/test-locale-language.c: Likewise.
59041         * tests/unicase/test-mapping-part1.h: Likewise.
59042         * tests/unicase/test-predicate-part1.h: Likewise.
59043         * tests/unicase/test-u8-casecmp.c: Likewise.
59044         * tests/unicase/test-u8-casecoll.c: Likewise.
59045         * tests/unicase/test-u8-casefold.c: Likewise.
59046         * tests/unicase/test-u8-is-cased.c: Likewise.
59047         * tests/unicase/test-u8-is-casefolded.c: Likewise.
59048         * tests/unicase/test-u8-is-lowercase.c: Likewise.
59049         * tests/unicase/test-u8-is-titlecase.c: Likewise.
59050         * tests/unicase/test-u8-is-uppercase.c: Likewise.
59051         * tests/unicase/test-u8-tolower.c: Likewise.
59052         * tests/unicase/test-u8-totitle.c: Likewise.
59053         * tests/unicase/test-u8-toupper.c: Likewise.
59054         * tests/unicase/test-u16-casecmp.c: Likewise.
59055         * tests/unicase/test-u16-casecoll.c: Likewise.
59056         * tests/unicase/test-u16-casefold.c: Likewise.
59057         * tests/unicase/test-u16-is-cased.c: Likewise.
59058         * tests/unicase/test-u16-is-casefolded.c: Likewise.
59059         * tests/unicase/test-u16-is-lowercase.c: Likewise.
59060         * tests/unicase/test-u16-is-titlecase.c: Likewise.
59061         * tests/unicase/test-u16-is-uppercase.c: Likewise.
59062         * tests/unicase/test-u16-tolower.c: Likewise.
59063         * tests/unicase/test-u16-totitle.c: Likewise.
59064         * tests/unicase/test-u16-toupper.c: Likewise.
59065         * tests/unicase/test-u32-casecmp.c: Likewise.
59066         * tests/unicase/test-u32-casecoll.c: Likewise.
59067         * tests/unicase/test-u32-casefold.c: Likewise.
59068         * tests/unicase/test-u32-is-cased.c: Likewise.
59069         * tests/unicase/test-u32-is-casefolded.c: Likewise.
59070         * tests/unicase/test-u32-is-lowercase.c: Likewise.
59071         * tests/unicase/test-u32-is-titlecase.c: Likewise.
59072         * tests/unicase/test-u32-is-uppercase.c: Likewise.
59073         * tests/unicase/test-u32-tolower.c: Likewise.
59074         * tests/unicase/test-u32-totitle.c: Likewise.
59075         * tests/unicase/test-u32-toupper.c: Likewise.
59076         * tests/unicase/test-ulc-casecmp.c: Likewise.
59077         * tests/unicase/test-ulc-casecoll.c: Likewise.
59078         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59079         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59080         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59081         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59082         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59083         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59084         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59085         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59086         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59087         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59088         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59089         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59090         * tests/unictype/test-bidi_byname.c: Likewise.
59091         * tests/unictype/test-bidi_name.c: Likewise.
59092         * tests/unictype/test-bidi_of.c: Likewise.
59093         * tests/unictype/test-bidi_test.c: Likewise.
59094         * tests/unictype/test-block_list.c: Likewise.
59095         * tests/unictype/test-block_of.c: Likewise.
59096         * tests/unictype/test-block_test.c: Likewise.
59097         * tests/unictype/test-categ_and.c: Likewise.
59098         * tests/unictype/test-categ_and_not.c: Likewise.
59099         * tests/unictype/test-categ_byname.c: Likewise.
59100         * tests/unictype/test-categ_name.c: Likewise.
59101         * tests/unictype/test-categ_none.c: Likewise.
59102         * tests/unictype/test-categ_of.c: Likewise.
59103         * tests/unictype/test-categ_or.c: Likewise.
59104         * tests/unictype/test-categ_test_withtable.c: Likewise.
59105         * tests/unictype/test-combining.c: Likewise.
59106         * tests/unictype/test-decdigit.c: Likewise.
59107         * tests/unictype/test-digit.c: Likewise.
59108         * tests/unictype/test-mirror.c: Likewise.
59109         * tests/unictype/test-numeric.c: Likewise.
59110         * tests/unictype/test-pr_byname.c: Likewise.
59111         * tests/unictype/test-pr_test.c: Likewise.
59112         * tests/unictype/test-predicate-part1.h: Likewise.
59113         * tests/unictype/test-scripts.c: Likewise.
59114         * tests/unictype/test-sy_c_ident.c: Likewise.
59115         * tests/unictype/test-sy_java_ident.c: Likewise.
59116         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
59117         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
59118         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
59119         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
59120         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
59121         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
59122         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
59123         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
59124         * tests/uninorm/test-canonical-decomposition.c: Likewise.
59125         * tests/uninorm/test-compat-decomposition.c: Likewise.
59126         * tests/uninorm/test-composition.c: Likewise.
59127         * tests/uninorm/test-decomposing-form.c: Likewise.
59128         * tests/uninorm/test-decomposition.c: Likewise.
59129         * tests/uninorm/test-u8-nfc.c: Likewise.
59130         * tests/uninorm/test-u8-nfd.c: Likewise.
59131         * tests/uninorm/test-u8-nfkc.c: Likewise.
59132         * tests/uninorm/test-u8-nfkd.c: Likewise.
59133         * tests/uninorm/test-u8-normcmp.c: Likewise.
59134         * tests/uninorm/test-u8-normcoll.c: Likewise.
59135         * tests/uninorm/test-u16-nfc.c: Likewise.
59136         * tests/uninorm/test-u16-nfd.c: Likewise.
59137         * tests/uninorm/test-u16-nfkc.c: Likewise.
59138         * tests/uninorm/test-u16-nfkd.c: Likewise.
59139         * tests/uninorm/test-u16-normcmp.c: Likewise.
59140         * tests/uninorm/test-u16-normcoll.c: Likewise.
59141         * tests/uninorm/test-u32-nfc.c: Likewise.
59142         * tests/uninorm/test-u32-nfd.c: Likewise.
59143         * tests/uninorm/test-u32-nfkc.c: Likewise.
59144         * tests/uninorm/test-u32-nfkd.c: Likewise.
59145         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59146         * tests/uninorm/test-u32-normcmp.c: Likewise.
59147         * tests/uninorm/test-u32-normcoll.c: Likewise.
59148         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
59149         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59150         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59151         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59152         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59153         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59154         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59155         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59156         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59157         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59158         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59159         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59160         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59161         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59162         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59163         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59164         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59165         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59166         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59167         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59168         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59169         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59170         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59171         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59172         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59173         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59174         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59175         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59176         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59177         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
59178         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
59179         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
59180         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
59181         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59182         * tests/uniwidth/test-u8-width.c: Likewise.
59183         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59184         * tests/uniwidth/test-u16-width.c: Likewise.
59185         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59186         * tests/uniwidth/test-u32-width.c: Likewise.
59187         * tests/uniwidth/test-uc_width.c: Likewise.
59188         * tests/uniwidth/test-uc_width2.c: Likewise.
59189         * modules/acl-tests (Files): Add tests/macros.h.
59190         * modules/areadlink-tests (Files): Likewise.
59191         * modules/areadlink-with-size-tests (Files): Likewise.
59192         * modules/areadlinkat-tests (Files): Likewise.
59193         * modules/areadlinkat-with-size-tests (Files): Likewise.
59194         * modules/argmatch-tests (Files): Likewise.
59195         * modules/argv-iter-tests (Files): Likewise.
59196         * modules/array-list-tests (Files): Likewise.
59197         * modules/array-mergesort-tests (Files): Likewise.
59198         * modules/array-oset-tests (Files): Likewise.
59199         * modules/avltree-list-tests (Files): Likewise.
59200         * modules/avltree-oset-tests (Files): Likewise.
59201         * modules/avltreehash-list-tests (Files): Likewise.
59202         * modules/base64-tests (Files): Likewise.
59203         * modules/binary-io-tests (Files): Likewise.
59204         * modules/bitrotate-tests (Files): Likewise.
59205         * modules/btowc-tests (Files): Likewise.
59206         * modules/byteswap-tests (Files): Likewise.
59207         * modules/c-ctype-tests (Files): Likewise.
59208         * modules/c-stack-tests (Files): Likewise.
59209         * modules/c-strcase-tests (Files): Likewise.
59210         * modules/c-strcasestr-tests (Files): Likewise.
59211         * modules/c-strstr-tests (Files): Likewise.
59212         * modules/canonicalize-lgpl-tests (Files): Likewise.
59213         * modules/canonicalize-tests (Files): Likewise.
59214         * modules/carray-list-tests (Files): Likewise.
59215         * modules/ceilf-tests (Files): Likewise.
59216         * modules/ceill-tests (Files): Likewise.
59217         * modules/chown-tests (Files): Likewise.
59218         * modules/cloexec-tests (Files): Likewise.
59219         * modules/copy-file-tests (Files): Likewise.
59220         * modules/count-one-bits-tests (Files): Likewise.
59221         * modules/dprintf-posix-tests (Files): Likewise.
59222         * modules/dup2-tests (Files): Likewise.
59223         * modules/dup3-tests (Files): Likewise.
59224         * modules/duplocale-tests (Files): Likewise.
59225         * modules/fbufmode-tests (Files): Likewise.
59226         * modules/fchdir-tests (Files): Likewise.
59227         * modules/fcntl-safer-tests (Files): Likewise.
59228         * modules/fcntl-tests (Files): Likewise.
59229         * modules/fdopendir-tests (Files): Likewise.
59230         * modules/fdutimensat-tests (Files): Likewise.
59231         * modules/fflush-tests (Files): Likewise.
59232         * modules/filevercmp-tests (Files): Likewise.
59233         * modules/flock-tests (Files): Likewise.
59234         * modules/floorf-tests (Files): Likewise.
59235         * modules/floorl-tests (Files): Likewise.
59236         * modules/fnmatch-tests (Files): Likewise.
59237         * modules/fopen-safer-tests (Files): Likewise.
59238         * modules/fopen-tests (Files): Likewise.
59239         * modules/fpending-tests (Files): Likewise.
59240         * modules/fprintf-posix-tests (Files): Likewise.
59241         * modules/fpurge-tests (Files): Likewise.
59242         * modules/freadable-tests (Files): Likewise.
59243         * modules/freadahead-tests (Files): Likewise.
59244         * modules/freading-tests (Files): Likewise.
59245         * modules/freadptr-tests (Files): Likewise.
59246         * modules/freadseek-tests (Files): Likewise.
59247         * modules/freopen-tests (Files): Likewise.
59248         * modules/frexp-nolibm-tests (Files): Likewise.
59249         * modules/frexp-tests (Files): Likewise.
59250         * modules/frexpl-nolibm-tests (Files): Likewise.
59251         * modules/frexpl-tests (Files): Likewise.
59252         * modules/fseek-tests (Files): Likewise.
59253         * modules/fseeko-tests (Files): Likewise.
59254         * modules/fstrcmp-tests (Files): Likewise.
59255         * modules/fsync-tests (Files): Likewise.
59256         * modules/ftell-tests (Files): Likewise.
59257         * modules/ftello-tests (Files): Likewise.
59258         * modules/func-tests (Files): Likewise.
59259         * modules/futimens-tests (Files): Likewise.
59260         * modules/fwritable-tests (Files): Likewise.
59261         * modules/fwriting-tests (Files): Likewise.
59262         * modules/getcwd-tests (Files): Likewise.
59263         * modules/getdate-tests (Files): Likewise.
59264         * modules/getdelim-tests (Files): Likewise.
59265         * modules/getdtablesize-tests (Files): Likewise.
59266         * modules/getgroups-tests (Files): Likewise.
59267         * modules/getline-tests (Files): Likewise.
59268         * modules/getndelim2-tests (Files): Likewise.
59269         * modules/glob-tests (Files): Likewise.
59270         * modules/hash-tests (Files): Likewise.
59271         * modules/i-ring-tests (Files): Likewise.
59272         * modules/iconv-tests (Files): Likewise.
59273         * modules/iconv_open-utf-tests (Files): Likewise.
59274         * modules/idpriv-drop-tests (Files): Likewise.
59275         * modules/idpriv-droptemp-tests (Files): Likewise.
59276         * modules/inet_ntop-tests (Files): Likewise.
59277         * modules/inet_pton-tests (Files): Likewise.
59278         * modules/isblank-tests (Files): Likewise.
59279         * modules/isfinite-tests (Files): Likewise.
59280         * modules/isinf-tests (Files): Likewise.
59281         * modules/isnan-tests (Files): Likewise.
59282         * modules/isnand-nolibm-tests (Files): Likewise.
59283         * modules/isnand-tests (Files): Likewise.
59284         * modules/isnanf-nolibm-tests (Files): Likewise.
59285         * modules/isnanf-tests (Files): Likewise.
59286         * modules/isnanl-nolibm-tests (Files): Likewise.
59287         * modules/isnanl-tests (Files): Likewise.
59288         * modules/lchown-tests (Files): Likewise.
59289         * modules/ldexpl-tests (Files): Likewise.
59290         * modules/link-tests (Files): Likewise.
59291         * modules/linkat-tests (Files): Likewise.
59292         * modules/linked-list-tests (Files): Likewise.
59293         * modules/linkedhash-list-tests (Files): Likewise.
59294         * modules/localename-tests (Files): Likewise.
59295         * modules/lseek-tests (Files): Likewise.
59296         * modules/lstat-tests (Files): Likewise.
59297         * modules/mbmemcasecmp-tests (Files): Likewise.
59298         * modules/mbmemcasecoll-tests (Files): Likewise.
59299         * modules/mbrtowc-tests (Files): Likewise.
59300         * modules/mbscasecmp-tests (Files): Likewise.
59301         * modules/mbscasestr-tests (Files): Likewise.
59302         * modules/mbschr-tests (Files): Likewise.
59303         * modules/mbscspn-tests (Files): Likewise.
59304         * modules/mbsinit-tests (Files): Likewise.
59305         * modules/mbsncasecmp-tests (Files): Likewise.
59306         * modules/mbsnrtowcs-tests (Files): Likewise.
59307         * modules/mbspbrk-tests (Files): Likewise.
59308         * modules/mbspcasecmp-tests (Files): Likewise.
59309         * modules/mbsrchr-tests (Files): Likewise.
59310         * modules/mbsrtowcs-tests (Files): Likewise.
59311         * modules/mbsspn-tests (Files): Likewise.
59312         * modules/mbsstr-tests (Files): Likewise.
59313         * modules/memchr-tests (Files): Likewise.
59314         * modules/memchr2-tests (Files): Likewise.
59315         * modules/memcmp-tests (Files): Likewise.
59316         * modules/memmem-tests (Files): Likewise.
59317         * modules/memrchr-tests (Files): Likewise.
59318         * modules/mkdir-tests (Files): Likewise.
59319         * modules/mkfifo-tests (Files): Likewise.
59320         * modules/mkfifoat-tests (Files): Likewise.
59321         * modules/mknod-tests (Files): Likewise.
59322         * modules/nanosleep-tests (Files): Likewise.
59323         * modules/nl_langinfo-tests (Files): Likewise.
59324         * modules/obstack-printf-tests (Files): Likewise.
59325         * modules/open-tests (Files): Likewise.
59326         * modules/openat-tests (Files): Likewise.
59327         * modules/pipe-filter-gi-tests (Files): Likewise.
59328         * modules/pipe-filter-ii-tests (Files): Likewise.
59329         * modules/pipe2-tests (Files): Likewise.
59330         * modules/popen-safer-tests (Files): Likewise.
59331         * modules/popen-tests (Files): Likewise.
59332         * modules/posixtm-tests (Files): Likewise.
59333         * modules/pread-tests (Files): Likewise.
59334         * modules/printf-frexp-tests (Files): Likewise.
59335         * modules/printf-frexpl-tests (Files): Likewise.
59336         * modules/printf-posix-tests (Files): Likewise.
59337         * modules/priv-set-tests (Files): Likewise.
59338         * modules/quotearg-tests (Files): Likewise.
59339         * modules/random_r-tests (Files): Likewise.
59340         * modules/rawmemchr-tests (Files): Likewise.
59341         * modules/rbtree-list-tests (Files): Likewise.
59342         * modules/rbtree-oset-tests (Files): Likewise.
59343         * modules/rbtreehash-list-tests (Files): Likewise.
59344         * modules/readlink-tests (Files): Likewise.
59345         * modules/remove-tests (Files): Likewise.
59346         * modules/rename-tests (Files): Likewise.
59347         * modules/renameat-tests (Files): Likewise.
59348         * modules/rmdir-tests (Files): Likewise.
59349         * modules/round-tests (Files): Likewise.
59350         * modules/roundf-tests (Files): Likewise.
59351         * modules/roundl-tests (Files): Likewise.
59352         * modules/safe-alloc-tests (Files): Likewise.
59353         * modules/setenv-tests (Files): Likewise.
59354         * modules/sigaction-tests (Files): Likewise.
59355         * modules/signbit-tests (Files): Likewise.
59356         * modules/sleep-tests (Files): Likewise.
59357         * modules/snprintf-posix-tests (Files): Likewise.
59358         * modules/snprintf-tests (Files): Likewise.
59359         * modules/sprintf-posix-tests (Files): Likewise.
59360         * modules/stat-tests (Files): Likewise.
59361         * modules/stat-time-tests (Files): Likewise.
59362         * modules/strcasestr-tests (Files): Likewise.
59363         * modules/strchrnul-tests (Files): Likewise.
59364         * modules/strerror-tests (Files): Likewise.
59365         * modules/striconv-tests (Files): Likewise.
59366         * modules/striconveh-tests (Files): Likewise.
59367         * modules/striconveha-tests (Files): Likewise.
59368         * modules/strsignal-tests (Files): Likewise.
59369         * modules/strstr-tests (Files): Likewise.
59370         * modules/strtod-tests (Files): Likewise.
59371         * modules/strverscmp-tests (Files): Likewise.
59372         * modules/symlink-tests (Files): Likewise.
59373         * modules/symlinkat-tests (Files): Likewise.
59374         * modules/trunc-tests (Files): Likewise.
59375         * modules/truncf-tests (Files): Likewise.
59376         * modules/truncl-tests (Files): Likewise.
59377         * modules/uname-tests (Files): Likewise.
59378         * modules/unicase/cased-tests (Files): Likewise.
59379         * modules/unicase/ignorable-tests (Files): Likewise.
59380         * modules/unicase/locale-language-tests (Files): Likewise.
59381         * modules/unicase/tolower-tests (Files): Likewise.
59382         * modules/unicase/totitle-tests (Files): Likewise.
59383         * modules/unicase/toupper-tests (Files): Likewise.
59384         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59385         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59386         * modules/unicase/u8-casefold-tests (Files): Likewise.
59387         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59388         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59389         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59390         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59391         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59392         * modules/unicase/u8-tolower-tests (Files): Likewise.
59393         * modules/unicase/u8-totitle-tests (Files): Likewise.
59394         * modules/unicase/u8-toupper-tests (Files): Likewise.
59395         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59396         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59397         * modules/unicase/u16-casefold-tests (Files): Likewise.
59398         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59399         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59400         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59401         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59402         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59403         * modules/unicase/u16-tolower-tests (Files): Likewise.
59404         * modules/unicase/u16-totitle-tests (Files): Likewise.
59405         * modules/unicase/u16-toupper-tests (Files): Likewise.
59406         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59407         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59408         * modules/unicase/u32-casefold-tests (Files): Likewise.
59409         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59410         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59411         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59412         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59413         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59414         * modules/unicase/u32-tolower-tests (Files): Likewise.
59415         * modules/unicase/u32-totitle-tests (Files): Likewise.
59416         * modules/unicase/u32-toupper-tests (Files): Likewise.
59417         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59418         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59419         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59420         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59421         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59422         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59423         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59424         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59425         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59426         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59427         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59428         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59429         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59430         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59431         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59432         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59433         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59434         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59435         * modules/unictype/block-list-tests (Files): Likewise.
59436         * modules/unictype/block-of-tests (Files): Likewise.
59437         * modules/unictype/block-test-tests (Files): Likewise.
59438         * modules/unictype/category-C-tests (Files): Likewise.
59439         * modules/unictype/category-Cc-tests (Files): Likewise.
59440         * modules/unictype/category-Cf-tests (Files): Likewise.
59441         * modules/unictype/category-Cn-tests (Files): Likewise.
59442         * modules/unictype/category-Co-tests (Files): Likewise.
59443         * modules/unictype/category-Cs-tests (Files): Likewise.
59444         * modules/unictype/category-L-tests (Files): Likewise.
59445         * modules/unictype/category-Ll-tests (Files): Likewise.
59446         * modules/unictype/category-Lm-tests (Files): Likewise.
59447         * modules/unictype/category-Lo-tests (Files): Likewise.
59448         * modules/unictype/category-Lt-tests (Files): Likewise.
59449         * modules/unictype/category-Lu-tests (Files): Likewise.
59450         * modules/unictype/category-M-tests (Files): Likewise.
59451         * modules/unictype/category-Mc-tests (Files): Likewise.
59452         * modules/unictype/category-Me-tests (Files): Likewise.
59453         * modules/unictype/category-Mn-tests (Files): Likewise.
59454         * modules/unictype/category-N-tests (Files): Likewise.
59455         * modules/unictype/category-Nd-tests (Files): Likewise.
59456         * modules/unictype/category-Nl-tests (Files): Likewise.
59457         * modules/unictype/category-No-tests (Files): Likewise.
59458         * modules/unictype/category-P-tests (Files): Likewise.
59459         * modules/unictype/category-Pc-tests (Files): Likewise.
59460         * modules/unictype/category-Pd-tests (Files): Likewise.
59461         * modules/unictype/category-Pe-tests (Files): Likewise.
59462         * modules/unictype/category-Pf-tests (Files): Likewise.
59463         * modules/unictype/category-Pi-tests (Files): Likewise.
59464         * modules/unictype/category-Po-tests (Files): Likewise.
59465         * modules/unictype/category-Ps-tests (Files): Likewise.
59466         * modules/unictype/category-S-tests (Files): Likewise.
59467         * modules/unictype/category-Sc-tests (Files): Likewise.
59468         * modules/unictype/category-Sk-tests (Files): Likewise.
59469         * modules/unictype/category-Sm-tests (Files): Likewise.
59470         * modules/unictype/category-So-tests (Files): Likewise.
59471         * modules/unictype/category-Z-tests (Files): Likewise.
59472         * modules/unictype/category-Zl-tests (Files): Likewise.
59473         * modules/unictype/category-Zp-tests (Files): Likewise.
59474         * modules/unictype/category-Zs-tests (Files): Likewise.
59475         * modules/unictype/category-and-not-tests (Files): Likewise.
59476         * modules/unictype/category-and-tests (Files): Likewise.
59477         * modules/unictype/category-byname-tests (Files): Likewise.
59478         * modules/unictype/category-name-tests (Files): Likewise.
59479         * modules/unictype/category-none-tests (Files): Likewise.
59480         * modules/unictype/category-of-tests (Files): Likewise.
59481         * modules/unictype/category-or-tests (Files): Likewise.
59482         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59483         * modules/unictype/combining-class-tests (Files): Likewise.
59484         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59485         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59486         * modules/unictype/ctype-blank-tests (Files): Likewise.
59487         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59488         * modules/unictype/ctype-digit-tests (Files): Likewise.
59489         * modules/unictype/ctype-graph-tests (Files): Likewise.
59490         * modules/unictype/ctype-lower-tests (Files): Likewise.
59491         * modules/unictype/ctype-print-tests (Files): Likewise.
59492         * modules/unictype/ctype-punct-tests (Files): Likewise.
59493         * modules/unictype/ctype-space-tests (Files): Likewise.
59494         * modules/unictype/ctype-upper-tests (Files): Likewise.
59495         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59496         * modules/unictype/decimal-digit-tests (Files): Likewise.
59497         * modules/unictype/digit-tests (Files): Likewise.
59498         * modules/unictype/mirror-tests (Files): Likewise.
59499         * modules/unictype/numeric-tests (Files): Likewise.
59500         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59501         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59502         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59503         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59504         Likewise.
59505         * modules/unictype/property-bidi-block-separator-tests (Files):
59506         Likewise.
59507         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59508         Likewise.
59509         * modules/unictype/property-bidi-common-separator-tests (Files):
59510         Likewise.
59511         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59512         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59513         Likewise.
59514         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59515         Likewise.
59516         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59517         Likewise.
59518         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59519         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59520         Likewise.
59521         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59522         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59523         Likewise.
59524         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59525         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59526         * modules/unictype/property-bidi-segment-separator-tests (Files):
59527         Likewise.
59528         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59529         * modules/unictype/property-byname-tests (Files): Likewise.
59530         * modules/unictype/property-combining-tests (Files): Likewise.
59531         * modules/unictype/property-composite-tests (Files): Likewise.
59532         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59533         * modules/unictype/property-dash-tests (Files): Likewise.
59534         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59535         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59536         Likewise.
59537         * modules/unictype/property-deprecated-tests (Files): Likewise.
59538         * modules/unictype/property-diacritic-tests (Files): Likewise.
59539         * modules/unictype/property-extender-tests (Files): Likewise.
59540         * modules/unictype/property-format-control-tests (Files): Likewise.
59541         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59542         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59543         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
59544         * modules/unictype/property-hex-digit-tests (Files): Likewise.
59545         * modules/unictype/property-hyphen-tests (Files): Likewise.
59546         * modules/unictype/property-id-continue-tests (Files): Likewise.
59547         * modules/unictype/property-id-start-tests (Files): Likewise.
59548         * modules/unictype/property-ideographic-tests (Files): Likewise.
59549         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
59550         * modules/unictype/property-ids-trinary-operator-tests (Files):
59551         Likewise.
59552         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
59553         * modules/unictype/property-iso-control-tests (Files): Likewise.
59554         * modules/unictype/property-join-control-tests (Files): Likewise.
59555         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
59556         * modules/unictype/property-line-separator-tests (Files): Likewise.
59557         * modules/unictype/property-logical-order-exception-tests (Files):
59558         Likewise.
59559         * modules/unictype/property-lowercase-tests (Files): Likewise.
59560         * modules/unictype/property-math-tests (Files): Likewise.
59561         * modules/unictype/property-non-break-tests (Files): Likewise.
59562         * modules/unictype/property-not-a-character-tests (Files): Likewise.
59563         * modules/unictype/property-numeric-tests (Files): Likewise.
59564         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
59565         * modules/unictype/property-other-default-ignorable-code-point-tests
59566         (Files): Likewise.
59567         * modules/unictype/property-other-grapheme-extend-tests (Files):
59568         Likewise.
59569         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
59570         * modules/unictype/property-other-id-start-tests (Files): Likewise.
59571         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
59572         * modules/unictype/property-other-math-tests (Files): Likewise.
59573         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
59574         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
59575         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
59576         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
59577         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
59578         * modules/unictype/property-private-use-tests (Files): Likewise.
59579         * modules/unictype/property-punctuation-tests (Files): Likewise.
59580         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
59581         * modules/unictype/property-radical-tests (Files): Likewise.
59582         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
59583         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
59584         * modules/unictype/property-space-tests (Files): Likewise.
59585         * modules/unictype/property-terminal-punctuation-tests (Files):
59586         Likewise.
59587         * modules/unictype/property-test-tests (Files): Likewise.
59588         * modules/unictype/property-titlecase-tests (Files): Likewise.
59589         * modules/unictype/property-unassigned-code-value-tests (Files):
59590         Likewise.
59591         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
59592         * modules/unictype/property-uppercase-tests (Files): Likewise.
59593         * modules/unictype/property-variation-selector-tests (Files): Likewise.
59594         * modules/unictype/property-white-space-tests (Files): Likewise.
59595         * modules/unictype/property-xid-continue-tests (Files): Likewise.
59596         * modules/unictype/property-xid-start-tests (Files): Likewise.
59597         * modules/unictype/property-zero-width-tests (Files): Likewise.
59598         * modules/unictype/scripts-tests (Files): Likewise.
59599         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
59600         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
59601         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
59602         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
59603         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
59604         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
59605         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
59606         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
59607         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
59608         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
59609         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
59610         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
59611         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
59612         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
59613         * modules/uninorm/composition-tests (Files): Likewise.
59614         * modules/uninorm/decomposing-form-tests (Files): Likewise.
59615         * modules/uninorm/decomposition-tests (Files): Likewise.
59616         * modules/uninorm/filter-tests (Files): Likewise.
59617         * modules/uninorm/nfc-tests (Files): Likewise.
59618         * modules/uninorm/nfd-tests (Files): Likewise.
59619         * modules/uninorm/nfkc-tests (Files): Likewise.
59620         * modules/uninorm/nfkd-tests (Files): Likewise.
59621         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
59622         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
59623         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
59624         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
59625         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
59626         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
59627         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
59628         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
59629         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
59630         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
59631         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
59632         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
59633         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
59634         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
59635         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
59636         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
59637         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
59638         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
59639         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
59640         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
59641         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
59642         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
59643         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
59644         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
59645         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
59646         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
59647         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
59648         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
59649         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
59650         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
59651         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
59652         * modules/uniwidth/u8-width-tests (Files): Likewise.
59653         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
59654         * modules/uniwidth/u16-width-tests (Files): Likewise.
59655         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
59656         * modules/uniwidth/u32-width-tests (Files): Likewise.
59657         * modules/uniwidth/width-tests (Files): Likewise.
59658         * modules/unlink-tests (Files): Likewise.
59659         * modules/unsetenv-tests (Files): Likewise.
59660         * modules/usleep-tests (Files): Likewise.
59661         * modules/utimens-tests (Files): Likewise.
59662         * modules/utimensat-tests (Files): Likewise.
59663         * modules/vasnprintf-posix-tests (Files): Likewise.
59664         * modules/vasnprintf-tests (Files): Likewise.
59665         * modules/vasprintf-posix-tests (Files): Likewise.
59666         * modules/vasprintf-tests (Files): Likewise.
59667         * modules/vdprintf-posix-tests (Files): Likewise.
59668         * modules/vfprintf-posix-tests (Files): Likewise.
59669         * modules/vprintf-posix-tests (Files): Likewise.
59670         * modules/vsnprintf-posix-tests (Files): Likewise.
59671         * modules/vsnprintf-tests (Files): Likewise.
59672         * modules/vsprintf-posix-tests (Files): Likewise.
59673         * modules/wcrtomb-tests (Files): Likewise.
59674         * modules/wcsnrtombs-tests (Files): Likewise.
59675         * modules/wcsrtombs-tests (Files): Likewise.
59676         * modules/wctype-tests (Files): Likewise.
59677         * modules/wcwidth-tests (Files): Likewise.
59678         * modules/xmemdup0-tests (Files): Likewise.
59679         * modules/xprintf-posix-tests (Files): Likewise.
59680         * modules/xvasprintf-tests (Files): Likewise.
59682 2009-12-24  Eric Blake  <ebb9@byu.net>
59684         test-nanosleep: fix typo
59685         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
59686         patch.
59687         Reported by Bruno Haible.
59689 2009-12-24  Bruno Haible  <bruno@clisp.org>
59691         Reduce namespace pollution on glibc systems.
59692         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
59693         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
59694         systems.
59695         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
59696         <getopt.h> on glibc systems.
59697         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
59698         systems.
59699         * lib/fcntl.c: Include <unistd.h> here instead.
59701 2009-12-24  Bruno Haible  <bruno@clisp.org>
59703         * lib/stdlib.in.h (includes): Fix typo in today's commit.
59705 2009-12-24  Eric Blake  <ebb9@byu.net>
59707         tests: add signature checks
59708         * tests/signature.h (SIGNATURE_CHECK): New file.
59709         * modules/atexit-tests (Files): Use it.
59710         * modules/btowc-tests (Files): Likewise.
59711         * modules/canonicalize-lgpl-tests (Files): Likewise.
59712         * modules/ceilf-tests (Files): Likewise.
59713         * modules/ceill-tests (Files): Likewise.
59714         * modules/chown-tests (Files): Likewise.
59715         * modules/dprintf-posix-tests (Files): Likewise.
59716         * modules/dup2-tests (Files): Likewise.
59717         * modules/dup3-tests (Files): Likewise.
59718         * modules/duplocale-tests (Files): Likewise.
59719         * modules/fchdir-tests (Files): Likewise.
59720         * modules/fcntl-tests (Files): Likewise.
59721         * modules/fdopendir-tests (Files): Likewise.
59722         * modules/fflush-tests (Files): Likewise.
59723         * modules/flock-tests (Files): Likewise.
59724         * modules/floorf-tests (Files): Likewise.
59725         * modules/floorl-tests (Files): Likewise.
59726         * modules/fnmatch-tests (Files): Likewise.
59727         * modules/fopen-tests (Files): Likewise.
59728         * modules/fprintf-posix-tests (Files): Likewise.
59729         * modules/freopen-tests (Files): Likewise.
59730         * modules/frexp-nolibm-tests (Files): Likewise.
59731         * modules/frexp-tests (Files): Likewise.
59732         * modules/frexpl-nolibm-tests (Files): Likewise.
59733         * modules/frexpl-tests (Files): Likewise.
59734         * modules/fseek-tests (Files): Likewise.
59735         * modules/fseeko-tests (Files): Likewise.
59736         * modules/fsync-tests (Files): Likewise.
59737         * modules/ftell-tests (Files): Likewise.
59738         * modules/ftello-tests (Files): Likewise.
59739         * modules/futimens-tests (Files): Likewise.
59740         * modules/getaddrinfo-tests (Files): Likewise.
59741         * modules/getcwd-tests (Files): Likewise.
59742         * modules/getdelim-tests (Files): Likewise.
59743         * modules/getdtablesize-tests (Files): Likewise.
59744         * modules/getgroups-tests (Files): Likewise.
59745         * modules/gethostname-tests (Files): Likewise.
59746         * modules/getline-tests (Files): Likewise.
59747         * modules/getopt-posix-tests (Files): Likewise.
59748         * modules/gettimeofday-tests (Files): Likewise.
59749         * modules/glob-tests (Files): Likewise.
59750         * modules/iconv-tests (Files): Likewise.
59751         * modules/inet_ntop-tests (Files): Likewise.
59752         * modules/inet_pton-tests (Files): Likewise.
59753         * modules/isblank-tests (Files): Likewise.
59754         * modules/lchown-tests (Files): Likewise.
59755         * modules/ldexpl-tests (Files): Likewise.
59756         * modules/link-tests (Files): Likewise.
59757         * modules/linkat-tests (Files): Likewise.
59758         * modules/lseek-tests (Files): Likewise.
59759         * modules/lstat-tests (Files): Likewise.
59760         * modules/mbrtowc-tests (Files): Likewise.
59761         * modules/mbsinit-tests (Files): Likewise.
59762         * modules/mbsnrtowcs-tests (Files): Likewise.
59763         * modules/mbsrtowcs-tests (Files): Likewise.
59764         * modules/memchr-tests (Files): Likewise.
59765         * modules/memcmp-tests (Files): Likewise.
59766         * modules/memmem-tests (Files): Likewise.
59767         * modules/memrchr-tests (Files): Likewise.
59768         * modules/mkdir-tests (Files): Likewise.
59769         * modules/mkfifo-tests (Files): Likewise.
59770         * modules/mkfifoat-tests (Files): Likewise.
59771         * modules/mknod-tests (Files): Likewise.
59772         * modules/nanosleep-tests (Files): Likewise.
59773         * modules/nl_langinfo-tests (Files): Likewise.
59774         * modules/obstack-printf-tests (Files): Likewise.
59775         * modules/open-tests (Files): Likewise.
59776         * modules/openat-tests (Files): Likewise.
59777         * modules/perror-tests (Files): Likewise.
59778         * modules/pipe2-tests (Files): Likewise.
59779         * modules/poll-tests (Files): Likewise.
59780         * modules/popen-tests (Files): Likewise.
59781         * modules/posix_spawn-tests (Files): Likewise.
59782         * modules/posix_spawnp-tests (Files): Likewise.
59783         * modules/pread-tests (Files): Likewise.
59784         * modules/printf-posix-tests (Files): Likewise.
59785         * modules/pty-tests (Files): Likewise.
59786         * modules/random_r-tests (Files): Likewise.
59787         * modules/rawmemchr-tests (Files): Likewise.
59788         * modules/readlink-tests (Files): Likewise.
59789         * modules/remove-tests (Files): Likewise.
59790         * modules/rename-tests (Files): Likewise.
59791         * modules/renameat-tests (Files): Likewise.
59792         * modules/rmdir-tests (Files): Likewise.
59793         * modules/round-tests (Files): Likewise.
59794         * modules/roundf-tests (Files): Likewise.
59795         * modules/roundl-tests (Files): Likewise.
59796         * modules/select-tests (Files): Likewise.
59797         * modules/setenv-tests (Files): Likewise.
59798         * modules/sigaction-tests (Files): Likewise.
59799         * modules/sleep-tests (Files): Likewise.
59800         * modules/snprintf-posix-tests (Files): Likewise.
59801         * modules/snprintf-tests (Files): Likewise.
59802         * modules/sprintf-posix-tests (Files): Likewise.
59803         * modules/stat-tests (Files): Likewise.
59804         * modules/strcasestr-tests (Files): Likewise.
59805         * modules/strchrnul-tests (Files): Likewise.
59806         * modules/strerror-tests (Files): Likewise.
59807         * modules/strsignal-tests (Files): Likewise.
59808         * modules/strstr-tests (Files): Likewise.
59809         * modules/strtod-tests (Files): Likewise.
59810         * modules/strverscmp-tests (Files): Likewise.
59811         * modules/symlink-tests (Files): Likewise.
59812         * modules/symlinkat-tests (Files): Likewise.
59813         * modules/times-tests (Files): Likewise.
59814         * modules/trunc-tests (Files): Likewise.
59815         * modules/truncf-tests (Files): Likewise.
59816         * modules/truncl-tests (Files): Likewise.
59817         * modules/tsearch-tests (Files): Likewise.
59818         * modules/uname-tests (Files): Likewise.
59819         * modules/unlink-tests (Files): Likewise.
59820         * modules/unsetenv-tests (Files): Likewise.
59821         * modules/usleep-tests (Files): Likewise.
59822         * modules/utimensat-tests (Files): Likewise.
59823         * modules/vasprintf-tests (Files): Likewise.
59824         * modules/vdprintf-posix-tests (Files): Likewise.
59825         * modules/vfprintf-posix-tests (Files): Likewise.
59826         * modules/vprintf-posix-tests (Files): Likewise.
59827         * modules/vsnprintf-posix-tests (Files): Likewise.
59828         * modules/vsnprintf-tests (Files): Likewise.
59829         * modules/vsprintf-posix-tests (Files): Likewise.
59830         * modules/wcrtomb-tests (Files): Likewise.
59831         * modules/wcsnrtombs-tests (Files): Likewise.
59832         * modules/wcsrtombs-tests (Files): Likewise.
59833         * modules/wcwidth-tests (Files): Likewise.
59834         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
59835         * tests/test-isinf.c (isinf): Likewise.
59836         * tests/test-isnan.c (isnan): Likewise.
59837         * tests/test-signbit.c (signbit): Likewise.
59838         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
59839         declaration, either as macro or with correct signature.
59840         (select): Ensure function under test is declared with correct
59841         signature in correct header.
59842         * tests/test-atexit.c (atexit): Likewise.
59843         * tests/test-btowc.c (btowc): Likewise.
59844         * tests/test-canonicalize-lgpl.c (realpath)
59845         (canonicalize_file_name): Likewise.
59846         * tests/test-ceilf1.c (ceilf): Likewise.
59847         * tests/test-ceill.c (ceill): Likewise.
59848         * tests/test-chown.c (chown): Likewise.
59849         * tests/test-dprintf-posix.c (dprintf): Likewise.
59850         * tests/test-dup2.c (dup2): Likewise.
59851         * tests/test-dup3.c (dup3): Likewise.
59852         * tests/test-duplocale.c (duplocale): Likewise.
59853         * tests/test-fchdir.c (fchdir): Likewise.
59854         * tests/test-fchownat.c (fchownat): Likewise.
59855         * tests/test-fcntl.c (fcntl): Likewise.
59856         * tests/test-fdopendir.c (fdopendir): Likewise.
59857         * tests/test-fflush.c (fflush): Likewise.
59858         * tests/test-flock.c (flock): Likewise.
59859         * tests/test-floorf1.c (floorf): Likewise.
59860         * tests/test-floorl.c (floorl): Likewise.
59861         * tests/test-fnmatch.c (fnmatch): Likewise.
59862         * tests/test-fopen.c (fopen): Likewise.
59863         * tests/test-fprintf-posix.c (fprintf): Likewise.
59864         * tests/test-freopen.c (freopen): Likewise.
59865         * tests/test-frexp.c (frexp): Likewise.
59866         * tests/test-frexpl.c (frexpl): Likewise.
59867         * tests/test-fseek.c (fseek): Likewise.
59868         * tests/test-fseeko.c (fseeko): Likewise.
59869         * tests/test-fstatat.c (fstatat): Likewise.
59870         * tests/test-fsync.c (fsync): Likewise.
59871         * tests/test-ftell.c (ftell): Likewise.
59872         * tests/test-ftello.c (ftello): Likewise.
59873         * tests/test-futimens.c (futimens): Likewise.
59874         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
59875         (gai_strerror): Likewise.
59876         * tests/test-getcwd.c (getcwd): Likewise.
59877         * tests/test-getdelim.c (getdelim): Likewise.
59878         * tests/test-getdtablesize.c (getdtablesize): Likewise.
59879         * tests/test-getgroups.c (getgroups): Likewise.
59880         * tests/test-gethostname.c (gethostname): Likewise.
59881         * tests/test-getline.c (getline): Likewise.
59882         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
59883         Likewise.
59884         * tests/test-gettimeofday.c (gettimeofday): Likewise.
59885         * tests/test-glob.c (glob, globfree): Likewise.
59886         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
59887         * tests/test-inet_ntop.c (inet_ntop): Likewise.
59888         * tests/test-inet_pton.c (inet_pton): Likewise.
59889         * tests/test-isblank.c (isblank): Likewise.
59890         * tests/test-lchown.c (lchown): Likewise.
59891         * tests/test-ldexpl.c (ldexpl): Likewise.
59892         * tests/test-link.c (link): Likewise.
59893         * tests/test-linkat.c (linkat): Likewise.
59894         * tests/test-lseek.c (lseek): Likewise.
59895         * tests/test-lstat.c (lstat): Likewise.
59896         * tests/test-mbrtowc.c (mbrtowc): Likewise.
59897         * tests/test-mbsinit.c (mbsinit): Likewise.
59898         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
59899         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
59900         * tests/test-memchr.c (memchr): Likewise.
59901         * tests/test-memcmp.c (memcmp): Likewise.
59902         * tests/test-memmem.c (memmem): Likewise.
59903         * tests/test-memrchr.c (memrchr): Likewise.
59904         * tests/test-mkdir.c (mkdir): Likewise.
59905         * tests/test-mkdirat.c (mkdirat): Likewise.
59906         * tests/test-mkfifo.c (mkfifo): Likewise.
59907         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
59908         * tests/test-mknod.c (mknod): Likewise.
59909         * tests/test-nanosleep.c (nanosleep): Likewise.
59910         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
59911         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
59912         Likewise.
59913         * tests/test-open.c (open): Likewise.
59914         * tests/test-openat.c (openat): Likewise.
59915         * tests/test-perror.c (perror): Likewise.
59916         * tests/test-pipe2.c (pipe2): Likewise.
59917         * tests/test-poll.c (poll): Likewise.
59918         * tests/test-popen.c (popen, pclose): Likewise.
59919         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
59920         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
59921         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
59922         (posix_spawn_file_actions_destroy)
59923         (posix_spawn_file_actions_addclose)
59924         (posix_spawn_file_actions_addopen)
59925         (posix_spawn_file_actions_adddup2): Likewise.
59926         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
59927         * tests/test-pread.c (pread): Likewise.
59928         * tests/test-printf-posix.c (printf): Likewise.
59929         * tests/test-pty.c (openpty, forkpty): Likewise.
59930         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
59931         (random_r): Likewise.
59932         * tests/test-rawmemchr.c (rawmemchr): Likewise.
59933         * tests/test-readlink.c (readlink): Likewise.
59934         * tests/test-remove.c (remove): Likewise.
59935         * tests/test-rename.c (rename): Likewise.
59936         * tests/test-renameat.c (renameat): Likewise.
59937         * tests/test-rmdir.c (rmdir): Likewise.
59938         * tests/test-round1.c (round): Likewise.
59939         * tests/test-roundf1.c (roundf): Likewise.
59940         * tests/test-roundl.c (roundl): Likewise.
59941         * tests/test-setenv.c (setenv): Likewise.
59942         * tests/test-sigaction.c (sigaction): Likewise.
59943         * tests/test-sleep.c (sleep): Likewise.
59944         * tests/test-snprintf.c (snprintf): Likewise.
59945         * tests/test-sprintf-posix.c (sprintf): Likewise.
59946         * tests/test-stat.c (stat): Likewise.
59947         * tests/test-stpncpy.c (stpncpy): Likewise.
59948         * tests/test-strcasestr.c (strcasestr): Likewise.
59949         * tests/test-strchrnul.c (strchrnul): Likewise.
59950         * tests/test-strerror.c (strerror): Likewise.
59951         * tests/test-strsignal.c (strsignal): Likewise.
59952         * tests/test-strstr.c (strstr): Likewise.
59953         * tests/test-strtod.c (strtod): Likewise.
59954         * tests/test-strverscmp.c (strverscmp): Likewise.
59955         * tests/test-symlink.c (symlink): Likewise.
59956         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
59957         * tests/test-times.c (times): Likewise.
59958         * tests/test-trunc1.c (trunc): Likewise.
59959         * tests/test-truncf1.c (truncf): Likewise.
59960         * tests/test-truncl.c (truncl): Likewise.
59961         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
59962         Likewise.
59963         * tests/test-uname.c (uname): Likewise.
59964         * tests/test-unlink.c (unlink): Likewise.
59965         * tests/test-unlinkat.c (unlinkat): Likewise.
59966         * tests/test-unsetenv.c (unsetenv): Likewise.
59967         * tests/test-usleep.c (usleep): Likewise.
59968         * tests/test-utimensat.c (utimensat): Likewise.
59969         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
59970         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
59971         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
59972         * tests/test-vprintf-posix.c (vprintf): Likewise.
59973         * tests/test-vsnprintf.c (vsnprintf): Likewise.
59974         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
59975         * tests/test-wcrtomb.c (wcrtomb): Likewise.
59976         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
59977         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
59978         * tests/test-wcwidth.c (wcwidth): Likewise.
59980         build: pull in conditional headers during GNULIB_POSIXCHECK
59981         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
59982         definitions from any conditionally-included headers.
59983         * lib/stdlib.in.h (includes): Likewise.
59984         * lib/unistd.in.h (includes): Likewise.
59986 2009-12-24  Bruno Haible  <bruno@clisp.org>
59988         * tests/test-argv-iter.c: Include header file being tested immediately
59989         after config.h.
59990         * tests/test-base64.c: Likewise.
59991         * tests/test-flock.c: Likewise.
59992         * tests/test-fsync.c: Likewise.
59993         * tests/test-getdate.c: Likewise.
59994         * tests/test-getndelim2.c: Likewise.
59995         * tests/test-isfinite.c: Likewise.
59996         * tests/test-isinf.c: Likewise.
59997         * tests/test-strerror.c: Likewise.
59998         * tests/test-strsignal.c: Likewise.
60000 2009-12-23  Eric Blake  <ebb9@byu.net>
60002         unistd: work around cygwin bug
60003         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
60004         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
60005         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60007 2009-12-23  Bruno Haible  <bruno@clisp.org>
60009         localename: More tests.
60010         * tests/test-localename.c (SIZEOF): New macro.
60011         (categories): New variable.
60012         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
60013         test_locale_name_default): Add test w.r.t. thread locale.
60014         (test_locale_name_thread): New function.
60015         (main): Invoke it.
60017         localename: Make aware of thread locale.
60018         * lib/localename.h (gl_locale_name_thread): New declaration.
60019         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
60020         behaviour with respect to thread locale.
60021         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
60022         <langinfo.h>, glthread/lock.h.
60023         (SIZE_BITS): New macro.
60024         (string_hash): New function.
60025         (struct hash_node): New type.
60026         (HASH_TABLE_SIZE): New macro.
60027         (struniq_hash_table, struniq_lock): New variables.
60028         (struniq): New function.
60029         (gl_locale_name_thread): New function.
60030         (gl_locale_name): Invoke it.
60031         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
60032         * modules/localename (Depends-on): Add lock.
60033         Reported by Mike Gran <spk121@yahoo.com>.
60035 2009-12-23  Eric Blake  <ebb9@byu.net>
60037         va-args: new module
60038         * modules/va-args: New file.
60039         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
60040         * MODULES.html.sh (Core language properties): Mention it.
60042         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
60043         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
60044         named alias for __attribute__((__unused__)).
60045         * lib/chown.c: Update client.
60046         * lib/fchmodat.c: Likewise.
60047         * lib/fts.c: Likewise.
60048         * lib/getdate.y: Likewise.
60049         * lib/getgroups.c: Likewise.
60050         * lib/getopt.c: Likewise.
60051         * lib/getugroups.c: Likewise.
60052         * lib/mkdir.c: Likewise.
60053         * lib/mkfifo.c: Likewise.
60054         * lib/mkfifoat.c: Likewise.
60055         * lib/mknod.c: Likewise.
60056         * lib/mknodat.c: Likewise.
60057         * lib/readlink.c: Likewise.
60058         * lib/se-context.in.h: Likewise.
60059         * lib/se-selinux.in.h: Likewise.
60060         * lib/sockets.c: Likewise.
60061         * lib/symlink.c: Likewise.
60062         * lib/symlinkat.c: Likewise.
60063         * lib/unicodeio.c: Likewise.
60064         * lib/unistr.h: Likewise.
60065         * tests/test-areadlink.c: Likewise.
60066         * tests/test-areadlinkat.c: Likewise.
60067         * tests/test-filenamecat.c: Likewise.
60068         * tests/test-fseeko.c: Likewise.
60069         * tests/test-ftello.c: Likewise.
60070         * tests/test-getdate.c: Likewise.
60071         * tests/test-getgroups.c: Likewise.
60072         * tests/test-gethostname.c: Likewise.
60073         * tests/test-quotearg.c: Likewise.
60074         * tests/test-version-etc.c: Likewise.
60075         * tests/test-xalloc-die.c: Likewise.
60076         * tests/test-xfprintf-posix.c: Likewise.
60077         * tests/test-xprintf-posix.c: Likewise.
60078         * tests/test-xvasprintf.c: Likewise.
60080         tests: avoid compiler warnings
60081         * tests/test-fcntl.c (main): Delete unused parameters.
60082         * tests/test-freopen-safer.c (main): Likewise.
60083         * tests/test-xalloc-die.c (main): Mark unused parameters.
60084         * tests/test-fseeko.c (main): Likewise.
60085         * tests/test-ftello.c (main): Likewise.
60086         * tests/test-nanosleep.c (main): Avoid declaration warning.
60087         * tests/test-sleep.c (main): Likewise.
60088         * tests/test-unsetenv.c (main): Silence warning about string
60089         literal.
60090         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
60092 2009-12-23  Bruno Haible  <bruno@clisp.org>
60094         * tests/test-localename.c (test_locale_name): New function, extracted
60095         from main. Also test mixed situations.
60096         (test_locale_name_posix, test_locale_name_environ,
60097         test_locale_name_default): New functions.
60098         (main): Invoke them all.
60099         * modules/localename-tests (configure.ac): Test for newlocale.
60101 2009-12-23  Bruno Haible  <bruno@clisp.org>
60103         unistd: Ensure getcwd gets declared before being overridden.
60104         * lib/unistd.in.h: Conditionally include <io.h>.
60106 2009-12-22  Bruno Haible  <bruno@clisp.org>
60108         wchar: Diagnose broken combination of glibc and gcc versions and flags.
60109         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
60110         (gl_WCHAR_H): Invoke it.
60111         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
60112         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
60113         Reported by Karl Berry <karl@freefriends.org>.
60115 2009-12-22  Eric Blake  <ebb9@byu.net>
60117         math, unistd: avoid redundant includes
60118         * lib/math.in.h (isnan): No need to re-include <math.h>.
60119         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
60121         getsubopt: work around cygwin bug
60122         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
60123         avoid conflicting with system getsubopt.
60124         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
60125         bug.
60127         getopt: synchronize from glibc
60128         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
60129         parameter order.  Adjust all callers.
60130         (_getopt_internal_r, main): Adjust quoting in error messages.
60131         Drop considerations for outdated POSIX 1003.2 error message.
60132         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
60133         callers.
60134         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
60136         test-getopt: test stderr behavior
60137         * modules/getopt-posix-tests (Depends-on): Add dup2.
60138         * tests/test-getopt.c (ASSERT): Avoid stderr.
60139         (main): Move stderr to a temporary file.
60140         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
60141         Instead, add parameter to inform caller if output occurred.
60142         (test_getopt): Adjust all existing tests to expect silence, and
60143         add new tests of leading ":".
60144         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60145         glibc shortcomings with leading "-:" or "+:" in optstring.
60146         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60147         Likewise.
60148         * doc/posix-functions/getopt.texi (getopt): Likewise.
60150         test-getopt: enhance test
60151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
60152         supports optind=0.
60153         * tests/test-getopt.c (OPTIND_MIN): Move...
60154         * tests/test-getopt.h (OPTIND_MIN): ...here.
60155         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
60156         Require that optind=0 works, since modern BSD supports it in
60157         addition to optreset, and since coreutils expects it.
60158         (test_getopt_long_only): New test.
60159         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60160         glibc shortcomings with 'W;', and enforcement of optind=0.
60161         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60162         Likewise.
60164 2009-12-21  Bruno Haible  <bruno@clisp.org>
60166         localename: Improvements for MacOS X and Cygwin.
60167         * lib/localename.h (gl_locale_name_environ): New declaration.
60168         * lib/localename.c (gl_locale_name_environ): New function, extracted from
60169         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
60170         (gl_locale_name_posix): Invoke it.
60171         (gl_locale_name_default): Add comments. Use Windows native API also on
60172         Cygwin.
60174 2009-12-21  Bruno Haible  <bruno@clisp.org>
60176         Update list of Win32 locale ids.
60177         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
60178         (LANG_SAMI): Renamed from LANG_SAAMI.
60179         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
60180         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
60181         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
60182         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
60183         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
60184         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
60185         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
60186         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
60187         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
60188         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
60189         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
60190         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
60191         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
60192         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
60193         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
60194         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
60195         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
60196         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
60197         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
60198         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
60199         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
60200         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
60201         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
60202         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
60203         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
60204         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
60205         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
60206         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
60207         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
60208         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
60209         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
60210         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
60211         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
60212         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
60213         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
60214         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
60215         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
60216         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
60217         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
60218         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
60219         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
60220         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
60221         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
60222         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
60223         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
60224         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
60225         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
60226         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
60227         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
60228         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
60229         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
60230         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
60231         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
60232         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
60233         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
60234         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
60235         Add more languages and countries for Sami, Sorbian. Add more countries
60236         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
60237         for Pashto. Change country for Syriac, Tswana.
60239 2009-12-21  Eric Blake  <ebb9@byu.net>
60241         test-utimens: avoid spurious failure
60242         * tests/test-chown.h (nap): Factor...
60243         * tests/nap.h: ...into new file.
60244         * tests/test-lchown.h (nap): Avoid duplication.
60245         * tests/test-utimens-common.h (nap): Use shared implementation,
60246         necessary on file systems with 1-second resolution.
60247         * modules/chown-tests (Files): Include new file.
60248         * modules/fdutimensat-tests (Files): Likewise.
60249         * modules/futimens-tests (Files): Likewise.
60250         * modules/lchown-tests (Files): Likewise.
60251         * modules/openat-tests (Files): Likewise.
60252         * modules/utimens-tests (Files): Likewise.
60253         * modules/utimensat-tests (Files): Likewise.
60255 2009-12-19  Eric Blake  <ebb9@byu.net>
60257         futimens, utimensat: work around Linux bug
60258         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
60259         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60260         * lib/utimensat.c (rpl_utimensat): Work around it.
60261         * lib/futimens.c (rpl_futimens): Adjust comment.
60263         utimens: work around Linux ctime bug
60264         * lib/utimens.c (detect_ctime_bug): New helper function.
60265         (update_timespec): Differentiate between workaround needed for
60266         this bug vs. what is needed for systems that lack utimensat.
60267         (fdutimens, lutimens): Work around bug.
60269         utimens: check for ctime update
60270         * tests/test-utimens-common.h (check_ctime): Define.
60271         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
60272         * tests/test-futimens.h (test_futimens): Likewise.
60273         * tests/test-lutimens.h (test_lutimens): Likewise.
60274         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60275         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60277 2009-12-19  Bruno Haible  <bruno@clisp.org>
60279         dprintf-posix: Check against memory leak fixed on 2009-12-15.
60280         * tests/test-dprintf-posix2.sh: New file.
60281         * tests/test-dprintf-posix2.c: New file.
60282         * modules/dprintf-posix-tests (Files): Add them.
60283         (configure.ac): Check for getrlimit and setrlimit.
60284         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60286 2009-12-19  Bruno Haible  <bruno@clisp.org>
60288         fprintf-posix: Check against memory leak fixed on 2009-12-15.
60289         * tests/test-fprintf-posix3.sh: New file.
60290         * tests/test-fprintf-posix3.c: New file.
60291         * modules/fprintf-posix-tests (Files): Add them.
60292         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60294 2009-12-19  Eric Blake  <ebb9@byu.net>
60296         dirfd: fix prototype
60297         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60298         * lib/dirfd.c (dirfd): Likewise.
60300         canonicalize: reduce memory usage
60301         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60302         allocation to size.
60303         Reported by Solar Designer <solar@openwall.com>.
60305 2009-12-19  Bruno Haible  <bruno@clisp.org>
60307         New module attribute 'Applicability'.
60308         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60309         * gnulib-tool: New option --extract-applicability.
60310         (func_usage): Document it.
60311         (sed_extract_prog): Recognize it.
60312         (func_get_applicability): New function.
60313         (func_import): Generalize handling of 'link-warning' module.
60314         * modules/link-warning (Applicability): New section.
60315         * modules/arg-nonnull (Applicability): New section.
60316         Repoted by Simon Josefsson <simon@josefsson.org>.
60318 2009-12-19  Bruno Haible  <bruno@clisp.org>
60320         fflush: tweak
60321         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60322         * lib/fseeko.c (rpl_fseeko): Likewise.
60324 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60326         * lib/gl_list.h: Fix typo in comment.
60328 2009-12-16  Eric Blake  <ebb9@byu.net>
60330         fcntl: use to simplify other modules
60331         * modules/cloexec (Depends-on): Add fcntl.
60332         * modules/fchdir (Depends-on): Likewise.
60333         * modules/fd-safer-flag (Depends-on): Likewise.
60334         * modules/unistd-safer (Depends-on): Likewise.
60335         * modules/dup3 (configure.ac): Set module indicator.
60336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60337         missing.
60338         * lib/fchdir.c (_gl_register_dup): Fix comment.
60339         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60340         * lib/dup-safer.c (dup_safer): Likewise.
60341         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60342         * lib/dup3.c (dup3): Likewise.
60343         * tests/test-fchdir.c (main): Enhance test.
60344         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60346         fcntl: port portions of fcntl to mingw
60347         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60348         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60349         replacement for mingw.
60350         * modules/fcntl (Description): Update.
60351         (Depends-on): Add dup2.
60352         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60353         * modules/fcntl-h (Makefile.am): Substitute it.
60354         * lib/fcntl.in.h (fcntl): Update declaration.
60355         (F_DUPFD, F_GETFD): New macros, when needed.
60356         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60357         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60358         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60359         we now guarantee.
60361         fcntl: work around cygwin bug in F_DUPFD
60362         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60363         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60364         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60365         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60366         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60368         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60369         * modules/fcntl (Files): List new files.
60370         (configure.ac): Run a test.
60371         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60372         * lib/fcntl.c (rpl_fcntl): Likewise.
60373         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60374         (gl_FCNTL_H): Always replace fcntl.h.
60375         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60376         * lib/fcntl.in.h (fcntl): Declare replacement.
60377         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60378         needed, plus a witness.
60379         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60380         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60381         * tests/test-fcntl.c: New file.
60382         * modules/fcntl-tests: Likewise.
60384         binary-io: avoid potential compilation warning
60385         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60386         directives.
60388         fflush: avoid compilation error on NetBSD
60389         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60390         between off_t and fpos_t, since the latter is sometimes a struct.
60391         * lib/fseeko.c (rpl_fseeko): Likewise.
60392         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60394 2009-12-15  Eric Blake  <ebb9@byu.net>
60396         fcntl-h, stdio, sys_ioctl: fix declarations
60397         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60398         function must not take arguments.
60399         * lib/sys_ioctl.in.h (ioctl): Likewise.
60400         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60401         (open): Add a link warning.
60403 2009-12-15  Jim Meyering  <meyering@redhat.com>
60405         areadlink, areadlink-with-size: relax license to LGPLv2+
60406         * modules/areadlink (License): Relax to LGPLv2+.
60407         * modules/areadlink-with-size (License): Likewise.
60409 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60410             Bruno Haible  <bruno@clisp.org>
60412         *printf: Fix memory leak.
60413         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60414         * lib/vfprintf.c (vfprintf): Likewise.
60415         * lib/dprintf.c (dprintf): Likewise.
60416         * lib/vdprintf.c (vdprintf): Likewise.
60418 2009-12-14  Eric Blake  <ebb9@byu.net>
60420         accept4: adjust module dependencies
60421         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60423         utimens: one more try at avoiding compiler warning
60424         * lib/utimens.c (lutimens): Lower scope of result.
60426 2009-12-13  Bruno Haible  <bruno@clisp.org>
60428         Move the malloc checking from module 'list' to new module 'xlist'.
60429         * modules/xlist: New file.
60430         * lib/gl_xlist.h: New file.
60431         * lib/gl_xlist.c: New file.
60432         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60433         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60434         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60435         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60436         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60437         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60438         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60439         gl_sortedlist_nx_add): New declarations.
60440         (struct gl_list_implementation): Rename and change methods accordingly.
60441         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60442         (gl_list_nx_create): Renamed from gl_list_create.
60443         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60444         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60445         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60446         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60447         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60448         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60449         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60450         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60451         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60452         gl_list_create_empty.
60453         (gl_list_nx_create): Renamed from gl_list_create.
60454         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60455         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60456         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60457         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60458         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60459         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60460         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60461         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60462         * lib/gl_array_list.c: Don't include xalloc.h.
60463         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60464         NULL upon out-of-memory.
60465         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60466         out-of-memory.
60467         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60468         Change return type to 'int'.
60469         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60470         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60471         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60472         upon out-of-memory.
60473         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60474         upon out-of-memory.
60475         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60476         upon out-of-memory.
60477         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60478         upon out-of-memory.
60479         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60480         out-of-memory.
60481         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60482         Update.
60483         (gl_array_list_implementation): Update.
60484         * lib/gl_carray_list.c: Don't include xalloc.h.
60485         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60486         Return NULL upon out-of-memory.
60487         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60488         out-of-memory.
60489         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60490         Change return type to 'int'.
60491         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60492         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60493         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60494         upon out-of-memory.
60495         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60496         upon out-of-memory.
60497         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60498         out-of-memory.
60499         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60500         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60501         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60502         Update.
60503         (gl_carray_list_implementation): Update.
60504         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60505         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60506         gl_linked_create_empty. Return NULL upon out-of-memory.
60507         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60508         out-of-memory.
60509         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60510         Change return type to 'int'. Return -1 upon out-of-memory.
60511         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60512         out-of-memory.
60513         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60514         upon out-of-memory.
60515         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60516         upon out-of-memory.
60517         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60518         NULL upon out-of-memory.
60519         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60520         upon out-of-memory.
60521         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60522         out-of-memory.
60523         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60524         Update.
60525         * lib/gl_linked_list.c: Don't include xalloc.h.
60526         (gl_linked_list_implementation): Update.
60527         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60528         (add_to_bucket): Change return type to 'int'.
60529         (gl_linkedhash_list_implementation): Update.
60530         * lib/gl_anytree_list1.h (free_subtree): New function.
60531         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60532         gl_tree_create_empty. Return NULL upon out-of-memory.
60533         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60534         Change return type to 'int'. Return -1 upon out-of-memory.
60535         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60536         out-of-memory.
60537         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60538         (gl_tree_remove_node): New function, moved here from
60539         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60540         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60541         Update.
60542         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60543         malloc, not xmalloc. Return NULL upon out-of-memory.
60544         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60545         out-of-memory.
60546         (gl_tree_remove_node_from_tree): New function, extracted from
60547         gl_tree_remove_node.
60548         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60549         upon out-of-memory.
60550         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60551         out-of-memory.
60552         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60553         upon out-of-memory.
60554         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60555         upon out-of-memory.
60556         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60557         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
60558         not xmalloc. Return NULL upon out-of-memory.
60559         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60560         out-of-memory.
60561         (gl_tree_remove_node_from_tree): New function, extracted from
60562         gl_tree_remove_node.
60563         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60564         upon out-of-memory.
60565         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60566         out-of-memory.
60567         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60568         upon out-of-memory.
60569         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60570         upon out-of-memory.
60571         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60572         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
60573         gl_anytree_list1.h before gl_anyavltree_list2.h.
60574         (gl_avltree_list_implementation): Update.
60575         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
60576         gl_anytree_list1.h before gl_anyavltree_list2.h.
60577         (gl_rbtree_list_implementation): Update.
60578         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
60579         Change return type to 'int'. Return -1 upon out-of-memory. Use
60580         __builtin_expect.
60581         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
60582         (gl_avltreehash_list_implementation): Update.
60583         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
60584         (gl_rbtreehash_list_implementation): Update.
60585         * modules/array-list (Depends-on): Remove xalloc.
60586         * modules/carray-list (Depends-on): Likewise.
60587         * modules/linked-list (Depends-on): Likewise.
60588         * modules/linkedhash-list (Depends-on): Likewise.
60589         * modules/avltree-list (Depends-on): Likewise.
60590         * modules/rbtree-list (Depends-on): Likewise.
60591         * modules/avltreehash-list (Depends-on): Likewise.
60592         * modules/rbtreehash-list (Depends-on): Likewise.
60594         * modules/xsublist: New file.
60595         * lib/gl_xsublist.h: New file.
60596         * lib/gl_xsublist.c: New file.
60597         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
60598         (gl_sublist_nx_create): New declaration.
60599         * lib/gl_sublist.c: Don't include xalloc.h.
60600         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
60601         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
60602         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
60603         Change return type to 'int'. Return -1 upon out-of-memory.
60604         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
60605         upon out-of-memory.
60606         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
60607         NULL upon out-of-memory.
60608         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
60609         upon out-of-memory.
60610         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
60611         NULL upon out-of-memory.
60612         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
60613         NULL upon out-of-memory.
60614         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
60615         upon out-of-memory.
60616         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
60617         (gl_sublist_list_implementation): Update.
60618         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
60619         upon out-of-memory.
60620         * modules/sublist (Depends-on): Remove xalloc.
60622         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
60623         * tests/test-carray_list.c: Likewise.
60624         * tests/test-linked_list.c: Likewise.
60625         * tests/test-linkedhash_list.c: Likewise.
60626         * tests/test-avltree_list.c: Likewise.
60627         * tests/test-rbtree_list.c: Likewise.
60628         * tests/test-avltreehash_list.c: Likewise.
60629         * tests/test-rbtreehash_list.c: Likewise.
60630         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
60631         * modules/carray-list-tests (Makefile.am): Likewise.
60632         * modules/linked-list-tests (Makefile.am): Likewise.
60633         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60634         * modules/avltree-list-tests (Makefile.am): Likewise.
60635         * modules/rbtree-list-tests (Makefile.am): Likewise.
60636         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60637         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60639         * NEWS: Mention the changes.
60641         * lib/clean-temp.c: Include gl_xlist.h.
60642         * modules/clean-temp (Depends-on): Add xlist.
60644         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
60645         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
60647         * tests/test-array_oset.c: Include gl_xlist.h.
60648         * modules/array-oset-tests (Depends-on): Add xlist.
60650         Reported by José E. Marchesi <jemarch@gnu.org>.
60652 2009-12-13  Bruno Haible  <bruno@clisp.org>
60654         Move the malloc checking from module 'oset' to new module 'xoset'.
60655         * modules/xoset: New file.
60656         * lib/gl_xoset.h: New file.
60657         * lib/gl_xoset.c: New file.
60658         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
60659         declarations.
60660         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
60661         (struct gl_oset_implementation): Rename and change methods accordingly.
60662         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
60663         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60664         'int'. Mark as __warn_unused_result__.
60665         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
60666         gl_oset_create_empty.
60667         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60668         'int'.
60669         * lib/gl_array_oset.c: Don't include xalloc.h.
60670         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
60671         malloc, not xmalloc.
60672         (grow): Change return type to 'int'. Don't call xalloc_die.
60673         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
60674         to 'int'.
60675         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
60676         'int'.
60677         (gl_array_oset_implementation): Update.
60678         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
60679         gl_tree_create_empty.
60680         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
60681         'int'.
60682         * lib/gl_avltree_oset.c: Don't include xalloc.h.
60683         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60684         xmalloc.
60685         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60686         not xmalloc.
60687         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60688         xmalloc.
60689         (gl_avltree_oset_implementation): Update.
60690         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
60691         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60692         xmalloc.
60693         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60694         not xmalloc.
60695         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60696         xmalloc.
60697         (gl_rbtree_oset_implementation): Update.
60698         * modules/array-oset (Depends-on): Remove xalloc.
60699         * modules/avltree-oset (Depends-on): Likewise.
60700         * modules/rbtree-oset (Depends-on): Likewise.
60701         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
60702         * tests/test-avltree_oset.c: Likewise.
60703         * tests/test-rbtree_oset.c: Likewise.
60704         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60705         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
60706         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60707         * NEWS: Mention the change.
60709 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
60711         maint.mk: allow a project to override release-prep commands
60712         * top/maint.mk (alpha, beta, stable): Move release-preparatory
60713         commands into a new rule.
60714         (release-prep): New rule.
60715         (release-prep-hook): New overridable variable.
60717 2009-12-13  Bruno Haible  <bruno@clisp.org>
60719         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
60721 2009-12-13  Jim Meyering  <meyering@redhat.com>
60723         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
60724         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
60726 2009-12-12  Bruno Haible  <bruno@clisp.org>
60728         duplocale: Tweak.
60729         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
60731 2009-12-12  Karl Berry  <karl@gnu.org>
60733         * config/srclist.txt (strtoll.c): tab changes, no more sync.
60735 2009-12-12  Bruno Haible  <bruno@clisp.org>
60737         * m4/po.m4: Undo incorrect untabification.
60739 2009-12-12  Bruno Haible  <bruno@clisp.org>
60741         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
60742         * modules/c-strtod (Depends-on): Add locale.
60743         * modules/c-strtold (Depends-on): Likewise.
60745 2009-12-12  Bruno Haible  <bruno@clisp.org>
60747         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
60749 2009-12-11  Eric Blake  <ebb9@byu.net>
60751         setenv: relax requirement in light of POSIX ruling
60752         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
60753         not NULL.
60754         * tests/test-setenv.c (main): Relax test.
60755         * tests/test-unsetenv.c (main): Likewise.
60756         * doc/posix-functions/setenv.texi (setenv): Document this.
60757         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
60759 2009-12-11  Bruno Haible  <bruno@clisp.org>
60761         New module 'fd-safer-flag'.
60762         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
60763         * lib/dup-safer.c (dup_safer_flag): Remove function.
60764         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
60765         * lib/fd-safer.c (fd_safer_flag): Remove function.
60766         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
60767         * modules/cloexec (configure.ac): Drop indicator macro.
60768         * modules/fd-safer-flag: New file.
60769         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
60770         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
60771         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
60773 2009-12-11  Bruno Haible  <bruno@clisp.org>
60775         Tests for module 'nl_langinfo'.
60776         * modules/nl_langinfo-tests: New file.
60777         * tests/test-nl_langinfo.sh: New file.
60778         * tests/test-nl_langinfo.c: New file.
60780         New module 'nl_langinfo'.
60781         * lib/nl_langinfo.c: New file.
60782         * m4/nl_langinfo.m4: New file.
60783         * modules/nl_langinfo: New file.
60784         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
60786 2009-12-11  Bruno Haible  <bruno@clisp.org>
60788         Tests for module 'langinfo'.
60789         * modules/langinfo-tests: New file.
60790         * tests/test-langinfo.c: New file.
60792         New module 'langinfo'.
60793         * lib/langinfo.in.h: New file.
60794         * m4/langinfo_h.m4: New file.
60795         * modules/langinfo: New file.
60796         * doc/posix-headers/langinfo.texi: Mention the new module.
60798 2009-12-11  Bruno Haible  <bruno@clisp.org>
60800         * lib/config.charset: Untabify.
60802 2009-12-11  Bruno Haible  <bruno@clisp.org>
60804         * modules/unistd-safer (configure.ac): Drop indicator macro.
60806 2009-12-11  Bruno Haible  <bruno@clisp.org>
60808         Move pipe2-safer code to its own file.
60809         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
60810         * lib/pipe-safer.c (pipe2_safer): Remove function.
60811         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
60812         (Makefile.am): Add it to lib_SOURCES.
60814 2009-12-10  Bruno Haible  <bruno@clisp.org>
60816         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
60818 2009-12-10  Bruno Haible  <bruno@clisp.org>
60820         Declare which arguments expect non-NULL values, for GCC and clang.
60821         * build-aux/arg-nonnull.h: New file.
60822         * modules/arg-nonnull: New file.
60823         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
60824         (inet_ntop, inet_pton): Use it.
60825         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
60826         (closedir, dirfd, opendir, scandir, alphasort): Use it.
60827         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
60828         (open, openat): Use it.
60829         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
60830         (fnmatch): Use it.
60831         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
60832         (getopt, getopt_long, getopt_long_only): Use it.
60833         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
60834         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
60835         Use it.
60836         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
60837         (iconv_open): Use it.
60838         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
60839         (strtoimax, strtoumax): Use it.
60840         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
60841         (duplocale): Use it.
60842         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
60843         (frexp, frexpl): Use it.
60844         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
60845         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
60846         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
60847         (tsearch, tfind, tdelete, twalk): Use it.
60848         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
60849         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
60850         sigpending): Use it.
60851         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
60852         (posix_spawn, posix_spawnp, posix_spawnattr_init,
60853         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
60854         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
60855         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
60856         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
60857         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
60858         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
60859         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
60860         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
60861         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
60862         Use it.
60863         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
60864         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
60865         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
60866         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
60867         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
60868         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
60869         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
60870         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
60871         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
60872         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
60873         strtoull, unsetenv): Use it.
60874         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
60875         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
60876         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
60877         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
60878         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
60879         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
60880         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
60881         (strcasecmp, strncasecmp): Use it.
60882         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
60883         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
60884         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
60885         rpl_setsockopt): Use it.
60886         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
60887         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
60888         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
60889         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
60890         (gettimeofday): Use it.
60891         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
60892         (times): Use it.
60893         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
60894         (uname): Use it.
60895         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
60896         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
60897         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
60898         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
60899         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
60900         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
60901         unlinkat, write): Use it.
60902         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
60903         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
60904         * lib/argv-iter.h: Include arg-nonnull.h.
60905         (_ATTRIBUTE_NONNULL_): Remove macro.
60906         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
60907         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
60908         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
60909         optimization.
60910         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
60911         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
60912         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
60913         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
60914         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
60915         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
60916         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
60917         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
60918         * modules/arpa_inet (Depends-on): Add arg-nonnull.
60919         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
60920         * modules/dirent (Depends-on): Add arg-nonnull.
60921         (Makefile.am): Insert arg-nonnull.h into dirent.h.
60922         * modules/fcntl-h (Depends-on): Add arg-nonnull.
60923         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
60924         * modules/fnmatch (Depends-on): Add arg-nonnull.
60925         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
60926         * modules/getopt-posix (Depends-on): Add arg-nonnull.
60927         (Makefile.am): Insert arg-nonnull.h into getopt.h.
60928         * modules/glob (Depends-on): Add arg-nonnull.
60929         (Makefile.am): Insert arg-nonnull.h into glob.h.
60930         * modules/iconv_open (Depends-on): Add arg-nonnull.
60931         (Makefile.am): Insert arg-nonnull.h into iconv.h.
60932         * modules/inttypes (Depends-on): Add arg-nonnull.
60933         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
60934         * modules/locale (Depends-on): Add arg-nonnull.
60935         (Makefile.am): Insert arg-nonnull.h into locale.h.
60936         * modules/math (Depends-on): Add arg-nonnull.
60937         (Makefile.am): Insert arg-nonnull.h into math.h.
60938         * modules/netdb (Depends-on): Add arg-nonnull.
60939         (Makefile.am): Insert arg-nonnull.h into netdb.h.
60940         * modules/search (Depends-on): Add arg-nonnull.
60941         (Makefile.am): Insert arg-nonnull.h into search.h.
60942         * modules/signal (Depends-on): Add arg-nonnull.
60943         (Makefile.am): Insert arg-nonnull.h into signal.h.
60944         * modules/spawn (Depends-on): Add arg-nonnull.
60945         (Makefile.am): Insert arg-nonnull.h into spawn.h.
60946         * modules/stdio (Depends-on): Add arg-nonnull.
60947         (Makefile.am): Insert arg-nonnull.h into stdio.h.
60948         * modules/stdlib (Depends-on): Add arg-nonnull.
60949         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
60950         * modules/string (Depends-on): Add arg-nonnull.
60951         (Makefile.am): Insert arg-nonnull.h into string.h.
60952         * modules/strings (Depends-on): Add arg-nonnull.
60953         (Makefile.am): Insert arg-nonnull.h into strings.h.
60954         * modules/sys_socket (Depends-on): Add arg-nonnull.
60955         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
60956         * modules/sys_stat (Depends-on): Add arg-nonnull.
60957         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
60958         * modules/sys_time (Depends-on): Add arg-nonnull.
60959         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
60960         * modules/sys_times (Depends-on): Add arg-nonnull.
60961         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
60962         * modules/sys_utsname (Depends-on): Add arg-nonnull.
60963         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
60964         * modules/time (Depends-on): Add arg-nonnull.
60965         (Makefile.am): Insert arg-nonnull.h into time.h.
60966         * modules/unistd (Depends-on): Add arg-nonnull.
60967         (Makefile.am): Insert arg-nonnull.h into unistd.h.
60968         * modules/wchar (Depends-on): Add arg-nonnull.
60969         (Makefile.am): Insert arg-nonnull.h into wchar.h.
60970         * modules/argv-iter (Depends-on): Add arg-nonnull.
60971         * tests/test-canonicalize.c (null_ptr): New function.
60972         (main): Use it.
60973         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
60974         (main): Use it.
60975         * tests/test-memmem.c (null_ptr): New function.
60976         (main): Use it.
60977         Reported by Jim Meyering.
60979 2009-12-10  Bruno Haible  <bruno@clisp.org>
60981         Use spaces for indentation, not tabs.
60982         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
60983         * m4/*.m4: Untabify.
60984         * build-aux/*.h: Untabify.
60985         * tests/**/*.[hc]: Untabify.
60986         * README: New section "Indent with spaces, not TABs", based on
60987         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
60988         * NEWS: Mention the change.
60990 2009-12-10  Bruno Haible  <bruno@clisp.org>
60992         pty test: Fix link error.
60993         * modules/pty-tests (Makefile.am): Add the default LDADD value to
60994         test_pty_LDADD.
60996 2009-12-07  Simon Josefsson  <simon@josefsson.org>
60998         * modules/pty: New file.
60999         * modules/pty-tests: New file.
61000         * m4/pty.m4: New file.
61001         * tests/test-pty.c: New file.
61002         * doc/glibc-headers/pty.texi: Modified.
61003         * doc/glibc-functions/forkpty.texi: Modified.
61004         * doc/glibc-functions/openpty.texi: Modified.
61006 2009-12-10  Bruno Haible  <bruno@clisp.org>
61008         Avoid syntax error in C++ mode.
61009         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
61011 2009-12-10  Bruno Haible  <bruno@clisp.org>
61013         Use sed with option -e.
61014         * gnulib-tool (func_version, func_emit_copyright_notice,
61015         func_emit_initmacro_end, func_import, func_create_testdir): Pass
61016         option -e to sed.
61017         * modules/link-warning (Makefile.am): Likewise.
61019 2009-12-10  Jim Meyering  <meyering@redhat.com>
61021         mgetgroups: do not write bytes beyond end of malloc'd buffer
61022         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
61023         username, we call getgroups with a one-element-shorter buffer,
61024         but still told it the length was original, max_n_groups.
61026 2009-12-09  Eric Blake  <ebb9@byu.net>
61028         cloexec: relax license
61029         * modules/cloexec (Maintainer): Add myself.
61030         (License): Use LGPL, not GPL.
61032         link-warning: optimize generation
61033         * modules/link-warning (Makefile.am): Reduce process usage.
61035 2009-12-09  Bruno Haible  <bruno@clisp.org>
61037         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
61038         workaround was added on 2009-11-17.
61040 2009-12-09  Jim Meyering  <meyering@redhat.com>
61041             Bruno Haible  <bruno@clisp.org>
61043         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
61044         * modules/link-warning (Makefile.am): Make the comment-removing sed
61045         command more robust in the face of bootstrap-prepended comment lines.
61047 2009-12-09  Bruno Haible  <bruno@clisp.org>
61049         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
61050         most one group.
61052 2009-12-09  Simon Josefsson  <simon@josefsson.org>
61053             Bruno Haible  <bruno@clisp.org>
61055         * build-aux/link-warning.h: Add copyright notice.
61056         * modules/link-warning (Makefile.am): Generate link-warning.h from
61057         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
61058         * NEWS: Mention change in link-warning module.
61059         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
61060         * modules/dirent (Makefile.am): Add dependency to dirent.h.
61061         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
61062         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
61063         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
61064         * modules/math (Makefile.am): Add dependency to math.h.
61065         * modules/search (Makefile.am): Add dependency to search.h.
61066         * modules/signal (Makefile.am): Add dependency to signal.h.
61067         * modules/spawn (Makefile.am): Add dependency to spawn.h.
61068         * modules/stdio (Makefile.am): Add dependency to stdio.h.
61069         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
61070         * modules/string (Makefile.am): Add dependency to string.h.
61071         * modules/strings (Makefile.am): Add dependency to strings.h.
61072         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
61073         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
61074         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
61075         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
61076         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
61077         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
61078         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
61079         * modules/unistd (Makefile.am): Add dependency to unistd.h.
61080         * modules/wchar (Makefile.am): Add dependency to wchar.h.
61082 2009-12-09  Bruno Haible  <bruno@clisp.org>
61084         fchdir: Optimize away rpl_fstat when possible.
61085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
61086         REPLACE_OPEN_DIRECTORY.
61087         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
61089 2009-12-09  Bruno Haible  <bruno@clisp.org>
61091         * lib/fchdir.c: Update comment.
61093 2009-12-09  Bruno Haible  <bruno@clisp.org>
61095         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
61097 2009-12-08  Eric Blake  <ebb9@byu.net>
61099         fchdir: avoid memory leak on re-registration.
61100         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
61102 2009-12-08  Jim Meyering  <meyering@redhat.com>
61104         init.sh: avoid Solaris 10 /bin/sh portability problem
61105         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
61106         sourced script:
61107           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
61108           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
61109           bar
61110         tests/init.sh relied on that, accepting a --set-path=DIR argument,
61111         and two tests used that idiom.
61112         * tests/init.sh: Update suggested usage comments.
61113         (path_prepend_): New function, to be used in place
61114         of the --src-path=DIR option.
61115         (setup_): Move PATH-prepending code into path_prepend_.
61116         * tests/test-pread.sh: Adapt to new usage.
61117         * tests/test-xalloc-die.sh: Likewise.
61119 2009-12-08  Simon Josefsson  <simon@josefsson.org>
61121         * doc/gnulib.texi (Glibc pty.h): Add.
61122         * doc/glibc-functions/forkpty.texi: Add.
61123         * doc/glibc-functions/openpty.texi: Add.
61124         Suggested by Bruno Haible.
61126 2009-12-08  Eric Blake  <ebb9@byu.net>
61128         fchdir: fix logic bugs
61129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
61130         * tests/test-fchdir.c (main): Enhance test.
61131         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
61132         is in use.
61134         dup2: fix logic bugs
61135         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
61136         REPLACE_DUP2 to decide when rpl_dup2 is needed.
61137         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
61138         exists.
61139         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
61141 2009-12-07  Eric Blake  <ebb9@byu.net>
61143         unlink: fix m4 detection
61144         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
61146         unistd-safer: add unit test
61147         * modules/unistd-safer-tests: New file.
61148         * tests/test-dup-safer.c: Likewise.
61149         * tests/test-cloexec.c (setmode): Avoid compiler warning.
61150         * tests/test-dup2.c (setmode): Likewise.
61151         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
61153         cloexec: preserve text vs. binary across dup_cloexec
61154         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
61155         mode.
61156         * modules/dup2-tests (Depends-on): Add binary-io.
61157         * modules/cloexec-tests (Depends-on): Likewise.
61158         * tests/test-dup2.c (setmode, is_mode): New helpers.
61159         (main): Add tests that translation mode is preserved.
61160         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
61161         Reported by Bruno Haible.
61163         mgetgroups: reduce duplicate listings
61164         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
61165         resulting array.
61166         * tests/test-chown.h (test_chown): Simplify client.
61167         * tests/test-lchown.h (test_lchown): Likewise.
61169 2009-12-06  Bruno Haible  <bruno@clisp.org>
61171         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
61172         value.
61174 2009-12-06  Bruno Haible  <bruno@clisp.org>
61176         * lib/progname.c: Include stdio.h, stdlib.h.
61177         (set_program_name): Reject a NULL argument.
61179 2009-12-05  Eric Blake  <ebb9@byu.net>
61181         pipe2-safer: new module
61182         * modules/pipe2-safer: New file.
61183         * lib/unistd-safer.h (pipe2_safer): New prototype.
61184         * lib/unistd--.h (pipe2): New wrapper.
61185         * lib/pipe-safer.c (pipe2_safer): New function.
61186         * modules/pipe (Depends-on): Add pipe2-safer.
61187         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
61189         stdlib-safer: preserve cloexec flag for mkostemp[s]
61190         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
61191         fd_safer_flag.
61193         unistd-safer: allow preservation of cloexec status via flag
61194         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
61195         prototypes.
61196         * lib/dup-safer.c (dup_safer_flag): New function.
61197         * lib/fd-safer.c (fd_safer_flag): Likewise.
61198         * modules/cloexec (configure.ac): Set witness.
61200         test-dup2: enhance test
61201         * modules/dup2-tests (Depends-on): Add cloexec.
61202         * tests/test-dup2.c (main): Enhance test.
61204         cloexec: add dup_cloexec
61205         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
61206         header and comments.
61207         * lib/cloexec.c (set_cloexec_flag): Add comments.
61208         (dup_cloexec): New function, with mingw implementation borrowed
61209         from...
61210         * lib/w32spawn.h (dup_noinherit): ...here.
61211         * modules/execute (Depends-on): Add cloexec.
61212         * modules/pipe (Depends-on): Likewise.
61213         * modules/cloexec (Depends-on): Add dup2.
61214         * modules/cloexec-tests (Files): New file.
61215         * tests/test-cloexec.c: Likewise.
61217         test-xalloc-die: fix test for mingw
61218         * modules/xalloc-die-tests (Files): Add tests/init.sh.
61219         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
61220         directory and .exe suffix off argv[0] output.
61222         test-fseeko: fix test for mingw
61223         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
61224         than undefining fseek, so test will pass on mingw.
61226 2009-12-05  Bruno Haible  <bruno@clisp.org>
61228         * lib/progname.h (set_program_name): Clarify specification.
61229         * lib/progname.c (set_program_name): Likewise.
61230         Reported by Jim Meyering.
61232 2009-12-05  Jim Meyering  <meyering@redhat.com>
61234         maint.mk: backslash-escape parens in default regexp
61235         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
61236         backslash-escape the literal parentheses.
61238         maint.mk: news-date-check: use grep -E
61239         * top/maint.mk (today): Define a Make variable, not a...
61240         (news-date-check): ...shell variable.
61241         (news-date-regexp): Use the Make variable.
61242         Use grep's -E option.  Change the failing diagnostic to mention
61243         the variable, $(news-date-regexp).
61245 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
61247         maintainer-makefile: allow customization of NEWS entry format
61248         * top/maint.mk (news-date-regexp): New overridable variable.
61249         (news-date-check): Use it.
61251 2009-12-04  Eric Blake  <ebb9@byu.net>
61253         mgetgroups: add xgetgroups, and avoid ENOSYS failures
61254         * lib/mgetgroups.h (xgetgroups): New prototype.
61255         * lib/mgetgroups.c (xgetgroups): New wrapper.
61256         (mgetgroups): Handle ENOSYS.
61257         * modules/mgetgroups (Depends-on): Add realloc.
61258         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
61260         mgetgroups: avoid argument promotion issues with -1
61261         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
61262         for invalid gid_t.
61263         * tests/test-chown.h (getegid, test_chown): Likewise.
61264         * tests/test-lchown.h (getegid, test_lchown): Likewise.
61266 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
61268         exclude: Fix header file problems.
61269         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
61271 2009-12-01  Jim Meyering  <meyering@redhat.com>
61273         fts: fts_open: do not let an empty string cause immediate failure
61274         This is required in support of GNU rm, for which the command
61275         "rm A '' B" must process and remove both A and B, in spite of
61276         the empty string argument.
61277         * lib/fts.c (fts_open): Do not let the presence of an empty string
61278         cause fts_open to fail immediately.  Most fts-using tools must be
61279         able to process all arguments, in order, and can be expected to
61280         diagnose such arguments themselves.
61282 2009-11-30  Eric Blake  <ebb9@byu.net>
61284         utimens: fix compilation error
61285         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
61286         Declare variable at right scope.
61288 2009-11-29  Jim Meyering  <meyering@redhat.com>
61290         bootstrap: handle perl-5.11's changed --version output
61291         * build-aux/bootstrap (get_version): Handle perl separately,
61292         since perl-5.11's --version output is different.
61294 2009-11-28  Jim Meyering  <meyering@redhat.com>
61296         userspec: depend on the inttostr module, too
61297         * modules/userspec (Depends-on): Add inttostr.
61299         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61300         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61301         number of MAXUID when it evaluates to (uid_t) -1.
61302         Likewise for group ID.  Reported by Matt McCutchen in
61303         <http://savannah.gnu.org/bugs/?28113>
61305         userspec: reformat to use spaces, not TABs
61306         * lib/userspec.c: Expand TABs to spaces.
61307         Add Emacs' "indent-tabs-mode: nil" hint.
61309 2009-11-27  Eric Blake  <ebb9@byu.net>
61311         getopt-gnu: flush out another BSD bug
61312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61313         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61314         flush out BSD bug.
61315         * tests/test-getopt.h (test_getopt): End lists with NULL.
61316         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61317         (test_getopt_long_posix): Enhance test.
61318         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61319         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61320         getopt-gnu.
61321         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61322         Likewise.
61324 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61326         * modules/idpriv-droptemp-tests (Notice): Fix text.
61328 2009-11-27  Jim Meyering  <meyering@redhat.com>
61330         test-xalloc-die: avoid spurious failure due to libtool argv difference
61331         In a libtool-enabled project, this test would fail due to a difference
61332         in the emitted program name, e.g.,
61333         -test-xalloc-die: memory exhausted
61334         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61335         Use program to avoid that.
61336         * modules/xalloc-die-tests (Depends-on): Add progname.
61337         * tests/test-xalloc-die.c: Include progname.h".
61338         (program_name): Remove decl.
61339         (main): Call set_program_name.
61340         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61342 2009-11-26  Richard Jones  <rjones@redhat.com>
61344         w32sock: leave win32 error in place.
61345         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61347 2009-11-26  Eric Blake  <ebb9@byu.net>
61349         init.sh: suggest to use skip_ and fail_ functions in comments
61350         * tests/init.sh: Add a sentence.
61352 2009-11-25  Bruno Haible  <bruno@clisp.org>
61354         init.sh: add documentation in comments
61355         * tests/init.sh: Add some developer and user documentation.
61357 2009-11-26  Jim Meyering  <meyering@redhat.com>
61359         init.sh: accommodate even those who specify bogus srcdir manually
61360         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61361         configure-time tests to be sanitized, so that there is no need to
61362         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61363         (with no double quotes) suffices.  However, since tests may be
61364         invoked manually, and since you may explicitly set srcdir to the
61365         name of a directory containing spaces, do quote its uses here.
61366         * tests/test-pread.sh: Likewise.
61367         Suggested by Bruno Haible.
61369         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61370         * tests/test-pread.sh: Write no data into the pipe, because
61371         test-pread actually reads none.  This avoids a diagnostic,
61372         "bash: echo: write error: Broken pipe", that arises in the unusual
61373         event something is ignoring SIGPIPE, and might be interpreted
61374         as some sort of failure.  Reported by Bruno Haible.
61376 2009-11-25  Jim Meyering  <meyering@redhat.com>
61378         test-pread: cover failure with ESPIPE and EINVAL
61379         * tests/test-pread.c (main): Test for failure, too.
61380         * tests/test-pread.sh: Invoke with stdin on a pipe.
61381         Suggested by Eric Blake.
61383         pread: improvement and fix
61384         * modules/pread (Depends-on): Depend on lseek, for portability to
61385         e.g., mingw.  Suggested by Eric Blake.
61386         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61388         unistd.in.h: correct declaration of pread
61389         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61390         Reported by Richard W.M. Jones.
61392         test-pread.sh: distribute the test script
61393         * modules/pread-tests (Files): Include test-pread.sh.
61395         test-pread.sh: clean up
61396         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61397         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61398         That is unnecessary, since it's always ".".
61399         Suggestion from Eric Blake.
61401         test-pread.sh: make executable
61402         * tests/test-pread.sh: Set executable bit.
61403         Reported by Eric Blake.
61405         correct typo in test-pread.sh
61406         * tests/test-pread.sh: Add #! line.
61408         test pread
61409         * tests/test-pread.c: New file.
61410         * tests/test-pread.sh: Likewise.
61411         * modules/pread-tests: Likewise.
61413         pread: new module
61414         * modules/pread: New file.
61415         * lib/unistd.in.h (pread): Define/declare.
61416         * lib/pread.c (pread): New file.
61417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61418         * modules/unistd (Makefile.am): Substitute witnesses.
61419         * doc/posix-functions/pread.texi (pread): Update.
61420         * MODULES.html.sh: Add pread.
61422 2009-11-25  Jim Meyering  <meyering@redhat.com>
61424         tests/init.sh: new file to be used via most *.sh tests
61425         * tests/init.sh: New file.
61427 2009-11-25  Eric Blake  <ebb9@byu.net>
61429         utimens: work around older Linux failure with symlinks
61430         * lib/utimens.c (lutimensat_works_really): New variable.
61431         (fdutimens, lutimens): Use it to manage kernels that support
61432         nanosecond times on files, but not on symlinks.
61433         Reported by Ondřej Vašík.
61435         utimes: fix configure grammar
61436         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61438 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61440         regex: Fix fastmap for multibyte character ranges.
61441         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61442         characters when a multibyte character range is included.
61444 2009-11-22  Andy Wingo  <wingo@pobox.com>
61446         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61447         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61449 2009-11-24  Bruno Haible  <bruno@clisp.org>
61451         doc: Most *_l functions exist in MacOS X 10.5.
61452         * doc/posix-functions/duplocale.texi: Update platforms list.
61453         * doc/posix-functions/freelocale.texi: Likewise.
61454         * doc/posix-functions/newlocale.texi: Likewise.
61455         * doc/posix-functions/uselocale.texi: Likewise.
61456         * doc/posix-functions/isalnum_l.texi: Likewise.
61457         * doc/posix-functions/isalpha_l.texi: Likewise.
61458         * doc/posix-functions/isblank_l.texi: Likewise.
61459         * doc/posix-functions/iscntrl_l.texi: Likewise.
61460         * doc/posix-functions/isdigit_l.texi: Likewise.
61461         * doc/posix-functions/isgraph_l.texi: Likewise.
61462         * doc/posix-functions/islower_l.texi: Likewise.
61463         * doc/posix-functions/isprint_l.texi: Likewise.
61464         * doc/posix-functions/ispunct_l.texi: Likewise.
61465         * doc/posix-functions/isspace_l.texi: Likewise.
61466         * doc/posix-functions/isupper_l.texi: Likewise.
61467         * doc/posix-functions/iswalnum_l.texi: Likewise.
61468         * doc/posix-functions/iswalpha_l.texi: Likewise.
61469         * doc/posix-functions/iswblank_l.texi: Likewise.
61470         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61471         * doc/posix-functions/iswctype_l.texi: Likewise.
61472         * doc/posix-functions/iswdigit_l.texi: Likewise.
61473         * doc/posix-functions/iswgraph_l.texi: Likewise.
61474         * doc/posix-functions/iswlower_l.texi: Likewise.
61475         * doc/posix-functions/iswprint_l.texi: Likewise.
61476         * doc/posix-functions/iswpunct_l.texi: Likewise.
61477         * doc/posix-functions/iswspace_l.texi: Likewise.
61478         * doc/posix-functions/iswupper_l.texi: Likewise.
61479         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61480         * doc/posix-functions/isxdigit_l.texi: Likewise.
61481         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61482         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61483         * doc/posix-functions/strcoll_l.texi: Likewise.
61484         * doc/posix-functions/strfmon_l.texi: Likewise.
61485         * doc/posix-functions/strftime_l.texi: Likewise.
61486         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61487         * doc/posix-functions/strxfrm_l.texi: Likewise.
61488         * doc/posix-functions/tolower_l.texi: Likewise.
61489         * doc/posix-functions/toupper_l.texi: Likewise.
61490         * doc/posix-functions/towctrans_l.texi: Likewise.
61491         * doc/posix-functions/towlower_l.texi: Likewise.
61492         * doc/posix-functions/towupper_l.texi: Likewise.
61493         * doc/posix-functions/wcscoll_l.texi: Likewise.
61494         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61495         * doc/posix-functions/wctrans_l.texi: Likewise.
61496         * doc/posix-functions/wctype_l.texi: Likewise.
61497         * doc/glibc-functions/strptime_l.texi: Likewise.
61498         * doc/glibc-functions/strtod_l.texi: Likewise.
61499         * doc/glibc-functions/strtof_l.texi: Likewise.
61500         * doc/glibc-functions/strtol_l.texi: Likewise.
61501         * doc/glibc-functions/strtold_l.texi: Likewise.
61502         * doc/glibc-functions/strtoll_l.texi: Likewise.
61503         * doc/glibc-functions/strtoul_l.texi: Likewise.
61504         * doc/glibc-functions/strtoull_l.texi: Likewise.
61505         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61506         * doc/glibc-functions/wcstod_l.texi: Likewise.
61507         * doc/glibc-functions/wcstof_l.texi: Likewise.
61508         * doc/glibc-functions/wcstol_l.texi: Likewise.
61509         * doc/glibc-functions/wcstold_l.texi: Likewise.
61510         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61511         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61512         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61514 2009-11-24  Bruno Haible  <bruno@clisp.org>
61516         duplocale: Fix logic bug.
61517         * lib/duplocale.c: Don't include <langinfo.h>.
61518         (_NL_LOCALE_NAME): Remove macro.
61519         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61520         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61522 2009-11-23  Jim Meyering  <meyering@redhat.com>
61524         test-update-copyright: don't hard-code /usr/bin/perl
61525         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61526         perl to print the current year.  Gilles Espinasse reported that
61527         the replaced use of perl was hard-coded as /usr/bin/perl.
61529 2009-11-23  Bruno Haible  <bruno@clisp.org>
61531         duplocale: Add support for glibc 2.3.x.
61532         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61534 2009-11-22  Bruno Haible  <bruno@clisp.org>
61536         vasnprintf: Tiny optimization.
61537         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61538         MacOS X.
61540 2009-11-22  Bruno Haible  <bruno@clisp.org>
61542         Tests for module 'duplocale'.
61543         * modules/duplocale-tests: New file.
61544         * tests/test-duplocale.c: New file.
61546         New module 'duplocale'.
61547         * m4/duplocale.m4: New file.
61548         * lib/locale.in.h (duplocale): New declaration.
61549         * lib/duplocale.c: New file.
61550         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
61551         gl_LOCALE_H_DEFAULTS): New macros.
61552         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
61553         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
61554         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
61555         REPLACE_DUPLOCALE.
61556         * modules/duplocale: New file.
61557         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
61559 2009-11-22  Bruno Haible  <bruno@clisp.org>
61561         * modules/locale-tests (configure.ac): Test for newlocale function.
61562         * tests/test-locale.c: When the system has extended locale functions,
61563         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
61565         locale: Make locale_t available when possible.
61566         * lib/locale.in.h: Include <xlocale.h> when it exists.
61567         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
61568         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
61569         * modules/locale (Depends-on): Add extensions.
61570         (Makefile.am): Also substitute HAVE_XLOCALE_H.
61571         * doc/posix-headers/locale.texi: Document the problem with locale_t.
61573 2009-11-22  Bruno Haible  <bruno@clisp.org>
61575         Add comments.
61576         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
61577         invocation.
61578         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61579         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61580         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61582 2009-11-22  Bruno Haible  <bruno@clisp.org>
61584         error: account for the possibility of freopen (stdout).
61585         * lib/error.c: Include <unistd.h>.
61586         (flush_stdout): New function, extracted from error and error_at_line.
61587         Determine stdout's fd dynamically.
61588         (error, error_at_line): Invoke flush_stdout.
61589         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
61590         * modules/error (Depends-on): Add unistd.
61592 2009-11-22  Bruno Haible  <bruno@clisp.org>
61594         diffseq: Add comment.
61595         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
61597 2009-11-22  Jim Meyering  <meyering@redhat.com>
61599         c-stack: avoid defining an unused static function
61600         * lib/c-stack.c (find_stack_direction): Do not define this function
61601         when it will not be used.
61603         diffseq: avoid spurious gcc warnings
61604         * lib/diffseq.h (IF_LINT2): Define.
61605         (compareseq): Use it to initialize two members of "part".
61606         This avoids two used-uninitialized warnings.
61608 2009-11-21  Jim Meyering  <meyering@redhat.com>
61610         c-stack: avoid "ignoring return value of `write'" warning
61611         * lib/c-stack.c: Include "ignore-value.h".
61612         (die): Explicitly ignore each write return value.
61613         * modules/c-stack (Depends-on): Add ignore-value.
61615 2009-11-21  Bruno Haible  <bruno@clisp.org>
61617         diffseq: reduce scope of variable 'best'.
61618         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
61619         variable, earlier used for two different purposes.
61621 2009-11-21  Jim Meyering  <meyering@redhat.com>
61623         diffseq: remove useless assignment to "best"
61624         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
61625         assignment.  At that point "best" is already guaranteed to be zero.
61627 2009-11-20  Eric Blake  <ebb9@byu.net>
61629         build: mention ftp redirector in release announcements
61630         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
61631         values that used to come from cfg.mk; mention FTP redirect URL.
61632         * build-aux/announce-gen: Mention the mirror list.
61633         Suggested by Karl Berry.
61635         nanosleep: improve port to mingw
61636         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
61637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
61638         LIB_NANOSLEEP, but only when needed.
61639         * modules/select (Link): Document LIBSOCKET.
61640         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
61641         enough.
61643         nanosleep: work around cygwin bug
61644         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
61645         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
61646         bug.
61647         (getnow): Delete, not needed.
61648         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
61649         LIB_CLOCK_GETTIME.
61650         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
61651         clock-time, gettime.
61652         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
61653         bug.
61654         * modules/nanosleep-tests: New test.
61655         * tests/test-nanosleep.c: New file.
61657         sleep: work around cygwin bug
61658         * lib/sleep.c (rpl_sleep): Work around the bug.
61659         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
61660         (gl_PREREQ_SLEEP): Delete unused macro.
61661         * modules/sleep (Depends-on): Add verify.
61662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61663         * modules/unistd (Makefile.am): Substitute witness.
61664         * lib/unistd.in.h (sleep): Update prototype.
61665         * doc/posix-functions/sleep.texi (sleep): Document the bug.
61666         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
61667         * modules/sleep-tests (Depends-on): Check for alarm.
61669 2009-11-20  Jim Meyering  <meyering@redhat.com>
61671         maint.mk: improve sc_prohibit_magic_number_exit
61672         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
61673         so it does not match uses like System.exit(1).
61674         Add comments showing how to correct all offenders.
61676 2009-11-19  Eric Blake  <ebb9@byu.net>
61678         xalloc-die-tests: add missing library
61679         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
61681         test-xvasprintf: silence compiler warnings
61682         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
61683         empty string from gcc.
61685 2009-11-19  Jim Meyering  <meyering@redhat.com>
61687         xfreopen: new module, from coreutils
61688         * modules/xfreopen: New module.
61689         * lib/xfreopen.c: New file.
61690         * lib/xfreopen.h: New file.
61691         * MODULES.html.sh (File stream based Input/Output"): Add it.
61693 2009-11-19  Eric Blake  <ebb9@byu.net>
61695         manywarnings: depend on warnings
61696         * modules/manywarnings (Depends-on): Add warnings.
61698         build: avoid compiler warnings
61699         * lib/select.c (rpl_select): Delete unused variable.
61700         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
61702 2009-11-18  Eric Blake  <ebb9@byu.net>
61704         tests: avoid false negative with --with-packager
61705         * tests/test-version-etc.sh: Discard packager information.
61706         * tests/test-argp-version-etc-1.sh: Likewise.
61707         Reported by Mike Frysinger.
61709         utimens: fix regression on Solaris
61710         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
61711         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
61712         can only change fd timestamps via futimesat.  Instead, use an
61713         additional witness macro to avoid BSD bug.
61714         Reported by Jim Meyering.
61716 2009-11-17  Eric Blake  <ebb9@byu.net>
61718         usleep: use it to simplify tests
61719         * modules/stat-time-tests (Depends-on): Add usleep.
61720         (configure.ac): Drop usleep check.
61721         * modules/chown-tests (Depends-on, configure.ac): Likewise.
61722         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
61723         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
61724         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
61725         * modules/openat-tests (Depends-on, configure.ac): Likewise.
61726         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
61727         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
61728         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
61729         Likewise.
61730         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
61731         * tests/test-lchown.h (nap): Likewise.
61732         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
61733         * tests/test-stat-time.c (nap): Likewise.
61734         * tests/test-utimens-common.h (nap): Update comments.
61736         usleep: new module
61737         * modules/usleep: New file.
61738         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
61739         * lib/usleep.c (usleep): Likewise.
61740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61741         * modules/unistd (Makefile.am): Substitute witnesses.
61742         * lib/unistd.in.h (usleep): Add declaration.
61743         * doc/pastposix-functions/usleep.texi (usleep): Document this.
61744         * MODULES.html.sh (Date and time): Likewise.
61745         * modules/usleep-tests (Depends-on): New test.
61746         * tests/test-usleep.c: New file.
61748         chown: work around OpenBSD bug
61749         * lib/chown.c (rpl_chown): Work around the bug.
61750         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
61751         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
61752         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
61753         * modules/chown (Depends-on): Add stdbool.
61754         * modules/lchown (Depends-on): Likewise.
61755         * doc/posix-functions/chown.texi (chown): Document the bug.
61756         * doc/posix-functions/lchown.texi (lchown): Likewise.
61757         * tests/test-lchown.h (test_chown): Relax test.
61759         mkstemp: avoid conflict with C++ keyword template
61760         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
61761         * lib/mkostemp.c (mkostemp): Likewise.
61762         * lib/mkostemps.c (mkostemps): Likewise.
61763         * lib/mkstemp.c (mkstemp): Likewise.
61764         * lib/mkstemps.c (mkstemps): Likewise.
61766         xalloc-die-tests: optimize
61767         * tests/test-xalloc-die.sh: Reduce number of processes.
61769 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61771         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
61772         patch from ludo@gnu.org (Ludovic Courtès).
61774 2009-11-17  Jim Meyering  <meyering@redhat.com>
61776         version-etc: use proper license string
61777         * modules/version-etc (License): Use LGPL, not LGPLv3+.
61778         * modules/version-etc-fsf: Likewise.
61780 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61782         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
61783         printed to stdout.  Deal with EOL differences.
61785 2009-11-17  Eric Blake  <ebb9@byu.net>
61787         unsetenv: work around Solaris bug
61788         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
61789         * lib/unsetenv.c (rpl_unsetenv): Work around it.
61790         Reported by Jim Meyering.
61792         vasnprintf: avoid compiler warnings
61793         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
61794         variables.
61795         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
61797 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61799         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
61800         settings since xalloc-die is no longer the self test,
61801         xalloc-die.sh is.
61803 2009-11-17  Jim Meyering  <meyering@redhat.com>
61805         test-xalloc-die.sh: make the code agree with the commit log
61806         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
61807         at the end, just in case you happen to have a test-xalloc-die
61808         program in some other PATH directory.
61810         test-xalloc-die.sh: fix a portability bug
61811         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
61812         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
61813         Otherwise, argv[0] (as often seen in diagnostics) would be too
61814         system-dependent, sometimes with, and sometimes without the leading "./".
61816         version-etc-fsf: relax license to LGPLv3+
61817         * modules/version-etc-fsf (License): Relax license.
61819 2009-11-16  Eric Blake  <ebb9@byu.net>
61821         xalloc-die-tests: avoid printing null pointer
61822         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
61823         shell script.
61824         * tests/test-xalloc-die.c (program_name): Declare.
61825         * tests/test-xalloc-die.sh (tmpfiles): New file.
61827         setenv, unsetenv: work around various bugs
61828         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
61829         (setenv) [HAVE_SETENV]: Work around bugs.
61830         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
61831         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
61832         for bugs.
61833         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
61834         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
61835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
61836         * modules/stdlib (Makefile.am): Update substitutions.
61837         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
61838         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
61839         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61840         * modules/setenv-tests: New test.
61841         * modules/unsetenv-tests: Likewise.
61842         * tests/test-setenv.c: New file.
61843         * tests/test-unsetenv.c: Likewise.
61845 2009-11-16  Jim Meyering  <meyering@redhat.com>
61847         version-etc: relax license to LGPLv3+
61848         * modules/version-etc (License): Relax license.
61850         better AC_REQUIRE expanded-before-required-warning avoidance
61851         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
61852         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
61853         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
61854         which is no longer needed.
61856 2009-11-16  Eric Blake  <ebb9@byu.net>
61858         test-freading: clean up temporary file
61859         * tests/test-freading.c (main): Remove file on success, and use
61860         ASSERT more liberally.
61861         Reported by Jim Meyering.
61863 2009-11-16  Jim Meyering  <meyering@redhat.com>
61865         avoid new AC_REQUIRE expanded-before-required warnings
61866         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
61867         merely using it.
61868         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
61869         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
61871 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61873         * tests/test-xalloc-die.c: New file.
61874         * modules/xalloc-die-tests: New file.
61875         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
61876         XFAIL_TESTS so it can be appended by modules.
61878 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61880         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
61881         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
61883 2009-11-14  Eric Blake  <ebb9@byu.net>
61885         fnmatch: avoid compiler warning
61886         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
61887         to silence compiler warning about mismatch signedness in ?:.
61888         Reported by Robert Millan.
61890         intprops: add double-inclusion guard
61891         * lib/intprops.h: Allow idempotent includes.
61892         Suggested by Bruce Korb.
61894         openat: detect Solaris fchownat bug
61895         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
61896         penalizing glibc chownat when only lchownat is broken.
61897         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
61898         trailing slash bugs.
61899         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
61900         * modules/openat-tests (Files): Include more files.
61901         (Depends-on): Add mgetgroups, sleep, stat-time.
61902         (configure.ac): Add additional checks.
61903         (Makefile.am): Build new test.
61904         * tests/test-fchownat.c: New file.
61906         lchown: detect Solaris and FreeBSD bug
61907         * lib/lchown.c (rpl_lchown): Work around bug.
61908         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
61909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61910         * modules/unistd (Makefile.am): Populate it.
61911         * lib/unistd.in.h (lchown): Update declaration.
61912         * doc/posix-functions/lchown.texi (lchown): Document the bug.
61913         * modules/lchown-tests: New file.
61914         * tests/test-lchown.h (test_lchown): Likewise.
61915         * tests/test-lchown.c (main): Likewise.
61917         chown: detect Solaris and FreeBSD bug
61918         * lib/chown.c (rpl_chown): Work around bug.
61919         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
61920         (gl_PREREQ_CHOWN): Delete.
61921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61922         * modules/unistd (Makefile.am): Populate it.
61923         * lib/unistd.in.h (chown): Update declaration.
61924         * lib/lchown.c (chown): Update client.
61925         * modules/lchown (Depends-on): Add lstat.
61926         * doc/posix-functions/chown.texi (chown): Document the bug.
61927         * doc/posix-functions/getgroups.texi (getgroups): Document
61928         getgroups pitfall.
61929         * modules/chown-tests: New file.
61930         * tests/test-chown.h (test_chown): Likewise.
61931         * tests/test-chown.c (main): Likewise.
61933 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
61935         gnulib-tool: correctly detect absence of m4 directories
61936         * gnulib-tool: Avoid extra newline on data passed to wc -l.
61938 2009-11-14  Jim Meyering  <meyering@redhat.com>
61940         maint.mk: Prohibit inclusion of "xalloc.h" without use.
61941         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
61943 2009-11-14  John W. Eaton  <jwe@gnu.org>
61945         strftime.h: wrap function declaration in extern "C" block
61946         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
61948 2009-11-13  Eric Blake  <ebb9@byu.net>
61950         getgroups: avoid compiler warning
61951         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
61953         getgroups: work around FreeBSD bug
61954         * lib/getgroups.c (rpl_getgroups): Work around the bug.
61955         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
61956         * doc/posix-functions/getgroups.texi (getgroups): Document it.
61957         * tests/test-getgroups.c (main): Fix buffer overrun.
61959         getgroups: avoid compilation failure
61960         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
61961         * modules/getgroups (Depends-on): Add stdint.
61963 2009-11-13  Jim Meyering  <meyering@redhat.com>
61965         test-getgroups: avoid compilation failure
61966         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
61968 2009-11-13  Eric Blake  <ebb9@byu.net>
61970         mgetgroups: new module, taken from coreutils
61971         * modules/mgetgroups: New file.
61972         * lib/mgetgroups.h: Likewise.
61973         * lib/mgetgroups.c (mgetgroups): Likewise.
61974         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
61975         * MODULES.html.sh (Users and groups): Mention it.
61977         getgroups: don't expose GETGROUPS_T to user
61978         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
61979         an element at a time if GETGROUPS_T is wrong size.
61980         * lib/getugroups.h (getugroups): Change signature.
61981         * lib/unistd.in.h (getgroups): Likewise.
61982         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
61983         signature needs fixing.
61984         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
61985         AC_TYPE_GETGROUPS.
61986         * modules/group-member (Depends-on): Add getgroups.
61987         * lib/group-member.c (group_info, get_group_info): Use gid_t.
61988         (group_member): Rely on getgroups replacement.
61989         * lib/getugroups.c (getugroups): Use gid_t.
61990         * tests/test-getgroups.c (main): Likewise.
61991         * NEWS: Mention the signature change.
61992         * doc/posix-functions/getgroups.texi (getgroups): Mention the
61993         problem with signature.
61994         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
61995         GETGROUPS_T is still useful for setgroups.
61997         getgroups, getugroups: provide stubs for mingw
61998         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
61999         * lib/getugroups.c (getugroups): Likewise.
62000         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
62001         function.  Modernize replacement scheme.
62002         (gl_PREREQ_GETGROUPS): Delete.
62003         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
62004         * modules/getgroups (configure.ac): Declare witness.
62005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
62006         * modules/unistd (Depends-on): Substitute witness.
62007         * lib/unistd.in.h (getgroups): Declare replacement.
62009         getgroups: avoid calling exit
62010         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
62011         drop xalloc.
62012         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
62013         dependencies.
62014         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
62015         exiting, in the rare case of malloc failure.
62017         getgroups: fix logic error
62018         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
62019         has more than 20 groups.
62020         * modules/getgroups-tests: New test.
62021         * tests/test-getgroups.c: New file.
62023 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62025         * tests/test-base64.c: Improve.
62027 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62029         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
62030         Blake <ebb9@byu.net>.
62032 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62034         * tests/test-xvasprintf.c: Add %s%s related checks.
62036 2009-11-12  Eric Blake  <ebb9@byu.net>
62038         version-etc: match standards.texi style
62039         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
62040         and use <> only for URLs.
62042 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
62044         fts: do not fail on a submount during traversal
62045         * lib/fts.c (fts_build): Read the stat info again after opening
62046         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
62047         Original report at http://bugzilla.redhat.com/501848.
62049 2009-11-12  Jim Meyering  <meyering@redhat.com>
62051         bootstrap: sync from coreutils
62052         * build-aux/bootstrap (bootstrap_epilogue): New function.
62053         Use git_modules_config in one more place.  This make bootstrap's
62054         --gnulib-srcdir option more useful for testing.
62056         bootstrap: generalize autoheader check
62057         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
62058         AC_CONFIG_HEADERS.
62060 2009-11-11  Eric Blake  <ebb9@byu.net>
62062         mkfifoat: use new modules for Solaris and BSD bugs
62063         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
62064         * lib/mkfifoat.c (mknodat): Split...
62065         * lib/mknodat.c (mknodat): ...into new file.
62066         * modules/mkfifoat (Files): Ship new file.
62067         (Depends-on): Add mkfifo, mknod.
62068         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
62069         (Depends-on): Add symlink.
62070         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
62071         redundant with test_mkfifo.h.
62072         (do_mkfifoat, do_mknodat): New helpers.
62074         mknod: new module
62075         * modules/mknod: New file.
62076         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
62077         * lib/mknod.c (mknod): Likewise.
62078         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62079         defaults.
62080         * modules/sys_stat (Makefile.am): Substitute them.
62081         * lib/sys_stat.in.h (mknod): Declare replacement.
62082         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62083         Document it.
62084         * doc/posix-functions/mknod.texi (mknod): Likewise.
62085         * modules/mknod-tests: New test.
62086         * tests/test-mknod.c: Likewise.
62088         mkfifo: new module
62089         * modules/mkfifo: New file.
62090         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62091         * lib/mkfifo.c (mkfifo): Likewise.
62092         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62093         defaults.
62094         * modules/sys_stat (Makefile.am): Substitute them.
62095         * lib/sys_stat.in.h (mkfifo): Declare replacement.
62096         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62097         Document it.
62098         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
62099         * modules/mkfifo-tests: New test.
62100         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
62101         from test-mkfifoat.c.
62102         * tests/test-mkfifo.c: New file.
62104         readlink: detect FreeBSD bug
62105         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
62106         slash on symlink.
62107         * doc/posix-functions/readlink.texi (readlink): Document the bug.
62108         * tests/test-readlink.h (test_readlink): Enhance test.
62110         symlink: detect FreeBSD bug
62111         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
62112         slash on symlink.
62113         * doc/posix-functions/symlink.texi (symlink): Document the bug.
62114         * tests/test-symlink.h (test_symlink): Enhance test.
62116 2009-11-10  Eric Blake  <ebb9@byu.net>
62118         link: detect FreeBSD bug
62119         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
62120         symlink.
62121         * doc/posix-functions/link.texi (link): Document the bug.
62122         * tests/test-link.h (test_link): Enhance test.
62123         * tests/test-linkat.c (main): Update caller.
62125         unlink, remove: detect FreeBSD bug
62126         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
62127         slash on symlink.
62128         * doc/posix-functions/unlink.texi (unlink): Document the bug.
62129         * doc/posix-functions/remove.texi (remove): Likewise.
62130         * tests/test-unlink.h (test_unlink): Enhance test.
62131         * tests/test-remove.c (main): Likewise.
62133 2009-11-09  Eric Blake  <ebb9@byu.net>
62135         rename: detect FreeBSD bug
62136         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
62137         slash on symlink.
62138         * modules/renameat-tests (Depends-on): Add filenamecat.
62139         * tests/test-rename.h (test_rename): Allow one more errno.
62140         * tests/test-renameat.c (main): Likewise.
62141         * doc/posix-functions/rename.texi (rename): Document the bug.
62143         open: detect FreeBSD bug
62144         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
62145         symlink.
62146         * doc/posix-functions/open.texi (open): Document the bug.
62147         * doc/posix-functions/utimes.texi (utimes): Likewise.
62148         * tests/test-open.h (test_open): Add parameters, and test symlink
62149         handling.
62150         * tests/test-open.c (main): Adjust caller.
62151         * tests/test-fcntl-safer.c (main): Likewise.
62152         * modules/open-tests (Depends-on): Add stdbool, symlink.
62153         * modules/fcntl-safer-tests (Depends-on): Likewise.
62154         * tests/test-openat.c (main): Add test-open tests.
62156         stat: detect FreeBSD bug
62157         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
62158         symlink.
62159         * doc/posix-functions/stat.texi (stat): Document the bug.
62160         * tests/test-stat.h (test_stat_func): Add argument.
62161         * tests/test-stat.c (main): Adjust caller.
62162         * tests/test-fstatat.c (main): Likewise.
62163         * modules/stat-tests (Depends-on): Add stdbool, symlink.
62164         Reported by Jim Meyering.
62166 2009-11-09  James Youngman  <jay@gnu.org>
62168         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
62169         * lib/strftime.c: Correct placement of #include "ignore-value.h".
62171 2009-11-08  Jim Meyering  <meyering@redhat.com>
62173         utimens: remove invalid futimesat call
62174         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
62175         It used the file descriptor of the target file as the DIR_FD
62176         parameter and NULL as the file name.  That caused failure with
62177         errno == EFAULT on FreeBSD-8.0-rc2
62179 2009-11-07  Eric Blake  <ebb9@byu.net>
62181         fflush, freadseek: use fseeko, not fseek
62182         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
62183         (clear_ungetc_buffer): Avoid potential problems on large files.
62184         * lib/freadseek.c (freadseek): Likewise.
62185         * modules/freadseek (Depends-on): Add fseeko.
62186         * modules/fseek (configure.ac): Set a witness.
62187         * tests/test-fflush.c (main): Use fseeko.
62188         * tests/test-fpurge.c (fseek): Disable link warning.
62189         * tests/test-freadable.c (fseek): Likewise.
62190         * tests/test-freading.c (fseek): Likewise.
62191         * tests/test-fseeko.c (fseek): Likewise.
62192         * tests/test-ftell.c (fseek): Likewise.
62193         * tests/test-ftello.c (fseek): Likewise.
62194         * tests/test-fwritable.c (fseek): Likewise.
62195         * tests/test-fwriting.c (fseek): Likewise.
62197 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62199         * modules/memchr (Depends-on): Drop getpagesize dependency.
62201 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62203         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
62204         Reported by Ludovic Courtès.
62205         * build-aux/pmccabe2html: Improve example usage.
62206         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
62208 2009-11-06  Jim Meyering  <meyering@redhat.com>
62210         do-release-commit-and-tag: New module.
62211         Automate the release-commit and tag process.
62212         * build-aux/do-release-commit-and-tag: New script, from coreutils.
62213         * modules/do-release-commit-and-tag: New file.
62214         * MODULES.html.sh (Support for maintaining and releasing): Add it.
62216 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62218         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
62219         because test-select.c uses inet_pton.
62221 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62223         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
62224         GETADDRINFO_LIB.  Bump serial number.
62225         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
62226         Suggested by Eric Blake <ebb9@byu.net>.
62228 2009-11-05  Eric Blake  <ebb9@byu.net>
62230         strtod: detect darwin bug
62231         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
62232         Reported by Leo Davis.
62234         freopen-safer: new module
62235         * modules/freopen-safer: New module.
62236         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
62237         * lib/freopen-safer.c (freopen_safer): New file.
62238         * lib/stdio-safer.h (freopen_safer): New declaration.
62239         * lib/stdio--.h (freopen): New override.
62240         * MODULES.html.sh (File stream based Input/Output): Mention it.
62241         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
62242         freopen-safer module.
62243         * doc/posix-functions/stderr.texi (stderr): Likewise.
62244         * doc/posix-functions/stdin.texi (stdin): Likewise.
62245         * doc/posix-functions/stdout.texi (stdout): Likewise.
62246         * modules/freopen-safer-tests: New test.
62247         * tests/test-reopen-safer.c: New file.
62249 2009-11-05  Jim Meyering  <meyering@redhat.com>
62251         maint.mk: Prohibit inclusion of "close-stream.h" without use.
62252         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62254 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62256         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
62258 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62260         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
62262 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62264         Fix link error.
62265         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62266         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62268 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62270         * tests/test-func.c: Also test value of __func__.
62272 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62274         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
62275         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
62277 2009-11-05  Bruno Haible  <bruno@clisp.org>
62279         Fix link error.
62280         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62281         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62282         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
62284 2009-11-05  Bruno Haible  <bruno@clisp.org>
62286         Tests for module 'inet_pton'.
62287         * modules/inet_pton-tests: New file.
62288         * tests/test-inet_pton.c: New file.
62290 2009-11-05  Bruno Haible  <bruno@clisp.org>
62292         Tests for module 'inet_ntop'.
62293         * modules/inet_ntop-tests: New file.
62294         * tests/test-inet_ntop.c: New file.
62296 2009-11-04  Eric Blake  <ebb9@byu.net>
62298         stdlib-safer: wrap all mkstemp variants
62299         * modules/mkostemp (configure.ac): Set witness.
62300         * modules/mkostemps (configure.ac): Likewise.
62301         * modules/mkstemps (configure.ac): Likewise.
62302         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62303         (mkstemps_safer): Wrap more functions.
62304         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62305         wrapping.
62306         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62307         (mkstemps_safer): Implement the wrappers.
62309         mkstemps, mkostemps: new modules
62310         * modules/mkostemps: New module.
62311         * modules/mkstemps: Likewise.
62312         * lib/mkostemps.c (mkostemps): New file.
62313         * lib/mkstemps.c (mkstemps): Likewise.
62314         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62315         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62317         * modules/stdlib (Makefile.am): Substitute them.
62318         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62319         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62320         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62321         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62322         * MODULES.html.sh (File system functions): Mention them.
62324         tempname: resync from glibc
62325         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62326         same values for __GT_FILE as glibc.  Abort even when assertions
62327         are disabled.
62328         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62329         match its value otherwise.  Allow idempotent inclusion.
62330         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62331         * lib/mkostemp.c (mkostemp): Likewise.
62332         * lib/mkstemp.c (mkstemp): Likewise.
62333         * lib/tmpfile.c (tmpfile): Likewise.
62334         * NEWS: Document this.
62336         utimens: fix use of futimens on older Linux
62337         * lib/utimens.c (fdutimens): Use updated, rather than original,
62338         timespec to avoid bug in older Linux kernel.
62339         Reported by Simon Josefsson.
62341 2009-11-04  Bruno Haible  <bruno@clisp.org>
62343         Make num_processors more flexible and consistent.
62344         * lib/nproc.h (enum nproc_query): New type.
62345         (num_processors): Add a 'query' argument.
62346         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62347         (num_processors): Add a 'query' argument. Test the value of the
62348         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62349         mingw, count the number of CPUs available for the current process.
62350         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62351         Check for sched_getaffinity and sched_getaffinity_np.
62352         * modules/nproc (Depends-on): Add c-ctype, extensions.
62353         * NEWS: Mention the change.
62355 2009-11-03  Bruno Haible  <bruno@clisp.org>
62357         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62359 2009-11-03  Jim Meyering  <meyering@redhat.com>
62361         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62362         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62363         if it is defined.
62365 2009-11-02  Eric Blake  <ebb9@byu.net>
62367         mktime, timegm: share common declaration
62368         * lib/mktime-internal.h: New file.
62369         * lib/mktime.c: Use it rather than open-coding a declaration.
62370         * lib/timegm.c: Likewise.
62371         * modules/mktime (Files): Ship it.
62372         * modules/timegm (Files): Likewise.
62373         Suggested by Bruno Haible.
62375         test-update-copyright: update test to match script changes
62376         * tests/test-update-copyright.sh: Avoid hard-coding perl
62377         location.  Don't update *.bak created by earlier runs.
62379 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62380             Simon Josefsson  <simon@josefsson.org>
62381             Bruno Haible  <bruno@clisp.org>
62383         Fix link error on Solaris 8.
62384         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62385         also in libnsl. Define also INET_PTON_LIB.
62386         * modules/inet_pton (Link): New section.
62388 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62389             Bruno Haible  <bruno@clisp.org>
62391         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62392         * modules/inet_ntop (Link): New section.
62393         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62395 2009-11-02  Eric Blake  <ebb9@byu.net>
62397         maint: avoid compiler warnings in m4 macros
62398         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62399         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62401 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62403         * m4/pmccabe2html.m4: Remove file.
62404         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62405         function.  Change maintainer.
62406         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62407         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62408         Courtès).
62410 2009-10-31  Eric Blake  <ebb9@byu.net>
62412         fseeko: fix m4 regression
62413         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62414         regression from 2009-10-27.
62415         Reported by Ralf Wildenhues.
62417 2009-10-31  Jim Meyering  <meyering@redhat.com>
62419         inttostr: aesthetics and improved (compile-time) safety
62420         Define inttype_is_signed rather than inttype_is_unsigned,
62421         since the sole use is via "#if inttype_is_signed".
62422         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62423         inttype_is_unsigned.
62424         * lib/offtostr.c (inttype_is_signed): Likewise.
62425         * lib/uinttostr.c (inttype_is_signed): Likewise.
62426         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62427         * lib/inttostr.c (inttostr): Use verify to cross-check the
62428         inttype_is_signed value and the signedness of the actual type.
62429         * modules/inttostr (Depends-on): Add verify.
62431 2009-10-30  Eric Blake  <ebb9@byu.net>
62433         build: avoid compiler warnings
62434         * lib/fchmodat.c (lchmod): Mark unused variables.
62435         * lib/getopt.c (_getopt_initialize): Likewise.
62436         * lib/mktime.c (__mktime_internal): Provide prototype.
62437         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62438         older gcc that do not understand #pragma GCC diagnostic.
62439         * lib/uinttostr.c (inttype_is_unsigned): Define.
62440         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62442 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62444         stat: fix compilation on AIX
62445         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62446         only see struct stat64.
62448 2009-10-30  Eric Blake  <ebb9@byu.net>
62450         exclude: make more robust
62451         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62452         rather than masking a coding bug.
62453         Suggested by Bruno Haible.
62455 2009-10-30  Jim Meyering  <meyering@redhat.com>
62457         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62458         Rather than putting #!/usr/bin/perl on the first line,
62459         start with a variant of what's recommended by "man perlrun" that
62460         invokes the first "perl" program from your shell's search path.
62461         * build-aux/gitlog-to-changelog: Replace #!... as above.
62462         Add a "Local Variables" perl mode setting.
62463         Prompted by a patch from Ludovic Courtès.
62464         Improved by Eric Blake.
62465         * build-aux/useless-if-before-free: Likewise.
62466         * build-aux/announce-gen: Likewise.
62467         * build-aux/update-copyright: Likewise.
62469 2009-10-29  Eric Blake  <ebb9@byu.net>
62471         filenamecat-lgpl: adjust clients
62472         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62473         filenamecat.
62474         * modules/renameat (Depends-on): Likewise.
62476         filenamecat: split into filenamecat-lgpl
62477         * modules/filenamecat-lgpl: New module.
62478         * modules/filenamecat (Files): Move library-safe files into
62479         filenamecat-lgpl.
62480         (Depends-on): Add filenamecat-lgpl.
62481         (configure.ac): Declare witness.
62482         * lib/filenamecat.h (file_name_concat): Only declare when using
62483         GPL module.
62484         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62485         Move...
62486         * lib/filenamecat-lgpl.c: ...into new file.
62487         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62488         (gl_FILE_NAME_CONCAT): Use it.
62489         * MODULES.html.sh (File system functions): Mention new module.
62491         argp: avoid memory leak
62492         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62493         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62494         base_name, since the latter malloc()s and can call exit().
62495         Leak introduced 2006-07-03.
62497         dirname-lgpl: adjust clients that don't need full dirname
62498         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62499         * modules/filenamecat (Depends-on): Likewise.
62500         * modules/linkat (Depends-on): Likewise.
62501         * modules/mkancesdirs (Depends-on): Likewise.
62502         * modules/mkdir (Depends-on): Likewise.
62503         * modules/openat (Depends-on): Likewise.
62504         * modules/savewd (Depends-on): Likewise.
62505         * modules/rename (Depends-on): Likewise.
62506         (License): Relax license.
62507         * modules/mkdir-tests (Depends-on): Drop progname.
62508         (Makefile.am): Delete unneeded LDADD.
62509         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62511         dirname: split into dirname-lgpl
62512         * modules/dirname-lgpl: New module.
62513         * modules/dirname (Files): Move library-safe files into
62514         dirname-lgpl.
62515         (Depends-on): Add dirname-lgpl.
62516         (configure.ac): Declare witness.
62517         * modules/double-slash-root (License): Relax license.
62518         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62519         module.
62520         * lib/dirname.c (dir_len, mdir_name): Move...
62521         * lib/dirname-lgpl.c: ...into new file.
62522         * lib/basename.c (last_component, base_len): Move...
62523         * lib/basename-lgpl.c: ...into new file.
62524         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62525         (gl_DIRNAME): Use it.
62526         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62527         Mention new module.
62528         * modules/dirname-tests (Depends-on): Add progname.
62529         * tests/test-dirname.c (program_name): Delete.
62531         mkdir: make safe for libraries
62532         * modules/mkdir (Depends-on): Drop xalloc.
62533         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62534         exit.
62536         tests: avoid some compiler warnings
62537         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62538         literals.
62539         * tests/test-memchr.c (main): Avoid type mismatch.
62540         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62541         * tests/test-base64.c (main): Likewise.
62542         * tests/test-getdelim.c (main): Likewise.
62543         * tests/test-gethostname.c (main): Likewise.
62544         * tests/test-getline.c (main): Likewise.
62545         * tests/test-netinet_in.c (main): Likewise.
62546         * tests/test-select.c (open_server_socket, main): Likewise.
62547         * tests/test-select-stdin.c (main): Likewise.
62548         * tests/test-sockets.c (main): Likewise.
62549         * tests/test-strsignal.c (main): Likewise.
62550         * tests/test-sys_select.c (main): Likewise.
62551         * tests/test-sys_socket.c (main): Likewise.
62552         * tests/test-u64.c (main): Likewise.
62553         * tests/test-xfprintf-posix.c (main): Likewise.
62554         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
62556         sockets: avoid compiler warning
62557         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
62559         maint: detect usage(1) and other suspicious exits
62560         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
62562 2009-10-29  Jim Meyering  <meyering@redhat.com>
62564         timespec: long-to-int truncation could make timespec_cmp malfunction
62565         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
62566         a multiple of 2^32 nanoseconds as no difference.
62568 2009-10-28  Jim Meyering  <meyering@redhat.com>
62570         fprintftime: wrap macro code argument in "do {...} while(0)"
62571         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
62572         cpy macro must be a statement that can be followed by a semicolon.
62573         Now that the else clause contains a comment and is hence longer
62574         than one line, I require curly braces.  That in turn requires
62575         that we wrap this code block in the standard do...while(0).
62577         fprintftime: remove stray semicolon from previous change
62578         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
62580         fprintftime: avoid a warning about ignored fwrite return value
62581         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
62582         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
62583         that is unsafe.
62584         * modules/fprintftime (Depends-on): Add ignore-value.
62586         exclude: avoid an unwarranted warning
62587         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
62589 2009-10-27  Eric Blake  <ebb9@byu.net>
62591         fseek: avoid compilation failure when fflush is replaced
62592         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
62593         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
62594         module is in use.
62595         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
62596         module is not in use; since REPLACE_FSEEK worked otherwise.
62597         (GNULIB_FTELLO): Likewise for ftell.
62598         Reported by Ian Beckwith and others.
62600 2009-10-27  Bruno Haible  <bruno@clisp.org>
62602         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
62603         Reported by Jim Meyering.
62605 2009-10-27  Jim Meyering  <jim@meyering.net>
62606             Bruno Haible  <bruno@clisp.org>
62608         Avoid warning despite dropping the return value of fwrite.
62609         * lib/unicodeio.c: Include ignore-value.h.
62610         (fwrite_success_callback): Explicitly ignore fwrite's return value.
62611         * modules/unicodeio (Depends-on): Add ignore-value.
62613 2009-10-26  Eric Blake  <ebb9@byu.net>
62615         areadlinkat: fix fallback path
62616         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
62617         pointer and zero.
62619 2009-10-22  Pádraig Brady  <P@draigBrady.com>
62621         Use a better IO block size for modern systems
62622         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
62623         * lib/md2.c: Likewise.
62624         * lib/md4.c: Likewise.
62625         * lib/md5.c: Likewise.
62626         * lib/sha1.c: Likewise.
62627         * lib/sha256.c: Likewise.
62628         * lib/sha512.c: Likewise.
62630 2009-10-22  Eric Blake  <ebb9@byu.net>
62632         tests: avoid several compiler warnings
62633         * tests/test-getcwd.c (main): Avoid buffer underflow.
62634         * tests/test-getdate.c (main): String literals are not safe with
62635         putenv, so use setenv.  Declare unused argument.
62636         * modules/getdate-tests (Depends-on): Add setenv.
62637         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
62638         problems with string literals in char *.
62639         * tests/test-hash.c (main): Avoid shadowing declaration.
62640         (insert_new): Treat string literals as char const *.
62641         * tests/test-getopt.h (test_getopt): Likewise.
62642         (getopt_loop): Alter types to minimize casting elsewhere.
62643         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
62644         (test_getopt_long_posix): Likewise.
62645         (do_getopt_long): Add wrapper to minimize casting.
62646         * tests/test-atexit.c (clear_temp_file): Use void.
62647         * tests/test-areadlink-with-size.c (main): Declare unused
62648         arguments.
62649         * tests/test-areadlink.c (main): Likewise.
62650         * tests/test-areadlinkat-with-size.c (main): Likewise.
62651         * tests/test-areadlinkat.c (main): Likewise.
62652         * tests/test-canonicalize-lgpl.c (main): Likewise.
62653         * tests/test-canonicalize.c (main): Likewise.
62654         * tests/test-dirent-safer.c (main): Likewise.
62655         * tests/test-dirname.c (main): Likewise.
62656         * tests/test-dup2.c (main): Likewise.
62657         * tests/test-fchdir.c (main): Likewise.
62658         * tests/test-fcntl-h.c (main): Likewise.
62659         * tests/test-fcntl-safer.c (main): Likewise.
62660         * tests/test-fdopendir.c (main): Likewise.
62661         * tests/test-fdutimensat.c (main): Likewise.
62662         * tests/test-fflush.c (main): Likewise.
62663         * tests/test-filenamecat.c (main): Likewise.
62664         * tests/test-filevercmp.c (main): Likewise.
62665         * tests/test-fopen-safer.c (main): Likewise.
62666         * tests/test-fopen.c (main): Likewise.
62667         * tests/test-fpending.c (main): Likewise.
62668         * tests/test-fpurge.c (main): Likewise.
62669         * tests/test-freading.c (main): Likewise.
62670         * tests/test-fstatat.c (main): Likewise.
62671         * tests/test-fsync.c (main): Likewise.
62672         * tests/test-futimens.c (main): Likewise.
62673         * tests/test-getndelim2.c (main): Likewise.
62674         * tests/test-gettimeofday.c (main): Likewise.
62675         * tests/test-getopt.c (main): Likewise.
62676         * tests/test-i-ring.c (main): Likewise.
62677         * tests/test-inttypes.c (main): Likewise.
62678         * tests/test-link.c (main): Likewise.
62679         * tests/test-lstat.c (main): Likewise.
62680         * tests/test-math.c (main): Likewise.
62681         * tests/test-md5.c (main): Likewise.
62682         * tests/test-memchr2.c (main): Likewise.
62683         * tests/test-memrchr.c (main): Likewise.
62684         * tests/test-mkdir.c (main): Likewise.
62685         * tests/test-mkdirat.c (main): Likewise.
62686         * tests/test-mkfifoat.c (main): Likewise.
62687         * tests/test-open.c (main): Likewise.
62688         * tests/test-openat-safer.c (main): Likewise.
62689         * tests/test-openat.c (main): Likewise.
62690         * tests/test-quotearg.c (main): Likewise.
62691         * tests/test-rawmemchr.c (main): Likewise.
62692         * tests/test-readlink.c (main): Likewise.
62693         * tests/test-remove.c (main): Likewise.
62694         * tests/test-rename.c (main): Likewise.
62695         * tests/test-renameat.c (main): Likewise.
62696         * tests/test-rmdir.c (main): Likewise.
62697         * tests/test-sha1.c (main): Likewise.
62698         * tests/test-signal.c (main): Likewise.
62699         * tests/test-sigaction.c (main): Likewise.
62700         * tests/test-stat.c (main): Likewise.
62701         * tests/test-stat-time.c (main): Likewise.
62702         * tests/test-stddef.c (main): Likewise.
62703         * tests/test-stdint.c (main): Likewise.
62704         * tests/test-stdio.c (main): Likewise.
62705         * tests/test-stdlib.c (main): Likewise.
62706         * tests/test-strchrnul.c (main): Likewise.
62707         * tests/test-strerror.c (main): Likewise.
62708         * tests/test-string.c (main): Likewise.
62709         * tests/test-strtod.c (main): Likewise.
62710         * tests/test-strverscmp.c (main): Likewise.
62711         * tests/test-symlink.c (main): Likewise.
62712         * tests/test-symlinkat.c (main): Likewise.
62713         * tests/test-sys_stat.c (main): Likewise.
62714         * tests/test-sys_time.c (main): Likewise.
62715         * tests/test-time.c (main): Likewise.
62716         * tests/test-unistd.c (main): Likewise.
62717         * tests/test-unlink.c (main): Likewise.
62718         * tests/test-unlinkat.c (main): Likewise.
62719         * tests/test-utimens.c (main): Likewise.
62720         * tests/test-utimensat.c (main): Likewise.
62721         * tests/test-version-etc.c (main): Likewise.
62722         * tests/test-wchar.c (main): Likewise.
62723         * tests/test-wctype.c (main): Likewise.
62724         * tests/test-xprintf-posix.c (main): Likewise.
62725         * tests/test-posixtm.c (main): Likewise.
62726         (STREQ): Delete unused macro.
62727         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
62728         shadowed variables.
62729         * tests/test-memchr.c (main): Likewise.
62731 2009-10-21  Eric Blake  <ebb9@byu.net>
62733         areadlinkat: avoid failure on older glibc
62734         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
62735         rather than mis-comparing 0 against FUNC_RESULT of char*.
62737 2009-10-21  Bruno Haible  <bruno@clisp.org>
62739         * modules/stpncpy (License): Relicense under LGPLv2+.
62740         Reported by David Lutterkort <lutter@redhat.com>.
62742 2009-10-20  Eric Blake  <ebb9@byu.net>
62744         utimensat: work around Solaris 9 bug
62745         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
62746         has trailing slash bugs.
62747         * tests/test-lutimens.h (test_lutimens): Enhance test.
62748         * tests/test-utimens.h (test_utimens): Likewise.
62749         * doc/posix-functions/utime.texi (utime): Enhance documentation.
62750         * doc/posix-functions/utimes.texi (utimes): Likewise.
62751         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62752         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
62753         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
62754         * doc/posix-functions/futimens.texi (futimens): Likewise.
62756         fdutimensat: new module
62757         * modules/fdutimensat: New file.
62758         * lib/fdutimensat.c (fdutimensat): Likewise.
62759         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
62760         * MODULES.html.sh (File system functions): Mention module.
62761         * modules/fdutimensat-tests: New test.
62762         * tests/test-fdutimensat.c: Likewise.
62764         doc: regenerate INSTALL
62765         * doc/INSTALL: Reflect recent autoconf update.
62766         * doc/INSTALL.ISO: Likewise.
62767         * doc/INSTALL.UTF-8: Likewise.
62769 2009-10-20  Pádraig Brady  <P@draigBrady.com>
62771         acl: warn if ACL support is not detected
62772         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
62774 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
62776         * lib/nproc.h: Add extern "C" block for C++.
62778 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
62779             Bruno Haible  <bruno@clisp.org>
62781         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
62782         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
62783         * doc/posix-functions/isalpha.texi: Likewise.
62784         * doc/posix-functions/isblank.texi: Likewise.
62785         * doc/posix-functions/iscntrl.texi: Likewise.
62786         * doc/posix-functions/isdigit.texi: Likewise.
62787         * doc/posix-functions/isgraph.texi: Likewise.
62788         * doc/posix-functions/islower.texi: Likewise.
62789         * doc/posix-functions/isprint.texi: Likewise.
62790         * doc/posix-functions/ispunct.texi: Likewise.
62791         * doc/posix-functions/isspace.texi: Likewise.
62792         * doc/posix-functions/isupper.texi: Likewise.
62793         * doc/posix-functions/isxdigit.texi: Likewise.
62795 2009-10-18  Bruno Haible  <bruno@clisp.org>
62797         Tests for module 'isblank'.
62798         * modules/isblank-tests: New file.
62799         * tests/test-isblank.c: New file.
62801         New module 'isblank'.
62802         * lib/isblank.c: New file.
62803         * m4/isblank.m4: New file.
62804         * modules/isblank: New file.
62805         * doc/posix-functions/isblank.texi: Mention the new module.
62807 2009-10-18  Bruno Haible  <bruno@clisp.org>
62809         New module 'ctype'.
62810         * lib/ctype.in.h: New file.
62811         * m4/ctype.m4: New file.
62812         * modules/ctype: New file.
62813         * doc/posix-headers/ctype.texi: Mention the new module.
62815 2009-10-18  Jim Meyering  <meyering@redhat.com>
62817         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
62818         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
62819         right after its initialization, rather than farther down.
62820         Keeping these in close proximity makes it easier to ensure
62821         that each such variable is initialized.  E.g.,
62823             LIB_CLOCK_GETTIME=
62824             AC_SUBST([LIB_CLOCK_GETTIME])
62826         This change also increments these serial numbers.
62827         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
62828         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62829         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62831 2009-10-18  Bruno Haible  <bruno@clisp.org>
62833         Don't let environment variables perturb build.
62834         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
62835         (gl_PREREQ_GETHRXTIME): ... not here.
62837 2009-10-18  Bruno Haible  <bruno@clisp.org>
62839         Avoid symlink attack in localcharset module.
62840         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
62841         (O_NOFOLLOW): Define fallback.
62842         (get_charset_aliases): Don't open the file if it is a symbolic link.
62843         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
62844         gl_FCNTL_H.
62845         (gl_FCNTL_H): Require it.
62846         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
62847         * modules/localcharset (Files): Add m4/fcntl_h.m4.
62848         Reported by Fergal Glynn <fglynn@veracode.com>.
62850 2009-10-18  Bruno Haible  <bruno@clisp.org>
62852         Implement nproc for mingw.
62853         * lib/nproc.c: Include <windows.h>
62854         (num_processors): On native Windows platforms, try GetSystemInfo.
62856 2009-10-18  Bruno Haible  <bruno@clisp.org>
62858         Implement nproc for IRIX.
62859         * lib/nproc.c: Include <sys/sysmp.h>.
62860         (num_processors): On IRIX systems, try sysmp.
62861         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
62863 2009-10-18  Bruno Haible  <bruno@clisp.org>
62865         Implement nproc for HP-UX.
62866         * lib/nproc.c: Include <sys/pstat.h>
62867         (num_processors): On HP-UX systems, try pstat_getdynamic.
62868         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
62869         pstat_getdynamic.
62871 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
62872             Bruno Haible  <bruno@clisp.org>
62874         Implement nproc for NetBSD, OpenBSD.
62875         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
62876         (ARRAY_SIZE): New macro.
62877         (num_processors): On BSD systems, try sysctl of HW_NCPU.
62878         * m4/nproc.m4: New file.
62879         * modules/nproc (Files): Add m4/nproc.m4.
62880         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
62881         (Makefile.am): Instead, augment lib_SOURCES.
62883 2009-10-18  Bruno Haible  <bruno@clisp.org>
62885         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
62886         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
62887         sys/param.h.
62889 2009-10-16  Eric Blake  <ebb9@byu.net>
62891         utimensat: new module
62892         * modules/utimensat: New file.
62893         * lib/utimensat.c (utimensat): Likewise.
62894         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62895         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
62896         so we can work around Linux bugs.
62897         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62898         * modules/sys_stat (Makefile.am): Substitute them.
62899         * lib/sys_stat.in.h (utimensat): Declare it.
62900         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62901         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62902         * modules/utimensat-tests: New test.
62903         * tests/test-utimensat.c: Likewise.
62905         utimens: let lutimens work on non-symlinks
62906         * lib/utimens.c (lutimens): Fall back to utimens rather than
62907         failing with ENOSYS, when file is not a symlink.
62908         (utimens): Reduce redirection.
62909         * tests/test-lutimens.h (test_lutimens): Update test to cover
62910         non-symlinks.
62911         * tests/test-utimens.h (test_utimens): Update test to cover
62912         symlinks.
62913         * tests/test-utimens.c (main): Update caller.
62915         utimens: cache whether utimensat syscall works
62916         * lib/utimens.c (utimensat_works_really): New cache variable.
62917         (fdutimens, lutimens): Use it to avoid failing syscall.
62919         test-stat-time, test-utimens: improve portability
62920         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
62921         ext4 on alpha, and for cygwin.
62922         * tests/test-utimens-common.h: New file.
62923         (nap): Factor delays into single function.
62924         * tests/test-lutimens.h (test_lutimens): Use new header.
62925         * tests/test-futimens.h (test_futimens): Likewise.
62926         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
62927         timestamps to occur from same machine, as was done previously for
62928         test_utimens.
62929         * modules/utimens-tests (Files): Ship new file.
62930         * modules/futimens-tests (Files): Likewise.
62931         Reported in part by Jim Meyering.
62933         sys_stat: sort replacement declarations
62934         * lib/sys_stat.in.h: Sort declarations.
62935         * lib/futimens.c (futimens): Fix typo.
62937 2009-10-15  Jim Meyering  <meyering@redhat.com>
62939         don't let environment settings perturb build
62940         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
62941         could cause a configure-time and/or build-time malfunction.
62942         Typically, a configure-time function-in-library test is performed
62943         via code like this:
62945           LIB_VAR=
62946           AC_SUBST([LIB_VAR])
62947           prefix_saved_LIBS=$LIBS
62948             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
62949                        [test "$ac_cv_search_FUNC" = "none required" ||
62950                         LIB_VAR=$ac_cv_search_FUNC])
62951           LIBS=$prefix_saved_LIBS
62953         However, in each of the files affected by this change, the LIB_VAR=
62954         initialization was omitted.  Thus, when set in the environment, its
62955         value would propagate into generated Makefiles when FUNC is not found
62956         in LIB_NAME.
62957         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
62958         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62961 2009-10-14  Eric Blake  <ebb9@byu.net>
62963         fchdir: avoid infinite recursion in mingw
62964         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
62965         recursing.
62967         test-stat-time: port to mingw
62968         * tests/test-stat-time.c (force_unlink): Return a value.
62969         (test_ctime) [W32]: Fix compilation error.
62970         (nap): Don't call usleep with too large an argument.  Use
62971         force_unlink.
62972         * doc/pastposix-functions/usleep.texi (usleep): Document the
62973         portability issue.
62975 2009-10-13  Jim Meyering  <meyering@redhat.com>
62977         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
62978         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
62979         * modules/pipe-filter-ii: Likewise.
62980         * modules/sys_socket-tests: Likewise.
62981         * modules/tsearch-tests: Likewise.
62982         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
62983         (check): Depend on it.
62985 2009-10-12  Eric Blake  <ebb9@byu.net>
62987         utimens-tests: port to NFS file systems
62988         * tests/test-utimens.h (test_utimens): Refactor utimecmp
62989         comparisons to avoid spurious failures from timestamp drift
62990         between NFS machines.
62992 2009-10-12  Eric Blake  <ebb9@byu.net>
62994         stat-time-tests: minor cleanups
62995         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
62996         * tests/test-stat-time.c (nap): Separate assignment from call.
62997         Suggested by Paolo Bonzini and Bruno Haible.
62999         sys_stat: guarantee struct timespec
63000         * lib/sys_stat.in.h (includes): Always include <time.h>
63001         * modules/sys_stat (Depends-on): Add time.
63002         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
63003         mode_t permission values.
63004         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
63005         get at subsecond timestamps.
63007 2009-10-10  Eric Blake  <ebb9@byu.net>
63009         futimens: new module
63010         * modules/futimens: New file.
63011         * lib/futimens.c (futimens): Likewise.
63012         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
63013         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
63014         we can work around Linux bugs.
63015         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63016         * modules/sys_stat (Makefile.am): Substitute them.
63017         * lib/sys_stat.in.h (futimens): Declare it.
63018         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63019         * doc/posix-functions/futimens.texi (futimens): Likewise.
63020         * modules/futimens-tests: New test.
63021         * tests/test-futimens.c: Likewise.
63023         utimens: introduce fdutimens
63024         * lib/utimens.h (fdutimens): New prototype.
63025         * lib/utimens.c (gl_futimens): Move guts...
63026         (fdutimens): ...to new interface.
63027         * tests/test-utimens.c (do_fdutimens): Use it.
63029         utimens: add UTIME_NOW and UTIME_OMIT support
63030         * lib/utimens.c (validate_timespec, update_timespec): New helper
63031         functions.
63032         (gl_futimens, lutimens): Use them.
63033         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
63034         stdbool, sys_stat.
63035         (Link): Mention resulting library dependency.
63036         * modules/utimecmp (Link): Likewise.
63037         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
63038         (Makefile.am): Pick up library dependency.
63039         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
63040         definition.
63041         * tests/test-sys_stat.c: Test the definitions.
63042         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
63043         * NEWS: Document library dependency.
63045         utimecmp: support symlink timestamps
63046         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
63047         hashing when possible.  Use pathconf when available.
63048         (SYSCALL_RESOLUTION): Recognize tighter resolution.
63049         * modules/utimecmp (Depends-on): Add lstat.
63051         utimens: add lutimens interface
63052         * lib/utimens.c (lutimens): New function.
63053         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
63054         * lib/utimens.h (lutimens): Declare new interface.
63055         * tests/test-utimens.c (main): Enhance test.
63056         * tests/test-lutimens.h (test_lutimens): New file.
63057         * modules/utimens-tests (Files): Distribute it.
63058         (Depends-on): Add symlink.
63059         (configure.ac): Check for usleep.
63061         utimens: validate futimens usage
63062         * lib/utimens.c (gl_futimens): Require valid fd up front, using
63063         fewer syscalls on failure later on.  Avoid compiler warning on
63064         mingw.
63065         * modules/utimens (Depends-on): Add dup2.
63067         utimens: add test
63068         * modules/utimens-tests: New test.
63069         * tests/test-utimens.h: New file.
63070         * tests/test-futimens.h: Likewise.
63071         * tests/test-utimens.c: Likewise.
63073         doc: mention timestamp portability issues
63074         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
63075         instead.
63076         * doc/posix-functions/utime.texi (utime): Likewise.
63077         * doc/posix-functions/utimes.texi (utimes): Likewise.
63078         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
63079         instead.
63080         * doc/posix-functions/futimens.texi (futimens): Mention utimens
63081         module.
63082         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63083         Mention weakness with symlink timestamps.
63084         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
63085         to utimensat/futimens instead.
63086         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
63088         test-dup2: enhance test
63089         * tests/test-dup2.c (main): Also check AT_FDCWD.
63091         test-stat-time: avoid more spurious failures
63092         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
63093         xfs; and avoid race if the two timestamps cross quantization edge.
63095         relocatable: prefer 'file system' over 'filesystem'
63096         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
63097         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
63098         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
63099         * doc/relocatable.texi (Enabling Relocatability): Likewise.
63100         * lib/relocatable.c (compute_curr_prefix): Likewise.
63102 2009-10-10  Jim Meyering  <meyering@redhat.com>
63104         stat-time-tests: check for the usleep function
63105         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
63107 2009-10-10  Bruno Haible  <bruno@clisp.org>
63109         * modules/xnanosleep: Put the Link section after the Include section.
63111 2009-10-09  Eric Blake  <ebb9@byu.net>
63113         dup2: work around FreeBSD 6.1 bug
63114         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
63115         * doc/posix-functions/dup2.texi (dup2): Document it.
63116         Reported by Nelson H. F. Beebe and Jim Meyering.
63118         test-stat-time: port to buggy NFS clients
63119         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
63120         (test_ctime): Also skip test if mtime and ctime are skewed.
63122         maint: prefer 'file system' over 'filesystem'
63123         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63124         * doc/posix-functions/lstat.texi (lstat): Likewise.
63125         * lib/file-has-acl.c (file_has_acl): Likewise.
63126         * lib/fwriteerror.c [TEST]: Likewise.
63127         * tests/test-areadlink.h (test_areadlink): Likewise.
63128         * tests/test-areadlinkat-with-size.c (main): Likewise.
63129         * tests/test-areadlinkat.c (main): Likewise.
63130         * tests/test-canonicalize-lgpl.c (main): Likewise.
63131         * tests/test-canonicalize.c (main): Likewise.
63132         * tests/test-fstatat.c (main): Likewise.
63133         * tests/test-linkat.c (main): Likewise.
63134         * tests/test-lstat.h (test_lstat_func): Likewise.
63135         * tests/test-mkdir.h (test_mkdir): Likewise.
63136         * tests/test-readlink.h (test_readlink): Likewise.
63137         * tests/test-remove.c (main): Likewise.
63138         * tests/test-rename.h (test_rename): Likewise.
63139         * tests/test-renameat.c (main): Likewise.
63140         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63141         * tests/test-symlink.h (test_symlink): Likewise.
63142         * tests/test-symlinkat.c (main): Likewise.
63143         * tests/test-unlink.h (test_unlink_func): Likewise.
63144         * tests/test-unlinkat.c (main): Likewise.
63146         maint: make realtime library usage explicit
63147         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
63148         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
63149         * modules/settime (Link): Likewise.
63150         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
63152         test-stat-time: speed up execution
63153         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
63154         warning on mingw.
63155         (nap): New helper function.
63156         (prepare_test): Use it to reduce sleep time.
63157         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
63158         execution.
63159         * modules/stat-time-tests (configure.ac): Check for usleep.
63161 2009-10-09  Jim Meyering  <meyering@redhat.com>
63163         selinux-h: always use getfilecon wrappers
63164         * lib/getfilecon.c: New file.
63165         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
63166         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
63167         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
63168         (fgetfilecon): Provide a stub.
63169         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
63170         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
63171         file unconditionally.
63172         When <selinux/selinux.h> is found, arrange to use wrappers.
63173         * modules/selinux-h (Files): Add getfilecon.c.
63174         (Makefile.am): Substitute include-next-related bits
63175         into the now-always-generated selinux/selinux.h file.
63176         * doc/glibc-functions/lgetfilecon.texi: New file.
63177         * doc/glibc-functions/fgetfilecon.texi: New file.
63178         * doc/glibc-functions/getfilecon.texi: New file.
63179         * doc/glibc-functions/getfilecon-desc.texi: New file.
63180         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
63181         which to pull in the new files.
63182         * MODULES.html.sh (Misc): Add selinux-h.
63184 2009-10-08  Jim Meyering  <meyering@redhat.com>
63186         unistd: fix comment typo
63187         * lib/unistd.in.h (euidaccess): Fix a comment typo.
63189 2009-10-08  Eric Blake  <ebb9@byu.net>
63191         areadlink: use SIZE_MAX consistently
63192         * modules/areadlink (Depends-on): Add stdint.
63193         * modules/areadlink-with-size (Depends-on): Likewise.
63194         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
63195         gives NULL; drop sys/types, since unistd gives size_t; and add
63196         stdint for SIZE_MAX.
63197         (SIZE_MAX): Rely on headers.
63198         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
63199         and add stdint.
63200         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
63201         (SIZE_MAX): Likewise.
63202         (INITIAL_BUF_SIZE): Turn into enum.
63203         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
63205 2009-10-08  Jim Meyering  <meyering@redhat.com>
63207         areadlinkat: avoid compilation failure
63208         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
63209         Fix typo in comment.
63211 2009-10-07  Eric Blake  <ebb9@byu.net>
63213         areadlinkat-with-size: new module
63214         * modules/areadlinkat-with-size: New module.
63215         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
63216         * lib/areadlink.h (areadlinkat): Declare it.
63217         * MODULES.html.sh (File system functions): Mention it.
63218         * modules/areadlinkat-with-size-tests: New test.
63219         * tests/test-areadlinkat-with-size.c: New file.
63221         xreadlinkat: new module
63222         * modules/xreadlinkat: New module.
63223         * lib/xreadlinkat.c (xreadlinkat): New file.
63224         * lib/xreadlink.h (xreadlinkat): Declare it.
63225         * MODULES.html.sh (File system functions): Mention it.
63227         areadlinkat: new module
63228         * lib/at-func.c (FUNC_FAIL): New define.
63229         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
63230         * modules/areadlinkat: New module.
63231         * lib/linkat.c (areadlinkat): Move...
63232         * lib/areadlinkat.c (areadlinkat): ...to new file.
63233         * lib/areadlink.h (areadlinkat): Declare it.
63234         * modules/linkat (Depends-on): Add areadlinkat.
63235         * MODULES.html.sh (File system functions): Mention it.
63236         * modules/areadlinkat-tests: New test.
63237         * tests/test-areadlinkat.c: New file.
63239         areadlink, areadlink-with-size: add tests
63240         * modules/areadlink-tests: New test.
63241         * modules/areadlink-with-size-tests: Likewise.
63242         * tests/test-areadlink.h: New file.
63243         * tests/test-areadlink.c: Likewise.
63244         * tests/test-areadlink-with-size.c: Likewise.
63246         maint: minor cleanups
63247         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
63248         _UNUSED_PARAMETER_ instead.
63249         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
63250         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
63251         * modules/linkat-tests (Files): Distribute test-link.h.
63253         openat, utimens: whitespace cleanup
63254         * lib/openat.c: Prefer space throughout, rather than mix of 8
63255         spaces vs. tabs.
63256         * lib/at-func.c: Likewise.
63257         * lib/utimens.c: Likewise.
63259         openat: avoid using wrong fd
63260         * lib/openat.c (openat_permissive): Reject user's fd if saving the
63261         working directory chooses same fd.
63262         * lib/at-func.c (AT_FUNC_NAME): Likewise.
63264         mkdir, mkdirat: fix cygwin 1.5.x bug
63265         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
63266         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
63267         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
63268         bug.
63269         (gl_PREREQ_MKDIR): Delete unused macro.
63270         * modules/mkdir (Files): Track file rename.
63271         (configure.ac): Update macro name.
63272         * modules/openat (Depends-on): Add mkdir.
63273         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
63275         mkdir, mkdirat: add tests
63276         * modules/mkdir-tests: New test.
63277         * tests/test-mkdir.h: New file.
63278         * tests/test-mkdir.c: Likewise.
63279         * tests/test-mkdirat.c: Likewise.
63280         * modules/openat-tests (Files): Add new files.
63281         (Makefile.am): Run new test.
63283 2009-10-06  Eric Blake  <ebb9@byu.net>
63285         doc: tweak *at function documentation
63286         * doc/posix-functions/faccessat.texi (faccessat): Mention
63287         known issue with replacement.
63288         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
63289         * doc/posix-functions/linkat.texi (linkat): Likewise.
63290         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63291         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63292         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63293         * doc/posix-functions/renameat.texi (renameat): Likewise.
63294         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63296         openat: fix GNU/Hurd bug in unlinkat
63297         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63298         broken.
63299         * doc/posix-functions/unlink.texi (unlink): Document this.
63300         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63302         fdopendir: fix GNU/Hurd bug
63303         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63304         allowing non-directory fds.
63305         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63307         * modules/dirent (Makefile.am): Substitute it.
63308         * lib/dirent.in.h (fdopendir): Declare replacement.
63309         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63310         * tests/test-fdopendir.c (main): Test something other than
63311         /dev/null, since on Hurd that behaves like a directory.
63313         test-symlink: port to GNU/Hurd
63314         * tests/test-symlink.h (test_symlink): Relax expected errno.
63316         doc: tweak more cygwin information
63317         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63318         now compatible with glibc.
63319         * doc/posix-functions/getopt.texi (getopt): Likewise.
63321         getopt-gnu: add another test
63322         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63323         guarantee behavior relied on by m4.
63324         * tests/test-getopt.c (main): Use it.
63325         * modules/getopt-posix-tests (Depends-on): Add setenv.
63326         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63328         getopt: fix compilation on darwin
63329         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63330         include.
63331         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63332         Reported by Ludovic Courtès.
63334 2009-10-06  Bruno Haible  <bruno@clisp.org>
63336         * modules/size_max (Description): Discourage its use.
63337         Reported by Simon Josefsson.
63339 2009-10-06  Jim Meyering  <meyering@redhat.com>
63341         linkat: avoid compilation failure
63342         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63344 2009-10-05  Eric Blake  <ebb9@byu.net>
63346         linkat: support Linux 2.6.17
63347         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63348         linkat on Linux, but allow cache variable override.
63349         * lib/linkat.c (rpl_linkat): Define override.
63350         * modules/linkat (Depends-on): Add symlinkat.
63351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63352         * modules/unistd (Makefile.am): Substitute it.
63353         * lib/unistd.in.h (linkat): Declare replacement.
63354         Reported by Pádraig Brady.
63356         quotearg: port test to systems with C.UTF-8 locale
63357         * tests/test-quotearg.c (struct result_strings): Add another
63358         member, differentiating between C.ASCII and C.UTF-8 handling.
63359         (compare_strings): Add parameter.
63360         (main): Adjust all callers.
63362         getopt: avoid clash with FreeBSD _getopt_internal
63363         * lib/getopt.in.h (_getopt_internal): Override the name.
63364         * lib/getopt_int.h (includes): Pick up any overrides.
63365         Reported by Reuben Thomas.
63367         hash: allow C89 compilation
63368         * lib/hash.c (check_tuning): Move declaration before statement.
63369         Reported by Reuben Thomas.
63371 2009-10-05  Karl Berry  <karl@gnu.org>
63373         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63375 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63376             Bruno Haible  <bruno@clisp.org>
63378         * lib/uname.c (uname): Use a table-driven algorithm to compute
63379         Windows NT versions.
63381 2009-10-04  Bruno Haible  <bruno@clisp.org>
63383         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63384         program_invocation_short_name.
63385         * modules/progname (configure.ac): Test for presence of
63386         program_invocation_short_name.
63387         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63389 2009-10-04  Bruno Haible  <bruno@clisp.org>
63391         * lib/progname.c (set_program_name): Fix comment.
63392         Reported by Jim Meyering.
63394 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63395             Bruno Haible  <bruno@clisp.org>
63397         * lib/uname.c: Include <string.h>.
63398         (uname): Do only one call to GetVersionEx in the common case.
63400 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63401             Bruno Haible  <bruno@clisp.org>
63403         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63404         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63405         (uname): Add support for Windows CE and various non-x86 CPU types.
63407 2009-10-03  Bruno Haible  <bruno@clisp.org>
63409         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63410         invocation to tests/configure.ac.
63411         Reported by Ian Beckwith <ianb@erislabs.net>.
63413 2009-10-02  Eric Blake  <ebb9@byu.net>
63415         fchdir: avoid compiler warning
63416         * lib/fchdir.c (canonicalize_file_name)
63417         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63419         test-open: support mingw errno values
63420         * tests/test-open.h (test_open): Relax test.
63421         * tests/test-fopen.h (test_fopen): Likewise.
63422         * tests/test-openat-safer.c (main): Likewise.
63424         open: fix opening directory on mingw
63425         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63427         test-open: on GNU/Hurd, /dev/null is a directory
63428         * tests/test-fopen.h (main): Rename...
63429         (test_fopen): ...to this.  Use a guaranteed non-directory when
63430         confirming open behavior on trailing slash.
63431         * tests/test-openat-safer.c (main): Likewise.
63432         * tests/test-open.h (main): Likewise....
63433         (test_open): ...to this.
63434         * tests/test-fopen.c (main): Adjust caller.
63435         * tests/test-fopen-safer.c (main): Likewise.
63436         * tests/test-open.c (main): Likewise.
63437         * tests/test-fcntl-safer.c (main): Likewise.
63438         Reported by Samuel Thibault.
63440         rename, fchdir: don't ignore chdir failure
63441         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63442         * lib/rename.c (rpl_rename) [W32]: Likewise.
63443         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63444         an empty destination directory if source cannot be renamed,
63445         although there is still possibility for failure.
63446         * doc/posix-functions/rename.texi (rename): Document the race.
63447         Reported by Jim Meyering.
63449         maint: cleanup whitespace in recent commits
63450         * lib/rename.c (rpl_rename): Remove tabs.
63451         * tests/test-link.h (test_link): Likewise.
63452         * lib/fchdir.c (get_name): Likewise.
63453         Reported by Jim Meyering.
63455 2009-10-02  Ben Pfaff  <blp@gnu.org>
63457         relocatable-prog-wrapper: Add missing dependency on
63458         double-slash-root.
63459         * modules/relocatable-prog-wrapper: Add dependency.
63460         Reported by Ian Beckwith <ianb@erislabs.net>.
63462 2009-10-02  Eric Blake  <ebb9@byu.net>
63464         renameat: fix Solaris bugs
63465         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63466         needed fixing.
63467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63468         * modules/stdio (Makefile.am): Substitute it.
63469         * lib/stdio.in.h (renameat): Declare replacement.
63470         * lib/renameat.c (rpl_renameat): Implement fix.
63472         renameat: new module
63473         * modules/renameat: New file.
63474         * lib/renameat.c (renameat): Likewise.
63475         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63477         * modules/stdio (Makefile.am): Substitute them.
63478         * lib/stdio.in.h (renameat): Declare it.
63479         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63480         * doc/posix-functions/renameat.texi (renameat): Likewise.
63481         * modules/renameat-tests: New test.
63482         * tests/test-renameat.c: Likewise.
63484         rename: fix mingw bugs
63485         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63486         directory overwrite bugs.
63488         rename: fix another cygwin 1.5 bug
63489         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63490         checks.
63491         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63492         unnecessary cygwin workarounds.  Also work around bug with moving
63493         full directory onto an empty one.
63494         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63496         rename-dest-slash: merge into rename module
63497         * modules/rename-dest-slash (Status): Mark obsolete.
63498         (Depends-on): Add rename.
63499         (Files): Let rename do it all.
63500         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63501         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63502         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63503         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63504         * lib/rename.c (rpl_rename): Update comments.
63506         rename: fix cygwin 1.5.x bugs
63507         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63508         * lib/rename.c (rpl_rename): Work around them.
63509         * modules/rename (Depends-on): Add same-inode.
63511         rename: fix Solaris 10 bug
63512         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63513         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63514         was the only bug.
63516         rename: fix Solaris 9 bug
63517         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63518         on non-directory.  Avoid calling exit.
63519         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63520         strdup.
63521         * modules/rename-tests (Depends-on): Drop lstat.
63522         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63523         (gl_PREREQ_RENAME): Delete unused macro.
63525         rename-dest-slash: fix NetBSD bug
63526         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63527         links.
63528         * modules/rename-dest-slash (Depends-on): Add same-inode.
63530         rename-tests: new test, exposes several platform bugs
63531         * modules/rename-tests: New file.
63532         * tests/test-rename.h: Likewise.
63533         * tests/test-rename.c: Likewise.
63534         * doc/posix-functions/rename.texi (rename): Improve documentation,
63535         including bugs that will eventually be fixed in gnulib.
63537 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63539         * lib/uname.c: Include <stdlib.h>
63540         (uname): Assume version info is available.
63542 2009-10-02  Jim Meyering  <meyering@redhat.com>
63544         gnu-web-doc-update: correct --help output
63545         * build-aux/gnu-web-doc-update: Make --help output relevant.
63547         gnu-web-doc-update: add standard options
63548         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
63550         gnu-web-doc-update: New module.
63551         Use this script to automatically update the on-line web documentation
63552         for your GNU project at http://www.gnu.org/software/$pkg/manual/
63553         * modules/gnu-web-doc-update: New file, from coreutils.
63554         * build-aux/gnu-web-doc-update: New script.
63556 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
63558         link: LoadLibrary is not needed.
63559         * lib/link.c: Use GetModuleHandle.
63561 2009-10-01  Eric Blake  <ebb9@byu.net>
63563         getopt: bump serial number
63564         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
63565         change.
63567         tests: tighten link, rmdir, and remove tests
63568         * tests/test-link.h (includes): No need to use <config.h> here.
63569         Clean up if directory hard link was created, otherwise test for
63570         trailing '.'.
63571         * tests/test-linkat.c (main): Simplify.
63572         * tests/test-remove.c (main): Enhance test for trailing '.'.
63573         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63575 2009-10-01  Jim Meyering  <meyering@redhat.com>
63577         maint.mk: requiring "make major" was annoying, for a "minor" release.
63578         What is intended is "stable", to contrast with alpha and beta,
63579         so require "make stable", not "make major".
63580         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
63581         (get_tool_versions): Likewise.
63582         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
63584 2009-09-30  Ben Pfaff  <blp@gnu.org>
63586         Fix broken build of replacement for Windows tmpfile().
63587         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
63588         flags argument added along with the 'mkostemp' module.
63590 2009-09-28  Bruno Haible  <bruno@clisp.org>
63592         Avoid identifier clash with POSIX function 'remove' defined as a macro.
63593         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
63594         to 'remove_elt'.
63595         (gl_list_remove): Update.
63596         * lib/gl_list.c (gl_list_remove): Update.
63597         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
63598         to 'remove_elt'.
63599         (gl_oset_remove): Update.
63600         * lib/gl_list.c (gl_oset_remove): Update.
63601         Reported by Eric Blake.
63603 2009-09-28  Eric Blake  <ebb9@byu.net>
63605         doc: mention yet more cygwin 1.7 status
63606         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
63607         cygwin.
63608         * doc/glibc-functions/execvpe.texi (execvpe): New file.
63609         * doc/gnulib.texi (Glibc unistd.h): Mention it.
63611         argp: fix test failure
63612         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
63613         that are not upper-case.  Pass correct range to tolower.
63615 2009-09-27  Jim Meyering  <meyering@redhat.com>
63617         test-yesno: work around sparc-dash here-document infelicity
63618         Without this change, the literal \177 byte in a here document
63619         would make dash 0.5.5.1-3 access uninitialized memory.
63620         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
63621         Instead, use a marker, "@", and filter through tr to create the desired
63622         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
63624 2009-09-27  Bruno Haible  <bruno@clisp.org>
63626         Disable untested support for new flavours of ACLs on AIX.
63627         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
63628         progress.
63629         * lib/set-mode-acl.c (qset_acl): Likewise.
63631 2008-12-07  Bruno Haible  <bruno@clisp.org>
63633         Add support for new flavours of ACLs on AIX. (Untested.)
63634         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
63635         (file_has_acl): Add support for newer AIX.
63636         * lib/set-mode-acl.c (qset_acl): Likewise.
63637         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
63638         Rainer Tammer <tammer@tammer.net>.
63640 2009-09-26  Eric Blake  <ebb9@byu.net>
63642         argp: fix compilation of getopt
63643         * lib/getopt.in.h (includes): Use different guard than glibc.
63644         Reported by Sergey Poznyakoff.
63646         doc: mention more cygwin 1.7 status
63647         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
63648         bug.
63649         * doc/posix-functions/execl.texi (execl): Likewise.
63650         * doc/posix-functions/execle.texi (execle): Likewise.
63651         * doc/posix-functions/execlp.texi (execlp): Likewise.
63652         * doc/posix-functions/execv.texi (execv): Likewise.
63653         * doc/posix-functions/execve.texi (execve): Likewise.
63654         * doc/posix-functions/execvp.texi (execvp): Likewise.
63655         * doc/glibc-functions/canonicalize_file_name.texi
63656         (canonicalize_file_name): Cygwin 1.7 now provides this.
63657         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
63658         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
63659         on AT_SYMLINK_NOFOLLOW.
63661 2009-09-24  Eric Blake  <ebb9@byu.net>
63663         test-linkat: make test more robust
63664         * tests/test-linkat.c (main): Avoid collision with EEXIST.
63666         getopt: fix inclusion guards for cygwin
63667         * modules/getopt-posix (Depends-on): Add include-next.
63668         (Makefile.am): Substitute more items in replacement header.
63669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
63670         <getopt.h>.
63671         * lib/getopt.in.h (includes): Use split inclusion guard, and
63672         prefer <getopt.h> over include <unistd.h> when one is present.
63673         (option): Also override name of 'struct option'.
63675         same-inode: revert prior change; it is not yet ready
63676         * NEWS: Undo mention of this change.
63677         * lib/same-inode.h (same-inode.h): Undo tri-state change.
63678         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63679         * lib/cycle-check.c (cycle_check): Likewise.
63680         * lib/same.c (same_name): Likewise.
63681         * lib/at-func2.c (at_func2): Likewise.
63683 2009-09-23  Eric Blake  <ebb9@byu.net>
63685         linkat: new module
63686         * modules/linkat: New file.
63687         * lib/at-func2.c (at_func2): Likewise.
63688         * lib/linkat.c (linkat): Likewise.
63689         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63690         * lib/openat-priv.h (at_func2): Add declaration.
63691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63692         * modules/unistd (Makefile.am): Substitute them.
63693         * lib/unistd.in.h (linkat): Declare it.
63694         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63695         * doc/posix-functions/linkat.texi (linkat): Likewise.
63696         * doc/posix-functions/link.texi (link): Tweak wording.
63697         * tests/test-link.c (main): Move guts...
63698         * tests/test-link.h (test_link): ...into new file.
63699         * modules/linkat-tests: New test.
63700         * tests/test-linkat.c: Likewise.
63701         * modules/link-tests (Files): Ship new file.
63702         (Depends-on): Add stdbool.
63704         dirname: add library-safe mdir_name
63705         * lib/dirname.h (mdir_name): New prototype.
63706         * lib/dirname.c (dir_name): Move guts...
63707         (mdir_name): ...to new function that avoids xalloc_die.
63709         fchdir: another mingw fix
63710         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
63711         * lib/fchdir.c (get_name): New helper method; skips canonicalize
63712         on mingw (where it has not yet been ported), and make it optional
63713         elsewhere.
63714         (_gl_register_fd): Use it.
63716         same-inode: make SAME_INODE tri-state, to port to mingw
63717         * NEWS: Mention this change.
63718         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
63719         st_ino always being 0.
63720         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63721         * lib/cycle-check.c (cycle_check): Likewise.
63722         * lib/same.c (same_name): Likewise.
63724         lstat: avoid mingw compilation error
63725         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
63726         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
63727         lstat ourselves.
63728         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
63729         was adequate.
63730         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
63731         the checks for lstat.
63732         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
63734         link: fix test failure on Solaris 9
63735         * lib/link.c (rpl_link): Don't assume link will catch bogus
63736         trailing slash on source.
63738         test-symlinkat: enhance test
63739         * tests/test-readlink.c (main): Move guts...
63740         * tests/test-readlink.h (test_readlink): ...into new file.
63741         * tests/test-symlink.c (main): Move guts...
63742         * tests/test-symlink.h (test_symlink): ...into new file.
63743         * tests/test-symlinkat.c (main): Use new files for further
63744         coverage.
63745         (do_symlink, do_readlink): New helper functions.
63746         * modules/symlink-tests (Files): Ship new file.
63747         (Depends-on): Add stdbool.
63748         * modules/readlink-tests (Files): Ship new file.
63749         (Depends-on): Add stdbool.
63750         * modules/symlinkat-tests (Files): Use new files.
63752 2009-09-23  Eric Blake  <ebb9@byu.net>
63754         readlink: document portability issue with symlink length
63755         * doc/posix-functions/lstat.texi (lstat): Mention that some file
63756         systems have bogus st_size on symlinks, and mention the
63757         areadlink-with-size module.
63758         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63759         * doc/posix-functions/readlink.texi (readlink): Mention the
63760         areadlink module, and ERANGE failure.
63761         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63762         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
63764         readlink: fix Solaris 9 bug with trailing slash
63765         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
63766         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
63767         * doc/posix-functions/readlink.texi (readlink): Document this.
63768         * modules/readlink-tests: New test.
63769         * tests/test-readlink.c: Likewise.
63771         readlink: fix cygwin 1.5.x bug with return type
63772         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
63773         * lib/unistd.in.h (readlink): Use ssize_t.
63774         * lib/readlink.c (readlink): Likewise.
63775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63776         * modules/unistd (Makefile.am): Substitute it.
63777         * lib/unistd.in.h (readlink): Declare replacement.
63778         * doc/posix-functions/readlink.texi (readlink): Document this.
63780         symlink: use throughout gnulib
63781         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
63782         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
63783         symlink is not used.
63784         * modules/symlinkat (Depends-on): Add symlink.
63785         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63786         * modules/canonicalize-tests (Depends-on): Likewise.
63787         * modules/lstat-tests (Depends-on): Likewise.
63788         * modules/openat-tests (Depends-on): Likewise.
63789         * modules/remove-tests (Depends-on): Likewise.
63790         * modules/rmdir-tests (Depends-on): Likewise.
63791         * modules/unlink-tests (Depends-on): Likewise.
63792         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
63793         * tests/test-canonicalize.c (symlink): Likewise.
63794         * tests/test-fstatat.c (symlink): Likewise.
63795         * tests/test-lstat.c (symlink): Likewise.
63796         * tests/test-remove.c (symlink): Likewise.
63797         * tests/test-rmdir.c (symlink): Likewise.
63798         * tests/test-unlink.c (symlink): Likewise.
63799         * tests/test-unlinkat.c (symlink): Likewise.
63801         symlink: new module, for Solaris 9 bug
63802         * modules/symlink: New file.
63803         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63804         * lib/symlink.c: Likewise.
63805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
63806         * modules/unistd (Makefile.am): Substitute them.
63807         * lib/unistd.in.h (symlink): Declare replacement.
63808         * MODULES.html.sh (File system functions): Mention it.
63809         * doc/posix-functions/symlink.texi (symlink): Likewise.
63810         * modules/symlink-tests: New test.
63811         * tests/test-symlink.c: Likewise.
63813 2009-09-23  Bruno Haible  <bruno@clisp.org>
63815         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
63816         when needed.
63817         Test case: gnulib-tool --import --with-tests atexit inttypes.
63818         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
63820 2009-09-23  Bruno Haible  <bruno@clisp.org>
63822         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
63823         subcommand, not in a subshell.
63825 2009-09-22  Eric Blake  <ebb9@byu.net>
63827         unistd: sort replacement declarations
63828         * lib/unistd.in.h: Sort declarations.
63830         open, openat: minor optimization
63831         * lib/open.c (open): If open succeeded, len is non-zero.
63832         * lib/openat.c (rpl_openat): Likewise.
63834         link-follow: ensure correct result
63835         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
63836         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
63837         distinguish between possible failures.
63839 2009-09-21  Eric Blake  <ebb9@byu.net>
63841         fts: avoid compiler warning
63842         * lib/fts.c (dirent_inode_sort_may_be_useful)
63843         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
63845 2009-09-19  Bruno Haible  <bruno@clisp.org>
63847         * lib/progreloc.c (canonicalize_file_name): New declaration.
63849 2009-09-19  Eric Blake  <ebb9@byu.net>
63851         link: fix quoting
63852         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
63854         openat: fix openat bugs on Solaris 9
63855         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
63856         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
63857         * modules/openat (Depends-on): Add open.
63858         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
63859         * modules/fcntl-h (Makefile.am): Substitute it.
63860         * lib/fcntl.in.h (openat): Declare replacement.
63861         * doc/posix-functions/openat.texi (openat): Document this.
63863         openat: move fstatat and unlinkat into correct files
63864         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
63865         compiled.
63866         * lib/openat.c (fstatat, unlinkat): Move...
63867         * lib/fstatat.c (fstatat): ...into correct files.
63868         * lib/unlinkat.c (unlinkat): Likewise.
63870         openat: fix unlinkat bugs on Solaris 9
63871         * lib/unlinkat.c (unlinkat): New file.
63872         * modules/openat (Depends-on): Add unlink.
63873         (Files): Distribute it.
63874         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
63875         trailing slash behavior is broken.
63876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63877         * modules/unistd (Makefile.am): Substitute it.
63878         * lib/unistd.in.h (unlinkat): Declare replacement.
63879         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
63881         openat: fix fstatat bugs on Solaris 9
63882         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
63883         stat.
63884         * doc/posix-functions/fstatat.texi (fstatat): Document this.
63886         test-unlinkat: enhance test, to expose Solaris 9 bug
63887         * tests/test-unlink.c (main): Factor guts...
63888         * tests/test-unlink.h (test_rmdir_func): ...into new file.
63889         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
63890         * tests/test-rmdir.c (main): Adjust caller.
63891         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
63892         (unlinker): New helper function.
63893         (rmdirat): Enhance check.
63894         * modules/rmdir-tests (Depends-on): Add stdbool.
63895         * modules/unlink-tests (Depends-on): Likewise.
63896         (Files): Add test-unlink.h.
63897         * modules/openat-tests (Files): Likewise.
63898         (Depends-on): Add unlinkdir.
63900         test-fstatat: new test, to expose Solaris 9 bugs
63901         * tests/test-stat.c (main): Factor guts...
63902         * tests/test-stat.h (test_stat_func): ...into new file.
63903         * tests/test-lstat.c (main): Factor guts...
63904         * tests/test-lstat.h (test_lstat_func): ...into new file.
63905         * tests/test-fstatat.c: New file.
63906         * modules/stat-tests (Files): Add test-stat.h.
63907         * modules/lstat-tests (Files): Add test-lstat.h.
63908         (Depends-on): Add stdbool.
63909         * modules/openat-tests (Depends-on): Add pathmax.
63910         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
63911         (Makefile.am): Run new test.
63913         remove: new module, for mingw and Solaris 9 bugs
63914         * modules/remove: New file.
63915         * lib/remove.c: Likewise.
63916         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
63917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63918         * modules/stdio (Makefile.am): Use them.
63919         * lib/stdio.in.h (remove): Declare replacement.
63920         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63921         * doc/posix-functions/remove.texi (remove): Likewise.
63922         * modules/remove-tests: New test.
63923         * tests/test-remove.c: Likewise.
63925         unlink: new module, for Solaris 9 bug
63926         * modules/unlink: New file.
63927         * lib/unlink.c: Likewise.
63928         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63930         * modules/unistd (Makefile.am): Use them.
63931         * lib/unistd.in.h (stat): Declare replacement.
63932         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63933         * doc/posix-functions/unlink.texi (unlink): Likewise.
63934         * modules/unlink-tests: New test.
63935         * tests/test-unlink.c: Likewise.
63937         lstat: fix Solaris 9 bug
63938         * lib/lstat.c (lstat): Also check for trailing slash on
63939         non-symlink, non-directories.  Use stat module to simplify logic.
63940         * doc/posix-functions/lstat.texi (lstat): Document it.
63941         * modules/lstat-tests (Depends-on): Add errno, same-inode.
63942         (configure.ac): Check for symlink.
63943         * tests/test-lstat.c (main): Add more tests.
63945         stat: add as dependency to other modules
63946         * modules/chown (Depends-on): Add stat.
63947         * modules/euidaccess (Depends-on): Likewise.
63948         * modules/fchdir (Depends-on): Likewise.
63949         * modules/isdir (Depends-on): Likewise.
63950         * modules/link (Depends-on): Likewise.
63951         * modules/lstat (Depends-on): Likewise.
63952         * modules/mkdir-p (Depends-on): Likewise.
63953         * modules/modechange (Depends-on): Likewise.
63954         * modules/open (Depends-on): Likewise.
63955         * modules/readlink (Depends-on): Likewise.
63956         * modules/same (Depends-on): Likewise.
63958         stat: fix Solaris 9 bug
63959         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
63960         slash.
63961         * lib/stat.c (rpl_stat): Work around it.
63962         * doc/posix-functions/stat.texi (stat): Update documentation.
63964         stat: new module, for mingw bug
63965         * modules/stat: New file.
63966         * lib/stat.c: Likewise.
63967         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63968         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63969         * modules/sys_stat (Makefile.am): Use them.
63970         * lib/sys_stat.in.h (stat): Declare replacement.
63971         * lib/openat.c (fstatat): Deal with lstat and stat being function
63972         macros.
63973         * modules/openat (Depends-on): Add inline.
63974         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63975         * doc/posix-functions/stat.texi (stat): Likewise.
63976         * modules/stat-tests: New test.
63977         * tests/test-stat.c: Likewise.
63979 2009-09-19  Jim Meyering  <meyering@redhat.com>
63981         syntax-check: detect unnecessary inclusion of canonicalize.h
63982         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
63984 2009-09-19  Eric Blake  <ebb9@byu.net>
63986         canonicalize-lgpl: adjust clients to use correct header
63987         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
63988         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
63989         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
63990         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
63991         * lib/progreloc.c (includes): Likewise.
63993 2009-09-19  Jim Meyering  <meyering@redhat.com>
63995         test-posixtm.c: correct a comment
63996         * tests/test-posixtm.c: Correct first-line comment.
63997         Spotted by Eric Blake.
63999 2009-09-16  Jim Meyering  <meyering@redhat.com>
64001         posixtm-tests: make T const-correct; add a test case
64002         * tests/test-posixtm.c (T): Declare const.
64003         Add a test for -(2^31+1).
64004         Remove useless can-succeed-only-in-2002 test.
64006         posixtm-tests: adjust the sole failing test
64007         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
64008         expected output matches what mktime now produces.  Cross-checked via
64009         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
64011         posixtm: move #ifdef'd tests into a new module
64012         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
64013         * tests/test-posixtm.c: ... this new file.
64014         * modules/posixtm-tests: New module.
64016 2009-09-19  Eric Blake  <ebb9@byu.net>
64018         openat: simplify use of at-func.c
64019         * lib/at-func.c (includes): Include prerequisites here, to
64020         simplify requirements on client files.
64021         * lib/openat-priv.h: Add double-inclusion guard.
64022         * lib/faccessat.c (includes): Simplify.
64023         * lib/fchmodat.c (includes): Likewise.
64024         * lib/fchownat.c (includes): Likewise.
64025         * lib/mkdirat.c (includes): Likewise.
64026         * lib/mkfifoat.c (includes): Likewise.
64027         * lib/symlinkat.c (includes): Likewise.
64029         openat: allow return of fd 0
64030         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
64031         * modules/save-cwd (Depends-on): Replace fcntl-safer with
64032         unistd-safer.
64033         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
64034         <fcntl.h>; this module does not leak fds.
64035         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
64036         must be allowed to return 0, leaving openat_safer to add the
64037         safety.
64038         (openat_permissive): Avoid writing to just-opened fd 2 if
64039         restoring the current directory fails.
64040         * lib/openat-die.c (openat_restore_fail): Add comment.
64041         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
64042         (save_cwd): Guarantee safe fd, but without use of open_safer.
64043         * tests/test-openat.c: New test.
64044         * modules/openat-tests (Files, Makefile.am): Distribute and build
64045         new file.
64047         relocatable-prog-wrapper: fix build
64048         * modules/relocatable-prog-wrapper (Files): Update name of
64049         canonicalize m4 file, broken on 2009-09-17.
64050         Reported by emad hajjar <aleppos@hotmail.com>.
64052 2009-09-19  Bruno Haible  <bruno@clisp.org>
64054         * lib/safe-alloc.h: Use the standard header with GPL copyright.
64055         * lib/safe-alloc.c: Likewise.
64056         Reported by Ian Beckwith <ianb@erislabs.net>.
64058 2009-09-18  Bruno Haible  <bruno@clisp.org>
64060         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
64061         Reported by <erobles@sensacd.com.mx>.
64063 2009-09-17  Eric Blake  <ebb9@byu.net>
64065         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
64066         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
64067         slashes when checking if last component is missing.
64068         * tests/test-canonicalize.c (main): Test this.
64070         canonicalize, canonicalize-lgpl: honor // if distinct from /
64071         * modules/canonicalize (Files): Add double-slash-root.m4.
64072         * modules/canonicalize-lgpl (Files): Likewise.
64073         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64074         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
64075         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
64076         fallback definition.
64077         (canonicalize_filename_mode): Use it to protect //.
64078         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
64079         (__realpath): Likewise.
64080         * tests/test-canonicalize.c (main): Test this.
64081         * tests/test-canonicalize-lgpl.c (main): Likewise.
64082         * modules/canonicalize-tests (Depends-on): Add same-inode.
64083         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64085         canonicalize-lgpl: fix glibc bug with trailing slash
64086         * m4/canonicalize-lgpl.m4: Move contents...
64087         * m4/canonicalize.m4: ...here.
64088         (gl_CANONICALIZE_LGPL): Factor realpath check...
64089         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
64090         glibc 2.3.5 bug, fixed 2005-04-27.
64091         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
64092         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
64093         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
64094         * modules/canonicalize-lgpl (Files): Manage file rename.
64095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64096         * modules/stdlib (Makefile.am): Substitute witness.
64097         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
64098         is needed.
64099         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
64100         replacement is required.
64101         * lib/canonicalize.c (canonicalize_file_name): Likewise.
64102         * doc/glibc-functions/canonicalize_file_name.texi
64103         (canonicalize_file_name): Document this.
64104         * doc/posix-functions/realpath.texi (realpath): Likewise.
64106         canonicalize-lgpl: reject non-directory with trailing slash
64107         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
64108         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
64109         catches failures in glibc 2.3.5.
64110         * tests/test-canonicalize.c (main): Likewise.
64112         canonicalize-lgpl: use native realpath if it works
64113         * lib/canonicalize-lgpl.c (realpath): Guard with
64114         FUNC_REALPATH_WORKS.
64115         * lib/stdlib.in.h (realpath): Make declaration optional based on
64116         HAVE_REALPATH.
64117         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
64118         native realpath works.
64119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64120         * modules/stdlib (Makefile.am): Substitute witness.
64122         canonicalize, canonicalize-lgpl: use <stdlib.h>
64123         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
64124         (Include): Mention <stdlib.h>.
64125         (configure.ac): Mention functions we provide.
64126         * modules/canonicalize (configure.ac): Likewise.
64127         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
64128         realpath if canonicalize_file_name is missing.
64129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
64130         * modules/stdlib (Makefile.am): Substitute witnesses.
64131         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
64132         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
64133         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
64134         * NEWS: Document this.
64135         * doc/glibc-functions/canonicalize_file_name.texi
64136         (canonicalize_file_name): Likewise.
64137         * doc/posix-functions/realpath.texi (realpath): Likewise.
64138         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
64140         test-canonicalize: consolidate into single C program
64141         * tests/test-canonicalize.sh: Delete; move setup into...
64142         * tests/test-canonicalize.c (main): ...the program, making it
64143         easier to run in debugger.  Add some tests.
64144         * modules/canonicalize-tests (Files): Remove unused file.
64145         (Depends-on): Add progname.
64146         (configure.ac, Makefile.am): Simplify.
64148         test-canonicalize-lgpl: consolidate into single C program
64149         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
64150         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
64151         easier to run in debugger.  Add some tests.
64152         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
64153         (configure.ac, Makefile.am): Simplify.
64155         canonicalize: avoid resolvepath
64156         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
64157         unnecessary checks.
64158         * lib/canonicalize.c (includes): Simplify.
64159         (canonicalize_file_name): Drop resolvepath implementation.
64160         * modules/canonicalize (Depends-on): Drop filenamecat.
64162         canonicalize: don't lose errno
64163         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
64164         over calls to free.
64166         canonicalize: simplify errno handling
64167         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
64168         assignment.
64170         canonicalize, canonicalize-lgpl: update module dependencies
64171         * modules/canonicalize (Depends-on): Add extensions, lstat,
64172         pathmax, stdlib.
64173         (Files): Drop pathmax.h.
64174         (configure.ac): Adjust macro name.
64175         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
64176         lstat, stdlib, sys_stat.
64177         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
64178         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
64179         extensions.
64180         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
64181         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
64182         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
64183         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
64184         declaration, if available.
64185         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
64186         we can rely on the readlink module.
64187         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
64188         (includes): Use <unistd.h> unconditionally.
64190 2009-09-17  Eric Blake  <ebb9@byu.net>
64192         maint: make Include sections of modules consistent
64193         * modules/alloca: Use only header name; no need to list #include.
64194         * modules/alloca-opt: Likewise.
64195         * modules/arpa_inet: Likewise.
64196         * modules/canon-host: Likewise.
64197         * modules/configmake: Likewise.
64198         * modules/dirent: Likewise.
64199         * modules/eealloc: Likewise.
64200         * modules/environ: Likewise.
64201         * modules/fchdir: Likewise.
64202         * modules/fcntl: Likewise.
64203         * modules/fcntl-h: Likewise.
64204         * modules/gethrxtime: Likewise.
64205         * modules/gettime: Likewise.
64206         * modules/ignore-value: Likewise.
64207         * modules/inet_ntop: Likewise.
64208         * modules/inet_pton: Likewise.
64209         * modules/inttypes: Likewise.
64210         * modules/isnand-nolibm: Likewise.
64211         * modules/isnanf-nolibm: Likewise.
64212         * modules/mbchar: Likewise.
64213         * modules/mbfile: Likewise.
64214         * modules/mbiter: Likewise.
64215         * modules/mbuiter: Likewise.
64216         * modules/netdb: Likewise.
64217         * modules/netinet_in: Likewise.
64218         * modules/nproc: Likewise.
64219         * modules/pagealign_alloc: Likewise.
64220         * modules/poll: Likewise.
64221         * modules/printf-frexp: Likewise.
64222         * modules/pthread: Likewise.
64223         * modules/putenv: Likewise.
64224         * modules/random_r: Likewise.
64225         * modules/relocatable-prog: Likewise.
64226         * modules/search: Likewise.
64227         * modules/select: Likewise.
64228         * modules/selinux-h: Likewise.
64229         * modules/settime: Likewise.
64230         * modules/signal: Likewise.
64231         * modules/size_max: Likewise.
64232         * modules/socklen: Likewise.
64233         * modules/ssize_t: Likewise.
64234         * modules/stdarg: Likewise.
64235         * modules/stdbool: Likewise.
64236         * modules/stddef: Likewise.
64237         * modules/stdint: Likewise.
64238         * modules/stdio: Likewise.
64239         * modules/stdlib: Likewise.
64240         * modules/string: Likewise.
64241         * modules/strings: Likewise.
64242         * modules/sys_file: Likewise.
64243         * modules/sys_ioctl: Likewise.
64244         * modules/sys_select: Likewise.
64245         * modules/sys_socket: Likewise.
64246         * modules/sys_stat: Likewise.
64247         * modules/sys_time: Likewise.
64248         * modules/sys_times: Likewise.
64249         * modules/sys_utsname: Likewise.
64250         * modules/sys_wait: Likewise.
64251         * modules/sysexits: Likewise.
64252         * modules/time: Likewise.
64253         * modules/times: Likewise.
64254         * modules/tmpfile: Likewise.
64255         * modules/trim: Likewise.
64256         * modules/unistd: Likewise.
64257         * modules/wchar: Likewise.
64258         * modules/wctype: Likewise.
64260 2009-09-17  Bruno Haible  <bruno@clisp.org>
64262         Make getdate.y compile on QNX and NetBSD 5 / i386.
64263         * m4/getdate.m4 (gl_GETDATE): Conditionally define
64264         TIME_T_FITS_IN_LONG_INT.
64265         * lib/getdate.y (long_time_t): New type.
64266         (relative_time): Change type of 'seconds' field to long_time_t.
64267         (get_date): Update types of local variables. Check against overflow
64268         during conversion from long_time_t to time_t.
64269         Reported by Matt Kraai <kraai@ftbfs.org>
64270         and Hasso Tepper <hasso@netbsd.org>.
64272 2009-09-17  Bruno Haible  <bruno@clisp.org>
64274         * modules/COPYING: Update copyright years.
64275         * modules/README: Likeiwse.
64276         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
64277         Reported by Ian Beckwith <ianb@erislabs.net>.
64279 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64281         * users.txt: Update references for gnuit package.
64283 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64285         * m4/getdelim.m4: Fix typo in copyright line.
64287 2009-09-17  Bruno Haible  <bruno@clisp.org>
64289         * lib/atoll.c: Use the standard header with GPL copyright.
64290         * lib/argz.in.h: Likewise.
64291         * lib/glob.c: Likewise.
64292         * lib/glob-libc.h: Likewise.
64293         * lib/random_r.c: Likewise.
64294         * lib/siglist.h: Likewise.
64295         * lib/strsignal.c: Likewise.
64296         Reported by Ian Beckwith <ianb@erislabs.net>.
64298 2009-09-17  Eric Blake  <ebb9@byu.net>
64300         rmdir: ensure correct dependency order
64301         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64303 2009-09-17  Bruno Haible  <bruno@clisp.org>
64305         Disable assertion that fails on NetBSD 5 / i386.
64306         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64307         Reported by Sam Steingold <sds@gnu.org>
64308         and Hasso Tepper <hasso@netbsd.org>.
64310 2009-09-16  Eric Blake  <ebb9@byu.net>
64312         unlinkdir: port to mingw
64313         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64314         on which no one can unlink a directory.
64316         stdlib: sort witness names
64317         * modules/stdlib (Makefile.am): Sort replacements.
64318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64319         * lib/stdlib.in.h: Likewise.
64321         parse-duration-tests: avoid link failure
64322         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64323         LIBINTL.
64324         Reported by Tom G. Christensen.
64326         openat-tests: ensure unlinkat behaves like rmdir
64327         * tests/test-rmdir.c (main): Factor guts...
64328         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64329         * modules/rmdir-tests (Files): Ship new file.
64330         * modules/openat-tests: New test.
64331         * tests/test-unlinkat.c: Likewise.
64333         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64334         * modules/rmdir-errno (Status, Notice): Now obsolete.
64336         rmdir: work around cygwin 1.5.x and mingw bugs
64337         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64338         * lib/rmdir.c (rmdir): Work around it.
64339         * modules/rmdir (Status, Notice): No longer obsolete.
64340         (Files): Add dos.m4.
64341         (Depends-on): Add unistd.
64342         (configure.ac): Set witnesses.
64343         (License): Relax to LGPLv2+.
64344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64345         * modules/unistd (Makefile.am): Substitute witnesses.
64346         * lib/unistd.in.h (rmdir): Declare replacement.
64347         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64348         * modules/rmdir-tests: New tests.
64349         * tests/test-rmdir.c: Likewise.
64351 2009-09-15  Eric Blake  <ebb9@byu.net>
64353         fchdir: improve use of replacement functions
64354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64355         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64356         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64357         REPLACE_CLOSEDIR.
64358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64359         * modules/sys_stat (Makefile.am): Substitute correct witness.
64360         * modules/dirent (Makefile.am): Likewise.
64361         * modules/unistd (Makefile.am): Likewise.
64362         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64363         * lib/unistd.in.h (dup): Likewise.
64364         * lib/sys_stat.in.h (fstat): Likewise.
64366         maint: ignore gnulib-tool temp files
64367         * .gitignore: Ignore files created during gnulib-tool --test.
64369 2009-09-13  Jim Meyering  <meyering@redhat.com>
64371         posixtm: don't reject a time that specify "60" as the number of seconds
64372         * lib/posixtm.c (posixtime): The code to reject invalid dates
64373         would also reject a time specified with the .60 suffix.
64374         But POSIX allows that, in order to accommodate leap seconds.
64375         So don't reject it.
64376         (main): Adjust tests accordingly.
64377         * modules/posixtm (Depends-on): Add stpcpy.
64379 2009-09-11  Jim Meyering  <meyering@redhat.com>
64381         announce-gen: include [$release_type] in emitted Subject:
64382         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64383         e.g., [stable] in the emitted Subject: line.
64385 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64387         Remove obsolete macros from several modules.
64388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64389         obsolete Autoconf macros with their modern counterparts.
64390         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64391         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64392         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64393         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64394         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64395         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64397         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64398         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64399         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64400         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64401         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64402         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64403         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64404         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64405         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64406         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64407         * m4/time_r.m4 (gl_TIME_R): Likewise.
64408         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64409         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64410         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64412         Fix copyright header in build-aux scripts.
64413         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64414         recommendation.
64415         * build-aux/ncftpput-ftp: Likewise.
64416         * build-aux/update-copyright: Likewise.
64418 2009-09-09  Eric Blake  <ebb9@byu.net>
64420         test-link: allow Linux choice of errno
64421         * tests/test-link.c (main): Relax test for alternate error.
64423         strndup: fix improper m4 caching
64424         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64425         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64426         (gl_PREREQ_STRNDUP): Delete.
64427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64428         * modules/string (Makefile.am): Substitute it.
64429         * lib/string.in.h (strndup): Modernize prototype.
64431         getcwd: port to mingw
64432         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64433         different from the POSIX assumptions made throughout the getcwd
64434         module; fortunately, the mingw getcwd does not need replacement.
64435         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64436         * modules/getcwd-tests: New test.
64437         * tests/test-getcwd.c: Likewise.
64439         link: fix platform bugs
64440         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64441         * lib/link.c (link): Work around them.  Fix related mingw bug.
64442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64443         * modules/unistd (Makefile.am): Substitute it.
64444         * lib/unistd.in.h (link): Declare replacement.
64445         * doc/posix-functions/link.texi (link): Document this.
64446         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64448         test-link: consolidate into single C program, test more cases
64449         * tests/test-link.sh: Delete.
64450         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64451         at least Cygwin and Solaris.
64452         * modules/link-tests (Files): Remove unused file.
64453         (Depends-on): Add errno, sys_stat.
64454         (Makefile.am): Simplify.
64456 2009-09-08  Bruno Haible  <bruno@clisp.org>
64458         Work around towlower, towupper bug on mingw.
64459         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64460         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64461         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64462         * doc/posix-functions/towupper.texi: Likewise.
64463         Reported by Eric Blake.
64465 2009-09-08  Jim Meyering  <meyering@redhat.com>
64467         build: don't try to run autoheader if we don't use it
64468         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64469         is not used in configure.ac.
64471 2009-09-08  Eric Blake  <ebb9@byu.net>
64473         euidaccess: fix compilation error
64474         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64476         rawmemchr: relax license
64477         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64478         okay.
64479         Reported by Jim Meyering.
64481         mkfifoat: new module
64482         * modules/mkfifoat: New file.
64483         * lib/mkfifoat.c: Likewise.
64484         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64485         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64486         * modules/sys_stat (Makefile.am): Use them.
64487         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64488         * MODULES.html.sh (File system functions): Mention module.
64489         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64490         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64491         * modules/mkfifoat-tests: New test.
64492         * tests/test-mkfifoat.c: Likewise.
64494         strchrnul: relax license
64495         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64496         okay.
64497         Reported by Jim Meyering.
64499 2009-09-08  Eric Blake  <ebb9@byu.net>
64501         fstatat: fix compilation on Solaris
64502         * lib/fstatat.c (includes): Add fcntl.h.
64503         Reported by Pádraig Brady.
64505 2009-09-07  Eric Blake  <ebb9@byu.net>
64507         rename: modernize replacement
64508         * modules/rename (Depends-on): Add stdio.
64509         (configure.ac): Declare witness.
64510         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64511         stdio take care of replacement.
64512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64513         * modules/stdio (Makefile.am): Substitute them.
64514         * lib/stdio.in.h (rename): Declare replacement.
64515         * lib/rename.c (includes): Allow cross-compilation to non-windows
64516         machines.
64517         * doc/posix-functions/rename.texi (rename): Improve
64518         documentation.
64520         stdio: sort witness names
64521         * modules/stdio (Makefile.am): Sort replacements.
64522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64523         * lib/stdio.in.h: Likewise.
64525         getcwd: minor cleanups
64526         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64527         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64529         openat: provide more convenience names
64530         * modules/faccessat (configure.ac): Add C witness.
64531         * lib/unistd.in.h (readlinkat): Fix typo.
64532         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64533         convenience wrappers.
64534         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64535         wrappers in syntax checks.
64537 2009-09-06  Eric Blake  <ebb9@byu.net>
64539         doc: fix comments in recent patches
64540         * lib/faccessat.c: Mention correct function.
64541         * lib/fchmodat.c: Likewise.
64542         * lib/fchownat.c: Likewise.
64543         * lib/symlinkat.c: Likewise.
64544         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
64545         constants.
64547         faccessat, symlinkat: continue cleanup of previous patch
64548         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
64549         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64550         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
64551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
64552         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
64553         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
64554         set.
64556 2009-09-06  Bruno Haible  <bruno@clisp.org>
64558         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
64559         (fstatat): Declare if GNULIB_FSTATAT is set.
64560         (mkdirat): Declare if GNULIB_MKDIRAT is set.
64561         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
64562         (unlinkat): Declare if GNULIB_UNLINKAT is set.
64563         * modules/fcntl-h (Files): Remove m4/openat.m4.
64564         * modules/sys_stat (Files): Remove m4/openat.m4.
64565         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
64566         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
64567         * modules/unistd (Files): Remove m4/openat.m4.
64568         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
64569         GNULIB_OPENAT.
64570         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
64571         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
64572         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
64573         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
64574         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
64575         gl_OPENAT_DEFAULTS.
64576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
64577         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
64578         Don't require gl_OPENAT_DEFAULTS.
64579         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
64580         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
64581         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
64582         (gl_OPENAT_DEFAULTS): Remove macro.
64584 2009-09-06  Bruno Haible  <bruno@clisp.org>
64586         * modules/openat (configure.ac): Remove unneeded witness.
64588 2009-09-06  Bruno Haible  <bruno@clisp.org>
64590         Set errno to ENOSYS when a function is entirely unsupported.
64591         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
64592         EOPNOTSUPP.
64593         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64594         * modules/chown (Depends-on): Remove errno.
64596 2009-09-06  Bruno Haible  <bruno@clisp.org>
64598         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
64600 2009-09-06  Bruno Haible  <bruno@clisp.org>
64602         * lib/sys_stat.in.h: Fix preprocessor command indentation.
64604 2009-09-06  Ben Pfaff  <blp@gnu.org>
64605             Bruno Haible  <bruno@clisp.org>
64607         Work around a glibc bug in strtok_r.
64608         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
64609         Undefine if UNDEFINE_STRTOK_R is set.
64610         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
64611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64612         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
64613         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
64614         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
64615         UNDEFINE_STRTOK_R.
64616         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
64618 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64620         exclude: minor fix
64621         * lib/exclude.c: Include wctype.h
64623 2009-09-06  Akim Demaille  <demaille@gostai.com>
64625         bootstrap: improve error message
64626         * build-aux/bootstrap (find_tool): Upon failure, report the list
64627         of candidates.
64628         Honor the initial value of the envvar.
64630 2009-09-05  Eric Blake  <ebb9@byu.net>
64632         symlinkat: new module
64633         * modules/symlinkat: New file.
64634         * lib/symlinkat.c: Likewise.
64635         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
64636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64637         * modules/unistd (Makefile.am): Use them.
64638         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
64639         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
64640         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
64641         * MODULES.html.sh (File system functions): Mention module.
64642         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
64643         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64644         * modules/symlinkat-tests: New test.
64645         * tests/test-symlinkat.c: Likewise.
64647         test-openat-safer: add more checks
64648         * tests/test-openat-safer.c (main): Check more code paths.
64650 2009-09-05  Jim Meyering  <meyering@redhat.com>
64652         syntax-check: detect unnecessary inclusion of openat.h
64653         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
64655 2009-09-05  Bruno Haible  <bruno@clisp.org>
64657         Support towlower, towupper.
64658         * doc/posix-functions/towlower.texi: Mention module wctype.
64659         * doc/posix-functions/towupper.texi: Likewise.
64660         * lib/wctype.in.h (towlower, towupper): New functions.
64661         * tests/test-wctype.c: Include stdio.h, stdlib.h.
64662         (ASSERT): New macro.
64663         (e): New variable.
64664         (main): Test also towlower, towupper. Test WEOF argument.
64665         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64667 2009-09-05  Bruno Haible  <bruno@clisp.org>
64669         Fix conversion behaviour when the input is invalid.
64670         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
64671         mark occurring in first pass of indirect conversion.
64672         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
64673         input.
64674         Found by clang's static analyzer.
64676 2009-09-05  Bruno Haible  <bruno@clisp.org>
64678         * tests/test-striconveh.c (main): Test indirect conversion on platforms
64679         where direct conversion is possible.
64681 2009-09-04  Eric Blake  <ebb9@byu.net>
64683         openat: fail with ENOENT on empty name
64684         * lib/openat-proc.c (openat_proc_name): Special-case the empty
64685         buffer.
64687         link-follow: fix logic bug in prior patch
64688         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
64689         reversed sense of yes and no in prior patch.  Avoid confusing
64690         compilation failure with desired semantics.
64692         link-follow: accommodate mingw and cross-compilation
64693         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
64694         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
64695         cross-compilation results to -1, to make linkat easier to
64696         implement when cross-compiling.  Trivially support mingw.
64697         * modules/link-follow (configure.ac): Call new name.
64698         * NEWS: Mention this.
64700 2009-09-03  Eric Blake  <ebb9@byu.net>
64702         faccessat: compile replacement
64703         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
64704         needed.
64706         fts: fix compilation error
64707         * lib/fts.c (includes): Re-add "openat.h", for
64708         openat_needs_fchdir.
64710         faccessat: new module
64711         * modules/faccessat: New file.
64712         * lib/faccessat.c: Likewise.
64713         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64715         * modules/unistd (Makefile.am): Use it.
64716         * lib/unistd.in.h (faccessat): Declare it.
64717         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
64718         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
64719         * MODULES.html.sh (File system functions): Mention it.
64720         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
64721         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
64723         euidaccess: prefer POSIX over non-standard implementation
64724         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
64725         * lib/euidaccess.c (euidaccess): Use it if available.
64727         openat: make template easier to use
64728         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
64729         AT_FUNC_F2 to be undefined.
64730         (VALIDATE_FLAG): New macro; use it to reject bad flags.
64731         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
64732         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
64733         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
64734         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
64735         Likewise.
64736         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
64737         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
64738         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
64739         Likewise.
64741         openat: declare in POSIX headers
64742         * NEWS: Mention this.
64743         * modules/openat (configure.ac): Declare witnesses.
64744         (Depends-on): Add fcntl-h, sys_stat, unistd.
64745         (Include): Mention correct headers.
64746         * modules/fcntl-h (Depends-on): Add link-warning.
64747         (Files): Add openat.m4.
64748         (Makefile.am): Substitute witnesses.
64749         * modules/sys_stat (Files, Makefile.am): Likewise.
64750         * modules/unistd (Files, Makefile.am): Likewise.
64751         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
64752         (gl_OPENAT_DEFAULTS): New macro.
64753         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
64754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
64755         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
64756         (SYS_STAT_H): Remove unused variable.
64757         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
64758         * lib/fcntl--.h (includes): Remove unneeded header.
64759         * lib/openat-safer.c (includes): Likewise.
64760         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
64761         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
64762         appropriate headers.
64763         (__OPENAT_PREFIX): Delete.
64764         * lib/fcntl.in.h (openat): Provide declaration.
64765         (AT_FDCWD): Fix Solaris bug.
64766         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
64767         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
64768         * lib/fchmodat.c (includes):  Adjust to find declaration.
64769         * lib/fchownat.c (includes): Likewise.
64770         * lib/mkdirat.c (includes): Likewise.
64771         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
64772         still visible.
64774 2009-09-02  Eric Blake  <ebb9@byu.net>
64776         errno: use consistently
64777         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
64778         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
64779         * lib/canonicalize.c (ELOOP): Likewise.
64780         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
64781         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
64782         * lib/lchown.c (EOPNOTSUPP): Likewise.
64783         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
64784         * lib/savewd.c (ESTALE): Likewise.
64785         * lib/settime.c (ENOSYS): Likewise.
64786         * lib/utimens.c (ENOSYS): Likewise.
64787         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
64788         * lib/chdir-safer.c (ELOOP): Likewise.
64789         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
64790         * modules/c-stack (Depends-on): Add errno.
64791         * modules/canonicalize (Depends-on): Likewise.
64792         * modules/chdir-safer (Depends-on): Likewise.
64793         * modules/fdopendir (Depends-on): Likewise.
64794         * modules/inet_ntop (Depends-on): Likewise.
64795         * modules/inet_pton (Depends-on): Likewise.
64796         * modules/lchown (Depends-on): Likewise.
64797         * modules/openat (Depends-on): Likewise.
64798         * modules/savewd (Depends-on): Likewise.
64799         * modules/settime (Depends-on): Likewise.
64800         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
64802         fts: avoid leaking fds
64803         * modules/fts (Depends-on): Add cloexec.
64804         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
64805         flag.
64807         fts: make directory fds more robust
64808         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
64809         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
64811         backupfile, chdir-long, fts, savedir: make safer
64812         * lib/backupfile.c (includes): Use "dirent--.h", since
64813         numbered_backup can write to stderr during readdir.
64814         * lib/savedir.c (includes): Likewise.
64815         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
64816         emulation can write to stderr on failure.
64817         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
64818         * lib/getcwd.c: Document why opendir_safer is unused.
64819         * lib/glob.c: Likewise.
64820         * lib/scandir.c: Likewise.
64821         * lib/openat-proc.c: Likewise, for open_safer.
64822         * modules/backupfile (Depends-on): Add dirent-safer.
64823         * modules/savedir (Depends-on): Likewise.
64824         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
64825         * modules/chdir-long (Depends-on): Add openat-safer.
64827         openat-safer: new module
64828         * modules/openat-safer: New file.
64829         * lib/openat-safer.c: Likewise.
64830         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
64831         * lib/fcntl-safer.h (openat_safer): Declare.
64832         * lib/fcntl--.h (openat): Override.
64833         * MODULES.html.sh (File descriptor based I/O): Mention it.
64834         * lib/openat.h: Add double-inclusion guards.
64835         * lib/openat.c (includes): Only include "fcntl-safer.h", not
64836         "fcntl--.h", so we can implement openat.
64837         * modules/openat-safer-tests: New test.
64838         * tests/test-openat-safer.c: New file.
64840         dirent-safer: new module
64841         * modules/dirent-safer: New file.
64842         * lib/dirent--.h: Likewise.
64843         * lib/dirent-safer.h: Likewise.
64844         * lib/opendir-safer.c: Likewise.
64845         * m4/dirent-safer.m4: Likewise.
64846         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
64847         * modules/dirent-safer-tests: New test.
64848         * tests/test-dirent-safer.c: New file.
64849         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
64851         fdopendir: optimize on mingw
64852         * lib/unistd.in.h (_gl_directory_name): New prototype.
64853         * lib/fchdir.c (_gl_directory_name): Implement it.
64854         (fchdir): Use it to simplify implementation.
64855         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
64856         fchdir, when available, to avoid calling [f]chdir().
64858         fdopendir: split into its own module
64859         * lib/openat.c (fdopendir): Move...
64860         * lib/fdopendir.c: ...into new file.
64861         * modules/fdopendir: New module.
64862         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
64863         * modules/openat (Depends-on): Add fdopendir.
64864         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
64865         fdopendir here.
64866         * modules/savedir (Depends-on): Only need fdopendir, not full
64867         openat.
64868         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
64869         * lib/openat.h (fdopendir): Drop prototype.
64870         * lib/dirent.in.h (fdopendir): Provide prototype.
64871         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
64872         * modules/dirent (Makefile.am): Substitute them.
64873         * MODULES.html.sh (File system functions): Mention it.
64874         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
64875         * modules/fdopendir-tests: New file.
64876         * tests/test-fdopendir.c: Likewise.
64878         fchdir: use more consistent macro convention
64879         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
64880         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
64881         REPLACE_FCHDIR, rather than relying on config.h macros.
64882         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
64883         inside a single make-time REPLACE_FCHDIR block, rather than using
64884         the config.h FCHDIR_REPLACEMENT.
64885         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
64886         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
64887         Manage fstat replacement.
64888         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
64889         REPLACE_FCHDIR.
64890         * modules/sys_stat (Files): Add m4/unistd_h.m4.
64891         (Makefile.am): Substitute REPLACE_FCHDIR.
64892         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
64893         FCHDIR_REPLACEMENT.
64894         * lib/dup-safer.c (dup_safer): Likewise.
64895         * lib/dup2.c (rpl_dup2): Likewise.
64896         * lib/dup3.c (rpl_dup3): Likewise.
64897         * lib/open.c (rpl_open): Likewise.
64899         fchdir: simplify error handling, and support dup3
64900         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
64901         stdbool, malloc-posix, realloc-posix.
64902         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
64903         (ensure_dirs_slot): Return false on allocation failure.
64904         (rpl_dup2): Delete.
64905         (_gl_register_dup): New function.
64906         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
64907         (_gl_register_fd): Close fd on allocation failure.
64908         * lib/fcntl.in.h (_gl_register_fd): Update signature.
64909         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
64910         prototype.
64911         (rpl_dup2_fchdir): Delete prototype.
64912         * lib/open.c (open): Update caller.
64913         * lib/dup2.c (dup2): Track fchdir metadata.
64914         * lib/dup3.c (dup3): Likewise.
64915         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
64916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
64918 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64920         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
64921         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
64922         don't pass arguments to AC_OUTPUT.
64924 2009-09-02  Bruno Haible  <bruno@clisp.org>
64926         * modules/mkdtemp (License): Relicense under LGPLv2+.
64927         Reported by Paolo Bonzini.
64929 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64931         Replace uses of obsolete autoconf macros in Jim's modules.
64932         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
64933         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
64934         can evoke a warning from autoconf when run with -Wobsolete
64935         enabled.  They were declared obsolete for good reasons (see
64936         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
64937         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
64938         should not continue using the deprecated macros.
64939         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
64940         obsolete Autoconf macros with modern counterparts.
64941         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64942         * m4/dos.m4 (gl_AC_DOS): Likewise.
64943         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
64944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
64945         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
64946         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
64947         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
64948         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
64949         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
64950         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
64951         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64952         Likewise.
64953         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
64954         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64955         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
64956         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
64957         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64958         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64960 2009-09-01  Eric Blake  <ebb9@byu.net>
64962         fchdir: fix off-by-one bug in previous patch
64963         * lib/fchdir.c (rpl_fstat): Use correct bounds.
64964         (_gl_unregister_fd): Delete useless if.
64966 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
64968         maint.mk: sort the list of syntax-check rules
64969         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
64970         easier to get a sense of progress when the rules are run sequentially
64971         and take a long time.
64973 2009-09-01  Simon Josefsson  <simon@josefsson.org>
64975         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
64976         * modules/netinet_in: Likewise.
64977         * modules/sys_file: Likewise.
64978         * modules/sys_ioctl: Likewise.
64979         * modules/sys_select: Likewise.
64980         * modules/sys_socket: Likewise.
64981         * modules/sys_stat: Likewise.
64982         * modules/sys_time: Likewise.
64983         * modules/sys_times: Likewise.
64984         * modules/sys_utsname: Likewise.
64985         * modules/sys_wait: Likewise.
64987 2009-09-01  Jim Meyering  <meyering@redhat.com>
64989         fts: help ensure that return values are not ignored
64990         * lib/fts_.h (__GNUC_PREREQ): Define.
64991         (__attribute_warn_unused_result__): Define.
64992         (fts_children, fts_close, fts_open, fts_read): Declare with
64993         __attribute_warn_unused_result__.
64995         fts: fts_close now fails also when closing a dir file descriptor fails
64996         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
64997         and propagate to caller, along with errno.
64999         announce-gen: correct formatting in --help output
65000         * build-aux/announce-gen (usage): Move the one-line description in
65001         --help output "up", to where it belongs, just after Usage:.
65003 2009-08-31  Eric Blake  <ebb9@byu.net>
65005         fchdir: port to mingw
65006         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
65007         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
65008         opened, then use a substitute.
65009         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
65010         replacement.
65011         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
65012         (_gl_register_fd): No need to check stat if open already filters
65013         all directories.
65014         (fchdir): Fix error condition to match POSIX.
65015         * modules/fchdir (Depends-on): Add sys_stat.
65016         * doc/posix-functions/open.texi (open): Document the limitation.
65017         * modules/fchdir-tests: New file.
65018         * tests/test-fchdir.c: Likewise.
65020         canonicalize: allow cross-testing from cygwin to mingw
65021         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
65022         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
65023         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
65024         Likewise.
65025         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
65026         target does not support symlinks.
65027         * tests/test-canonicalize-lgpl.sh: Likewise.
65029         chown: avoid compilation warning on mingw
65030         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
65031         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
65032         mingw.
65033         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
65034         * modules/chown (Depends-on): Add errno.
65036 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65038         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
65039         command.
65041 2009-08-31  Jim Meyering  <meyering@redhat.com>
65043         canonicalize: remove useless initialization
65044         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
65045         initialization of local, "end".
65047 2009-08-30  Bruno Haible  <bruno@clisp.org>
65049         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
65050         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
65051         ENOSYS.
65053 2009-08-30  Bruno Haible  <bruno@clisp.org>
65055         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
65056         /usr/xpg4/bin/tr when it exists.
65057         * tests/test-pipe-filter-gi1.sh: Likewise.
65059 2009-08-30  Bruno Haible  <bruno@clisp.org>
65061         Work around deficient /usr/bin/id program on Solaris.
65062         * tests/test-file-has-acl.sh (ID): New variable.
65063         * tests/test-set-mode-acl.sh (ID): Likewise.
65064         * tests/test-copy-acl.sh (ID): Likewise.
65065         * tests/test-copy-file.sh (ID): Likewise.
65067 2009-08-30  Bruno Haible  <bruno@clisp.org>
65069         New module 'xstriconveh'.
65070         * lib/xstriconveh.h: New file.
65071         * lib/xstriconveh.c: New file.
65072         * modules/xstriconveh: New file.
65074 2009-08-30  Bruno Haible  <bruno@clisp.org>
65076         Make it easier to use mem_cd_iconveh.
65077         * lib/striconveh.h (iconveh_t): New type.
65078         (iconveh_open, iconveh_close): New declarations.
65079         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65080         with a single 'const iconveh_t *' argument.
65081         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
65082         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65083         with a single 'const iconveh_t *' argument.
65084         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
65085         * tests/test-striconveh.c (main): Update.
65086         * NEWS: Mention the change.
65088 2009-08-30  Bruno Haible  <bruno@clisp.org>
65090         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
65091         problem.
65093 2009-08-30  Bruno Haible  <bruno@clisp.org>
65095         Work around iconv_open problem on Solaris.
65096         * lib/iconv_open-solaris.gperf: New file.
65097         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
65098         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
65099         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
65100         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
65101         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
65102         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
65104 2009-08-29  Jim Meyering  <meyering@redhat.com>
65106         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
65107         * top/maint.mk (cvs-check): Remove target; it was just an alias
65108         to the better-named vc-diff-check.
65109         (maintainer-distcheck): Remove rule.  It was used only from
65110         the (alpha/beta/major) target, and all of its commands but one
65111         were coreutils-specific.
65112         (vc-dist): Remove rule.
65113         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
65114         Run vc-diff-check, not vc-dist.
65115         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
65117 2009-08-27  Bruno Haible  <bruno@clisp.org>
65119         * tests/test-bitrotate.c (main): Remove test that uses a shift count
65120         of 0.
65122 2009-08-27  Bruno Haible  <bruno@clisp.org>
65124         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
65125         compilers.
65126         * doc/func.texi: Document the SunPRO C bug.
65128 2009-08-27  Bruno Haible  <bruno@clisp.org>
65130         Fix link error on Solaris.
65131         * tests/test-parse-duration.c (xstrdup): Remove function.
65133 2009-08-26  Pádraig Brady  <P@draigbrady.com>
65135         ignore-value: handle pointer types, too
65136         * lib/ignore-value.h (__attribute__): Remove definition.
65137         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
65138         of a more concise and more-often effective "(void) i" statement.
65139         (ignore_ptr): New function to suppress warnings from functions that
65140         return pointers, and to make it explicit that one function doesn't
65141         handle all cases.
65143 2009-08-25  Bruno Haible  <bruno@clisp.org>
65145         dup2: work around a Linux bug.
65146         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
65147         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
65148         * doc/posix-functions/dup2.texi: Mention the Linux bug.
65149         Reported by Simon Josefsson.
65151 2009-08-25  Jim Meyering  <meyering@redhat.com>
65153         libguestfs uses gnulib
65154         * users.txt: Add libguestfs.
65156 2009-08-24  Eric Blake  <ebb9@byu.net>
65158         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
65159         * lib/pipe2.c (includes): Add binary-io.h.
65160         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
65162 2009-08-24  Bruno Haible  <bruno@clisp.org>
65164         Tolerate declared but missing accept4 syscall.
65165         * lib/accept4.c (accept4): Invoke original accept4 function first, if
65166         available.
65167         * lib/sys_socket.in.h (accept4): If the function is already present,
65168         override it.
65169         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
65170         * modules/accept4 (Makefile.am): Compile accept4.c always.
65171         Reported by Paolo Bonzini and Eric Blake.
65173 2009-08-23  Bruno Haible  <bruno@clisp.org>
65175         New module 'accept4'.
65176         * lib/sys_socket.in.h (accept4): New declaration.
65177         * lib/accept4.c: New file.
65178         * m4/accept4.m4: New file.
65179         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65180         GNULIB_ACCEPT4, HAVE_ACCEPT4.
65181         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
65182         HAVE_ACCEPT4.
65183         * modules/accept4: New file.
65184         * doc/glibc-functions/accept4.texi: Mention the new module.
65186 2009-08-24  Jim Meyering  <meyering@redhat.com>
65188         progname: also set global program_invocation_name, when possible
65189         Before this change, a libtool-enabled program that calls glibc's
65190         error function would report the program name as
65191         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
65192         * modules/progname (configure.ac): Check for a declaration of
65193         program_invocation_name.
65194         * lib/progname.c:  Include <errno.h>.
65195         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
65196         Set program_invocation_name.
65198 2009-08-23  Bruno Haible  <bruno@clisp.org>
65200         * lib/dup3.c: Include <string.h>.
65202 2009-08-23  Bruno Haible  <bruno@clisp.org>
65204         * lib/dup3.c (dup3): Test only once whether the system actually exists.
65205         * lib/pipe2.c (pipe2): Likewise.
65206         Suggested by Eric Blake.
65208 2009-08-23  Bruno Haible  <bruno@clisp.org>
65210         Tolerate declared but missing dup3 syscall.
65211         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
65212         * lib/unistd.in.h (dup3): If the function is already present,
65213         override it.
65214         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
65215         * modules/dup3 (Makefile.am): Compile dup3.c always.
65216         Reported by Paolo Bonzini.
65218 2009-08-23  Bruno Haible  <bruno@clisp.org>
65220         Tolerate declared but missing pipe2 syscall.
65221         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
65222         available.
65223         * lib/unistd.in.h (pipe2): If the function is already present,
65224         override it.
65225         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
65226         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
65227         Reported by Paolo Bonzini.
65229 2009-08-23  Bruno Haible  <bruno@clisp.org>
65231         * lib/pipe2.c (pipe2): Move #ifs inside function.
65233 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65235         quotearg: document limitations of quote_these_too
65236         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
65237         those limitations are created.
65238         * lib/quotearg.h (set_char_quoting): Document that digits and
65239         letters that are special after backslash are not permitted.
65240         (quotearg_char): Cross-reference set_char_quoting documentation.
65242 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
65244         quotearg: implement custom_quoting_style
65245         * lib/quotearg.c: (struct quoting_options): Add left_quote and
65246         right_quote fields.
65247         (set_custom_quoting): New public function.
65248         (quotearg_buffer_restyled): Add left_quote and right_quote
65249         arguments, handle them very much like locale quoting, and update
65250         all uses.
65251         (quotearg_n_custom): New public function.
65252         (quotearg_n_custom_mem): New public function.
65253         (quotearg_custom): New public function.
65254         (quotearg_custom_mem): New public function.
65255         * lib/quotearg.h: Prototype and document new public functions.
65256         (enum quoting_style): For escape_quoting_style and
65257         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
65258         ignored even though they're otherwise like c_quoting_style.
65259         Add custom_quoting_style member and document with comparison to
65260         clocale_quoting_style.
65261         * tests/test-quotearg.c (custom_quotes): New array.
65262         (custom_results): New array.
65263         (main): Extend to test custom quoting.
65265 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65267         quotearg: fix right quote escaping when it's in quote_these_too
65268         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
65269         quote, be sure to prepend only one backslash.
65270         * tests/test-quotearg.c (use_quote_double_quotes): New function.
65271         (main): Test it.
65273 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65275         quotearg-tests: test escaping of embedded locale quotes
65276         * tests/test-quotearg.c (struct result_strings): Add member for
65277         new input.
65278         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
65279         (inputs): Add new input.
65280         (results_g): Add expected results.
65281         (flag_results): Likewise.
65282         (locale_results): Likewise.
65283         (compare_strings): Check those.
65285 2009-08-23  Bruno Haible  <bruno@clisp.org>
65287         Tests for module 'dup3'.
65288         * modules/dup3-tests: New file.
65289         * tests/test-dup3.c: New file.
65291         New module 'dup3'.
65292         * lib/unistd.in.h (dup3): New declaration.
65293         * lib/dup3.c: New file.
65294         * m4/dup3.m4: New file.
65295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65296         HAVE_DUP3.
65297         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65298         * modules/dup3: New file.
65299         * doc/glibc-functions/dup3.texi: Mention the new module.
65301 2009-08-23  Bruno Haible  <bruno@clisp.org>
65303         Tweak the dup2 test.
65304         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65305         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65306         the test file is still empty. Fix argument order of lseek.
65308 2009-08-23  Bruno Haible  <bruno@clisp.org>
65310         Avoid test link errors when the modules getopt-gnu, gettext are used.
65311         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65314 2009-08-23  Bruno Haible  <bruno@clisp.org>
65316         Fix getdtablesize() on mingw.
65317         * lib/getdtablesize.c (getdtablesize): Implement differently.
65318         * lib/unistd.in.h (getdtablesize): Improve comment.
65320 2009-08-23  Bruno Haible  <bruno@clisp.org>
65322         New module 'mkostemp'.
65323         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65324         * lib/stdlib.in.h (mksotemp): New declaration.
65325         * lib/mkostemp.c: New file, from glibc with modifications.
65326         * lib/tempname.h (GT_FILE): Remove outdated comment.
65327         (gen_tempname): Add flags argument.
65328         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65329         (__GT_FILE): Map to 1.
65330         (small_open, large_open): Remove macros.
65331         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65332         * lib/mkstemp.c (mkstemp): Update.
65333         * lib/mkdtemp.c (mkdtemp): Likewise.
65334         * m4/mkostemp.m4: New file.
65335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65336         HAVE_MKOSTEMP.
65337         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65338         HAVE_MKOSTEMP.
65339         * modules/mkostemp: New file, based on modules/mkstemp.
65340         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65341         * NEWS: Mention the change.
65343 2009-08-23  Bruno Haible  <bruno@clisp.org>
65345         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65346         Reported by Eric Blake.
65348 2009-08-23  Bruno Haible  <bruno@clisp.org>
65350         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65351         Reported by Eric Blake.
65353 2009-08-23  Bruno Haible  <bruno@clisp.org>
65355         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65356         * modules/pipe2 (Depends-on): Likewise.
65358 2009-08-23  Eric Blake  <ebb9@byu.net>
65360         fcntl-h: add O_TTY_INIT support
65361         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65362         * tests/test-fcntl-h.c (o): Test it.
65363         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65365         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65366         * modules/fcntl: Move <fcntl.h> header replacement...
65367         * modules/fcntl-h: ...to new name, so as not to collide with
65368         like-named function.
65369         * tests/test-fcntl.c: Rename...
65370         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65371         * modules/fcntl-tests: Rename...
65372         * modules/fcntl-h-tests: ...to this.  Update test file name.
65373         * modules/chdir-long (Depends-on): Update clients.
65374         * modules/chdir-safer (Depends-on): Likewise.
65375         * modules/fcntl-safer (Depends-on): Likewise.
65376         * modules/fts (Depends-on): Likewise.
65377         * modules/mkancesdirs (Depends-on): Likewise.
65378         * modules/mkdir-p (Depends-on): Likewise.
65379         * modules/open (Depends-on): Likewise.
65380         * modules/savewd (Depends-on): Likewise.
65381         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65382         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65384 2009-08-22  Bruno Haible  <bruno@clisp.org>
65386         * modules/binary-io (License): Relicense under LGPL.
65387         * modules/pipe2 (License): Likewise.
65389 2009-08-22  Bruno Haible  <bruno@clisp.org>
65391         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65392         return value.
65393         * lib/pipe-filter-gi.c (filter_init): Likewise.
65394         Reported by Eric Blake.
65396 2009-08-22  Bruno Haible  <bruno@clisp.org>
65398         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65399         * modules/pipe (Depends-on): Add pipe2.
65401 2009-08-22  Bruno Haible  <bruno@clisp.org>
65403         Tests for module 'pipe2'.
65404         * modules/pipe2-tests: New file.
65405         * tests/test-pipe2.c: New file.
65407         New module 'pipe2'.
65408         * lib/unistd.in.h (pipe2): New declaration.
65409         * lib/pipe2.c: New file.
65410         * m4/pipe2.m4: New file.
65411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65412         HAVE_PIPE2.
65413         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65414         * modules/pipe2: New file.
65415         * doc/glibc-functions/pipe2.texi: Mention the new module.
65417 2009-08-22  Bruno Haible  <bruno@clisp.org>
65419         Reference some new glibc functions.
65420         * doc/glibc-functions/accept4.texi: New file.
65421         * doc/glibc-functions/dup3.texi: New file.
65422         * doc/glibc-functions/mkostemp.texi: New file.
65423         * doc/glibc-functions/pipe2.texi: New file.
65424         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65425         (Glibc sys/socket.h): Refer to accept4.
65426         (Glibc unistd.h): Refer to dup3, pipe2.
65427         Reported by Eric Blake.
65429 2009-08-22  Jim Meyering  <meyering@redhat.com>
65430             Bruno Haible  <bruno@clisp.org>
65432         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65433         This makes it so packages using automake-1.11's silent-rules option
65434         can print e.g., a single "GEN    configmake.h" line, rather than
65435         the 30+ statements that perform the job.  If you want to see the
65436         actual commands, you can still run "make V=1".
65437         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65438         so that make output is abbreviated when those variables are defined
65439         appropriately.
65440         * modules/argz: Likewise.
65441         * modules/arpa_inet: Likewise.
65442         * modules/byteswap: Likewise.
65443         * modules/configmake: Likewise.
65444         * modules/dirent: Likewise.
65445         * modules/errno: Likewise.
65446         * modules/fcntl: Likewise.
65447         * modules/float: Likewise.
65448         * modules/fnmatch: Likewise.
65449         * modules/getopt-posix: Likewise.
65450         * modules/glob: Likewise.
65451         * modules/iconv_open: Likewise.
65452         * modules/inttypes: Likewise.
65453         * modules/localcharset: Likewise.
65454         * modules/locale: Likewise.
65455         * modules/math: Likewise.
65456         * modules/netdb: Likewise.
65457         * modules/netinet_in: Likewise.
65458         * modules/poll: Likewise.
65459         * modules/posix_spawnp-tests: Likewise.
65460         * modules/sched: Likewise.
65461         * modules/search: Likewise.
65462         * modules/selinux-h: Likewise.
65463         * modules/signal: Likewise.
65464         * modules/spawn: Likewise.
65465         * modules/stdarg: Likewise.
65466         * modules/stdbool: Likewise.
65467         * modules/stddef: Likewise.
65468         * modules/stdint: Likewise.
65469         * modules/stdio: Likewise.
65470         * modules/stdlib: Likewise.
65471         * modules/string: Likewise.
65472         * modules/strings: Likewise.
65473         * modules/sys_file: Likewise.
65474         * modules/sys_ioctl: Likewise.
65475         * modules/sys_select: Likewise.
65476         * modules/sys_socket: Likewise.
65477         * modules/sys_stat: Likewise.
65478         * modules/sys_time: Likewise.
65479         * modules/sys_times: Likewise.
65480         * modules/sys_utsname: Likewise.
65481         * modules/sys_wait: Likewise.
65482         * modules/sysexits: Likewise.
65483         * modules/time: Likewise.
65484         * modules/unistd: Likewise.
65485         * modules/wchar: Likewise.
65486         * modules/wctype: Likewise.
65488 2009-08-22  Jim Meyering  <meyering@redhat.com>
65490         announce-gen: detect write failure
65491         * build-aux/announce-gen: Add Coda at end.
65492         Remove equivalent-but-more-verbose block at top.
65494 2009-08-19  Akim Demaille  <demaille@gostai.com>
65496         bootstrap: --help to stdout.
65497         * bootstrap (usage): Don't send --help to stderr.
65498         Use a here doc instead of a long string.
65500 2009-08-21  Eric Blake  <ebb9@byu.net>
65502         test-popen-safer: split from test-popen
65503         * tests/test-popen.c (main): Move...
65504         * tests/test-popen.h: ...into new file.
65505         * tests/test-popen-safer2.c: New file.
65506         * modules/popen-tests (Files): Add test-popen.h.
65507         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65508         Suggested by Bruno Haible.
65510         test-fcntl-safer: split from test-open
65511         * tests/test-open.c (main): Move...
65512         * tests/test-open.h: ...into new file.
65513         * tests/test-fcntl-safer.c: New file.
65514         * modules/open-tests (Files): Add test-open.h.
65515         * modules/fcntl-safer-tests: New file.
65516         Suggested by Bruno Haible.
65518         test-fopen-safer: split from test-fopen
65519         * tests/test-fopen.c (main): Move...
65520         * tests/test-fopen.h: ...into new file.
65521         * tests/test-fopen-safer.c: New file.
65522         * modules/fopen-tests (Files): Add test-fopen.h.
65523         * modules/fopen-safer-tests: New file.
65524         Suggested by Bruno Haible.
65526 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65528         popen-safer: test O_CLOEXEC at run-time.
65529         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65531 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65533         fcntl: move more flags to the header
65534         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65535         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65536         * lib/fcntl.in.h: Do both things here.
65538 2009-08-21  Jim Meyering  <meyering@redhat.com>
65540         consistently remove $@-t before redirecting to it
65541         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65542         * modules/alloca-opt: Likewise.
65543         * modules/byteswap: Likewise.
65544         * modules/fnmatch: Likewise.
65545         * modules/getopt-posix: Likewise.
65546         * modules/glob: Likewise.
65547         * modules/poll: Likewise.
65548         * modules/posix_spawnp-tests: Likewise.
65549         * modules/sys_socket: Likewise.
65550         * modules/sysexits: Likewise.
65552 2009-08-21  Eric Blake  <ebb9@byu.net>
65554         popen: simplify access to original popen
65555         * lib/popen.c (rpl_popen): No need to worry about popen being a
65556         macro.
65557         Reported by Bruno Haible.
65559 2009-08-20  Eric Blake  <ebb9@byu.net>
65561         build: avoid some compiler warnings
65562         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
65563         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
65564         type.
65565         (new_exclude_segment, excluded_file_pattern_p)
65566         (excluded_file_name_p): Reduce scope.
65567         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
65568         old-style declaration.
65570 2009-08-20  Simon Josefsson  <simon@josefsson.org>
65572         * tests/test-exclude1.sh: Handle Windows EOL.
65573         * tests/test-exclude2.sh: Likewise.
65574         * tests/test-exclude3.sh: Likewise.
65575         * tests/test-exclude4.sh: Likewise.
65576         * tests/test-exclude5.sh: Likewise.
65577         * tests/test-exclude6.sh: Likewise.
65578         * tests/test-exclude7.sh: Likewise.
65580 2009-08-19  Akim Demaille  <demaille@gostai.com>
65582         bootstrap: find sha1sum when named gsha1sum.
65583         * bootstrap (find_tool): New.
65584         ($SHA1SUM): New.
65585         Use it.
65587 2009-08-20  Jim Meyering  <meyering@redhat.com>
65589         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
65590         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
65591         expression that converts "." in a file name to "\." in the resulting
65592         regexp.  Start with a dummy statement, so that prior shell variable
65593         definitions are expanded portably.  Reported by Simon Josefsson.
65595 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
65597         Fix polling for writeability of a screen buffer.
65598         * lib/poll.c: Distinguish input and screen buffers for the
65599         Win32 implementation.
65600         * lib/select.c: Likewise.
65602 2009-08-19  Eric Blake  <ebb9@byu.net>
65604         popen-safer: prevent popen from clobbering std descriptors
65605         * modules/popen-safer: New file.
65606         * lib/popen-safer.c: Likewise.
65607         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
65608         * lib/stdio--.h (popen): Provide override.
65609         * lib/stdio-safer.h (popen_safer): Provide declaration.
65610         * tests/test-popen.c (includes): Partially test this.
65611         * modules/popen-safer-tests: New file, for more tests.
65612         * tests/test-popen-safer.c: Likewise.
65613         * MODULES.html.sh (file stream based Input/Output): Mention it.
65615         tests: test some of the *-safer modules
65616         * modules/fopen-safer (Depends-on): Add fopen.
65617         * modules/fcntl-safer (Depends-on): Add fcntl.
65618         * modules/stdlib-safer (Depends-on): Add stdlib.
65619         (configure.ac): Set indicator.
65620         * modules/unistd-safer (configure.ac): Likewise.
65621         * modules/tmpfile-safer (configure.ac): Likewise.
65622         (Depends-on): Add tmpfile.
65623         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
65624         active.
65625         * tests/test-fopen.c (includes): Test safer versions when they are
65626         in use.
65627         * tests/test-open.c (includes): Likewise.
65629         popen: fix cygwin 1.5 bug when stdin closed
65630         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
65631         * modules/popen: New file.
65632         * modules/popen-tests: Likewise.
65633         * tests/test-popen.c: Likewise.
65634         * m4/popen.m4: Likewise.
65635         * lib/popen.c: Likewise.
65636         * lib/stdio.in.h (popen): New declaration.
65637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
65638         * modules/stdio (Makefile.am): Likewise.
65639         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
65641 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
65643         maint.mk: give full control over update-copyright exclusions
65644         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
65645         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
65646         (update-copyright): Don't force inclusion of top-level
65647         ChangeLog.  Don't force exclusion of all COPYING files, but make
65648         them the default exclusion instead.
65650 2009-08-16  Bruno Haible  <bruno@clisp.org>
65652         Fix test failures on Solaris 10.
65653         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
65654         tests when Solaris iconv() is used.
65655         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65656         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65657         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65658         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65659         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65661 2009-08-16  Bruno Haible  <bruno@clisp.org>
65663         Fix test failures on Solaris 10.
65664         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
65665         'tr' program and pass it as first argument.
65666         * tests/test-pipe-filter-gi1.sh: Likewise.
65667         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
65668         program as first argument.
65669         * tests/test-pipe-filter-gi1.c (main): Likewise.
65671 2009-08-16  Eric Blake  <ebb9@byu.net>
65673         fpurge: fix previous commits
65674         * modules/fpurge (Makefile.am): Make replacement conditional,
65675         partially reverting 2007-04-29 change; missed in previous
65676         attempt.
65677         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
65678         is missing.
65680 2009-08-16  Bruno Haible  <bruno@clisp.org>
65682         Clarify fpurge's effect on the file position.
65683         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
65684         * tests/test-fpurge.c (main): Make a second pass for checking the file
65685         position.
65687 2009-08-16  Bruno Haible  <bruno@clisp.org>
65689         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
65690         declaration of fpurge is missing.
65691         * tests/test-fpurge.c (main): Check that the file has not more contents
65692         than expected. Close the file before removing it.
65694 2009-08-15  Eric Blake  <ebb9@byu.net>
65696         fpurge: don't wrap working cygwin implementation
65697         * lib/fpurge.c (fpurge): Fix comment typo.
65698         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
65699         1.7 to avoid replacement.
65700         * tests/test-fpurge.c (main): Enhance test.
65702 2009-08-15  Eric Blake  <ebb9@byu.net>
65703         and Jim Meyering  <meyering@redhat.com>
65705         test-update-copyright: skip if perl is insufficient
65706         * tests/test-update-copyright.sh: Failure to run maintainer tool
65707         should not cause testsuite failure on cygwin 1.5.
65709 2009-08-14  Eric Blake  <ebb9@byu.net>
65711         doc: mention more functions added in cygwin 1.7.0
65712         * doc/posix-headers/limits.texi (limits.h): Update for recent
65713         cygwin additions.
65714         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
65715         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
65716         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
65717         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
65718         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
65720 2009-08-14  Eric Blake  <ebb9@byu.net>
65722         maint.mk: simplify update-copyright rule
65723         * top/maint.mk (update-copyright-local): Delete, and document how
65724         to do it in cfg.mk instead.
65725         (update-copyright-exclude-regexp): Delete, and document how to do
65726         it in .x-update-copyright instead.
65727         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
65728         exclude ChangeLog.
65730 2009-08-14  Bruno Haible  <bruno@clisp.org>
65732         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
65734 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65736         maint.mk: support update-copyright-env
65737         * top/maint.mk (update-copyright-env): Define place-holder.
65738         (update-copyright): Expand $(update-copyright-env) before
65739         invoking update-copyright.
65741 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65743         update-copyright: implement forced reformatting
65744         * build-aux/update-copyright: Implement and document
65745         UPDATE_COPYRIGHT_FORCE.
65746         * tests/test-update-copyright.sh: Test it.
65748 2009-08-14  Eric Blake  <ebb9@byu.net>
65749         and Bruno Haible  <bruno@clisp.org>
65751         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
65752         * tests/test-locale.c: Revert previous patch related to NULL.
65753         * tests/test-stdio.c: Likewise.
65754         * tests/test-stdlib.c: Likewise.
65755         * tests/test-string.c: Likewise.
65756         * tests/test-unistd.c: Likewise.
65757         * modules/time-tests (Depends-on): Add verify.
65758         * modules/wchar-tests (Depends-on): Likewise.
65759         * tests/test-time.c: Test for NULL compliance.
65760         * tests/test-wchar.c: Likewise.
65761         * modules/locale (Depends-on): Add stddef.
65762         * modules/stdio (Depends-on): Likewise.
65763         * modules/stdlib (Depends-on): Likewise.
65764         * modules/string (Depends-on): Likewise.
65765         * modules/time (Depends-on): Likewise.
65766         * modules/unistd (Depends-on): Likewise.
65767         * modules/wchar (Depends-on): Likewise.
65768         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
65769         * lib/stdlib.in.h (includes): Likewise.
65770         * lib/string.in.h (includes): Likewise.
65771         * lib/time.in.h (includes): Likewise.
65772         * lib/unistd.in.h (includes): Likewise.
65773         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
65774         replaced.
65775         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65776         * m4/stddef_h.m4: New file.
65777         * modules/stddef: Likewise.
65778         * lib/stddef.in.h: Likewise.
65779         * modules/stddef-tests: Likewise.
65780         * tests/test-stddef.c: Likewise.
65781         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
65782         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
65783         * doc/posix-headers/locale.texi (locale.h): Likewise.
65784         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
65785         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65786         * doc/posix-headers/string.texi (string.h): Likewise.
65787         * doc/posix-headers/time.texi (time.h): Likewise.
65788         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
65789         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
65791 2009-08-14  Eric Blake  <ebb9@byu.net>
65793         doc: improve git diff of texinfo files
65794         * .gitattributes: Add rule for *.texi files, with hint on how to
65795         use it.
65796         Copied from m4, and based on a report by Bruno Haible.
65798 2009-08-14  Bruno Haible  <bruno@clisp.org>
65800         Disable multithread support by default on Cygwin 1.5.x for real.
65801         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
65803 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65805         update-copyright: much ado about intervals
65806         * build-aux/update-copyright: Implement and document
65807         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
65808         of copyright year intervals.
65809         Also, document UPDATE_COPYRIGHT_YEAR.
65810         * tests/test-update-copyright.sh: Test it.
65812         update-copyright: convert 2-digit to 4-digit years
65813         * build-aux/update-copyright: Implement and document.
65814         * tests/test-update-copyright.sh: Update.
65816 2009-08-14  Jim Meyering  <meyering@redhat.com>
65818         test-exclude: avoid coreutils "make check" failure
65819         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
65820         just as in test-argmatch.c.
65822 2009-08-13  Eric Blake  <ebb9@byu.net>
65824         test-dup2: fix bad assumption
65825         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
65826         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
65828         test-version-etc: fix CRLF portability issue
65829         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
65830         recognize \r.
65831         * tests/test-argp-version-etc-1.sh: Likewise.
65833         getopt: update client modules
65834         * modules/argp (Depends-on): Use getopt-gnu.
65835         * modules/git-merge-changelog (Depends-on): Likewise.
65836         * modules/long-options (Depends-on): Likewise.
65837         * modules/xstrtol (Depends-on): Likewise.
65839 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65841         * tests/test-version-etc.sh: Don't fail on different
65842         project/version.  Don't fail on CRLF differences.  Rewrite to use
65843         multiple -e instead of multiple sed forks, suggested by Eric Blake
65844         <ebb9@byu.net>.
65845         * tests/test-argp-version-etc-1.sh: Likewise.
65847 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65849         * tests/test-version-etc.sh: Don't fail on different
65850         project/version.
65852 2009-08-12  Bruno Haible  <bruno@clisp.org>
65854         Tests for modules 'getopt-posix', 'getopt-gnu'.
65855         * modules/getopt-posix-tests: New file.
65856         * tests/test-getopt.c: New file.
65857         * tests/test-getopt.h: New file.
65858         * tests/test-getopt_long.h: New file.
65860         New modules 'getopt-posix', 'getopt-gnu'.
65861         * modules/getopt-gnu: New file, renamed from modules/getopt.
65862         * modules/getopt-posix: New file.
65863         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
65864         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
65865         (gl_GETOPT): Remove macro.
65866         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
65867         Disable the test against BSD systems that declare optreset. Test
65868         against mingw bug. Test against lack of support of optional arguments
65869         on many platforms.
65870         * doc/glibc-headers/getopt.texi: Update module name and list of
65871         relevant platforms.
65872         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
65873         'getopt-gnu' and more portability problems.
65874         * NEWS: Mention the changes.
65876 2009-08-12  Bruno Haible  <bruno@clisp.org>
65878         Ensure that optarg etc. get declared by <unistd.h>.
65879         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
65880         AC_USE_SYSTEM_EXTENSIONS.
65881         * modules/getopt (Depends-on): Add 'extensions'.
65883 2009-08-12  Bruno Haible  <bruno@clisp.org>
65885         Avoid test link errors.
65886         * modules/pipe-filter-ii-tests (Makefile.am): Define
65887         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
65888         * modules/pipe-filter-gi-tests (Makefile.am): Define
65889         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
65890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65892 2009-08-12  Bruno Haible  <bruno@clisp.org>
65894         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
65895         gl_GETOPT_SUBSTITUTE before.
65896         (gl_GETOPT): Use it.
65897         * m4/argp.m4 (gl_ARGP): Update.
65898         Reported by Sergey Poznyakoff.
65900         * m4/getopt.m4: Reorder macros.
65901         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
65902         (gl_GETOPT_SUBSTITUTE): Remove macro.
65904 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65906         Minor improvement in gitlog-to-changelog
65908         * build-aux/gitlog-to-changelog: New option `--format' makes
65909         output format string configurable.
65911 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65913         Optimize exclude: use hash tables for non-wildcard patterns.
65915         * lib/exclude.c: Include hash.h and mbuiter.h
65916         (struct exclude_pattern, exclude_segment): New data types.
65917         (struct exclude): Rewrite.
65918         (fnmatch_pattern_has_wildcards): New function.
65919         (new_exclude_segment, free_exclude_segment): New functions.
65920         (excluded_file_pattern_p, excluded_file_name_p): New functions.
65921         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
65922         * lib/exclude.h (is_fnmatch_pattern): New prototype.
65923         * modules/exclude: Depend on hash and mbuiter.
65925         * modules/exclude-tests: New file.
65926         * tests/test-exclude.c: New file.
65927         * tests/test-exclude1.sh: New file.
65928         * tests/test-exclude2.sh: New file.
65929         * tests/test-exclude3.sh: New file.
65930         * tests/test-exclude4.sh: New file.
65931         * tests/test-exclude5.sh: New file.
65932         * tests/test-exclude6.sh: New file.
65933         * tests/test-exclude7.sh: New file.
65935 2009-08-12  Bruno Haible  <bruno@clisp.org>
65937         Ensure that getopt() gets declared by <unistd.h>.
65938         * lib/unistd.in.h: Conditionally include getopt.h.
65939         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
65940         Set GNULIB_UNISTD_H_GETOPT.
65941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65942         GNULIB_UNISTD_H_GETOPT.
65943         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
65945 2009-08-12  Bruno Haible  <bruno@clisp.org>
65947         Clarify logic.
65948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
65949         gl_replace_getopt instead of GETOPT_H.
65951 2009-08-12  Bruno Haible  <bruno@clisp.org>
65953         * m4/getopt.m4: Add comments.
65955 2009-08-12  Bruno Haible  <bruno@clisp.org>
65957         Disable multithread support by default on Cygwin 1.5.x.
65958         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
65959         set gl_use_threads=no if not specified otherwise.
65961 2009-08-11  Bruno Haible  <bruno@clisp.org>
65963         Avoid compilation error on NetBSD 5.0.
65964         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
65965         * tests/test-stdio.c: Likewise.
65966         * tests/test-stdlib.c: Likewise.
65967         * tests/test-string.c: Likewise.
65968         * tests/test-unistd.c: Likewise.
65969         Reported by Greg Troxel <gdt@ir.bbn.com>
65970         at <https://savannah.gnu.org/support/?106973>.
65972 2009-08-11  Bruno Haible  <bruno@clisp.org>
65974         * modules/dup2-tests (Depends-on): Remove close.
65976         Undo 2009-07-19 commit.
65977         * modules/acl-tests (Depends-on): Remove close.
65978         * modules/binary-io-tests (Depends-on): Likewise.
65979         * modules/closein-tests (Depends-on): Likewise.
65980         * modules/flock-tests (Depends-on): Likewise.
65981         * modules/fsync-tests (Depends-on): Likewise.
65982         * modules/lseek-tests (Depends-on): Likewise.
65983         * modules/pipe-tests (Depends-on): Likewise.
65984         * modules/posix_spawn-tests (Depends-on): Likewise.
65985         * modules/posix_spawnp-tests (Depends-on): Likewise.
65986         * modules/stat-time-tests (Depends-on): Likewise.
65987         * modules/yesno-tests (Depends-on): Likewise.
65989 2009-08-10  Bruno Haible  <bruno@clisp.org>
65991         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
65993 2009-08-10  Bruno Haible  <bruno@clisp.org>
65995         Fix a gcc warning.
65996         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
65998 2009-08-10  Bruno Haible  <bruno@clisp.org>
66000         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
66001         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
66002         not only the first time.
66003         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
66004         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
66005         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
66006         is 1, not only the first time.
66008 2009-08-10  Bruno Haible  <bruno@clisp.org>
66010         Make it possible to use module 'gethostname' without module 'close'.
66011         * lib/unistd.in.h (close): Evoke a link error only if
66012         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66014         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66015         * modules/unistd (Makefile.am): Substitute
66016         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66017         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
66018         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66019         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66020         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66021         * modules/sys_ioctl (Makefile.am): Substitute
66022         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66023         * modules/socket (configure.ac): On native Windows, set
66024         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
66025         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66026         Reported by Sam Steingold <sds@gnu.org>.
66028 2009-08-10  Bruno Haible  <bruno@clisp.org>
66030         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
66031         * modules/ioctl (configure.ac): Likewise.
66033 2009-08-10  Bruno Haible  <bruno@clisp.org>
66035         Avoid collision between gnulib wrapper and libintl wrapper.
66036         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
66037         already defined in intl/printf.c.
66038         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
66039         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
66041 2009-08-09  Bruno Haible  <bruno@clisp.org>
66043         Make <sys/select.h> really self-contained, also on Solaris 10.
66044         * lib/sys_select.in.h: Include <string.h>.
66045         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
66046         Solaris 10 problem.
66047         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
66048         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
66049         Reported by Jim Meyering.
66051 2009-08-09  Bruno Haible  <bruno@clisp.org>
66053         Avoid warnings from 'aclocal' that are due to a use of macro name
66054         AM_XGETTEXT_OPTION that is not defined in automake.
66055         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
66056         automake.
66057         * modules/error (configure.ac): Likewise.
66058         * modules/propername (configure.ac): Likewise.
66059         * modules/vasprintf (configure.ac): Likewise.
66060         * modules/verror (configure.ac): Likewise.
66061         * modules/xprintf (configure.ac): Likewise.
66062         * modules/xvasprintf (configure.ac): Likewise.
66064 2009-08-08  Bruno Haible  <bruno@clisp.org>
66066         Avoid compilation error in C++ mode.
66067         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
66068         Reported by Sam Steingold <sds@gnu.org>.
66070 2009-08-08  Bruno Haible  <bruno@clisp.org>
66072         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
66073         for the various Unix platforms.
66074         * doc/posix-headers/limits.texi: Update platforms list regarding
66075         HOST_NAME_MAX.
66076         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66078 2009-08-07  Jim Meyering  <meyering@redhat.com>
66080         selinux-at: fix typo in a comment
66081         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
66082         Spotted by Paolo Bonzini.
66084         selinux-at: remove redundant m4 code, add documentation
66085         * modules/selinux-at (configure.ac): Remove redundant code.
66086         LIB_SELINUX is already set via the dependent module, selinux-h.
66087         (Include): Add quotes around selinux-at.h.
66088         * lib/selinux-at.h: Add documentation.
66089         Reported by Bruno Haible in
66090         http://marc.info/?l=gnulib-bug&m=124958988300749
66092 2009-08-07  Bruno Haible  <bruno@clisp.org>
66094         Avoid link error on MacOS X 10.3 and 10.4.
66095         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
66096         on non-ELF systems.
66097         * lib/argp-pv.c (argp_program_version): Likewise.
66098         Reported by Simon Josefsson.
66100 2009-08-07  Simon Josefsson  <simon@josefsson.org>
66102         * tests/test-version-etc.sh: Use $EXEEXT.
66104 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
66106         update-copyright: update documentation to point to maint.mk
66107         * build-aux/update-copyright: Here.
66109 2009-08-06  Jim Meyering  <meyering@redhat.com>
66111         maint.mk: support update-copyright-local
66112         * top/maint.mk (update-copyright-local): Define place-holder.
66113         (update-copyright): Depend on $(update-copyright-local).
66115 2009-08-06  Jim Meyering  <meyering@redhat.com>
66117         selinux-at: new module
66118         Initially written for coreutils, this module will soon be
66119         used by findutils, too.
66120         * MODULES.html.sh [Misc]: Add selinux-at.
66121         * lib/selinux-at.h: New file, from coreutils.
66122         * lib/selinux-at.c: Likewise.
66123         * modules/selinux-at: Likewise.
66124         (License): Change from LGPL to GPL, since it depends
66125         on the GPL'd openat module.
66127         doc: update README
66128         * README: Remove references to cogito.
66129         Remove cvs-repo-updating instructions from 2007.
66130         Don't imply that CVS is better if you have limited disk space.
66132 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66134         update-copyright: support C-style comments
66135         * build-aux/update-copyright: Implement and document.
66136         * tests/test-update-copyright.sh: Test.
66138 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66140         update-copyright: support omitted "(C)"
66141         * build-aux/update-copyright: Implement and document.  Also,
66142         allow variable whitespace before "(C)".
66143         * tests/test-update-copyright.sh: Test.
66145 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66147         update-copyright: don't trip on non-FSF copyright statements
66148         * build-aux/update-copyright: Fix so that the first correctly
66149         formatted FSF copyright statement is recognized no matter what
66150         appears before it.  Update documentation.
66151         * tests/test-update-copyright.sh: Test that.
66153 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66155         update-copyright: clean up code a little
66156         * build-aux/update-copyright: Append "_re" to the name of any
66157         variable holding a regular expression.
66158         Replace "old" and "new" with "stmt" in variable names.
66159         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
66160         handled correctly.
66161         Format code more consistently.
66163 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66165         update-copyright-tests: improve portability
66166         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
66167         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
66169 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66171         update-copyright: support @copyright{} and &copy;
66172         * build-aux/update-copyright: Implement and document.
66173         * tests/test-update-copyright.sh: Test.
66175 2009-08-04  Jim Meyering  <meyering@redhat.com>
66177         update-copyright-tests: correctly test EOL=\r\n handling
66178         * tests/test-update-copyright.sh: Put \r at the end of some lines
66179         for the dos-eol tests.  Based on a patch by Joel E. Denny.
66181         maint.mk: make update-copyright exclusion list more configurable
66182         * top/maint.mk (update-copyright): Default to excluding COPYING,
66183         but allow an override, in case someone does want to update that file.
66185         maint.mk: don't update copyright date in COPYING
66186         * top/maint.mk (update-copyright): Exclude COPYING.
66188         maint.mk: add a copyright-updating rule
66189         * top/maint.mk (update-copyright): New rule.
66190         Derived from coreutils/Makefile.am.
66192         update-copyright: rename some variables
66193         * build-aux/update-copyright: Rename a few variables for clarity.
66194         Tweak syntax.  List Joel E. Denny as coauthor.
66196 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66198         update-copyright: fix bug for 2-digit last year and add tests
66199         * build-aux/update-copyright: Fix bug.
66200         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
66201         specified.
66202         * modules/update-copyright-tests: New
66203         * tests/test-update-copyright.sh: New.
66205 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66207         update-copyright: handle leading tabs in line prefix
66208         * build-aux/update-copyright: Count leading tabs as 8 spaces
66209         when computing margin.  This helps with the formatting of
66210         ChangeLogs, for example.
66211         Fix documentation a little.
66213 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66215         update-copyright: support EOL=\r\n
66216         * build-aux/update-copyright: Implement that.
66218 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66220         update-copyright: automatically format copyright statements
66221         * build-aux/update-copyright: Implement that.
66222         Also, be a little more predictable and safer by always failing
66223         when the full copyright format is not perfectly recognized as an
66224         unbroken whole.  Discussed at
66225         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
66226         Rewrite documentation.
66228 2009-08-03  Bruno Haible  <bruno@clisp.org>
66230         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
66232 2009-08-02  Bruno Haible  <bruno@clisp.org>
66234         Tests for module 'uname'.
66235         * modules/uname-tests: New file.
66236         * tests/test-uname.c: New file.
66238         New module 'uname'.
66239         * lib/uname.c: New file.
66240         * m4/uname.m4: New file.
66241         * modules/uname: New file.
66242         * doc/posix-functions/uname.texi: Mention the new module.
66244 2009-08-02  Bruno Haible  <bruno@clisp.org>
66246         Tests for module 'sys_utsname'.
66247         * modules/sys_utsname-tests: New file.
66248         * tests/test-sys_utsname.c: New file.
66250         New module 'sys_utsname'.
66251         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
66252         * m4/sys_utsname_h.m4: New file.
66253         * modules/sys_utsname: New file.
66254         * doc/posix-headers/sys_utsname.texi: Mention the new module.
66256 2009-08-02  Bruno Haible  <bruno@clisp.org>
66258         Implicitly initialize the sockets library.
66259         * lib/gethostname.c: Include sockets.h.
66260         (rpl_gethostname): Invoke gl_sockets_startup.
66261         * lib/socket.c: Include sockets.h.
66262         (rpl_socket): Invoke gl_sockets_startup.
66263         * modules/gethostname (Depends-on): Add sockets.
66264         * modules/socket (Depends-on): Likewise.
66265         * tests/test-poll.c: Don't include sockets.h.
66266         (main): Don't invoke gl_sockets_startup.
66267         * tests/test-select.c: Don't include sockets.h.
66268         (main): Don't invoke gl_sockets_startup.
66270 2009-08-02  Bruno Haible  <bruno@clisp.org>
66272         Allow multiple calls to gl_sockets_startup.
66273         * lib/sockets.c (initialized_sockets_version): New variable.
66274         (gl_sockets_startup): Do nothing if already called for this or a higher
66275         version.
66276         (gl_sockets_cleanup): Reset initialized_sockets_version.
66278 2009-08-03  Simon Josefsson  <simon@josefsson.org>
66280         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
66281         different project/version.
66283 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66284             Bruno Haible  <bruno@clisp.org>
66286         Tests for module 'pipe-filter-gi'.
66287         * modules/pipe-filter-gi-tests: New file.
66288         * tests/test-pipe-filter-gi1.sh: New file.
66289         * tests/test-pipe-filter-gi1.c: New file.
66290         * tests/test-pipe-filter-gi2.sh: New file.
66291         * tests/test-pipe-filter-gi2-main.c: New file.
66292         * tests/test-pipe-filter-gi2-child.c: New file.
66294         New module 'pipe-filter-gi'.
66295         * lib/pipe-filter-gi.c: New file.
66296         * modules/pipe-filter-gi: New file.
66298 2009-08-02  Bruno Haible  <bruno@clisp.org>
66299             Paolo Bonzini  <bonzini@gnu.org>
66301         Tests for module 'pipe-filter-ii'.
66302         * modules/pipe-filter-ii-tests: New file.
66303         * tests/test-pipe-filter-ii1.sh: New file.
66304         * tests/test-pipe-filter-ii1.c: New file.
66305         * tests/test-pipe-filter-ii2.sh: New file.
66306         * tests/test-pipe-filter-ii2-main.c: New file.
66307         * tests/test-pipe-filter-ii2-child.c: New file.
66309         New module 'pipe-filter-ii'.
66310         * lib/pipe-filter.h: New file.
66311         * lib/pipe-filter-ii.c: New file.
66312         * lib/pipe-filter-aux.h: New file.
66313         * modules/pipe-filter-ii: New file.
66315 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66317         * lib/gc-libgcrypt.c: Change copyright to FSF.
66318         * lib/gc-gnulib.c: Likewise.
66320 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66322         * lib/gethostname.c: Include limits.h.
66324 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66325             Bruno Haible  <bruno@clisp.org>
66327         Ensure HOST_NAME_MAX as part of the gethostname module.
66328         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66329         define also HOST_NAME_MAX.
66330         * tests/test-gethostname.c: Include <limits.h>.
66331         (main): Check also HOST_NAME_MAX.
66332         * doc/posix-headers/limits.texi: Document the mingw problem.
66334 2009-08-02  Bruno Haible  <bruno@clisp.org>
66336         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66337         Add comments.
66339 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66341         * lib/gethostname.c: Add Windows wrapper.
66342         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66343         * modules/gethostname: Depend on sys_socket & errno, for also
66344         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66345         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66347 2009-07-31  Jim Meyering  <meyering@redhat.com>
66349         getloadavg: fix symbol name in comment
66350         * lib/getloadavg.c: Correct a typo I introduced when adding
66351         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66352         Matt Kraai spotted the problem.
66354 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66356         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66357         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66358         code also if ! defined N_NAME_POINTER.
66359         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66360         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66361         but the n_name member is a 12-byte array.
66363 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66365         update-copyright: generalize comment handling
66366         * build-aux/update-copyright: Handle copyright statements
66367         within more comment styles.
66368         Document usage.
66369         Report any file with an external copyright holder or parse failure.
66371 2009-07-29  Jim Meyering  <meyering@redhat.com>
66373         mktime: correct setting of REPLACE_MKTIME
66374         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66376         update-copyright: new module
66377         * modules/update-copyright: New file.
66378         * build-aux/update-copyright: New file.
66379         * MODULES.html.sh (maint+release support): Add update-copyright.
66381 2009-07-27  Bruno Haible  <bruno@clisp.org>
66383         Fix compilation error when <ctime> is used and mktime is replaced.
66384         * lib/time.in.h (mktime): New declaration.
66385         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66386         REPLACE_MKTIME instead of defining mktime in config.h.
66387         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66388         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66389         Reported by Ross McFarland <rwmcfa1@neces.com>.
66391 2009-07-27  Bruno Haible  <bruno@clisp.org>
66393         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66394         Reported by Matt Kraai <mkraai@beckman.com>.
66396 2009-07-25  Jim Meyering  <meyering@redhat.com>
66398         maint.mk: avoid warnings about missing files
66399         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66400         diagnostic when .prev-version does not exist.
66401         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66402         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66403         nonexistent cfg.mk.
66404         Suggestions from Simon Josefsson.
66406 2009-07-25  Bruno Haible  <bruno@clisp.org>
66408         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66409         defined as macros. Needed on QNX 6.4.1.
66410         Reported by Matt Kraai <mkraai@beckman.com>.
66412 2009-07-23  Jim Meyering  <meyering@redhat.com>
66414         maint.mk: invoke "make dist" with a working value of XZ_OPT
66415         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66417 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66419         Make fseeko.c compile on QNX.
66420         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66422 2009-07-22  Peter Simons  <simons@cryp.to>
66424         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66425         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66426         * lib/md4.h: Likewise.
66427         * lib/md5.h: Likewise.
66428         * lib/sha1.h: Likewise.
66429         * lib/sha256.h: Likewise.
66430         * lib/sha512.h: Likewise.
66432         tests-sha1: don't assign literal string to 'char *' variable
66433         * tests/test-sha1.c (main): Declare locals with "const" to match
66434         attributes of the right hand side.
66436 2009-07-21  Eric Blake  <ebb9@byu.net>
66438         dup2: fix more mingw problems
66439         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66440         fd to itself.
66441         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66442         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66443         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66444         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66445         care of mingw bugs.
66447 2009-07-21  Jim Meyering  <meyering@redhat.com>
66449         vc-list-files: avoid failure when /bin/sh is dash
66450         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66451         On some Debian based systems, /bin/sh is a symlink to dash, and running
66452         this command would omit the "/" following each 'tests' prefix:
66453           dash -x build-aux/vc-list-files -C . tests
66454         That is because bash and dash work differently:
66455           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66456           bash ok
66457           dash odd
66459 2009-07-21  Eric Blake  <ebb9@byu.net>
66461         dup2-tests: test previous patch
66462         * modules/dup2-tests: New file.
66463         * tests/test-dup2.c: Likewise.
66464         * tests/test-open.c (main): Avoid unspecified behavior.
66465         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66466         test.
66468         dup2: work around mingw and cygwin 1.5 bug
66469         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66471         * modules/unistd (Makefile.am): Substitute it.
66472         * lib/unistd.in.h (dup2): Declare the replacement.
66473         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66474         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66475         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66476         * modules/execute (Depends-on): Add dup2.
66477         * modules/fseterr (Depends-on): Likewise.
66478         * modules/pipe (Depends-on): Likewise.
66479         * modules/posix_spawn-internal (Depends-on): Likewise.
66481 2009-07-21  Bruno Haible  <bruno@clisp.org>
66483         * modules/.gitattributes: New file.
66485 2009-07-20  Bruno Haible  <bruno@clisp.org>
66487         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66488         (main): Use it.
66490 2009-07-20  Eric Blake  <ebb9@byu.net>
66492         test-pipe: make a bit more robust.
66493         * tests/test-pipe.c (myerr): Allow error messages regardless of
66494         what we do to stderr.
66495         (test_pipe): Rearrange to avoid deadlock.
66496         (child_main): Try a larger read, to ensure we avoided deadlock.
66497         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66498         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66499         if misused.
66501 2009-07-19  Jim Meyering  <meyering@redhat.com>
66503         fts: avoid false-positive cycle-detection
66504         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66505         for each new command line argument.
66507 2009-07-19  Bruno Haible  <bruno@clisp.org>
66509         Fix build error on mingw with the modules sys_select and unistd.
66510         * modules/acl-tests (Depends-on): Add close.
66511         * modules/binary-io-tests (Depends-on): Likewise.
66512         * modules/closein-tests (Depends-on): Likewise.
66513         * modules/flock-tests (Depends-on): Likewise.
66514         * modules/fsync-tests (Depends-on): Likewise.
66515         * modules/lseek-tests (Depends-on): Likewise.
66516         * modules/pipe-tests (Depends-on): Likewise.
66517         * modules/posix_spawn-tests (Depends-on): Likewise.
66518         * modules/posix_spawnp-tests (Depends-on): Likewise.
66519         * modules/stat-time-tests (Depends-on): Likewise.
66520         * modules/yesno-tests (Depends-on): Likewise.
66522 2009-07-19  Bruno Haible  <bruno@clisp.org>
66524         Unify conditionals.
66525         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66526         macros, not at the compiler macros.
66527         * lib/pipe.c: Likewise.
66528         * lib/execute.c: Likewise.
66529         * lib/spawni.c: Likewise.
66531 2009-07-19  Bruno Haible  <bruno@clisp.org>
66533         Fix handling of closed stdin/stdout/stderr on mingw.
66534         * lib/w32spawn.h: Include unistd.h.
66535         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66536         file descriptor with O_NOINHERIT flag.
66537         (fd_safer_noinherit): New function, based on fd-safer.c.
66538         (dup_safer_noinherit): New function, based on dup-safer.c.
66539         (undup_safer_noinherit): New function.
66540         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66541         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66542         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66543         instead of fd_safer.
66544         * tests/test-pipe.c: Include <windows.h>.
66545         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
66546         result.
66548         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
66549         from main.
66550         (test_pipe): Pass an extra argument for disambiguation.
66551         (main): Invoke parent_main or child_main.
66553         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
66554         consistently.
66556 2009-07-18  Eric Blake  <ebb9@byu.net>
66558         test-pipe: fix mingw build
66559         * tests/test-pipe.c (main): Avoid fcntl on mingw.
66561 2009-07-18  Bruno Haible  <bruno@clisp.org>
66563         * modules/pipe-tests (Makefile.am): Fix typo.
66565 2009-07-18  Eric Blake  <ebb9@byu.net>
66567         error: fix mingw build
66568         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
66569         Reported by Bruno Haible.
66571         error: avoid undefined use of stdout
66572         * lib/error.c (error, error_at_line): Check that fd 1 is open
66573         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
66574         is handling faults and the close_stdout module wants to report the
66575         detection of closed stdout as an error.
66577 2009-07-17  Eric Blake  <ebb9@byu.net>
66579         pipe: be robust in face of closed fds
66580         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
66581         should cause child to misbehave.
66582         * modules/pipe-tests: New module.
66583         * tests/test-pipe.c: New file.
66584         * tests/test-pipe.sh: New file.
66585         Reported by Akim Demaille.
66587 2009-07-14  Bruno Haible  <bruno@clisp.org>
66589         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
66590         Reported by anonymous kc.
66592 2009-07-07  Jim Meyering  <meyering@redhat.com>
66594         maint.mk: don't look for translatable strings in *.m4 or *.mk
66595         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
66596         when searching for translatable strings.
66598 2009-07-05  Jim Meyering  <meyering@redhat.com>
66600         remove superfluous parentheses in STREQ definition
66601         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
66602         * lib/getugroups.c (STREQ): Likewise.
66603         * lib/fnmatch.c (STREQ): Likewise.
66604         Spotted by Bruno Haible.
66606 2009-07-04  Jim Meyering  <meyering@redhat.com>
66608         argv-iter: new module
66609         * MODULES.html.sh: Add argv-iter.
66610         * lib/argv-iter.c, lib/argv-iter.h: New files.
66611         * modules/argv-iter: New file.
66612         * modules/argv-iter-tests: New file.
66613         * tests/test-argv-iter.c: Test it.
66615 2009-07-04  Bruno Haible  <bruno@clisp.org>
66617         Fix assertion.
66618         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
66619         contains more exact copies of a given entry than file2, leave the extra
66620         copies unpaired rather than aborting.
66621         Reported by Eric Blake.
66623 2009-07-02  Bruno Haible  <bruno@clisp.org>
66625         Speedup git-merge-changelog for git cherry-pick.
66626         * lib/git-merge-changelog.c (struct entries_mapping): New type.
66627         (entries_mapping_get): New function, extracted from compute_mapping.
66628         (entries_mapping_reverse_get): New function.
66629         (compute_mapping): Add a 'full' argument. Return the result in a
66630         'struct entries_mapping'.
66631         (main): Update. Access the mappings through entries_mapping_get.
66632         Reported by Eric Blake.
66634 2009-07-02  Bruno Haible  <bruno@clisp.org>
66636         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
66637         best_i.
66639 2009-07-02  Bruno Haible  <bruno@clisp.org>
66641         Speed up approximate search for matching ChangeLog entries.
66642         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
66643         argument. Call fstrcmp_bounded instead of fstrcmp.
66644         (compute_mapping, try_split_merged_entry, main): Update callers.
66646 2009-07-02  Bruno Haible  <bruno@clisp.org>
66648         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
66650 2009-06-30  Bruno Haible  <bruno@clisp.org>
66652         Reduce the number of uc_is_cased calls.
66653         * lib/unicase.h (casing_suffix_context_t): Add
66654         'first_char_except_ignorable' field.
66655         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
66656         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
66657         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
66658         Update initializer.
66659         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
66660         case-ignorable characters.
66661         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
66662         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
66663         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
66664         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
66665         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
66667 2009-06-30  Bruno Haible  <bruno@clisp.org>
66669         Tests for module 'unicase/ignorable'.
66670         * modules/unicase/ignorable-tests: New file.
66671         * tests/unicase/test-ignorable.c: New file, generated by
66672         gen-uni-tables.
66674         Tests for module 'unicase/cased'.
66675         * modules/unicase/cased-tests: New file.
66676         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
66677         * tests/unicase/test-predicate-part1.h: New file, derived from
66678         tests/unictype/test-predicate-part1.h.
66679         * tests/unicase/test-predicate-part2.h: New file, same as
66680         tests/unictype/test-predicate-part2.h.
66682         Fix evaluation of "Before C" condition of FINAL_SIGMA.
66683         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
66684         (output_casing_properties): New function.
66685         (main): Call it.
66686         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
66687         * lib/unicase/cased.c: Include unictype/bitmap.h.
66688         (uc_is_cased): Define through a bitmap lookup.
66689         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
66690         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
66691         (uc_is_case_ignorable): Define through a bitmap lookup.
66692         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
66693         lib/unictype/bitmap.h.
66694         (Depends-on): Add inline. Clean up.
66695         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
66696         lib/unictype/bitmap.h.
66697         (Depends-on): Add inline. Clean up.
66698         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
66699         recognition.
66700         * tests/unicase/test-u16-tolower.c (main): Likewise.
66701         * tests/unicase/test-u32-tolower.c (main): Likewise.
66703 2009-06-30  Bruno Haible  <bruno@clisp.org>
66705         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
66706         * lib/unicase/u16-casemap.c: Likewise.
66707         * lib/unicase/u32-casemap.c: Likewise.
66709 2009-06-29  Bruno Haible  <bruno@clisp.org>
66711         Define u32_casefold as a wrapper around u32_ct_casefold.
66712         * lib/unicase/u32-casefold.c: Update.
66713         * modules/unicase/u32-casefold (Depends-on): Add
66714         unicase/u32-ct-casefold, unicase/empty-prefix-context,
66715         unicase/empty-suffix-context. Clean up.
66717         Define u16_casefold as a wrapper around u16_ct_casefold.
66718         * lib/unicase/u16-casefold.c: Update.
66719         * modules/unicase/u16-casefold (Depends-on): Add
66720         unicase/u16-ct-casefold, unicase/empty-prefix-context,
66721         unicase/empty-suffix-context. Clean up.
66723         Define u8_casefold as a wrapper around u8_ct_casefold.
66724         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
66725         * lib/unicase/u8-casefold.c: Update.
66726         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
66727         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66729         Define u32_totitle as a wrapper around u32_ct_totitle.
66730         * lib/unicase/u32-totitle.c: Update.
66731         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
66732         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66734         Define u16_totitle as a wrapper around u16_ct_totitle.
66735         * lib/unicase/u16-totitle.c: Update.
66736         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
66737         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66739         Define u8_totitle as a wrapper around u8_ct_totitle.
66740         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
66741         functions.
66742         (FUNC): Delegate to U_CT_TOTITLE.
66743         * lib/unicase/u8-totitle.c: Update.
66744         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
66745         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66747         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
66748         invocation.
66749         * modules/unicase/u32-tolower (Depends-on): Add
66750         unicase/empty-prefix-context, unicase/empty-suffix-context.
66752         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
66753         invocation.
66754         * modules/unicase/u16-tolower (Depends-on): Add
66755         unicase/empty-prefix-context, unicase/empty-suffix-context.
66757         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
66758         * modules/unicase/u8-tolower (Depends-on): Add
66759         unicase/empty-prefix-context, unicase/empty-suffix-context.
66761         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
66762         invocation.
66763         * modules/unicase/u32-toupper (Depends-on): Add
66764         unicase/empty-prefix-context, unicase/empty-suffix-context.
66766         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
66767         invocation.
66768         * modules/unicase/u16-toupper (Depends-on): Add
66769         unicase/empty-prefix-context, unicase/empty-suffix-context.
66771         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
66772         * modules/unicase/u8-toupper (Depends-on): Add
66773         unicase/empty-prefix-context, unicase/empty-suffix-context.
66775         New module 'unicase/u32-ct-casefold'.
66776         * lib/unicase/u32-ct-casefold.c: New file.
66777         * modules/unicase/u32-ct-casefold: New file.
66779         New module 'unicase/u16-ct-casefold'.
66780         * lib/unicase/u16-ct-casefold.c: New file.
66781         * modules/unicase/u16-ct-casefold: New file.
66783         New module 'unicase/u8-ct-casefold'.
66784         * lib/unicase/u8-ct-casefold.c: New file.
66785         * lib/unicase/u-ct-casefold.h: New file, derived from
66786         lib/unicase/u-casefold.h.
66787         * modules/unicase/u8-ct-casefold: New file.
66789         New module 'unicase/u32-ct-totitle'.
66790         * lib/unicase/u32-ct-totitle.c: New file.
66791         * modules/unicase/u32-ct-totitle: New file.
66793         New module 'unicase/u16-ct-totitle'.
66794         * lib/unicase/u16-ct-totitle.c: New file.
66795         * modules/unicase/u16-ct-totitle: New file.
66797         New module 'unicase/u8-ct-totitle'.
66798         * lib/unicase/u8-ct-totitle.c: New file.
66799         * lib/unicase/u-ct-totitle.h: New file, derived from
66800         lib/unicase/u-totitle.h.
66801         * modules/unicase/u8-ct-totitle: New file.
66803         New module 'unicase/u32-ct-tolower'.
66804         * lib/unicase/u32-ct-tolower.c: New file.
66805         * modules/unicase/u32-ct-tolower: New file.
66807         New module 'unicase/u16-ct-tolower'.
66808         * lib/unicase/u16-ct-tolower.c: New file.
66809         * modules/unicase/u16-ct-tolower: New file.
66811         New module 'unicase/u8-ct-tolower'.
66812         * lib/unicase/u8-ct-tolower.c: New file.
66813         * modules/unicase/u8-ct-tolower: New file.
66815         New module 'unicase/u32-ct-toupper'.
66816         * lib/unicase/u32-ct-toupper.c: New file.
66817         * modules/unicase/u32-ct-toupper: New file.
66819         New module 'unicase/u16-ct-toupper'.
66820         * lib/unicase/u16-ct-toupper.c: New file.
66821         * modules/unicase/u16-ct-toupper: New file.
66823         New module 'unicase/u8-ct-toupper'.
66824         * lib/unicase/u8-ct-toupper.c: New file.
66825         * modules/unicase/u8-ct-toupper: New file.
66827         Add context arguments to u*_casemap functions.
66828         * lib/unicase/unicasemap.h: Include unicase.h.
66829         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
66830         suffix_context arguments.
66831         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
66832         functions.
66833         (FUNC): Add prefix_context and suffix_context arguments. Use
66834         uc_is_cased and uc_is_case_ignorable.
66835         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
66836         * lib/unicase/u16-casemap.c: Likewise.
66837         * lib/unicase/u32-casemap.c: Likewise.
66838         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
66839         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66840         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
66841         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66842         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
66843         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66845         New module 'unicase/u32-suffix-context'.
66846         * lib/unicase/u32-suffix-context.c: New file.
66847         * modules/unicase/u32-suffix-context: New file.
66849         New module 'unicase/u16-suffix-context'.
66850         * lib/unicase/u16-suffix-context.c: New file.
66851         * modules/unicase/u16-suffix-context: New file.
66853         New module 'unicase/u8-suffix-context'.
66854         * lib/unicase/u8-suffix-context.c: New file.
66855         * lib/unicase/u-suffix-context.h: New file.
66856         * modules/unicase/u8-suffix-context: New file.
66858         New module 'unicase/empty-suffix-context'.
66859         * lib/unicase/empty-suffix-context.c: New file.
66860         * modules/unicase/empty-suffix-context: New file.
66862         New module 'unicase/u32-prefix-context'.
66863         * lib/unicase/u32-prefix-context.c: New file.
66864         * modules/unicase/u32-prefix-context: New file.
66866         New module 'unicase/u16-prefix-context'.
66867         * lib/unicase/u16-prefix-context.c: New file.
66868         * modules/unicase/u16-prefix-context: New file.
66870         New module 'unicase/u8-prefix-context'.
66871         * lib/unicase/u8-prefix-context.c: New file.
66872         * lib/unicase/u-prefix-context.h: New file.
66873         * lib/unicase/context.h: New file.
66874         * modules/unicase/u8-prefix-context: New file.
66876         New module 'unicase/empty-prefix-context'.
66877         * lib/unicase/empty-prefix-context.c: New file.
66878         * modules/unicase/empty-prefix-context: New file.
66880         New module 'unicase/ignorable'.
66881         * lib/unicase/ignorable.c: New file.
66882         * modules/unicase/ignorable: New file.
66884         New module 'unicase/cased'.
66885         * lib/unicase/caseprop.h: New file.
66886         * lib/unicase/cased.c: New file.
66887         * modules/unicase/cased: New file.
66889         New functions for case mapping of substrings.
66890         * lib/unicase.h (casing_prefix_context_t): New type.
66891         (unicase_empty_prefix_context): New variable.
66892         (u8_casing_prefix_context, u16_casing_prefix_context,
66893         u32_casing_prefix_context, u8_casing_prefixes_context,
66894         u16_casing_prefixes_context, u32_casing_prefixes_context): New
66895         declarations.
66896         (casing_suffix_context_t): New type.
66897         (unicase_empty_suffix_context): New variable.
66898         (u8_casing_suffix_context, u16_casing_suffix_context,
66899         u32_casing_suffix_context, u8_casing_suffixes_context,
66900         u16_casing_suffixes_context, u32_casing_suffixes_context,
66901         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
66902         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
66903         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
66904         declarations.
66906 2009-06-28  Jim Meyering  <meyering@redhat.com>
66908         boostrap: indent only with spaces
66909         * build-aux/bootstrap: Indent only with spaces, never TABs.
66911         bootstrap: split long lines
66912         * build-aux/bootstrap: Keep line length < 80.
66914         bootstrap: sync from coreutils
66915         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
66916         just as autoreconf does.  Verify a list of prerequisite
66917         package-name,version-number pairs if defined in bootstrap.conf.
66918         Refer to README-prereq, if prerequisites are not satisfied.
66920 2009-06-27  Eric Blake  <ebb9@byu.net>
66922         tests: add test for bogus NULL definition
66923         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
66924         * tests/test-stdlib.c: Likewise.
66925         * tests/test-string.c: Likewise.
66926         * tests/test-locale.c: Likewise.
66927         * tests/test-unistd.c: Likewise.
66928         * modules/stdio-tests (Depends-on): Add verify.
66929         * modules/stdlib-tests (Depends-on): Likewise.
66930         * modules/string-tests (Depends-on): Likewise.
66931         * modules/locale-tests (Depends-on): Likewise.
66932         * modules/unistd-tests (Depends-on): Likewise.
66934 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
66936         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
66937         self-explaining comment.
66938         * m4/selinux-selinux-h: Update serial.
66939         (gl_LIBSELINUX): New macro, adding a warning for missing development
66940         packages to code extracted from...
66941         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
66942         Add warning for missing development packages here, too.
66944 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
66946         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
66948 2009-06-25  Eric Blake  <ebb9@byu.net>
66950         version-etc: fix regression
66951         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
66952         gcc.
66953         (version_etc): Use it, to catch bugs with trailing NULL.
66954         * lib/version-etc.c (version_etc_arn): Delete unused argument.
66955         (version_etc_va): Fix logic bug.
66956         * modules/version-etc-tests: Add test.
66957         * tests/test-version-etc.c: New file.
66958         * tests/test-version-etc.sh: Likewise.
66960 2009-06-25  Sam Steingold  <sds@gnu.org>
66962         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
66963         mbtowc declaration.
66965 2009-06-25  Eric Blake  <ebb9@byu.net>
66967         fpurge: migrate into <stdio.h>
66968         * lib/fpurge.h: Delete...
66969         * lib/stdio.in.h (fpurge): ...and declare here, instead.
66970         * lib/fpurge.c (fpurge): Change declaring header.
66971         * modules/fpurge (Files): Drop deleted file.
66972         (Depends-on): Add stdio.
66973         (configure.ac): Set witness.
66974         * modules/stdio (Makefile.am): Support fpurge macros.
66975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66976         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
66977         * lib/fflush.c: Update client.
66978         * tests/test-fpurge.c: Likewise.
66979         * NEWS: Mention the change.
66981 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66983         * lib/argp-version-etc.c (program_authors): Add const
66984         qualifier.
66985         * lib/version-etc.c: Fix typos in the comments.
66986         * modules/argp-version-etc: Depends on version-etc.
66988 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66990         argp-version-etc: new module.
66992         * lib/argp-version-etc.c: New file.
66993         * lib/argp-version-etc.h: New file.
66994         * modules/argp-version-etc: New file.
66995         * modules/argp-version-etc-tests: New file.
66996         * tests/test-argp-version-etc.c: New test.
66997         * tests/test-argp-version-etc-1.sh: New test.
66999 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67001         Provide additional interfaces and documentation for version-etc
67002         module.
67004         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
67005         interfaces.
67006         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
67007         prototypes.
67009 2009-06-24  Bruno Haible  <bruno@clisp.org>
67011         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
67012         HAVE_LIB${NAME} macro.
67013         Reported by Sam Steingold <sds@gnu.org>.
67015 2009-06-23  Simon Josefsson  <simon@josefsson.org>
67017         * modules/hash-tests (test_hash_LDADD): Link to libintl when
67018         needed.
67020 2009-06-21  Bruno Haible  <bruno@clisp.org>
67022         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
67023         work.
67024         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
67025         together with LIB${NAME}, LTLIB${NAME}.
67026         Reported by Sam Steingold <sds@gnu.org>.
67028 2009-06-20  Jim Meyering  <meyering@redhat.com>
67030         tests: make sc_require_test_exit_idiom more generic
67031         * top/maint.mk (Exit_witness_file): New overridable variable.
67032         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
67033         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
67035 2009-06-19  Jim Meyering  <meyering@redhat.com>
67037         hash: reverse order of src/dst parameters in an internal interface
67038         * lib/hash.c (transfer_entries): Reverse order of parameters to
67039         put DST before SRC.  Adjust callers.
67041         tests: test-hash: avoid wholesale duplication
67042         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
67043         Instead, use a loop and add a single conditional.
67045         tests: test-hash: allow seed selection via a command line argument
67046         * tests/test-hash.c (get_seed): New function.
67047         (main): Use it.
67049 2009-06-19  Eric Blake  <ebb9@byu.net>
67051         hash: avoid memory leak on allocation failure
67052         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
67053         failure.  Factor repeated algorithm...
67054         (transfer_entries): ...into new helper routine.
67055         (hash_delete): React to hash_rehash return value.
67057         hash: reduce memory pressure in hash_rehash no-op case
67058         * lib/hash.c (next_prime): Avoid overflow.
67059         (hash_initialize): Factor bucket size computation...
67060         (compute_bucket_size): ...into new helper function.
67061         (hash_rehash): Use new function and open coding to reduce memory
67062         pressure, and avoid a memory leak in USE_OBSTACK code.
67063         Reported by Jim Meyering.
67065 2009-06-18  Eric Blake  <ebb9@byu.net>
67067         hash: make rotation more obvious
67068         * modules/hash (Depends-on): Add bitrotate and stdint.
67069         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
67070         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
67071         (SIZE_MAX): Rely on headers for definition.
67072         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
67073         (raw_hasher): Use rotr_sz.
67074         Suggested by Jim Meyering.
67076         hash: fix memory leak in last patch
67077         * lib/hash.c (hash_rehash): Avoid memory leak.
67079         hash: avoid no-op rehashing
67080         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
67082         hash: provide default callback functions
67083         * lib/hash.c (raw_hasher, raw_comparator): New functions.
67084         (hash_initialize): Use them as defaults.
67085         * tests/test-hash.c (main): Test this.
67087         hash: minor optimization
67088         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
67089         when possible.
67090         (hash_initialize): Document this promise.
67091         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
67092         * tests/test-hash.c (hash_compare_strings): Test this.
67094 2009-06-18  Bruno Haible  <bruno@clisp.org>
67096         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
67097         going to be replaced anyway.
67099 2009-06-18  Bruno Haible  <bruno@clisp.org>
67101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
67102         in one place.
67103         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
67104         be replaced anyway.
67106 2009-06-18  Eric Blake  <ebb9@byu.net>
67108         hash: check for resize before insertion
67109         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
67110         threshold before insertion, so that a pathological hash_rehash
67111         that fills every bucket can still trigger another rehash.
67113 2009-06-18  Jim Meyering  <meyering@redhat.com>
67115         hash-tests: add a loop around the small tests
67116         * tests/test-hash.c (main): Repeat small tests with selected
67117         small initial table sizes.
67119 2009-06-17  Eric Blake  <ebb9@byu.net>
67121         hash: minor cleanups
67122         * lib/hash.h (hash_entry): Make opaque, by moving...
67123         * lib/hash.c (hash_entry): ...here.
67124         (hash_insert): Clarify restrictions on what can be inserted.
67125         (hash_get_next): Clarify when it is safe to remove an element
67126         during traversal.
67127         (check_tuning): Skip verification when tuning is known safe.
67128         (hash_initialize): Clarify restrictions on tuning.
67130 2009-06-17  Jim Meyering  <jim@meyering.net>
67131         and Eric Blake  <ebb9@byu.net>
67133         hash-tests: new module
67134         * modules/hash-tests: New file.
67135         * tests/test-hash.c: New file.
67137 2009-06-17  Eric Blake  <ebb9@byu.net>
67139         strstr-simple: document new module
67140         * MODULES.html.sh: Document new module.
67142         strstr, strcasestr: replace on platforms with broken memchr
67143         * modules/strstr: Split into...
67144         * modules/strstr-simple: ...new module that does not care about
67145         performance, but does care about glibc bug.
67146         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
67147         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
67148         if platform memchr is broken, per Debian bug 521737.
67149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
67150         memchr.
67151         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
67152         * doc/posix-functions/strstr.texi (strstr): Document the fix.
67153         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
67154         * modules/mountlist (Depends-on): Add strstr-simple.
67155         * modules/gen-uni-tables (Depends-on): Likewise.
67156         * modules/argz (Depends-on): Add strstr.
67158 2009-06-17  Bruno Haible  <bruno@clisp.org>
67160         * modules/posix_spawn-internal (Depends-on): Add errno.
67162 2009-06-17  Bruno Haible  <bruno@clisp.org>
67164         Define missing ESTALE on Interix 3.5.
67165         * lib/errno.in.h (ESTALE): Assign a value if missing.
67166         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
67167         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
67168         missing.
67169         * doc/posix-headers/errno.texi: Mention the Interix bug.
67170         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
67172 2009-06-15  Eric Blake  <ebb9@byu.net>
67174         memchr, memchr2: add valgrind exception
67175         * lib/memchr.valgrind: New file.
67176         * lib/memchr2.valgrind: New file.
67177         * modules/memchr (Files): Distribute valgrind file.
67178         * modules/memchr2 (Files): Likewise.
67180         docs: memchr is no longer obsolete
67181         * MODULES.html.sh: Move memchr from obsolete to string.h section.
67182         * lib/string.in.h (memchr): Simplify logic.
67184 2009-06-14  Jim Meyering  <meyering@redhat.com>
67186         link-follow: fix the "checking..." message to not mention trailing slash
67187         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
67188         never considered trailing slashes.
67190 2009-06-14  Bruno Haible  <bruno@clisp.org>
67192         * m4/memchr.m4: Mention also the bug on IA-64.
67193         * doc/posix-functions/memchr.texi: Likewise.
67195 2009-06-12  Eric Blake  <ebb9@byu.net>
67197         memchr: detect broken x86_64 and alpha implementations
67198         * modules/memchr-tests (Depends-on): Move mmap detection...
67199         * modules/memchr (Depends-on): ...here.
67200         (configure.ac): Set indicator.
67201         * lib/string.in.h (memchr): Declare replacement.
67202         * modules/string (Makefile.am): Trigger replacement.
67203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
67204         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
67205         bugs.
67206         * doc/posix-functions/memchr.texi (memchr): Document the bug.
67207         * modules/getpagesize (License): Relax license.
67209 2009-06-11  Bruno Haible  <bruno@clisp.org>
67211         * lib/idpriv.h: Add more references.
67213 2009-06-08  Bruno Haible  <bruno@clisp.org>
67215         Tests for module 'idpriv-droptemp'.
67216         * modules/idpriv-droptemp-tests: New file.
67217         * tests/test-idpriv-droptemp.sh: New file.
67218         * tests/test-idpriv-droptemp.su.sh: New file.
67219         * tests/test-idpriv-droptemp.c: New file.
67221         New module 'idpriv-droptemp'.
67222         * lib/idpriv-droptemp.c: New file.
67223         * modules/idpriv-droptemp: New file.
67225 2009-06-08  Bruno Haible  <bruno@clisp.org>
67227         Tests for module 'idpriv-drop'.
67228         * modules/idpriv-drop-tests: New file.
67229         * tests/test-idpriv-drop.sh: New file.
67230         * tests/test-idpriv-drop.su.sh: New file.
67231         * tests/test-idpriv-drop.c: New file.
67233         New module 'idpriv-drop'.
67234         * lib/idpriv.h: New file.
67235         * lib-idpriv-drop.c: New file.
67236         * m4/idpriv.m4: New file.
67237         * modules/idpriv-drop: New file.
67239 2009-06-08  Bruno Haible  <bruno@clisp.org>
67241         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
67242         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67243         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67244         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67245         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67246         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67247         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67249 2009-06-08  Eric Blake  <ebb9@byu.net>
67251         test-strstr: use memory fence, when possible
67252         * tests/test-strstr.c (main): Use memory fence, in order to be
67253         more likely to trigger Debian bug 521737.
67254         * modules/strstr-tests (Files): Pull in additional files.
67256         memchr: no longer obsolete, for wider field testing
67257         * modules/memchr (Status, Notice): Delete, this module is no
67258         longer obsolete.
67259         * modules/vasnprintf (Depends-on): Add memchr.
67261 2009-06-07  Jim Meyering  <meyering@redhat.com>
67263         hash: declare some functions with the warn_unused_result attribute
67264         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
67266 2009-06-07  Bruno Haible  <bruno@clisp.org>
67268         * tests/test-alignof.c: Don't test int64_t if it does not exist.
67269         Reported by Eric Blake.
67271 2009-06-06  Eric Blake  <ebb9@byu.net>
67273         test-alignof: fix typo with long double
67274         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
67275         compiler error.
67277 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
67279         Escape non-texinfo { and }s.
67280         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
67281         markup error.
67283 2009-06-04  Jim Meyering  <meyering@redhat.com>
67285         gitlog-to-changelog: don't infloop on an empty commit log
67286         * build-aux/gitlog-to-changelog: Warn about an empty log message.
67287         Reported by Boris Petersen <transacid@centerim.org>.
67289 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
67291         version-etc: extend for packagers
67292         Add three new configure options, intended for packagers:
67293           --with-packager="packager name"
67294           --with-packager-version="packager-specific version"
67295           --with-packager-bug-reports="packager bug reporting"
67296         An example with coreutils:
67297           $ ./configure \
67298             --with-packager=Gentoo \
67299             --with-packager-bug-report=http://bugs.gentoo.org/ \
67300             --with-packager-version="patchset 1.6"
67301           $ ./src/ls --version | head -n2
67302           ls (GNU coreutils) 7.1-dirty
67303           Packaged by Gentoo (patchset 1.6)
67304         Note that the bug reporting info via --help doesn't show up because
67305         coreutils uses its own custom emit_bug_reporting_address() implementation
67306         in src/system.h.  If it didn't, it'd look like:
67307           $ ./src/ls --help | tail -n4
67308           Report bugs to <bug-coreutils@gnu.org>.
67309           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67310           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67311           General help using GNU software: <http://www.gnu.org/gethelp/>.
67312         * lib/version-etc.c: Print new information, if provided.
67313         * m4/version-etc.m4: New file.
67314         * modules/version-etc (Files): Add m4/version-etc.m4.
67315         (configure.ac): Add gl_VERSION_ETC.
67317 2009-05-31  Bruno Haible  <bruno@clisp.org>
67319         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67320         and 'int64_t'.
67321         * modules/alignof-tests (Dependencies): Add stdint.
67322         Reported by Eric Blake.
67324 2009-05-31  Bruno Haible  <bruno@clisp.org>
67326         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67327         restriction due to compiler bugs.
67328         Reported by Eric Blake.
67330 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67331             Bruno Haible  <bruno@clisp.org>
67333         Fix test-alignof failure.
67334         * lib/alignof.h (alignof_slot): New macro.
67335         (alignof_type): New macro, with the same semantics as the previous
67336         'alignof'.
67337         (alignof): Alias to alignof_slot.
67338         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67339         check that the results are usable as constant expressions.
67341 2009-05-31  Bruno Haible  <bruno@clisp.org>
67343         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67344         * tests/test-memchr.c (main): Check that memchr does not read past the
67345         first occurrence of the byte.
67346         * tests/test-strstr.c (main): Update comment.
67347         Suggested by Eric Blake.
67349 2009-05-30  Bruno Haible  <bruno@clisp.org>
67351         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67352         detail how to use dumpbin.
67353         Reported by David Byron <dbyron@dbyron.com>.
67355 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67357         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67359 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67361         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67363 2009-05-28  Bruno Haible  <bruno@clisp.org>
67365         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67366         build-aux/ files.
67368 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67370         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67372 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67374         * gnulib-tool (sed_transform_main_lib_file)
67375         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67376         regexps.
67378 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67380         * tests/test-strstr.c: Add another self-test.
67381         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67382         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67384 2009-05-23  Bruno Haible  <bruno@clisp.org>
67386         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67387         change.
67389 2009-05-21  Bruno Haible  <bruno@clisp.org>
67391         Simplify use of mode_t varargs.
67392         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67393         uses 'mode_t' or 'int'.
67394         * lib/openat.c (openat): Likewise.
67395         * lib/open-safer.c (open_safer): Likewise.
67396         * m4/mode_t.m4: New file.
67397         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67398         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67399         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67400         * modules/open (Files): Add m4/mode_t.m4.
67401         * modules/openat (Files): Likewise.
67402         * modules/fcntl-safer (Files): Likewise.
67403         Suggested by Eric Blake.
67405 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67407         * doc/glibc-functions/fallocate.texi: New file.
67408         * doc/gnulib.texi: Include it.
67410 2009-05-21  Eric Blake  <ebb9@byu.net>
67411             Bruno Haible  <bruno@clisp.org>
67413         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67414         invocations.
67415         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67417 2009-05-21  Eric Blake  <ebb9@byu.net>
67418             Bruno Haible  <bruno@clisp.org>
67420         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67421         include_next. Fix of 2008-11-20 commit.
67422         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67423         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67424         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67425         NEXT_MATH_H.
67426         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67427         instead of NEXT_MATH_H.
67429 2009-05-21  Bruno Haible  <bruno@clisp.org>
67431         Avoid redefinition warnings for SIZE_MAX.
67432         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67433         Reported by Simon Josefsson.
67435 2009-05-21  Bruno Haible  <bruno@clisp.org>
67437         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67438         AC_CACHE_VAL.
67440 2009-05-20  Bruno Haible  <bruno@clisp.org>
67442         Make zeroptr.h work on mingw.
67443         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67444         mprotect.
67445         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67446         * modules/memchr2-tests (configure.ac): Likewise.
67447         * modules/memcmp-tests (configure.ac): Likewise.
67448         * modules/memmem-tests (configure.ac): Likewise.
67449         * modules/memrchr-tests (configure.ac): Likewise.
67450         Reported by Simon Josefsson.
67452 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67454         * tests/test-glob.c: Include string.h for strcmp prototype.
67456 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67458         * modules/getdelim (Depends-on): Add explicit stdint, although it
67459         was implicitly already pulled in via realloc-posix.
67460         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67462 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67464         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67465         G. Christensen" <tgc@jupiterrise.com>.
67466         * m4/sys_socket_h.m4: Check for sa_family_t.
67467         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67468         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67469         * tests/test-sys_socket.c: Check that sa_family_t works.
67471 2009-05-18  Eric Blake  <ebb9@byu.net>
67473         maint.mk: allow gnulib_dir in VPATH build
67474         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67476 2009-05-15  Jim Meyering  <meyering@redhat.com>
67478         maint.mk: Give gnulib_dir a default definition.
67479         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67480         Thus, most packages no longer need to specify this variable in cfg.mk
67482 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67484         rename.m4: fix typos that would make non-mingw cross-configure fail
67485         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67487 2009-05-13  Eric Blake  <ebb9@byu.net>
67489         mmap-anon: avoid out-of-order autoconf expansion
67490         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67491         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67492         * modules/memchr-tests (Depends-on): Add extensions.
67493         * modules/memchr2-tests (Depends-on): Add extensions.
67494         * modules/memcmp-tests (Depends-on): Add extensions.
67495         * modules/memmem-tests (Depends-on): Add extensions.
67496         * modules/memrchr-tests (Depends-on): Add extensions.
67498 2009-05-13  Bruno Haible  <bruno@clisp.org>
67500         Make some tests ISO C 99 compliant.
67501         * tests/zerosize-ptr.h: New file.
67502         * tests/test-memchr.c: Include zerosize-ptr.h.
67503         (main): Use a zero-size object pointer instead of NULL.
67504         * tests/test-memchr2.c: Include zerosize-ptr.h.
67505         (main): Use a zero-size object pointer instead of NULL.
67506         * tests/test-memcmp.c: Include zerosize-ptr.h.
67507         (main): Use a zero-size object pointer instead of NULL.
67508         * tests/test-memmem.c: Include zerosize-ptr.h.
67509         (main): Use a zero-size object pointer instead of NULL.
67510         * tests/test-memrchr.c: Include zerosize-ptr.h.
67511         (main): Use a zero-size object pointer instead of NULL.
67512         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67513         m4/mmap-anon.m4.
67514         (Depends-on): Add getpagesize.
67515         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67516         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67517         m4/mmap-anon.m4.
67518         (Depends-on): Add getpagesize.
67519         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67520         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67521         m4/mmap-anon.m4.
67522         (Depends-on): Add getpagesize.
67523         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67524         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67525         m4/mmap-anon.m4.
67526         (Depends-on): Add getpagesize.
67527         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67528         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67529         m4/mmap-anon.m4.
67530         (Depends-on): Add getpagesize.
67531         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67533 2009-05-12  Bruno Haible  <bruno@clisp.org>
67535         Tests for module 'alignof'.
67536         * modules/alignof-tests: New file.
67537         * tests/test-alignof.c: New file.
67539 2009-05-12  Bruno Haible  <bruno@clisp.org>
67541         Fix alignof macro.
67542         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67543         vendor compilers that are always correct.
67545 2009-05-12  Bruno Haible  <bruno@clisp.org>
67547         Make the MAP_ANONYMOUS detection work on HP-UX 11.
67548         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
67549         not whether its fully works.
67551 2009-05-12  Bruno Haible  <bruno@clisp.org>
67553         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
67555 2009-05-12  Jim Meyering  <meyering@redhat.com>
67557         * top/maint.mk: Adjust backslash alignment.
67559 2009-05-11  Simon Josefsson  <simon@josefsson.org>
67561         * top/maint.mk: Make $(srcdir)/build-aux configurable.
67563 2009-05-11  Eric Blake  <ebb9@byu.net>
67565         argp: avoid undefined behavior
67566         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
67567         macros.
67569 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67571         * tests/test-vc-list-files-git.sh: Do git config of user.email and
67572         user.name to prevent git commit from complaining.
67574 2009-05-10  Bruno Haible  <bruno@clisp.org>
67576         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
67577         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
67578         it rewrites every file name only once.
67579         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
67581 2009-05-08  Bruno Haible  <bruno@clisp.org>
67583         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
67584         instead of 'max'.
67586 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67588         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
67589         sockaddr_storage test.
67591 2009-05-07  Simon Josefsson  <simon@josefsson.org>
67593         * modules/sys_socket (Makefile.am): Substitute
67594         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
67595         * m4/sys_socket_h.m4: Check for sockaddr_storage.
67596         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
67597         * tests/test-sys_socket.c: Check sockaddr_storage.
67599 2009-05-08  Bruno Haible  <bruno@clisp.org>
67601         New module 'alignof'.
67602         * lib/alignof.h: New file.
67603         * modules/alignof: New file.
67605 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67606             Bruno Haible  <bruno@clisp.org>
67608         Fix test-file-has-acl on FreeBSD.
67609         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
67610         mask is implicitly added.
67611         * tests/test-file-has-acl.c: Include <signal.h>.
67612         (main): Terminate the test after 5 seconds.
67613         * modules/acl-tests (configure.ac): Check for alarm function.
67615 2009-05-04  Bruno Haible  <bruno@clisp.org>
67617         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
67618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
67619         * modules/errno (configure.ac): Drop AC_REQUIRE.
67620         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
67621         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
67623 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67625         * modules/glob-tests: New module.
67626         * tests/test-glob.c: Add.
67628 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67630         * modules/fnmatch-tests: New module.
67631         * tests/test-fnmatch.c: Add.
67633 2009-05-04  Eric Blake  <ebb9@byu.net>
67635         maint: make the new no-submodule-changes rule VPATH-safe
67636         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
67638 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67639             Bruno Haible  <bruno@clisp.org>
67641         acl: Fix infinite loop on FreeBSD.
67642         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
67643         of return value from acl_get_entry.
67644         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
67645         Likewise.
67647 2009-05-03  Bruno Haible  <bruno@clisp.org>
67649         * lib/acl-internal.h (acl_entries): Clarify return value.
67650         * lib/acl_entries.c (acl_entries): Likewise.
67652 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67654         Bug fix in acl module.
67655         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
67657 2009-05-03  Bruno Haible  <bruno@clisp.org>
67659         Create gperf-generated file in the source dir, not in the build dir.
67660         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
67661         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
67662         * modules/unicase/locale-language (unicase/locale-languages.h):
67663         Likewise.
67664         * modules/unicase/special-casing (unicase/special-casing-table.h):
67665         Likewise.
67666         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
67667         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
67668         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
67669         Reported by Ralf Wildenhues.
67671 2009-05-03  Bruno Haible  <bruno@clisp.org>
67673         * modules/fnmatch (Description, configure.ac): Taken from
67674         fnmatch-posix.
67675         * modules/fnmatch-posix: Turn into a symbolic reference to the
67676         'fnmatch' module, and deprecate.
67677         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
67679 2009-05-03  Bruno Haible  <bruno@clisp.org>
67681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
67682         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
67683         Reported by Ralf Wildenhues.
67685 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67687         * m4/fnmatch.m4: Fix fnmatch re-define.
67689 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67691         priv-set: new module and tests; adapt write-any-file
67692         * lib/priv-set.c: New file.
67693         * lib/priv-set.h: New file.
67694         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
67695         * lib/write-any-file.c: Simplify by using priv-set module.
67696         * m4/priv-set.m4: New file.
67697         * modules/priv-set: New file.
67698         * modules/unlinkdir: Add dependency on priv-set module.
67699         * modules/write-any-file: Likewise.
67701         Tests for module 'priv-set'.
67702         * modules/priv-set-tests: New file.
67703         * tests/test-priv-set.c: New file.
67705 2009-05-03  Jim Meyering  <meyering@redhat.com>
67706             Bruno Haible  <bruno@clisp.org>
67708         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
67709         use the converted UTF-8 variant of the name instead.
67711 2009-05-03  Jim Meyering  <meyering@redhat.com>
67713         tests: tighten some getdate tests
67714         * tests/test-getdate.c (main): Tighten tests: require equality,
67715         not just greater than.  Set TZ envvar to UTC0.
67717 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67719         getdate: correctly interpret "next monday" when run on a Monday
67720         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
67721         that e.g., "next tues" (when run on a tuesday) results in a date
67722         that is one week in the future, and not today's date.
67723         I.e., add a week when the wday is the same as the current one.
67724         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
67725         and earlier by Martin Bernreuther and Jan Minář.
67726         * tests/test-getdate.c (main): Check that "next DAY" is always in
67727         the future and that "last DAY" is always in the past.
67729 2009-05-02  Jim Meyering  <meyering@redhat.com>
67731         build: ensure that a release build fails when a submodule is unclean
67732         * top/maint.mk (no-submodule-changes): New rule.
67733         (alpha beta major): Depend on it.
67735 2009-05-02  Bruno Haible  <bruno@clisp.org>
67737         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
67738         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
67739         shell variable gl_fnmatch_required to detect which variant is
67740         requested.
67741         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
67742         gl_FUNC_FNMATCH_POSIX.
67743         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
67744         exclude fnmatch-posix.
67746 2009-05-02  Bruno Haible  <bruno@clisp.org>
67748         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
67749         * modules/mbsrtowcs (License): Change to LGPLv2+.
67750         * modules/strnlen1 (License): Likewise.
67751         Reported by Simon Josefsson.
67753 2009-05-02  Bruno Haible  <bruno@clisp.org>
67755         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
67756         "cross".
67757         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
67758         gnulib-tool was called with option --source-base=lib.
67760 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67762         Use automake *-local hooks without commands, for extensibility.
67763         * modules/localcharset (Makefile.am): Rename install-exec-local
67764         rule to install-exec-localcharset, and make it a prerequisite of
67765         install-exec-local.  Likewise, rename the uninstall-local rule to
67766         uninstall-localcharset, and make it a prerequisite of the former.
67768 2009-05-01  Bruno Haible  <bruno@clisp.org>
67770         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
67771         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67772         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
67773         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
67774         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
67775         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67776         m4/locale-zh.m4, m4/codeset.m4.
67778         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67779         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
67780         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67781         m4/locale-zh.m4.
67783         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
67784         REPLACE_WCRTOMB if mbstate_t must be replaced.
67785         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
67786         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
67788 2009-05-01  Bruno Haible  <bruno@clisp.org>
67790         Avoid compiler warnings when redefining macros defined by <libintl.h>.
67791         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
67792         dngettext, dcngettext, textdomain, bindtextdomain,
67793         bind_textdomain_codeset): Undefine before redefining.
67795 2009-04-30  Bruno Haible  <bruno@clisp.org>
67797         Fix bug introduced on 2009-04-25.
67798         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
67799         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
67800         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
67801         is defined.
67802         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
67803         is defined.
67804         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
67805         is defined.
67806         Reported by Elbert_Pol <elbert.pol@gmail.com>.
67808 2009-04-28  Bruno Haible  <bruno@clisp.org>
67810         Comment tweaks.
67811         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
67812         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
67813         * lib/unicase.h (u*_casexfrm): Likewise.
67814         Reported by Paolo Bonzini.
67816 2009-04-28  Bruno Haible  <bruno@clisp.org>
67818         Fix a compilation error.
67819         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
67820         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67821         Reported by Jim Meyering.
67823 2009-04-27  Bruno Haible  <bruno@clisp.org>
67825         New module 'libunistring'.
67826         * modules/libunistring: New file.
67827         * m4/libunistring.m4: New file.
67828         * MODULES.html.sh (Unicode string functions): Add it.
67830 2009-04-27  Eric Blake  <ebb9@byu.net>
67832         maint.mk: allow package-specific header to provide <config.h>
67833         * top/maint.mk (sc_require_config_h): New variable.
67834         (sc_require_config_h, sc_require_config_h_first): Use it.
67836 2009-04-27  Simon Josefsson  <simon@josefsson.org>
67838         * top/maint.mk (sc_avoid_if_before_free): Except
67839         useless-if-before-free script.
67841 2009-04-27  Eric Blake  <ebb9@byu.net>
67843         maintainer-makefile: depend on all required helper scripts
67844         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
67845         useless-if-before-free.
67846         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
67847         version, rather than assuming gnulib checkout is available.
67848         Reported by Simen Josefsson.
67850 2009-04-26  Bruno Haible  <bruno@clisp.org>
67852         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
67853         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
67854         "../" or "..".
67856 2009-04-26  Bruno Haible  <bruno@clisp.org>
67858         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
67859         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
67860         AC_LIB_HAVE_LINKFLAGS.
67862 2009-04-26  Bruno Haible  <bruno@clisp.org>
67864         Simplify calling convention of u*_conv_from_encoding.
67865         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
67866         u32_conv_from_encoding): Expect a resultbuf argument and return the
67867         result directly as a pointer.
67868         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
67869         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
67870         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
67871         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
67872         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
67873         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67874         Update.
67875         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
67876         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
67877         * lib/vasnprintf.c (VASNPRINTF): Update.
67878         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
67879         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
67880         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
67881         * NEWS: Mention the change.
67883 2009-04-26  Bruno Haible  <bruno@clisp.org>
67885         Simplify calling convention of u*_conv_to_encoding.
67886         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67887         u32_conv_to_encoding): Expect a resultbuf argument and return the
67888         result directly as a pointer.
67889         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67890         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
67891         freeing scaled_offsets if mem_iconveha failed.
67892         * lib/unicase/u-casexfrm.h (FUNC): Update.
67893         * lib/uninorm/u-normxfrm.h (FUNC): Update.
67894         * lib/vasnprintf.c (VASNPRINTF): Update.
67895         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
67896         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
67897         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
67898         * NEWS: Mention the change.
67900 2009-04-26  Bruno Haible  <bruno@clisp.org>
67902         Avoid test failures on AIX and OSF/1.
67903         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
67904         malloc(0).
67905         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67906         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67907         Likewise.
67908         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
67909         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
67910         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
67911         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
67912         * doc/posix-functions/malloc.texi: Document the portability problem
67913         related to malloc(0).
67915 2009-04-26  Bruno Haible  <bruno@clisp.org>
67917         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
67918         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
67919         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
67921 2009-04-25  Bruno Haible  <bruno@clisp.org>
67923         Avoid link error when creating a namespace clean library.
67924         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
67925         as macro with arguments if already defined as an alias.
67926         * lib/signbitf.c (gl_signbitf): Don't undefine.
67927         * lib/signbitd.c (gl_signbitd): Don't undefine.
67928         * lib/signbitl.c (gl_signbitl): Don't undefine.
67930 2009-04-25  Jim Meyering  <meyering@redhat.com>
67932         vc-list-files: fix another quoting bug
67933         * build-aux/vc-list-files: Avoid sed backslash expansion
67934         of pathological directory names.
67936 2009-04-25  Eric Blake  <ebb9@byu.net>
67938         vc-list-files: fix shell quoting error
67939         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
67940         timestamp.
67942 2009-04-25  Jim Meyering  <meyering@redhat.com>
67944         vc-list-files: restore lost functionality with subdir argument
67945         * build-aux/vc-list-files: When given a non-"." sub-directory
67946         argument, substitute the $dir/ prefix back onto each resulting name.
67947         Otherwise, coreutils' root_tests check would fail.
67949 2009-04-24  Eric Blake  <ebb9@byu.net>
67951         vc-list-files: ignore git symlinks
67952         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
67953         than ls-files, to ignore git symlinks.
67955         maint.mk: import improvements from m4
67956         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
67957         (move_if_change): Delete unused macro.
67958         (news-date-check, vc-diff-check): Support VPATH builds.
67959         (announcement): Likewise.  Split --bootstrap-tools list...
67960         (boostrap-tools): ...into separate list, which can be overridden
67961         in cfg.mk.
67962         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
67963         requiring dependency on useless-if-before-free module.
67964         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
67965         Support VPATH builds.
67967 2009-04-24  Jim Meyering  <meyering@redhat.com>
67969         maint.mk: remove coreutils-specific rules and variables
67970         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
67971         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
67972         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
67974         maint.mk: remove obsolete rule
67975         * top/maint.mk (rel-check): Remove rule.
67976         (WGET, WGETFLAGS): Remove now-unused variables.
67978 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67980         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
67981         consistency.
67983         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
67984         '$(PATH_SEPARATOR)' instead of ':'.
67986 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67988         * lib/getopt1.c (main): Use 'const' for static array.
67990 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67992         * top/maint.mk: Sync with coreutils.
67993         * NEWS: Explain incompatibilities.
67995 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67996             Bruno Haible  <bruno@clisp.org>
67998         Fix cross-compilation results.
67999         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
68000         statement, as third argument of AC_TRY_RUN.
68001         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
68002         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
68003         Likewise.
68004         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
68005         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
68006         Likewise.
68007         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
68008         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
68009         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
68011 2009-04-20  Bruno Haible  <bruno@clisp.org>
68013         Avoid test failure on mingw.
68014         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
68016 2009-04-20  Bruno Haible  <bruno@clisp.org>
68018         Avoid compilation error on mingw.
68019         * modules/localename-tests (Depends-on): Add locale.
68021 2009-04-19  Bruno Haible  <bruno@clisp.org>
68023         Support for building a shared library on Windows platforms.
68024         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
68025         (main): Test the presence of UNINORM_NFC here.
68026         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
68027         (main): Test the presence of UNINORM_NFD here.
68028         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
68029         (main): Test the presence of UNINORM_NFKC here.
68030         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
68031         (main): Test the presence of UNINORM_NFKD here.
68033 2009-04-19  Bruno Haible  <bruno@clisp.org>
68035         Avoid a compiler warning.
68036         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
68037         Change type of variable 'sequence'.
68039 2009-04-19  Bruno Haible  <bruno@clisp.org>
68041         * modules/configmake (Makefile.am): When the contents of configmake.h
68042         does not change, arrange to preserve its modification time.
68044 2009-04-17  Simon Josefsson  <simon@josefsson.org>
68046         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
68047         gettext domain.
68049 2009-04-16  Jim Meyering  <meyering@redhat.com>
68051         useless-if-before-free: improve conversion code
68052         * build-aux/useless-if-before-free: Adjust code-in-comment to match
68053         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
68055 2009-04-14  Bruno Haible  <bruno@clisp.org>
68057         * modules/fcntl (Depends-on): Add extensions.
68058         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
68060 2009-04-12  Ben Pfaff  <blp@gnu.org>
68062         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
68063         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
68065 2009-03-20  Ben Pfaff  <blp@gnu.org>
68067         Make rename replace existing destinations on Windows.
68068         * m4/rename.m4: Add test for Mingw.
68069         * lib/rename.c: Add rename replacement that uses MoveFileEx with
68070         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
68071         * doc/posix-functions/rename.texi: Document.
68073 2009-04-10  Bruno Haible  <bruno@clisp.org>
68075         New include file "iconveh.h".
68076         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
68077         * lib/striconveh.h: Include it.
68078         (enum iconv_ilseq_handler): Remove definition.
68079         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
68080         striconveh.h.
68081         * lib/striconveha.c: Include striconveh.h.
68082         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
68083         * modules/striconveh (Files): Add lib/iconveh.h.
68084         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
68085         lib/striconveh.h.
68087 2009-04-10  Bruno Haible  <bruno@clisp.org>
68089         * lib/uniconv.h: Update comment.
68091 2009-04-10  Bruno Haible  <bruno@clisp.org>
68093         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
68094         always.
68095         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
68096         * lib/unistr/u16-mbtouc-aux.c: Likewise.
68097         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
68098         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
68099         "unistring-notinline.h", so that the function gets defined always.
68100         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
68101         * lib/unistr/u8-uctomb.c: Likewise.
68102         * lib/unistr/u16-mbtouc.c: Likewise.
68103         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
68104         * lib/unistr/u16-uctomb.c: Likewise.
68105         * lib/unistr/u32-mbtouc.c: Likewise.
68106         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
68107         * lib/unistr/u32-uctomb.c: Likewise.
68109 2009-04-10  Bruno Haible  <bruno@clisp.org>
68111         Mark 'utime' obsolete.
68112         * modules/utime (Status, Notice): New sections.
68113         Suggested by Jim Meyering.
68115         Fix cross-compile guess for utime test.
68116         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
68117         autoconf.
68118         * doc/posix-functions/utime.texi: Give more precisions.
68119         Reported by Jan <ipif@ymail.com>.
68121 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
68123         filevercmp: correct today's change
68124         * lib/filevercmp.c: Also handle coreutils' test inputs.
68125         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
68127         Fix regression in 'filevercmp' module. Thanks Sven Joachim
68128         for reporting it.
68129         * lib/filevercmp.c: Special handle for "", "." and "..".
68130         * tests/test-filevercmp.c: Enlarge the set suite.
68132 2009-04-07  Jim Meyering  <meyering@redhat.com>
68134         useless-if-before-free: show how to remove braced useless free, too
68135         * build-aux/useless-if-before-free: still only in a comment, though.
68137 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
68139         maint.mk: import changes to syntax-check macros from coreutils
68140         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
68141         Use them in the relevant macros.
68143 2009-04-06  Bruno Haible  <bruno@clisp.org>
68145         Fix unportable use of bit-fields.
68146         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
68147         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
68148         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
68150 2009-04-06  Bruno Haible  <bruno@clisp.org>
68152         Avoid test failures on AIX and OSF/1.
68153         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
68154         that malloc(0) = NULL.
68155         * tests/unicase/test-u8-tolower.c (check): Likewise.
68156         * tests/unicase/test-u8-totitle.c (check): Likewise.
68157         * tests/unicase/test-u8-toupper.c (check): Likewise.
68158         * tests/unicase/test-u16-casefold.c (check): Likewise.
68159         * tests/unicase/test-u16-tolower.c (check): Likewise.
68160         * tests/unicase/test-u16-totitle.c (check): Likewise.
68161         * tests/unicase/test-u16-toupper.c (check): Likewise.
68162         * tests/unicase/test-u32-casefold.c (check): Likewise.
68163         * tests/unicase/test-u32-tolower.c (check): Likewise.
68164         * tests/unicase/test-u32-totitle.c (check): Likewise.
68165         * tests/unicase/test-u32-toupper.c (check): Likewise.
68166         * tests/uninorm/test-u8-nfc.c (check): Likewise.
68167         * tests/uninorm/test-u8-nfd.c (check): Likewise.
68168         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
68169         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
68170         * tests/uninorm/test-u16-nfc.c (check): Likewise.
68171         * tests/uninorm/test-u16-nfd.c (check): Likewise.
68172         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
68173         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
68174         * tests/uninorm/test-u32-nfc.c (check): Likewise.
68175         * tests/uninorm/test-u32-nfd.c (check): Likewise.
68176         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
68177         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
68179 2009-04-05  Bruno Haible  <bruno@clisp.org>
68181         Work around an autoconf limitation.
68182         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
68183         comment line if it would be longer than 3 KB.
68185 2009-04-05  Bruno Haible  <bruno@clisp.org>
68187         Avoid test failure with libiconv-1.13.
68188         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
68189         of the expected test results.
68191 2009-04-05  Bruno Haible  <bruno@clisp.org>
68193         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
68194         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
68195         that it should be installed.
68197 2009-04-05  Bruno Haible  <bruno@clisp.org>
68199         * gnulib-tool: New option --copy-file.
68200         (func_usage): Document it.
68201         (func_dest_tmpfilename): Moved out of func_import.
68202         (func_add_file, func_update_file): New functions, extracted from
68203         func_import.
68204         (func_import): Update.
68206 2009-04-05  Karl Berry  <karl@gnu.org>
68208         * README: prominently mention gnulib-tool.
68209         Rearrange sections so getting the code is near the top.
68211 2009-04-05  Bruno Haible  <bruno@clisp.org>
68213         * lib/unicase.h: Mention u*_cmp2.
68214         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68215         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
68216         * lib/unicase/ulc-casecmp.c: Likewise.
68217         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
68218         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
68219         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
68220         unistr/u8-cmp.
68221         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
68222         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
68223         unistr/u16-cmp.
68224         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
68225         unistr/u32-cmp.
68227         * lib/uninorm.h: Mention u*_cmp2.
68228         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68229         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
68230         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
68231         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
68232         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
68233         unistr/u8-cmp.
68234         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
68235         unistr/u16-cmp.
68236         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
68237         unistr/u32-cmp.
68239         New module 'unistr/u32-cmp2'.
68240         * lib/unistr/u32-cmp2.c: New file.
68241         * modules/unistr/u32-cmp2: New file.
68243         New module 'unistr/u16-cmp2'.
68244         * lib/unistr/u16-cmp2.c: New file.
68245         * modules/unistr/u16-cmp2: New file.
68247         New module 'unistr/u8-cmp2'.
68248         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
68249         * lib/unistr/u8-cmp2.c: New file.
68250         * lib/unistr/u-cmp2.h: New file.
68251         * modules/unistr/u8-cmp2: New file.
68253 2009-04-05  Bruno Haible  <bruno@clisp.org>
68255         * lib/unictype.h (uc_property_is_valid): New macro.
68256         * tests/unictype/test-pr_byname.c (main): Use it.
68258         * lib/unistr.h: Doc fixes.
68259         * lib/uniconv.h: Doc fixes.
68260         * lib/unictype.h: Doc fixes.
68262 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
68264         Port coreutils 7.2 to Solaris 8.
68266         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
68267         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
68268         for Solaris 8.  This is a bit of a hack, as it means it's the
68269         caller's responsibility to add -lnsl if needed, but most likely it
68270         won't be needed since only getaddrinfo uses this and getaddrinfo
68271         isn't needed on Solaris 8.
68273         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
68274         problem to Solaris 8 encountered with coreutils 7.2, which
68275         resulted in a message "fnmatch.c:292: warning: passing argument 4
68276         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
68277         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
68279 2009-04-03  Simon Josefsson  <simon@josefsson.org>
68281         * m4/ld-version-script.m4: Add FIXME comment.
68283 2009-04-02  Simon Josefsson  <simon@josefsson.org>
68285         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
68286         SOVERSION variable.
68288 2009-04-02  Bruno Haible  <bruno@clisp.org>
68290         * Makefile (info, html, dvi, pdf): Combine the rules.
68291         Suggested by Jim Meyering.
68293 2009-04-01  Bruno Haible  <bruno@clisp.org>
68295         * Makefile (info, html, dvi, pdf): New targets.
68296         Reported by Reuben Thomas <rrt@sc3d.org>.
68298 2009-04-01  Bruno Haible  <bruno@clisp.org>
68300         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68301         can be put into PATH.
68302         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68304 2009-04-01  Bruno Haible  <bruno@clisp.org>
68306         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68308 2009-04-01  Bruno Haible  <bruno@clisp.org>
68310         Rename module 'visibility'.
68311         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68312         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68313         * doc/gnulib.texi: Update.
68314         * MODULES.html.sh (Misc): Update.
68315         * NEWS: Mention the change.
68317 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68319         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68320         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68321         Eric Blake <ebb9@byu.net> for review.
68322         * MODULES.html.sh: Add lib-msvc-compat.
68323         * doc/gnulib.texi: Link to new section.
68324         * m4/ld-output-def.m4: New file.
68325         * doc/ld-output-def.texi: New file.
68327 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68329         Rename ld-version-script to lib-symbol-versions.  Suggested by
68330         Bruno Haible <bruno@clisp.org>.
68331         * modules/ld-version-script: Renamed to lib-symbol-versions.
68332         * doc/ld-version-script.texi: Fix module name.
68333         * MODULES.html.sh: Add lib-symbol-versions.
68335 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68337         * modules/u64-tests: New file.
68338         * tests/test-u64.c: New file.
68340 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68342         * MODULES.html.sh: Mention u64.
68343         * modules/u64: New module.
68344         * modules/crypto/sha512: Depend on u64 module instead of providing
68345         u64.h.
68347 2009-03-27  Eric Blake  <ebb9@byu.net>
68349         test-strerror: make debugging EAI_SYSTEM easier
68350         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68351         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68352         failure was EAI_SYSTEM.
68354 2009-03-25  Bruno Haible  <bruno@clisp.org>
68356         Fix a problem with --enable-relocatable on Solaris 7.
68357         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68358         since 2008-02-24.
68360 2009-03-25  Eric Blake  <ebb9@byu.net>
68362         test-sockets: avoid gcc warning
68363         * tests/test-sockets.c (main): Silence compiler warning.
68365 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68367         New modules nproc, pthread, contributed by Glen Lenker.
68369         * MODULES.html.sh: Add pthread, nproc.
68370         * lib/nproc.c: New file.
68371         * lib/nproc.h: New file.
68372         * lib/pthread.in.h: New file.
68373         * m4/pthread.m4: New file.
68374         * modules/nproc: New file.
68375         * modules/pthread: New file.
68377 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68379         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68380         New variable.
68382 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68384         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68385         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68386         * tests/test-filevercmp.c: Add tests for backup suffixes.
68388 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68390         * modules/stdlib (Depends-on): Add stdint, needed when defining
68391         struct random_data on, for example, HP-UX 10.20.  Reported by
68392         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68394 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68396         * lib/readline.c (readline): Call fflush on stdout after printing
68397         prompt.
68399 2009-03-20  Bruno Haible  <bruno@clisp.org>
68401         Remove dependency from 'close' module to -lws2_32 on native Windows.
68402         * lib/close-hook.h: New file.
68403         * lib/close-hook.c: New file.
68404         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68405         w32sock.h.
68406         (_gl_close_fd_maybe_socket): Remove function.
68407         (rpl_close): Invoke execute_all_close_hooks instead of
68408         _gl_close_fd_maybe_socket.
68409         * lib/sockets.c: Include close-hook.h, w32sock.h.
68410         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68411         (close_sockets_hook): New variable.
68412         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68413         (gl_sockets_cleanup): Unregister it.
68414         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68415         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68416         * modules/close-hook: New file.
68417         * modules/close (Files): Remove lib/w32sock.h.
68418         (Depends-on): Add close-hook.
68419         (Link): Remove section.
68420         * modules/sockets (Files): Add lib/w32sock.h.
68421         (Depends-on): Add close-hook.
68422         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68423         invocation.
68424         * NEWS: Mention that LIB_CLOSE is gone.
68426 2009-03-23  Eric Blake  <ebb9@byu.net>
68428         signal-tests: test previous patch
68429         * tests/test-signal.c: New file.
68430         * modules/signal-tests: Likewise.
68432         signal.h: always support 'volatile sig_atomic_t'
68433         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68434         (gl_SIGNAL_H_DEFAULTS): Add a default.
68435         * modules/signal (Makefile.am): Substitute if needed.
68436         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68437         users can blindly add volatile.
68438         * doc/posix-headers/signal.texi (signal.h): Document it.
68439         Reported by Matthew Woehlke.
68441 2009-03-23  Jim Meyering  <meyering@redhat.com>
68443         pathmax: PATH_MAX: use pathconf only when available
68444         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68445         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68446         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68447         This avoids a link failure in a PSP cross-compilation environment
68448         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68450         * lib/vasnprintf.c (divide): Fix typo in comment.
68452 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68454         * gnulib-tool (func_filter_filelist): Fix comment.
68456 2009-03-20  Bruno Haible  <bruno@clisp.org>
68458         Make sockets.h self-contained.
68459         * lib/sockets.c: Include sockets.h first.
68460         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68462 2009-03-19  Eric Blake  <ebb9@byu.net>
68464         doc: mention more functions added in cygwin 1.7.0
68465         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68466         addition.
68467         * doc/posix-functions/log2f.texi: Likewise.
68469 2009-03-19  Jim Meyering  <meyering@redhat.com>
68471         fsusage: avoid syntax error due to statement-before-declaration
68472         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68473         after all declarations.  Reported by Matthew Woehlke in
68474         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68476 2009-03-18  Eric Blake  <ebb9@byu.net>
68478         build-aux/compile: sync from automake
68479         * build-aux/compile: New file, from automake.
68480         * config/srclist.txt: Mention build-aux/compile.
68482 2009-03-17  Bruno Haible  <bruno@clisp.org>
68484         * lib/git-merge-changelog.c: Fix typo in comment.
68485         Reported by Reuben Thomas <rrt@sc3d.org>.
68487 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68489         * m4/regex.m4: update and improve help for
68490         --without-included-regex.
68492 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68494         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68495         failure on missing include files.
68497 2009-03-17  Eric Blake  <ebb9@byu.net>
68499         doc: mention more functions added in cygwin 1.7.0
68500         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68501         addition.
68502         * doc/posix-functions/fwscanf.texi: Likewise.
68503         * doc/posix-functions/swprintf.texi: Likewise.
68504         * doc/posix-functions/swscanf.texi: Likewise.
68505         * doc/posix-functions/vfwprintf.texi: Likewise.
68506         * doc/posix-functions/vfwscanf.texi: Likewise.
68507         * doc/posix-functions/vswprintf.texi: Likewise.
68508         * doc/posix-functions/vswscanf.texi: Likewise.
68509         * doc/posix-functions/vwprintf.texi: Likewise.
68510         * doc/posix-functions/vwscanf.texi: Likewise.
68511         * doc/posix-functions/wcscasecmp.texi: Likewise.
68512         * doc/posix-functions/wcsdup.texi: Likewise.
68513         * doc/posix-functions/wcsftime.texi: Likewise.
68514         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68515         * doc/posix-functions/wprintf.texi: Likewise.
68516         * doc/posix-functions/wscanf.texi: Likewise.
68517         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68519 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68521         maint.mk: really add $(AM_MAKEFLAGS)
68522         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68523         was inadvertently omitted in the last commit.
68524         Spotted by Bruno Haible.
68526         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68527         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68528         $(AM_MAKEFLAGS)' rather than plain `make'.
68530         gnulib-tool: execute $MAKE not make
68531         * gnulib-tool: Default $MAKE to 'make'.
68532         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68533         than make.  Initialize $MAKE in the do-autobuild script.
68535         gnulib-tool: use $MAKE not make in generated files
68536         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68537         make, in generated files.  Initialize $MAKE in the do-autobuild
68538         script.
68540         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68542         GNUmakefile: disable parallelism only for multiple, recursive targets
68543         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
68544         additions in the Makefile.
68545         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
68546         by Automake.
68547         (.NOTPARALLEL): Only disable parallel builds if multiple targets
68548         are listed on the command line and at least one of them is
68549         listed in $(ALL_RECURSIVE_TARGETS).
68551 2009-03-14  Bruno Haible  <bruno@clisp.org>
68553         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68554         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
68555         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
68556         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
68557         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
68558         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
68559         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
68560         unistr/u8-uctomb.
68561         * modules/unistr/u8-strchr (Depends-on): Likewise.
68562         * modules/unistr/u8-strrchr (Depends-on): Likewise.
68563         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
68564         unistr/u16-uctomb.
68565         * modules/unistr/u16-strchr (Depends-on): Likewise.
68566         * modules/unistr/u16-strrchr (Depends-on): Likewise.
68568 2009-03-12  Bruno Haible  <bruno@clisp.org>
68570         Work around select() bug on Interix 3.5.
68571         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
68572         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
68573         * m4/select.m4: New file.
68574         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
68575         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
68576         * modules/select (Files): Add m4/select.m4.
68577         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
68578         * modules/nanosleep (Depends-on): Add select.
68579         * modules/poll (Depends-on): Likewise.
68580         * doc/posix-functions/select.texi: Mention the Interix bug.
68581         Reported by Markus Duft <mduft@gentoo.org>.
68583         * lib/select.c: Renamed from lib/winsock-select.c.
68584         * modules/select (Files): Add lib/select.c, remove
68585         lib/winsock-select.c.
68586         (configure.ac): Update.
68588 2009-03-12  Jim Meyering  <meyering@redhat.com>
68590         avoid gcc warnings about unused macro definitions
68591         * lib/readtokens.c (STREQ): Remove unused definition.
68592         * lib/xmalloc.c (SIZE_MAX): Likewise.
68593         * lib/openat-die.c (N_): Likewise.
68594         * lib/mountlist.c (SIZE_MAX): Remove definition.
68595         Instead, include <stdint.h>.
68596         * lib/readutmp.c: Likewise.
68597         * modules/readutmp (Depends-on): Add stdint.
68598         * modules/mountlist (Depends-on): Add stdint.
68599         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
68601 2009-03-10  Bruno Haible  <bruno@clisp.org>
68603         Tests for module 'mbmemcasecoll'.
68604         * modules/mbmemcasecoll-tests: New file.
68605         * tests/test-mbmemcasecoll1.sh: New file.
68606         * tests/test-mbmemcasecoll2.sh: New file.
68607         * tests/test-mbmemcasecoll3.sh: New file.
68608         * tests/test-mbmemcasecoll.c: New file.
68610         New module 'mbmemcasecoll'.
68611         * lib/mbmemcasecoll.h: New file.
68612         * lib/mbmemcasecoll.c: New file.
68613         * modules/mbmemcasecoll: New file.
68615         * tests/test-mbmemcasecmp.h: New file, extracted from
68616         tests/test-mbmemcasecmp.c.
68617         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
68618         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
68619         (main): Update.
68620         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
68622 2009-03-09  Bruno Haible  <bruno@clisp.org>
68624         Tests for module 'mbmemcasecmp'.
68625         * modules/mbmemcasecmp-tests: New file.
68626         * tests/test-mbmemcasecmp1.sh: New file.
68627         * tests/test-mbmemcasecmp2.sh: New file.
68628         * tests/test-mbmemcasecmp3.sh: New file.
68629         * tests/test-mbmemcasecmp.c: New file.
68631         New module 'mbmemcasecmp'.
68632         * lib/mbmemcasecmp.h: New file.
68633         * lib/mbmemcasecmp.c: New file.
68634         * modules/mbmemcasecmp: New file.
68636 2009-03-09  Bruno Haible  <bruno@clisp.org>
68638         Tests for module 'unicase/ulc-casecoll'.
68639         * modules/unicase/ulc-casecoll-tests: New file.
68640         * tests/unicase/test-ulc-casecoll1.sh: New file.
68641         * tests/unicase/test-ulc-casecoll2.sh: New file.
68642         * tests/unicase/test-ulc-casecoll.c: New file.
68644         New module 'unicase/ulc-casecoll'.
68645         * lib/unicase.h (ulc_casecoll): New declaration.
68646         * lib/unicase/ulc-casecoll.c: New file.
68647         * modules/unicase/ulc-casecoll: New file.
68649         New module 'unicase/ulc-casexfrm'.
68650         * lib/unicase.h (ulc_casexfrm): New declaration.
68651         * lib/unicase/ulc-casexfrm.c: New file.
68652         * modules/unicase/ulc-casexfrm: New file.
68654 2009-03-09  Bruno Haible  <bruno@clisp.org>
68656         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
68657         invocations.
68659         * m4/mbscasecmp.m4: Remove file.
68660         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
68661         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
68663         * m4/mbscasestr.m4: Remove file.
68664         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
68665         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
68667         * m4/mbschr.m4: Remove file.
68668         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
68669         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
68671         * m4/mbscspn.m4: Remove file.
68672         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
68673         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
68675         * m4/mbslen.m4: Remove file.
68676         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
68677         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
68679         * m4/mbsncasecmp.m4: Remove file.
68680         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
68681         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
68683         * m4/mbsnlen.m4: Remove file.
68684         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
68685         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
68687         * m4/mbspbrk.m4: Remove file.
68688         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
68689         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
68691         * m4/mbspcasecmp.m4: Remove file.
68692         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
68693         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
68695         * m4/mbsrchr.m4: Remove file.
68696         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
68697         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
68699         * m4/mbssep.m4: Remove file.
68700         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
68701         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
68703         * m4/mbsspn.m4: Remove file.
68704         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
68705         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
68707         * m4/mbsstr.m4: Remove file.
68708         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
68709         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
68711         * m4/mbstok_r.m4: Remove file.
68712         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
68713         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
68715         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
68717         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
68718         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
68720         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
68722 2009-03-08  Bruno Haible  <bruno@clisp.org>
68724         Tests for module 'unicase/ulc-casecmp'.
68725         * modules/unicase/ulc-casecmp-tests: New file.
68726         * tests/unicase/test-ulc-casecmp1.sh: New file.
68727         * tests/unicase/test-ulc-casecmp2.sh: New file.
68728         * tests/unicase/test-ulc-casecmp.c: New file.
68730         New module 'unicase/ulc-casecmp'.
68731         * lib/unicase.h (ulc_casecmp): New declaration.
68732         * lib/unicase/ulc-casecmp.c: New file.
68733         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
68734         'const SRC_UNIT *'.
68735         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
68736         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
68737         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
68738         * modules/unicase/ulc-casecmp: New file.
68740         Tests for module 'unicase/u32-is-cased'.
68741         * modules/unicase/u32-is-cased-tests: New file.
68742         * tests/unicase/test-u32-is-cased.c: New file.
68744         Tests for module 'unicase/u16-is-cased'.
68745         * modules/unicase/u16-is-cased-tests: New file.
68746         * tests/unicase/test-u16-is-cased.c: New file.
68748         Tests for module 'unicase/u8-is-cased'.
68749         * modules/unicase/u8-is-cased-tests: New file.
68750         * tests/unicase/test-u8-is-cased.c: New file.
68751         * tests/unicase/test-is-cased.h: New file.
68753         New module 'unicase/u32-is-cased'.
68754         * lib/unicase/u32-is-cased.c: New file.
68755         * modules/unicase/u32-is-cased: New file.
68757         New module 'unicase/u16-is-cased'.
68758         * lib/unicase/u16-is-cased.c: New file.
68759         * modules/unicase/u16-is-cased: New file.
68761         New module 'unicase/u8-is-cased'.
68762         * lib/unicase/u8-is-cased.c: New file.
68763         * lib/unicase/u-is-cased.h: New file.
68764         * modules/unicase/u8-is-cased: New file.
68766         Tests for module 'unicase/u32-is-casefolded'.
68767         * modules/unicase/u32-is-casefolded-tests: New file.
68768         * tests/unicase/test-u32-is-casefolded.c: New file.
68770         Tests for module 'unicase/u16-is-casefolded'.
68771         * modules/unicase/u16-is-casefolded-tests: New file.
68772         * tests/unicase/test-u16-is-casefolded.c: New file.
68774         Tests for module 'unicase/u8-is-casefolded'.
68775         * modules/unicase/u8-is-casefolded-tests: New file.
68776         * tests/unicase/test-u8-is-casefolded.c: New file.
68777         * tests/unicase/test-is-casefolded.h: New file.
68779         New module 'unicase/u32-is-casefolded'.
68780         * lib/unicase/u32-is-casefolded.c: New file.
68781         * modules/unicase/u32-is-casefolded: New file.
68783         New module 'unicase/u16-is-casefolded'.
68784         * lib/unicase/u16-is-casefolded.c: New file.
68785         * modules/unicase/u16-is-casefolded: New file.
68787         New module 'unicase/u8-is-casefolded'.
68788         * lib/unicase/u8-is-casefolded.c: New file.
68789         * modules/unicase/u8-is-casefolded: New file.
68791         Tests for module 'unicase/u32-is-titlecase'.
68792         * modules/unicase/u32-is-titlecase-tests: New file.
68793         * tests/unicase/test-u32-is-titlecase.c: New file.
68795         Tests for module 'unicase/u16-is-titlecase'.
68796         * modules/unicase/u16-is-titlecase-tests: New file.
68797         * tests/unicase/test-u16-is-titlecase.c: New file.
68799         Tests for module 'unicase/u8-is-titlecase'.
68800         * modules/unicase/u8-is-titlecase-tests: New file.
68801         * tests/unicase/test-u8-is-titlecase.c: New file.
68802         * tests/unicase/test-is-titlecase.h: New file.
68804         New module 'unicase/u32-is-titlecase'.
68805         * lib/unicase/u32-is-titlecase.c: New file.
68806         * modules/unicase/u32-is-titlecase: New file.
68808         New module 'unicase/u16-is-titlecase'.
68809         * lib/unicase/u16-is-titlecase.c: New file.
68810         * modules/unicase/u16-is-titlecase: New file.
68812         New module 'unicase/u8-is-titlecase'.
68813         * lib/unicase/u8-is-titlecase.c: New file.
68814         * modules/unicase/u8-is-titlecase: New file.
68816         Tests for module 'unicase/u32-is-lowercase'.
68817         * modules/unicase/u32-is-lowercase-tests: New file.
68818         * tests/unicase/test-u32-is-lowercase.c: New file.
68820         Tests for module 'unicase/u16-is-lowercase'.
68821         * modules/unicase/u16-is-lowercase-tests: New file.
68822         * tests/unicase/test-u16-is-lowercase.c: New file.
68824         Tests for module 'unicase/u8-is-lowercase'.
68825         * modules/unicase/u8-is-lowercase-tests: New file.
68826         * tests/unicase/test-u8-is-lowercase.c: New file.
68827         * tests/unicase/test-is-lowercase.h: New file.
68829         New module 'unicase/u32-is-lowercase'.
68830         * lib/unicase/u32-is-lowercase.c: New file.
68831         * modules/unicase/u32-is-lowercase: New file.
68833         New module 'unicase/u16-is-lowercase'.
68834         * lib/unicase/u16-is-lowercase.c: New file.
68835         * modules/unicase/u16-is-lowercase: New file.
68837         New module 'unicase/u8-is-lowercase'.
68838         * lib/unicase/u8-is-lowercase.c: New file.
68839         * modules/unicase/u8-is-lowercase: New file.
68841         Tests for module 'unicase/u32-is-uppercase'.
68842         * modules/unicase/u32-is-uppercase-tests: New file.
68843         * tests/unicase/test-u32-is-uppercase.c: New file.
68845         Tests for module 'unicase/u16-is-uppercase'.
68846         * modules/unicase/u16-is-uppercase-tests: New file.
68847         * tests/unicase/test-u16-is-uppercase.c: New file.
68849         Tests for module 'unicase/u8-is-uppercase'.
68850         * modules/unicase/u8-is-uppercase-tests: New file.
68851         * tests/unicase/test-u8-is-uppercase.c: New file.
68852         * tests/unicase/test-is-uppercase.h: New file.
68854         New module 'unicase/u32-is-uppercase'.
68855         * lib/unicase/u32-is-uppercase.c: New file.
68856         * modules/unicase/u32-is-uppercase: New file.
68858         New module 'unicase/u16-is-uppercase'.
68859         * lib/unicase/u16-is-uppercase.c: New file.
68860         * modules/unicase/u16-is-uppercase: New file.
68862         New module 'unicase/u8-is-uppercase'.
68863         * lib/unicase/u8-is-uppercase.c: New file.
68864         * modules/unicase/u8-is-uppercase: New file.
68866         New module 'unicase/u32-is-invariant'.
68867         * lib/unicase/u32-is-invariant.c: New file.
68868         * modules/unicase/u32-is-invariant: New file.
68870         New module 'unicase/u16-is-invariant'.
68871         * lib/unicase/u16-is-invariant.c: New file.
68872         * modules/unicase/u16-is-invariant: New file.
68874         New module 'unicase/u8-is-invariant'.
68875         * lib/unicase/u8-is-invariant.c: New file.
68876         * lib/unicase/invariant.h: New file.
68877         * lib/unicase/u-is-invariant.h: New file.
68878         * modules/unicase/u8-is-invariant: New file.
68880         Tests for module 'unicase/u32-casecoll'.
68881         * modules/unicase/u32-casecoll-tests: New file.
68882         * tests/unicase/test-u32-casecoll.c: New file.
68884         Tests for module 'unicase/u16-casecoll'.
68885         * modules/unicase/u16-casecoll-tests: New file.
68886         * tests/unicase/test-u16-casecoll.c: New file.
68888         Tests for module 'unicase/u8-casecoll'.
68889         * modules/unicase/u8-casecoll-tests: New file.
68890         * tests/unicase/test-u8-casecoll.c: New file.
68892         New module 'unicase/u32-casecoll'.
68893         * lib/unicase/u32-casecoll.c: New file.
68894         * modules/unicase/u32-casecoll: New file.
68896         New module 'unicase/u16-casecoll'.
68897         * lib/unicase/u16-casecoll.c: New file.
68898         * modules/unicase/u16-casecoll: New file.
68900         New module 'unicase/u8-casecoll'.
68901         * lib/unicase/u8-casecoll.c: New file.
68902         * lib/unicase/u-casecoll.h: New file.
68903         * modules/unicase/u8-casecoll: New file.
68905         New module 'unicase/u32-casexfrm'.
68906         * lib/unicase/u32-casexfrm.c: New file.
68907         * modules/unicase/u32-casexfrm: New file.
68909         New module 'unicase/u16-casexfrm'.
68910         * lib/unicase/u16-casexfrm.c: New file.
68911         * modules/unicase/u16-casexfrm: New file.
68913         New module 'unicase/u8-casexfrm'.
68914         * lib/unicase/u8-casexfrm.c: New file.
68915         * lib/unicase/u-casexfrm.h: New file.
68916         * modules/unicase/u8-casexfrm: New file.
68918         Tests for module 'unicase/u32-casecmp'.
68919         * modules/unicase/u32-casecmp-tests: New file.
68920         * tests/unicase/test-u32-casecmp.c: New file.
68922         Tests for module 'unicase/u16-casecmp'.
68923         * modules/unicase/u16-casecmp-tests: New file.
68924         * tests/unicase/test-u16-casecmp.c: New file.
68926         Tests for module 'unicase/u8-casecmp'.
68927         * modules/unicase/u8-casecmp-tests: New file.
68928         * tests/unicase/test-u8-casecmp.c: New file.
68929         * tests/unicase/test-casecmp.h: New file.
68931         New module 'unicase/u32-casecmp'.
68932         * lib/unicase/u32-casecmp.c: New file.
68933         * modules/unicase/u32-casecmp: New file.
68935         New module 'unicase/u16-casecmp'.
68936         * lib/unicase/u16-casecmp.c: New file.
68937         * modules/unicase/u16-casecmp: New file.
68939         New module 'unicase/u8-casecmp'.
68940         * lib/unicase/u8-casecmp.c: New file.
68941         * lib/unicase/u-casecmp.h: New file.
68942         * modules/unicase/u8-casecmp: New file.
68944         Tests for module 'unicase/u32-casefold'.
68945         * modules/unicase/u32-casefold-tests: New file.
68946         * tests/unicase/test-u32-casefold.c: New file.
68948         Tests for module 'unicase/u16-casefold'.
68949         * modules/unicase/u16-casefold-tests: New file.
68950         * tests/unicase/test-u16-casefold.c: New file.
68952         Tests for module 'unicase/u8-casefold'.
68953         * modules/unicase/u8-casefold-tests: New file.
68954         * tests/unicase/test-u8-casefold.c: New file.
68956         New module 'unicase/u32-casefold'.
68957         * lib/unicase/u32-casefold.c: New file.
68958         * modules/unicase/u32-casefold: New file.
68960         New module 'unicase/u16-casefold'.
68961         * lib/unicase/u16-casefold.c: New file.
68962         * modules/unicase/u16-casefold: New file.
68964         New module 'unicase/u8-casefold'.
68965         * lib/unicase/u8-casefold.c: New file.
68966         * lib/unicase/u-casefold.h: New file.
68967         * modules/unicase/u8-casefold: New file.
68969         New module 'unicase/tocasefold'.
68970         * lib/unicase/casefold.h: New file.
68971         * lib/unicase/tocasefold.c: New file.
68972         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
68973         * modules/unicase/tocasefold: New file.
68975         Tests for module 'unicase/u32-totitle'.
68976         * modules/unicase/u32-totitle-tests: New file.
68977         * tests/unicase/test-u32-totitle.c: New file.
68979         Tests for module 'unicase/u16-totitle'.
68980         * modules/unicase/u16-totitle-tests: New file.
68981         * tests/unicase/test-u16-totitle.c: New file.
68983         Tests for module 'unicase/u8-totitle'.
68984         * modules/unicase/u8-totitle-tests: New file.
68985         * tests/unicase/test-u8-totitle.c: New file.
68987         New module 'unicase/u32-totitle'.
68988         * lib/unicase/u32-totitle.c: New file.
68989         * modules/unicase/u32-totitle: New file.
68991         New module 'unicase/u16-totitle'.
68992         * lib/unicase/u16-totitle.c: New file.
68993         * modules/unicase/u16-totitle: New file.
68995         New module 'unicase/u8-totitle'.
68996         * lib/unicase/u8-totitle.c: New file.
68997         * lib/unicase/u-totitle.h: New file.
68998         * modules/unicase/u8-totitle: New file.
69000         Tests for module 'unicase/u32-tolower'.
69001         * modules/unicase/u32-tolower-tests: New file.
69002         * tests/unicase/test-u32-tolower.c: New file.
69004         Tests for module 'unicase/u16-tolower'.
69005         * modules/unicase/u16-tolower-tests: New file.
69006         * tests/unicase/test-u16-tolower.c: New file.
69008         Tests for module 'unicase/u8-tolower'.
69009         * modules/unicase/u8-tolower-tests: New file.
69010         * tests/unicase/test-u8-tolower.c: New file.
69012         New module 'unicase/u32-tolower'.
69013         * lib/unicase/u32-tolower.c: New file.
69014         * modules/unicase/u32-tolower: New file.
69016         New module 'unicase/u16-tolower'.
69017         * lib/unicase/u16-tolower.c: New file.
69018         * modules/unicase/u16-tolower: New file.
69020         New module 'unicase/u8-tolower'.
69021         * lib/unicase/u8-tolower.c: New file.
69022         * modules/unicase/u8-tolower: New file.
69024         Tests for module 'unicase/u32-toupper'.
69025         * modules/unicase/u32-toupper-tests: New file.
69026         * tests/unicase/test-u32-toupper.c: New file.
69028         Tests for module 'unicase/u16-toupper'.
69029         * modules/unicase/u16-toupper-tests: New file.
69030         * tests/unicase/test-u16-toupper.c: New file.
69032         Tests for module 'unicase/u8-toupper'.
69033         * modules/unicase/u8-toupper-tests: New file.
69034         * tests/unicase/test-u8-toupper.c: New file.
69036         New module 'unicase/u32-toupper'.
69037         * lib/unicase/u32-toupper.c: New file.
69038         * modules/unicase/u32-toupper: New file.
69040         New module 'unicase/u16-toupper'.
69041         * lib/unicase/u16-toupper.c: New file.
69042         * modules/unicase/u16-toupper: New file.
69044         New module 'unicase/u8-toupper'.
69045         * lib/unicase/u8-toupper.c: New file.
69046         * modules/unicase/u8-toupper: New file.
69048         New module 'unicase/u32-casemap'.
69049         * lib/unicase/u32-casemap.c: New file.
69050         * modules/unicase/u32-casemap: New file.
69052         New module 'unicase/u16-casemap'.
69053         * lib/unicase/u16-casemap.c: New file.
69054         * modules/unicase/u16-casemap: New file.
69056         New module 'unicase/u8-casemap'.
69057         * lib/unicase/unicasemap.h: New file.
69058         * lib/unicase/u8-casemap.c: New file.
69059         * lib/unicase/u-casemap.h: New file.
69060         * modules/unicase/u8-casemap: New file.
69062         New module 'unicase/special-casing'.
69063         * lib/unicase/special-casing.h: New file.
69064         * lib/unicase/special-casing.c: New file.
69065         * lib/unicase/special-casing-table.gperf: New file, generated by
69066         gen-uni-tables.c.
69067         * modules/unicase/special-casing: New file.
69069         Tests for module 'unicase/locale-language'.
69070         * modules/unicase/locale-language-tests: New file.
69071         * tests/unicase/test-locale-language.sh: New file.
69072         * tests/unicase/test-locale-language.c: New file.
69074         New module 'unicase/locale-language'.
69075         * lib/unicase/locale-language.c: New file.
69076         * lib/unicase/locale-languages.gperf: New file.
69077         * modules/unicase/locale-language: New file.
69079         Generate more tables for case conversion and case folding.
69080         * lib/gen-uni-tables.c (SCC_*): New enum items.
69081         (struct special_casing_rule): New type.
69082         (casing_rules, num_casing_rules, allocated_casing_rules): New
69083         variables.
69084         (add_casing_rule, fill_casing_rules): New functions.
69085         (struct casefold_rule): New type.
69086         (casefolding_rules, num_casefolding_rules,
69087         allocated_casefolding_rules): New variables.
69088         (fill_casefolding_rules): New function.
69089         (unicode_casefold): New variable.
69090         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
69091         sort_casing_rules, output_casing_rules): New functions.
69092         (main): Accept to more arguments: SpecialCasing.txt and
69093         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
69094         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
69095         Output mapping for casefolding.
69097         * lib/unicase.h: Include stdbool.h, uninorm.h.
69098         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
69099         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
69100         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
69101         arguments.
69102         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
69103         resultp arguments.
69104         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
69105         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
69106         resultp arguments.
69107         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
69108         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
69109         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
69110         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
69111         declarations.
69112         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
69114 2009-03-08  Bruno Haible  <bruno@clisp.org>
69116         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69117         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
69118         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
69119         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69121 2009-03-07  Bruno Haible  <bruno@clisp.org>
69123         Adjust u*_normcmp, u*_normcoll API.
69124         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69125         u16_normcoll, u32_normcoll): Change failure conventions.
69126         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
69127         errno and return -1.
69128         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69130 2009-03-07  Bruno Haible  <bruno@clisp.org>
69132         Tests for module 'uninorm/u32-normcoll'.
69133         * modules/uninorm/u32-normcoll-tests: New file.
69134         * tests/uninorm/test-u32-normcoll.c: New file.
69136         Tests for module 'uninorm/u16-normcoll'.
69137         * modules/uninorm/u16-normcoll-tests: New file.
69138         * tests/uninorm/test-u16-normcoll.c: New file.
69140         Tests for module 'uninorm/u8-normcoll'.
69141         * modules/uninorm/u8-normcoll-tests: New file.
69142         * tests/uninorm/test-u8-normcoll.c: New file.
69144 2009-03-07  Bruno Haible  <bruno@clisp.org>
69146         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
69147         tests/uninorm/test-u32-normcmp.c.
69148         * tests/uninorm/test-u32-normcmp.c: Include it.
69149         (test_nonascii): New function, extracted from main. Add some more
69150         tests.
69151         (main): Invoke test_ascii and test_nonascii.
69152         * modules/uninorm/u32-normcmp-tests (Files): Add
69153         tests/uninorm/test-u32-normcmp.h.
69154         (Depends-on): Remove uninorm/u32-normcmp.
69156         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
69157         tests/uninorm/test-u16-normcmp.c.
69158         * tests/uninorm/test-u16-normcmp.c: Include it.
69159         (test_nonascii): New function, extracted from main. Add some more
69160         tests.
69161         (main): Invoke test_ascii and test_nonascii.
69162         * modules/uninorm/u16-normcmp-tests (Files): Add
69163         tests/uninorm/test-u16-normcmp.h.
69164         (Depends-on): Remove uninorm/u16-normcmp.
69166         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
69167         tests/uninorm/test-u8-normcmp.c.
69168         * tests/uninorm/test-u8-normcmp.c: Include it.
69169         (test_nonascii): New function, extracted from main. Add some more
69170         tests.
69171         (main): Invoke test_ascii and test_nonascii.
69172         * modules/uninorm/u8-normcmp-tests (Files): Add
69173         tests/uninorm/test-u8-normcmp.h.
69174         (Depends-on): Remove uninorm/u8-normcmp.
69176 2009-03-07  Bruno Haible  <bruno@clisp.org>
69178         New module 'uninorm/u32-normcoll'.
69179         * lib/uninorm/u32-normcoll.c: New file.
69180         * modules/uninorm/u32-normcoll: New file.
69182         New module 'uninorm/u16-normcoll'.
69183         * lib/uninorm/u16-normcoll.c: New file.
69184         * modules/uninorm/u16-normcoll: New file.
69186         New module 'uninorm/u8-normcoll'.
69187         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
69188         declarations.
69189         * lib/uninorm/u8-normcoll.c: New file.
69190         * lib/uninorm/u-normcoll.h: New file.
69191         * modules/uninorm/u8-normcoll: New file.
69193         New module 'uninorm/u32-normxfrm'.
69194         * lib/uninorm/u32-normxfrm.c: New file.
69195         * modules/uninorm/u32-normxfrm: New file.
69197         New module 'uninorm/u16-normxfrm'.
69198         * lib/uninorm/u16-normxfrm.c: New file.
69199         * modules/uninorm/u16-normxfrm: New file.
69201         New module 'uninorm/u8-normxfrm'.
69202         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
69203         declarations.
69204         * lib/uninorm/u8-normxfrm.c: New file.
69205         * lib/uninorm/u-normxfrm.h: New file.
69206         * modules/uninorm/u8-normxfrm: New file.
69208 2009-03-07  Bruno Haible  <bruno@clisp.org>
69210         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
69211         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
69212         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
69214 2009-03-07  Bruno Haible  <bruno@clisp.org>
69216         New module 'memxfrm'.
69217         * lib/memxfrm.h: New file.
69218         * lib/memxfrm.c: New file.
69219         * modules/memxfrm: New file.
69221 2009-03-07  Bruno Haible  <bruno@clisp.org>
69223         New module 'memcmp2'.
69224         * lib/memcmp2.h: New file.
69225         * lib/memcmp2.c: New file.
69226         * modules/memcmp2: New file.
69228 2009-03-07  Bruno Haible  <bruno@clisp.org>
69230         Tests for module 'uninorm/decomposing-form'.
69231         * modules/uninorm/decomposing-form-tests: New file.
69232         * tests/uninorm/test-decomposing-form.c: New file.
69234         New module 'uninorm/decomposing-form'.
69235         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
69236         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
69237         Add 'decomposing_variant' field.
69238         * lib/uninorm/decomposing-form.c: New file.
69239         * lib/uninorm/nfc.c (uninorm_nfc): Update.
69240         * lib/uninorm/nfd.c (uninorm_nfd): Update.
69241         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
69242         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
69243         * modules/uninorm/decomposing-form: New file.
69244         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
69245         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
69247 2009-03-07  Bruno Haible  <bruno@clisp.org>
69249         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
69250         strings.
69252 2009-03-06  Bruno Haible  <bruno@clisp.org>
69254         Tests for module 'uninorm/u32-normcmp'.
69255         * tests/uninorm/test-u32-normcmp.c: New file.
69256         * modules/uninorm/u32-normcmp-tests: New file.
69258         Tests for module 'uninorm/u16-normcmp'.
69259         * tests/uninorm/test-u16-normcmp.c: New file.
69260         * modules/uninorm/u16-normcmp-tests: New file.
69262         Tests for module 'uninorm/u8-normcmp'.
69263         * tests/uninorm/test-u8-normcmp.c: New file.
69264         * modules/uninorm/u8-normcmp-tests: New file.
69266         New module 'uninorm/u32-normcmp'.
69267         * lib/uninorm/u32-normcmp.c: New file.
69268         * modules/uninorm/u32-normcmp: New file.
69270         New module 'uninorm/u16-normcmp'.
69271         * lib/uninorm/u16-normcmp.c: New file.
69272         * modules/uninorm/u16-normcmp: New file.
69274         New module 'uninorm/u8-normcmp'.
69275         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
69276         declarations.
69277         * lib/uninorm/u8-normcmp.c: New file.
69278         * lib/uninorm/u-normcmp.h: New file.
69279         * modules/uninorm/u8-normcmp: New file.
69281 2009-03-06  Bruno Haible  <bruno@clisp.org>
69283         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
69284         Reported by Eric Blake.
69286 2009-03-06  Eric Blake  <ebb9@byu.net>
69287             Bruno Haible  <bruno@clisp.org>
69289         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
69290         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
69291         condition.
69292         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69293         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69294         condition.
69295         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69297 2009-03-06  Eric Blake  <ebb9@byu.net>
69299         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69300         to avoid compiler warnings.
69301         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69303 2009-03-05  Bruno Haible  <bruno@clisp.org>
69305         * tests/test-ftell.c (main): Disable test beyond end of file on
69306         FreeMiNT.
69307         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69309 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69311         * lib/filevercmp.c: Move hidden files up in ordering.
69312         * tests/test-filevercmp.c: Add tests for hidden files.
69314 2009-03-04  Bruno Haible  <bruno@clisp.org>
69316         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69317         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69318         AM_CFLAGS.
69319         Reported by Simon Josefsson.
69321 2009-03-03  Bruno Haible  <bruno@clisp.org>
69323         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69324         Reported by Simon Josefsson.
69326         * doc/ld-version-script.texi: Update node reference.
69328 2009-03-03  Bruno Haible  <bruno@clisp.org>
69330         * modules/visibility (License): Change to 'unlimited'.
69331         Suggested by Simon Josefsson.
69333 2009-03-03  Jim Meyering  <meyering@redhat.com>
69335         unlinkdir: cannot_unlink_dir may modify process state
69336         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69337         it's neither thread-safe nor appropriate for use in a library.
69339 2009-03-03  Eric Blake  <ebb9@byu.net>
69341         test-closein: silence test under Darwin
69342         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69343         care if it dies from EPIPE or EBADF.
69345 2009-03-03  Bruno Haible  <bruno@clisp.org>
69347         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69348         earlier.
69349         * doc/visibility.texi: Fix @node and @section.
69351 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69353         * doc/gnulib.texi: Link to sections for ld version script and
69354         visibility.
69355         * doc/visibility.texi: Add @node and @section.
69356         * modules/ld-version-script: New module.
69357         * m4/ld-version-script.m4: New file.
69358         * doc/ld-version-script.texi: New file.
69360 2009-03-02  David Lutterkort  <lutter@redhat.com>
69362         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69365 2009-03-02  Bruno Haible  <bruno@clisp.org>
69367         * doc/visibility.texi: Mention libtool's -export-symbols option.
69369 2009-03-02  Jim Meyering  <meyering@redhat.com>
69371         announce-gen: new option: --no-print-checksums
69372         * build-aux/announce-gen (usage): Describe it.
69373         (print_checksums): Print a newline here, not in the [*] footnote.
69374         (main): Honor it.
69376 2009-03-01  Bruno Haible  <bruno@clisp.org>
69378         Use socklen_t in the native Windows replacements prototypes.
69379         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69380         instead of 'int'.
69381         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69382         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69383         * modules/getsockopt (Depends-on): Add socklen.
69384         * modules/setsockopt (Depends-on): Add socklen.
69386 2009-03-01  Bruno Haible  <bruno@clisp.org>
69388         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69389         least 4.2.
69391 2009-03-01  Eric Blake  <ebb9@byu.net>
69392             Bruno Haible  <bruno@clisp.org>
69394         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69395         error messages.
69396         * lib/wait-process.c (wait_subprocess): Omit error message about
69397         deadly signal sent to the child of termsigp != NULL.
69399 2009-03-01  Eric Blake  <ebb9@byu.net>
69401         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69403 2009-03-01  Bruno Haible  <bruno@clisp.org>
69405         Avoid a gcc warning.
69406         * tests/test-sched.c (b): Make global.
69407         Reported by Eric Blake.
69409 2009-01-19  Martin Lambers  <marlam@marlam.de>
69411         Provide POSIX semantics for socket timeout options on W32.
69412         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69413         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69414         * modules/setsockopt: Depend on sys_time module for struct timeval.
69415         * modules/getsockopt: Depend on sys_time module for struct timeval.
69417 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69419         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69420         __USE_GNU, for consistency with netdb.in.h.
69421         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69423 2009-03-01  Bruno Haible  <bruno@clisp.org>
69425         More support for FreeMiNT.
69426         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69427         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69429 2009-03-01  Bruno Haible  <bruno@clisp.org>
69431         More support for FreeMiNT.
69432         * lib/fpurge.c (fpurge): Correct last commit.
69433         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69435 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69437         Fix unportable awk script in vc-list-files.
69438         * build-aux/vc-list-files: In the replacement awk script, use
69439         substr with a second argument of 1, not zero.
69440         Report by Simon Josefsson.
69442 2009-02-28  Bruno Haible  <bruno@clisp.org>
69444         More support for FreeMiNT.
69445         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69446         to FreeMiNT today.
69447         * lib/fwriting.c (fwriting): Likewise.
69448         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69450 2009-02-28  Bruno Haible  <bruno@clisp.org>
69452         * tests/test-freadseek.c (main): Disable test beyond end of file on
69453         FreeMiNT.
69454         * tests/test-ftello.c (main): Likewise.
69455         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69457 2009-02-28  Bruno Haible  <bruno@clisp.org>
69459         Add tentative support for FreeMiNT.
69460         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69461         * lib/fpurge.c (fpurge): Likewise.
69462         * lib/freadable.c (freadable): Likewise.
69463         * lib/freading.c (freading): Likewise.
69464         * lib/freadptr.c (freadptr): Likewise.
69465         * lib/freadseek.c (freadptrinc): Likewise.
69466         * lib/fseeko.c (rpl_fseeko): Likewise.
69467         * lib/fseterr.c (fseterr): Likewise.
69468         * lib/fwritable.c (fwritable): Likewise.
69469         * lib/fwriting.c (fwriting): Likewise.
69470         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69471         Hourihane.
69472         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69474 2009-02-28  Bruno Haible  <bruno@clisp.org>
69476         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69477         SIGCHLD.
69478         Reported by Jim Meyering.
69480 2009-02-28  Bruno Haible  <bruno@clisp.org>
69482         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69483         Mention the results of these tests on various platforms.
69484         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69485         order.
69486         * doc/posix-functions/printf.texi: Likewise.
69487         * doc/posix-functions/snprintf.texi: Likewise.
69488         * doc/posix-functions/sprintf.texi: Likewise.
69489         * doc/posix-functions/vfprintf.texi: Likewise.
69490         * doc/posix-functions/vprintf.texi: Likewise.
69491         * doc/posix-functions/vsnprintf.texi: Likewise.
69492         * doc/posix-functions/vsprintf.texi: Likewise.
69493         * doc/glibc-functions/obstack_printf.texi: Likewise.
69494         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69496 2009-02-28  Bruno Haible  <bruno@clisp.org>
69498         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69499         Reported by Loïc Minier <lool@dooz.org>.
69501 2009-02-27  Bruno Haible  <bruno@clisp.org>
69503         * gnulib-tool (func_import): Make the sed expression used to create the
69504         sed script for updating the .gitignore file POSIX compliant.
69505         Reported by Eric Blake.
69507 2009-02-27  Bruno Haible  <bruno@clisp.org>
69509         * gnulib-tool (sed): Don't alias as "sed --posix".
69510         Reported by Eric Blake.
69512 2009-02-27  Bruno Haible  <bruno@clisp.org>
69514         Avoid test link errors.
69515         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69516         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69517         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69518         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69521 2009-02-27  Bruno Haible  <bruno@clisp.org>
69523         Avoid spurious "(cached)" in configure output.
69524         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69525         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69526         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69527         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69528         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69529         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69530         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69531         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69532         Reported by Eric Blake.
69534 2009-02-27  Eric Blake  <ebb9@byu.net>
69536         printf: fix regression in previous patch
69537         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69539 2009-02-27  Bruno Haible  <bruno@clisp.org>
69541         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69542         value.
69543         * lib/stdint.in.h: Likewise.
69544         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
69546 2009-02-27  Eric Blake  <ebb9@byu.net>
69548         doc: mention more functions added in cygwin 1.7.0
69549         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
69550         addition.
69551         * doc/posix-functions/open_wmemstream.texi: Likewise.
69552         * doc/posix-functions/wcsnlen.texi: Likewise.
69553         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69554         * doc/posix-functions/wcstod.texi: Likewise.
69555         * doc/posix-functions/wcstof.texi: Likewise.
69556         * doc/posix-functions/wcstoimax.texi: Likewise.
69557         * doc/posix-functions/wcstok.texi: Likewise.
69558         * doc/posix-functions/wcstoumax.texi: Likewise.
69560         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
69561         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
69562         * doc/posix-functions/fprintf.texi: Update.
69563         * doc/posix-functions/printf.texi: Update.
69564         * doc/posix-functions/snprintf.texi: Update.
69565         * doc/posix-functions/sprintf.texi: Update.
69566         * doc/posix-functions/vfprintf.texi: Update.
69567         * doc/posix-functions/vprintf.texi: Update.
69568         * doc/posix-functions/vsnprintf.texi: Update.
69569         * doc/posix-functions/vsprintf.texi: Update.
69570         * doc/glibc-functions/obstack_printf.texi: Update.
69571         * doc/glibc-functions/obstack_vprintf.texi: Update.
69573 2009-02-26  Eric Blake  <ebb9@byu.net>
69575         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
69576         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
69577         compilation bug by using runtime conversion.
69578         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69579         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
69580         * modules/ceill-tests (Files): Use nan.h.
69581         * modules/floorl-tests (Files): Likewise.
69582         * modules/frexpl-tests (Files): Likewise.
69583         * modules/isnanl-tests (Files): Likewise.
69584         * modules/ldexpl-tests (Files): Likewise.
69585         * modules/roundl-tests (Files): Likewise.
69586         * modules/truncl-tests (Files): Likewise.
69587         * tests/test-ceill.c (main): Use a working NaN.
69588         * tests/test-floorl.c (main): Likewise.
69589         * tests/test-frexpl.c (main): Likewise.
69590         * tests/test-isnan.c (test_long_double): Likewise.
69591         * tests/test-isnanl.h (main): Likewise.
69592         * tests/test-ldexpl.h (main): Likewise.
69593         * tests/test-roundl.h (main): Likewise.
69594         * tests/test-truncl.h (main): Likewise.
69595         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
69597 2009-02-26  Eric Blake  <ebb9@byu.net>
69598             Bruno Haible  <bruno@clisp.org>
69600         Work around a *printf bug with %ls on Solaris.
69601         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
69602         precision is specified, sprintf stops converting the wide string
69603         argument when the number of bytes that have been produced by this
69604         conversion equals or exceeds the precision.
69605         * doc/posix-functions/fprintf.texi: Update.
69606         * doc/posix-functions/printf.texi: Update.
69607         * doc/posix-functions/snprintf.texi: Update.
69608         * doc/posix-functions/sprintf.texi: Update.
69609         * doc/posix-functions/vfprintf.texi: Update.
69610         * doc/posix-functions/vprintf.texi: Update.
69611         * doc/posix-functions/vsnprintf.texi: Update.
69612         * doc/posix-functions/vsprintf.texi: Update.
69613         * doc/glibc-functions/obstack_printf.texi: Update.
69614         * doc/glibc-functions/obstack_vprintf.texi: Update.
69616 2009-02-26  Eric Blake  <ebb9@byu.net>
69618         stdlib: favor compiler check of random.h
69619         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
69620         to avoid an ObjC random.h installed by Swarm.
69622 2009-02-26  Bruno Haible  <bruno@clisp.org>
69624         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
69625         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
69626         Reported by Gary V. Vaughan <gary@gnu.org>.
69628 2009-02-26  Bruno Haible  <bruno@clisp.org>
69630         Fix *printf behaviour regarding the %ls directive.
69631         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
69632         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
69633         NEED_PRINTF_DIRECTIVE_LS.
69634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
69635         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
69636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69637         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
69638         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
69639         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
69640         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
69641         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69642         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69643         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69644         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69645         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
69646         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69647         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69648         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69649         * doc/posix-functions/fprintf.texi: Update.
69650         * doc/posix-functions/printf.texi: Update.
69651         * doc/posix-functions/snprintf.texi: Update.
69652         * doc/posix-functions/sprintf.texi: Update.
69653         * doc/posix-functions/vfprintf.texi: Update.
69654         * doc/posix-functions/vprintf.texi: Update.
69655         * doc/posix-functions/vsnprintf.texi: Update.
69656         * doc/posix-functions/vsprintf.texi: Update.
69657         * doc/glibc-functions/obstack_printf.texi: Update.
69658         * doc/glibc-functions/obstack_vprintf.texi: Update.
69659         Reported by Eric Blake.
69661 2009-02-25  Bruno Haible  <bruno@clisp.org>
69663         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
69664         with known value.
69665         Reported by Gary V. Vaughan <gary@gnu.org>.
69667 2009-02-25  Bruno Haible  <bruno@clisp.org>
69669         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
69670         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
69671         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
69672         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
69673         Reported by Gary V. Vaughan <gary@gnu.org>.
69675 2009-02-25  Bruno Haible  <bruno@clisp.org>
69677         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
69678         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
69679         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
69680         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
69681         Reported by Gary V. Vaughan <gary@gnu.org>.
69683 2009-02-25  Eric Blake  <ebb9@byu.net>
69685         tests: skip fseek/ftell tests if ungetc is broken
69686         * m4/ungetc.m4: New file.
69687         * modules/fseek-tests: Split test, so ungetc dependency is
69688         separate from rest of test.
69689         * modules/fseeko-tests: Likewise.
69690         * modules/ftell-tests: Likewise.
69691         * modules/ftello-tests: Likewise.
69692         * tests/test-fseek.c (main): Isolate ungetc dependency.
69693         * tests/test-fseeko.c (main): Likewise.
69694         * tests/test-ftell.c (main): Likewise.
69695         * tests/test-ftello.c (main): Likewise.
69696         * tests/test-fseek2.sh: New file.
69697         * tests/test-fseeko2.sh: Likewise.
69698         * tests/test-ftell2.sh: Likewise.
69699         * tests/test-ftello2.sh: Likewise.
69701 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
69703         test-getaddrinfo: fix usage of skip return code 77
69704         * tests/test-gettaddrinfo.c: Return skip code 77 only
69705         for first occurrence of skip (4x77 is not 77)
69707 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
69709         strtod: avoid C99 decl-after-statement
69710         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
69712 2009-02-24  Eric Blake  <ebb9@byu.net>
69714         strtod: detect HP-UX 11.31 bug
69715         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
69716         Reported by Gary V. Vaughan.
69718 2009-02-23  Bruno Haible  <bruno@clisp.org>
69720         Fix invalid read past end of memory block.
69721         * lib/vasnprintf.c (DCHAR_SET): Define.
69722         (local_wcslen): Define only when needed.
69723         (local_strnlen, local_wcsnlen): New functions.
69724         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
69725         directives that involve a conversion ourselves.
69726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
69727         wcsnlen, mbrtowc, wcrtomb.
69728         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
69729         * tests/test-vasprintf-posix.c (test_function): Likewise.
69730         * tests/test-snprintf-posix.h (test_function): Likewise.
69731         * tests/test-sprintf-posix.h (test_function): Likewise.
69732         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69734 2009-02-22  Bruno Haible  <bruno@clisp.org>
69736         Implement new clarified decomposition of Hangul syllables.
69737         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
69738         of type LTV, return only a pairwise decomposition.
69739         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
69740         Likewise.
69741         * tests/uninorm/test-decomposition.c (main): Updated expected result.
69742         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
69743         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
69745 2009-02-22  Bruno Haible  <bruno@clisp.org>
69747         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
69748         zero-length results and shrink excess allocated memory.
69749         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
69750         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
69751         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
69752         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
69753         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
69754         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
69755         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
69756         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
69757         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
69758         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
69759         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
69760         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
69762 2009-02-21  Bruno Haible  <bruno@clisp.org>
69764         * doc/gnulib.texi: Include safe-alloc.texi earlier.
69765         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
69766         spaces after a period. Put a space between a macro name and its
69767         argument list. Trivial rewordings.
69768         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
69769         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
69770         (main): Return 0 explicitly.
69772 2009-02-21  Bruno Haible  <bruno@clisp.org>
69774         Tests for module 'uninorm/filter'.
69775         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
69776         * modules/uninorm/filter-tests: New file.
69778         New module 'uninorm/filter'.
69779         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
69780         uninorm_filter_flush, uninorm_filter_free): New declarations.
69781         * lib/uninorm/uninorm-filter.c: New file.
69782         * modules/uninorm/filter: New file.
69784 2009-02-21  Bruno Haible  <bruno@clisp.org>
69786         Tests for module 'uninorm/nfkc'.
69787         * tests/uninorm/test-nfkc.c: New file.
69788         * tests/uninorm/test-u8-nfkc.c: New file.
69789         * tests/uninorm/test-u16-nfkc.c: New file.
69790         * tests/uninorm/test-u32-nfkc.c: New file.
69791         * tests/uninorm/test-u32-nfkc-big.sh: New file.
69792         * tests/uninorm/test-u32-nfkc-big.c: New file.
69793         * modules/uninorm/nfkc-tests: New file.
69795         New module 'uninorm/nfkc'.
69796         * lib/uninorm/nfkc.c: New file.
69797         * modules/uninorm/nfkc: New file.
69799         Tests for module 'uninorm/nfkd'.
69800         * tests/uninorm/test-nfkd.c: New file.
69801         * tests/uninorm/test-u8-nfkd.c: New file.
69802         * tests/uninorm/test-u16-nfkd.c: New file.
69803         * tests/uninorm/test-u32-nfkd.c: New file.
69804         * tests/uninorm/test-u32-nfkd-big.sh: New file.
69805         * tests/uninorm/test-u32-nfkd-big.c: New file.
69806         * modules/uninorm/nfkd-tests: New file.
69808         New module 'uninorm/nfkd'.
69809         * lib/uninorm/nfkd.c: New file.
69810         * modules/uninorm/nfkd: New file.
69812         Tests for module 'uninorm/nfc'.
69813         * tests/uninorm/test-nfc.c: New file.
69814         * tests/uninorm/test-u8-nfc.c: New file.
69815         * tests/uninorm/test-u16-nfc.c: New file.
69816         * tests/uninorm/test-u32-nfc.c: New file.
69817         * tests/uninorm/test-u32-nfc-big.sh: New file.
69818         * tests/uninorm/test-u32-nfc-big.c: New file.
69819         * modules/uninorm/nfc-tests: New file.
69821         New module 'uninorm/nfc'.
69822         * lib/uninorm/nfc.c: New file.
69823         * modules/uninorm/nfc: New file.
69825         Tests for module 'uninorm/nfd'.
69826         * tests/uninorm/test-nfd.c: New file.
69827         * tests/uninorm/test-u8-nfd.c: New file.
69828         * tests/uninorm/test-u16-nfd.c: New file.
69829         * tests/uninorm/test-u32-nfd.c: New file.
69830         * tests/uninorm/test-u32-nfd-big.sh: New file.
69831         * tests/uninorm/test-u32-nfd-big.c: New file.
69832         * tests/uninorm/test-u32-normalize-big.h: New file.
69833         * tests/uninorm/test-u32-normalize-big.c: New file.
69834         * tests/uninorm/NormalizationTest.txt: New file, created from
69835         Unicode 5.1.0 NormalizationTest.txt.
69836         * modules/uninorm/nfd-tests: New file.
69838         New module 'uninorm/nfd'.
69839         * lib/uninorm/nfd.c: New file.
69840         * modules/uninorm/nfd: New file.
69842         New module 'uninorm/u32-normalize'.
69843         * lib/uninorm/u32-normalize.c: New file.
69844         * modules/uninorm/u32-normalize: New file.
69846         New module 'uninorm/u16-normalize'.
69847         * lib/uninorm/u16-normalize.c: New file.
69848         * modules/uninorm/u16-normalize: New file.
69850         New module 'uninorm/u8-normalize'.
69851         * lib/uninorm/u8-normalize.c: New file.
69852         * lib/uninorm/normalize-internal.h: New file.
69853         * lib/uninorm/u-normalize-internal.h: New file.
69854         * modules/uninorm/u8-normalize: New file.
69856         New module 'uninorm/decompose-internal'.
69857         * lib/uninorm/decompose-internal.c: New file.
69858         * modules/uninorm/decompose-internal: New file.
69860         Tests for module 'uninorm/composition'.
69861         * tests/uninorm/test-composition.c: New file.
69862         * modules/uninorm/composition-tests: New file.
69864         New module 'uninorm/composition'.
69865         * lib/uninorm/composition.c: New file.
69866         * lib/uninorm/composition-table.gperf: New file, generated by
69867         gen-uni-tables.
69868         * modules/uninorm/composition: New file.
69870         Tests for module 'uninorm/compat-decomposition'.
69871         * tests/uninorm/test-compat-decomposition.c: New file.
69872         * modules/uninorm/compat-decomposition-tests: New file.
69874         New module 'uninorm/compat-decomposition'.
69875         * lib/uninorm/decompose-internal.h: New file.
69876         * lib/uninorm/compat-decomposition.c: New file.
69877         * modules/uninorm/compat-decomposition: New file.
69879         Tests for module 'uninorm/canonical-decomposition'.
69880         * tests/uninorm/test-canonical-decomposition.c: New file.
69881         * modules/uninorm/canonical-decomposition-tests: New file.
69883         New module 'uninorm/canonical-decomposition'.
69884         * lib/uninorm/canonical-decomposition.c: New file.
69885         * modules/uninorm/canonical-decomposition: New file.
69887         Tests for module 'uninorm/decomposition'.
69888         * tests/uninorm/test-decomposition.c: New file.
69889         * modules/uninorm/decomposition-tests: New file.
69891         New module 'uninorm/decomposition'.
69892         * lib/uninorm/decomposition.c: New file.
69893         * modules/uninorm/decomposition: New file.
69895         New module 'uninorm/decomposition-table'.
69896         * lib/uninorm/decomposition-table.h: New file.
69897         * lib/uninorm/decomposition-table.c: New file.
69898         * lib/uninorm/decomposition-table1.h: New file, generated by
69899         gen-uni-tables.
69900         * lib/uninorm/decomposition-table2.h: New file, generated by
69901         gen-uni-tables.
69902         * modules/uninorm/decomposition-table: New file.
69904         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
69905         (UC_DECOMP_*): New enumeration items.
69906         (get_decomposition): New function.
69907         (struct decomp_table): New type.
69908         (output_decomposition, output_decomposition_tables): New functions.
69909         (unicode_composition_exclusions): New variable.
69910         (fill_composition_exclusions, debug_output_composition_tables): New
69911         functions.
69912         (main): Accept one more argument. Invoke fill_composition_exclusions.
69913         Output decomposition and composition tables.
69915         New module 'uninorm/base'.
69916         * lib/uninorm.h: New file.
69917         * lib/unictype.h: Update comment.
69918         * modules/uninorm/base: New file.
69920 2009-02-21  David Lutterkort  <lutter@redhat.com>
69922         Tests for module 'safe-alloc'.
69923         * tests/test-safe-alloc.c: New file.
69924         * modules/safe-alloc-tests: New file.
69926         New module 'safe-alloc'.
69927         * lib/safe-alloc.h: New file.
69928         * lib/safe-alloc.c: New file.
69929         * m4/safe-alloc.m4: New file.
69930         * modules/safe-alloc: New file.
69931         * doc/safe-alloc.texi: New file.
69932         * doc/gnulib.texi: Include it.
69933         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
69934         safe-alloc.
69936 2009-02-18  Bruno Haible  <bruno@clisp.org>
69938         Fix link error on non-glibc systems.
69939         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
69940         variable.
69941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69943 2009-02-18  Jim Meyering  <meyering@redhat.com>
69945         fts: avoid used-uninitialized error due to recent change
69946         * lib/fts.c (fts_read): Guard uses of the new member,
69947         parent->fts_n_dirs_remaining, since it's not relevant for
69948         the parent of a directory specified on the command-line.
69950 2009-02-17  James Youngman  <jay@gnu.org>
69951             Bruno Haible  <bruno@clisp.org>
69953         * m4/include_next.m4: Reformulate comment.
69955 2009-02-16  Jim Meyering  <meyering@redhat.com>
69957         fts: add #if guards so that the fts_lgpl module still builds
69958         * lib/fts.c: Guard just-added hash-table-using parts with
69959         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
69960         Reported by Simon Josefsson.
69962 2009-02-15  Bruno Haible  <bruno@clisp.org>
69964         * modules/array-mergesort-tests: New file.
69965         * tests/test-array-mergesort.c: New file.
69967         New module 'array-mergesort'.
69968         * modules/array-mergesort: New file.
69969         * lib/array-mergesort.h: New file.
69971 2009-02-15  Bruno Haible  <bruno@clisp.org>
69973         Fix 2009-02-07 commit.
69974         * lib/gen-uni-tables.c (output_predicate, output_category,
69975         output_combclass, output_bidi_category, output_decimal_digit,
69976         output_digit, output_numeric, output_mirror, output_scripts,
69977         output_ident_category, output_simple_mapping): Fix format directives.
69978         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
69980 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
69982         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
69983         fixes are available from IBM.
69985 2009-02-13  Jim Meyering  <meyering@redhat.com>
69987         fts: arrange not to stat non-directories in more cases
69988         This makes GNU find (when it doesn't need to stat each file)
69989         *much* more efficient at traversing reiserfs file systems.
69990         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
69991         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
69992         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
69993         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
69994         (leaf_optimization_applies): New function.
69995         (LCO_hash, LCO_compare): New helper functions.
69996         (link_count_optimize_ok): New function.
69997         (fts_stat): Initialize new member (if dir).
69998         (fts_read): Decrement parent's fts_n_dirs_remaining count if
69999         we've just stat'ed a directory.  Skip the stat call when possible.
70000         ---
70001         Note this AFS-related exchange:
70002         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
70003         and note find's pioctl call in find/fstype.c.
70004         But that is necessary only if you want to enable the
70005         optimization for AFS, and for now, I don't.
70007         fts: move a function definition "up" (no semantic change)
70008         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
70009         "up" to precede upcoming use of a related function.
70011 2009-02-11  Jim Meyering  <meyering@redhat.com>
70013         fts: correct internal computation of nlinks (optimization-related)
70014         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
70015         whether the current entry is a directory, so don't test it.
70017 2009-02-10  Bruno Haible  <bruno@clisp.org>
70019         Tests for module 'uniwbrk/ulc-wordbreaks'.
70020         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
70021         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
70022         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
70024         Tests for module 'uniwbrk/u32-wordbreaks'.
70025         * modules/uniwbrk/u32-wordbreaks-tests: New file.
70026         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
70028         Tests for module 'uniwbrk/u16-wordbreaks'.
70029         * modules/uniwbrk/u16-wordbreaks-tests: New file.
70030         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
70032         Tests for module 'uniwbrk/u8-wordbreaks'.
70033         * modules/uniwbrk/u8-wordbreaks-tests: New file.
70034         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
70036 2009-02-10  Bruno Haible  <bruno@clisp.org>
70038         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
70039         property.
70040         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
70041         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
70042         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
70044 2009-02-10  Simon Josefsson  <simon@josefsson.org>
70046         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
70047         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
70049 2009-02-10  Bruno Haible  <bruno@clisp.org>
70051         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
70052         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
70053         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
70054         * lib/unilbrk/u8-possible-linebreaks.c: Update.
70055         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
70056         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
70058 2009-02-09  Simon Josefsson  <simon@josefsson.org>
70060         * lib/sockets.h (gl_fd_to_handle): New function.
70062         * tests/test-sockets.c: Call gl_fd_to_handle.
70064 2009-02-09  Bruno Haible  <bruno@clisp.org>
70066         * doc/havelib.texi: Document the conventions on bi-arch systems.
70068 2009-02-08  Bruno Haible  <bruno@clisp.org>
70070         Document the AC_LIB_LINKFLAGS macro.
70071         * doc/havelib.texi: New file, mostly written on 2005-05-24.
70072         * doc/gnulib.texi: Include it.
70074 2009-02-08  Bruno Haible  <bruno@clisp.org>
70076         Fix wrong order of sections, compared to TOC.
70077         * doc/gnulib.texi: Include relocatable-maint.texi after the
70078         "Regular expressions" node, not before.
70080 2009-02-08  Bruno Haible  <bruno@clisp.org>
70082         Tests for module 'unicase/totitle'.
70083         * modules/unicase/totitle-tests: New file.
70085         Tests for module 'unicase/tolower'.
70086         * modules/unicase/tolower-tests: New file.
70088         Tests for module 'unicase/toupper'.
70089         * modules/unicase/toupper-tests: New file.
70090         * tests/unicase/test-mapping-part1.h: New file.
70091         * tests/unicase/test-mapping-part2.h: New file.
70093         New module 'unicase/totitle'.
70094         * modules/unicase/totitle: New file.
70095         * lib/unicase/totitle.c: New file.
70097         New module 'unicase/tolower'.
70098         * modules/unicase/tolower: New file.
70099         * lib/unicase/tolower.c: New file.
70101         New module 'unicase/toupper'.
70102         * modules/unicase/toupper: New file.
70103         * lib/unicase/toupper.c: New file.
70104         * lib/unicase/simple-mapping.h: New file.
70106         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
70107         (mapping_table): New structure.
70108         (output_simple_mapping): New function.
70109         (main): Invoke output_simple_mapping_test and output_simple_mapping.
70110         * modules/gen-uni-tables (Description): Update.
70111         * lib/unicase/toupper.h: New file, automatically generated by
70112         gen-uni-tables.
70113         * lib/unicase/tolower.h: New file, automatically generated by
70114         gen-uni-tables.
70115         * lib/unicase/totitle.h: New file, automatically generated by
70116         gen-uni-tables.
70117         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
70118         gen-uni-tables.
70119         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
70120         gen-uni-tables.
70121         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
70122         gen-uni-tables.
70124         New module 'unicase/base'.
70125         * modules/unicase/base: New file.
70126         * lib/unicase.h: New file.
70128 2009-02-08  Bruno Haible  <bruno@clisp.org>
70130         New module 'uniwbrk/ulc-wordbreaks'.
70131         * modules/uniwbrk/ulc-wordbreaks: New file.
70132         * lib/uniwbrk/ulc-wordbreaks.c: New file.
70134         New module 'uniwbrk/u32-wordbreaks'.
70135         * modules/uniwbrk/u32-wordbreaks: New file.
70136         * lib/uniwbrk/u32-wordbreaks.c: New file.
70138         New module 'uniwbrk/u16-wordbreaks'.
70139         * modules/uniwbrk/u16-wordbreaks: New file.
70140         * lib/uniwbrk/u16-wordbreaks.c: New file.
70142         New module 'uniwbrk/u8-wordbreaks'.
70143         * modules/uniwbrk/u8-wordbreaks: New file.
70144         * lib/uniwbrk/u8-wordbreaks.c: New file.
70145         * lib/uniwbrk/u-wordbreaks.h: New file.
70147         New module 'uniwbrk/table'.
70148         * modules/uniwbrk/table: New file.
70149         * lib/uniwbrk/wbrktable.h: New file.
70150         * lib/uniwbrk/wbrktable.c: New file.
70152         New module 'uniwbrk/wordbreak-property'.
70153         * modules/uniwbrk/wordbreak-property: New file.
70154         * lib/uniwbrk/wordbreak-property.c: New file.
70156         * lib/gen-uni-tables.c (WBP_*): New enum items.
70157         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
70158         (unicode_org_wbp): New variable.
70159         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
70160         New functions.
70161         (wbp_table): New structure.
70162         (output_wbp, output_wbrk_tables): New functions.
70163         (main): Accept additional argument. Invoke fill_org_wbp,
70164         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
70165         output_wbrk_tables.
70166         * modules/gen-uni-tables (Description): Update.
70167         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
70168         gen-uni-tables.
70170         New module 'uniwbrk/base'.
70171         * modules/uniwbrk/base: New file.
70172         * lib/uniwbrk.h: New file.
70174 2009-02-08  Bruno Haible  <bruno@clisp.org>
70176         Update to Unicode 5.1.0.
70177         * lib/gen-uni-tables.c (is_property_alphabetic): Include
70178         U+2185..U+2188.
70179         (is_property_default_ignorable_code_point): Don't include characters
70180         of category Cc or Cs and not-a-characters.
70181         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
70182         U+0D79, U+109E, U+109F, U+A60C.
70183         * lib/unictype/bidi_of.h: Regenerated.
70184         * lib/unictype/blocks.h: Regenerated.
70185         * lib/unictype/categ_C.h: Regenerated.
70186         * lib/unictype/categ_Cf.h: Regenerated.
70187         * lib/unictype/categ_Cn.h: Regenerated.
70188         * lib/unictype/categ_L.h: Regenerated.
70189         * lib/unictype/categ_Ll.h: Regenerated.
70190         * lib/unictype/categ_Lm.h: Regenerated.
70191         * lib/unictype/categ_Lo.h: Regenerated.
70192         * lib/unictype/categ_Lu.h: Regenerated.
70193         * lib/unictype/categ_M.h: Regenerated.
70194         * lib/unictype/categ_Mc.h: Regenerated.
70195         * lib/unictype/categ_Me.h: Regenerated.
70196         * lib/unictype/categ_Mn.h: Regenerated.
70197         * lib/unictype/categ_N.h: Regenerated.
70198         * lib/unictype/categ_Nd.h: Regenerated.
70199         * lib/unictype/categ_Nl.h: Regenerated.
70200         * lib/unictype/categ_No.h: Regenerated.
70201         * lib/unictype/categ_P.h: Regenerated.
70202         * lib/unictype/categ_Pd.h: Regenerated.
70203         * lib/unictype/categ_Pe.h: Regenerated.
70204         * lib/unictype/categ_Pf.h: Regenerated.
70205         * lib/unictype/categ_Pi.h: Regenerated.
70206         * lib/unictype/categ_Po.h: Regenerated.
70207         * lib/unictype/categ_Ps.h: Regenerated.
70208         * lib/unictype/categ_S.h: Regenerated.
70209         * lib/unictype/categ_Sk.h: Regenerated.
70210         * lib/unictype/categ_Sm.h: Regenerated.
70211         * lib/unictype/categ_So.h: Regenerated.
70212         * lib/unictype/categ_of.h: Regenerated.
70213         * lib/unictype/combining.h: Regenerated.
70214         * lib/unictype/ctype_alnum.h: Regenerated.
70215         * lib/unictype/ctype_alpha.h: Regenerated.
70216         * lib/unictype/ctype_graph.h: Regenerated.
70217         * lib/unictype/ctype_lower.h: Regenerated.
70218         * lib/unictype/ctype_print.h: Regenerated.
70219         * lib/unictype/ctype_punct.h: Regenerated.
70220         * lib/unictype/ctype_upper.h: Regenerated.
70221         * lib/unictype/decdigit.h: Regenerated.
70222         * lib/unictype/digit.h: Regenerated.
70223         * lib/unictype/mirror.h: Regenerated.
70224         * lib/unictype/numeric.h: Regenerated.
70225         * lib/unictype/pr_alphabetic.h: Regenerated.
70226         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
70227         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
70228         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
70229         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
70230         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
70231         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
70232         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
70233         * lib/unictype/pr_combining.h: Regenerated.
70234         * lib/unictype/pr_dash.h: Regenerated.
70235         * lib/unictype/pr_decimal_digit.h: Regenerated.
70236         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
70237         * lib/unictype/pr_deprecated.h: Regenerated.
70238         * lib/unictype/pr_diacritic.h: Regenerated.
70239         * lib/unictype/pr_extender.h: Regenerated.
70240         * lib/unictype/pr_format_control.h: Regenerated.
70241         * lib/unictype/pr_grapheme_base.h: Regenerated.
70242         * lib/unictype/pr_grapheme_extend.h: Regenerated.
70243         * lib/unictype/pr_grapheme_link.h: Regenerated.
70244         * lib/unictype/pr_id_continue.h: Regenerated.
70245         * lib/unictype/pr_id_start.h: Regenerated.
70246         * lib/unictype/pr_ideographic.h: Regenerated.
70247         * lib/unictype/pr_ignorable_control.h: Regenerated.
70248         * lib/unictype/pr_lowercase.h: Regenerated.
70249         * lib/unictype/pr_math.h: Regenerated.
70250         * lib/unictype/pr_numeric.h: Regenerated.
70251         * lib/unictype/pr_other_alphabetic.h: Regenerated.
70252         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
70253         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
70254         * lib/unictype/pr_other_id_continue.h: Regenerated.
70255         * lib/unictype/pr_other_lowercase.h: Regenerated.
70256         * lib/unictype/pr_other_math.h: Regenerated.
70257         * lib/unictype/pr_punctuation.h: Regenerated.
70258         * lib/unictype/pr_sentence_terminal.h: Regenerated.
70259         * lib/unictype/pr_soft_dotted.h: Regenerated.
70260         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
70261         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
70262         * lib/unictype/pr_unified_ideograph.h: Regenerated.
70263         * lib/unictype/pr_uppercase.h: Regenerated.
70264         * lib/unictype/pr_xid_continue.h: Regenerated.
70265         * lib/unictype/pr_xid_start.h: Regenerated.
70266         * lib/unictype/pr_zero_width.h: Regenerated.
70267         * lib/unictype/scripts.h: Regenerated.
70268         * lib/unictype/scripts_byname.gperf: Regenerated.
70269         * lib/unictype/sy_java_ident.h: Regenerated.
70270         * lib/unilbrk/lbrkprop1.h: Regenerated.
70271         * lib/unilbrk/lbrkprop2.h: Regenerated.
70272         * tests/unictype/test-categ_C.c: Regenerated.
70273         * tests/unictype/test-categ_Cf.c: Regenerated.
70274         * tests/unictype/test-categ_Cn.c: Regenerated.
70275         * tests/unictype/test-categ_L.c: Regenerated.
70276         * tests/unictype/test-categ_Ll.c: Regenerated.
70277         * tests/unictype/test-categ_Lm.c: Regenerated.
70278         * tests/unictype/test-categ_Lo.c: Regenerated.
70279         * tests/unictype/test-categ_Lu.c: Regenerated.
70280         * tests/unictype/test-categ_M.c: Regenerated.
70281         * tests/unictype/test-categ_Mc.c: Regenerated.
70282         * tests/unictype/test-categ_Me.c: Regenerated.
70283         * tests/unictype/test-categ_Mn.c: Regenerated.
70284         * tests/unictype/test-categ_N.c: Regenerated.
70285         * tests/unictype/test-categ_Nd.c: Regenerated.
70286         * tests/unictype/test-categ_Nl.c: Regenerated.
70287         * tests/unictype/test-categ_No.c: Regenerated.
70288         * tests/unictype/test-categ_P.c: Regenerated.
70289         * tests/unictype/test-categ_Pd.c: Regenerated.
70290         * tests/unictype/test-categ_Pe.c: Regenerated.
70291         * tests/unictype/test-categ_Pf.c: Regenerated.
70292         * tests/unictype/test-categ_Pi.c: Regenerated.
70293         * tests/unictype/test-categ_Po.c: Regenerated.
70294         * tests/unictype/test-categ_Ps.c: Regenerated.
70295         * tests/unictype/test-categ_S.c: Regenerated.
70296         * tests/unictype/test-categ_Sk.c: Regenerated.
70297         * tests/unictype/test-categ_Sm.c: Regenerated.
70298         * tests/unictype/test-categ_So.c: Regenerated.
70299         * tests/unictype/test-ctype_alnum.c: Regenerated.
70300         * tests/unictype/test-ctype_alpha.c: Regenerated.
70301         * tests/unictype/test-ctype_graph.c: Regenerated.
70302         * tests/unictype/test-ctype_lower.c: Regenerated.
70303         * tests/unictype/test-ctype_print.c: Regenerated.
70304         * tests/unictype/test-ctype_punct.c: Regenerated.
70305         * tests/unictype/test-ctype_upper.c: Regenerated.
70306         * tests/unictype/test-decdigit.h: Regenerated.
70307         * tests/unictype/test-digit.h: Regenerated.
70308         * tests/unictype/test-numeric.h: Regenerated.
70309         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70310         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70311         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70312         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70313         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70314         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70315         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70316         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70317         * tests/unictype/test-pr_combining.c: Regenerated.
70318         * tests/unictype/test-pr_dash.c: Regenerated.
70319         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70320         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70321         * tests/unictype/test-pr_deprecated.c: Regenerated.
70322         * tests/unictype/test-pr_diacritic.c: Regenerated.
70323         * tests/unictype/test-pr_extender.c: Regenerated.
70324         * tests/unictype/test-pr_format_control.c: Regenerated.
70325         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70326         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70327         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70328         * tests/unictype/test-pr_id_continue.c: Regenerated.
70329         * tests/unictype/test-pr_id_start.c: Regenerated.
70330         * tests/unictype/test-pr_ideographic.c: Regenerated.
70331         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70332         * tests/unictype/test-pr_lowercase.c: Regenerated.
70333         * tests/unictype/test-pr_math.c: Regenerated.
70334         * tests/unictype/test-pr_numeric.c: Regenerated.
70335         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70336         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70337         Regenerated.
70338         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70339         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70340         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70341         * tests/unictype/test-pr_other_math.c: Regenerated.
70342         * tests/unictype/test-pr_punctuation.c: Regenerated.
70343         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70344         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70345         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70346         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70347         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70348         * tests/unictype/test-pr_uppercase.c: Regenerated.
70349         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70350         * tests/unictype/test-pr_xid_start.c: Regenerated.
70351         * tests/unictype/test-pr_zero_width.c: Regenerated.
70353         Update to Unicode 5.1.0.
70354         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70355         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70356         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70357         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70358         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70359         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70360         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70361         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70362         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70363         (nonspacing_table_ind): Update.
70364         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70366         Update to Unicode 5.1.0.
70367         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70368         code transform.
70369         * lib/uniname/uniname.c (unicode_character_name,
70370         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70371         * lib/uniname/uninames.h: Regenerated.
70372         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70374 2009-02-07  Bruno Haible  <bruno@clisp.org>
70376         Merge gen-ctype and gen-lbrk into a single program.
70377         * lib/gen-uni-tables.c: New file, incorporating
70378         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70379         Add directory prefixes to the names of the generated files.
70380         * lib/unictype/gen-ctype.c: Remove file.
70381         * lib/unilbrk/gen-lbrk.c: Remove file.
70382         * modules/gen-uni-tables: New file.
70383         * modules/unictype/gen-ctype: Remove file.
70384         * modules/unilbrk/gen-lbrk: Remove file.
70386 2009-02-07  Bruno Haible  <bruno@clisp.org>
70388         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70390         New module 'unistr/u32-strcoll'.
70391         * modules/unistr/u32-strcoll: New file.
70392         * lib/unistr/u32-strcoll.c: New file.
70394         New module 'unistr/u16-strcoll'.
70395         * modules/unistr/u16-strcoll: New file.
70396         * lib/unistr/u16-strcoll.c: New file.
70398         New module 'unistr/u8-strcoll'.
70399         * modules/unistr/u8-strcoll: New file.
70400         * lib/unistr/u8-strcoll.c: New file.
70401         * lib/unistr/u-strcoll.h: New file.
70403 2009-02-07  Bruno Haible  <bruno@clisp.org>
70405         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70406         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70407         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70408         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70409         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70410         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70412 2009-02-07  Bruno Haible  <bruno@clisp.org>
70414         Make 64-bit clean.
70415         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70416         output_combclass, output_bidi_category, output_decimal_digit,
70417         output_digit, output_numeric, output_mirror, output_scripts,
70418         output_ident_category): Use proper width specifier in format strings.
70420 2009-02-07  Bruno Haible  <bruno@clisp.org>
70422         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70423         failure behaviour.
70425 2009-02-07  Jim Meyering  <meyering@redhat.com>
70427         regex: avoid compilation failure with upcoming gcc-4.4
70428         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70429         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70430         "... error: integer overflow in preprocessor expression".
70432 2009-02-05  Ben Pfaff  <blp@gnu.org>
70434         Fix link errors on Windows when close module is used.
70435         * modules/close: Add $(LIB_CLOSE) to Link section.
70436         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70437         $(LIB_CLOSE) on Windows.
70439 2009-02-05  Jim Meyering  <meyering@redhat.com>
70441         still avoid unused-parameter warnings, but do it cleanly
70442         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70443         (get_fs_usage): Cast to void instead.
70444         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70445         (dev_from_mount_options, read_file_system_list): Cast to void.
70446         Prompted by Bruno Haible.
70448 2009-02-04  Jim Meyering  <meyering@redhat.com>
70450         fsusage.c: correct copyright year
70451         * lib/fsusage.c: Reflect year in which the change is pushed into
70453         avoid misc. warnings
70454         * lib/fsusage.c (UNUSED_PARAM): Define.
70455         (get_fs_usage): Mark parameter "disk" as unused.
70456         * lib/getugroups.c (getgrent): Use "void" in prototype.
70457         * lib/mountlist.c: Mark unused parameters.
70458         (read_file_system_list): Declare a local with "const".
70459         * lib/nanosleep.c (getnow): Declare static.
70460         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70462         dirfd: set errno upon failure
70463         * lib/dirfd.c: Include <errno.h>.
70464         Set errno to ENOTSUP when returning -1.
70465         * modules/dirfd (Depends-on): Add errno.
70466         Suggested by John Kodis <kodis@comcast.net>.
70468 2009-02-01  Bruno Haible  <bruno@clisp.org>
70470         Don't assume sizeof (long) >= sizeof (void *).
70471         * lib/memcmp.c: Include stdint.h.
70472         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70473         srcp2 to 'const byte *'.
70474         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70475         types to uintptr_t.
70476         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70477         * modules/memcmp (Depends-on): Add stdint.
70478         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70480 2009-01-30  Eric Blake  <ebb9@byu.net>
70482         fix more require-before-expand issues
70483         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70484         expand, AC_PROG_AWK.
70485         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70487 2009-01-28  Eric Blake  <ebb9@byu.net>
70489         version-etc: use consistent URL formatting
70490         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70491         Improve formatting.  Use fputs for string without %.
70493 2009-01-28  Jim Meyering  <meyering@redhat.com>
70495         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70496         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70497         "underquoted definition of NAME" from autoconf-2.59.
70499 2009-01-28  Bruno Haible  <bruno@clisp.org>
70501         * doc/gnulib.texi: Add "Obsolete modules" to index.
70503 2009-01-28  Jim Meyering  <meyering@redhat.com>
70505         useless-if-before-free: recognize more variants
70506         * build-aux/useless-if-before-free: Also recognize e.g.,
70507         if (NULL != p) free (p);
70509 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70511         test-getaddrinfo: skip (don't fail) this test when there's no network
70512         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70513         on the presumption that it means you lack network access.
70515 2009-01-26  Jim Meyering  <meyering@redhat.com>
70517         fflush: avoid warnings on modern systems
70518         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70519         pos and result, into scopes where they're used.
70521 2009-01-26  Eric Blake  <ebb9@byu.net>
70523         Silence warning reintroduced by recent extensions patch.
70524         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70525         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70526         autoconf.
70528         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70529         * m4/00gnulib.m4: New file.
70530         * gnulib-tool (func_get_filelist): Always use it.
70531         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70532         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70534 2009-01-25  Bruno Haible  <bruno@clisp.org>
70536         Make test-quotearg work on MacOS X and AIX.
70537         * tests/test-quotearg.sh: New file.
70538         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70539         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70540         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70541         include <libintl.h>.
70542         (fake_locale): Remove variable.
70543         (gettext, dgettext, dcgettext): Remove functions.
70544         (main): Instead of setting a fake locale, set a real locale. Call
70545         textdomain and bindtextdomain.
70546         * modules/quotearg-tests (Files): Add the new files.
70547         (Depends-on): Add gettext, setenv, unsetenv.
70548         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70549         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
70550         Augment TESTS_ENVIRONMENT.
70552 2009-01-25  Bruno Haible  <bruno@clisp.org>
70554         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
70555         fr_FR.ISO8859-1 locale on MacOS X.
70556         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
70557         ja_JP.eucJP locale on MacOS X.
70558         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
70559         zh_CN.GB18030 locale on MacOS X.
70561 2009-01-25  Bruno Haible  <bruno@clisp.org>
70563         Avoid link errors on MacOS X 10.3.
70564         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
70565         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
70567 2009-01-25  Bruno Haible  <bruno@clisp.org>
70569         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70570         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
70571         * modules/pipe (Files): Remove m4/posix_spawn.m4.
70572         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70573         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
70574         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70575         posix_spawnattr_init, posix_spawnattr_setsigmask,
70576         posix_spawnattr_setflags, posix_spawnattr_destroy.
70578         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70579         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
70580         * modules/execute (Files): Remove m4/posix_spawn.m4.
70581         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70582         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70583         posix_spawnattr_init, posix_spawnattr_setsigmask,
70584         posix_spawnattr_setflags, posix_spawnattr_destroy.
70586 2009-01-25  Bruno Haible  <bruno@clisp.org>
70588         * lib/glthread/threadlib.c: Include <stdlib.h>.
70590 2009-01-25  Bruno Haible  <bruno@clisp.org>
70592         * lib/glthread/threadlib.c (dummy): New declaration.
70594 2009-01-25  Bruno Haible  <bruno@clisp.org>
70596         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
70597         multibyte characters also for the GB18030 encoding. Don't crash when
70598         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
70600 2009-01-25  Bruno Haible  <bruno@clisp.org>
70602         Avoid redefining 'struct random_data' on OSF/1 5.1.
70603         * lib/stdlib.in.h: Include <random.h> if it exists.
70604         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
70605         HAVE_RANDOM_H. Include <random.h> when testing whether
70606         'struct random_data' exists.
70607         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
70609 2009-01-25  Bruno Haible  <bruno@clisp.org>
70611         Don't install charset.alias on MacOS X >= 10.3.
70612         * lib/localcharset.c (DARWIN7): New macro.
70613         (get_charset_aliases): Hardcode the result for Darwin7.
70614         * modules/localcharset (install-exec-local): Don't install
70615         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
70617 2009-01-25  Bruno Haible  <bruno@clisp.org>
70619         Don't install charset.alias on mingw and Cygwin.
70620         * modules/localcharset (install-exec-local): Don't install
70621         charset.alias on mingw and Cygwin, if the file does not yet exist.
70622         The result for these platforms is hardcoded in localcharset.c.
70624 2009-01-25  Bruno Haible  <bruno@clisp.org>
70626         Make it possible again to use AC_GNU_SOURCE together with gnulib.
70627         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
70628         before requiring AC_USE_SYSTEM_EXTENSIONS.
70630 2009-01-25  Jim Meyering  <meyering@redhat.com>
70632         c-strtod: avoid warnings
70633         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
70634         "assignment discards qualifiers from pointer target type" warnings.
70636 2009-01-24  Bruno Haible  <bruno@clisp.org>
70638         Add support for non-UTF-8 locales on MacOS X.
70639         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
70640         canonical encodings. For Darwin 7 and newer, don't map traditional
70641         encodings to UTF-8.
70642         Reported by Vincent Lefevre <vincent@vinc17.org>
70643         at <http://savannah.gnu.org/bugs/?25235>.
70645 2009-01-24  Bruno Haible  <bruno@clisp.org>
70647         * doc/gnulib.texi (Obsolete modules): New section.
70648         Reported by Mike Frysinger <vapier@gentoo.org>.
70650 2009-01-24  Bruno Haible  <bruno@clisp.org>
70652         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
70653         (%.dvi): New rule.
70655 2009-01-24  Bruno Haible  <bruno@clisp.org>
70657         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
70658         Reported by Eric Blake.
70660 2009-01-24  Bruno Haible  <bruno@clisp.org>
70662         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
70663         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
70664         Reported by Gary V. Vaughan <gary@gnu.org>.
70666 2009-01-24  Bruno Haible  <bruno@clisp.org>
70668         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
70670 2009-01-23  Bruno Haible  <bruno@clisp.org>
70672         Make c-strtod, c-strtold usable in libraries.
70673         * lib/c-strtod.c: Include string.h instead of xalloc.h.
70674         (C_STRTOD): Call strdup instead of xstrdup.
70675         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
70676         * modules/c-strtold (Depends-on): Likewise.
70677         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
70678         * NEWS: Mention the change.
70679         Reported by Michael Gold <mgold@ncf.ca>.
70681 2009-01-23  Jim Meyering  <meyering@redhat.com>
70683         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
70684         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
70685         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
70687 2009-01-23  Simon Josefsson  <simon@josefsson.org>
70689         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
70690         GNU CoreUtils.
70691         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
70692         * modules/version-etc (Description): Update.
70694 2009-01-22  Bruno Haible  <bruno@clisp.org>
70696         Cache the C locale object.
70697         * lib/c-strtod.c (c_locale_cache): New variable.
70698         (c_locale): New function.
70699         (C_STRTOD): Use it, and don't call freelocale.
70700         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
70701         Suggested by Paolo Bonzini.
70703 2009-01-21  Bruno Haible  <bruno@clisp.org>
70705         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
70706         conditions other than overflow.
70708 2009-01-21  Bruno Haible  <bruno@clisp.org>
70710         * lib/c-strtod.c: Include errno.h.
70711         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
70712         value from STRTOD_L and STRTOD.
70714 2009-01-21  Bruno Haible  <bruno@clisp.org>
70715         and Jim Meyering  <meyering@redhat.com>
70717         nanosleep: skip configure test (fail it) for apple universal builds
70718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
70719         universal builds, assume that nanosleep does not work.
70720         * modules/nanosleep (Depends-on): Add multiarch.
70722         mktime: skip configure test (fail it) for apple universal builds
70723         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
70724         universal builds, assume that mktime does not work.
70725         * modules/mktime (Depends-on): Add multiarch.
70727 2009-01-21  Eric Blake  <ebb9@byu.net>
70729         multiarch: avoid expand-before-require warning
70730         * modules/multiarch (configure.ac): Require, rather than expand,
70731         gl_MULTIARCH.
70732         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
70733         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
70734         enforce that all clients require it.  Partial reversion of
70735         2008-12-29 patch.
70737         error: avoid expand-before-require warning
70738         * modules/errno (configure.ac): Require, rather than expand,
70739         gl_HEADER_ERRNO_H.
70740         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
70741         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
70742         enforce that all clients require it.
70744         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
70745         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
70746         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
70747         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
70749 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
70751         Revert:
70752         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70754         regex: do not depend on obsolete modules.
70755         * modules/regex: Remove memcmp and memmove.
70757 2009-01-20  Bruno Haible  <bruno@clisp.org>
70759         Make the 'link' module link on Windows NT 4.
70760         * lib/link.c (_WIN32_WINNT): Don't define.
70761         (CreateHardLinkFuncType): New type.
70762         (CreateHardLinkFunc, initialized): New variables.
70763         (initialize): New function.
70764         (link): Invoke CreateHardLink indirectly through the function pointer.
70766 2009-01-20  Bruno Haible  <bruno@clisp.org>
70768         Fix compilation failure on mingw.
70769         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
70771 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
70773         * doc/c-strtod.texi: Mention a couple of restrictions.
70775 2009-01-20  Jim Meyering  <meyering@redhat.com>
70777         gettimeofday: move more declarations out of functions
70778         * lib/gettimeofday.c: Move extern declarations of tzset and
70779         gmtime out of containing functions.  Prompted by Bruno Haible.
70781 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70783         regex: do not depend on obsolete modules.
70784         * modules/regex: Remove memcmp and memmove.
70786 2009-01-19  Bruno Haible  <bruno@clisp.org>
70788         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70789         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
70790         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70791         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
70792         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
70794 2009-01-19  Bruno Haible  <bruno@clisp.org>
70796         * tests/test-link.c: Include <errno.h>.
70797         (main): Exit with code 77 when a hard link cannot be created due to
70798         the file system.
70799         * tests/test-link.sh: Skip test when a hard link cannot be created due
70800         to the file system.
70801         Suggested by Eric Blake.
70803 2009-01-19  Martin Lambers  <marlam@marlam.de>
70805         * modules/link-tests: New file.
70806         * tests/test-link.sh: New file.
70807         * tests/test-link.c: New file.
70809 2009-01-19  Eric Blake  <ebb9@byu.net>
70811         doc: mention another function added in cygwin 1.7.0
70812         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
70813         Another new function in cygwin 1.7.
70815 2009-01-19  Bruno Haible  <bruno@clisp.org>
70817         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70818         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
70819         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
70820         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70821         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
70822         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
70823         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
70824         * m4/md4.m4 (gl_MD4): Likewise.
70825         * m4/md5.m4 (gl_MD5): Likewise.
70826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
70827         * m4/sha1.m4 (gl_SHA1): Likewise.
70828         * m4/sha256.m4 (gl_SHA256): Likewise.
70829         * m4/sha512.m4 (gl_SHA512): Likewise.
70831 2009-01-19  Bruno Haible  <bruno@clisp.org>
70833         * modules/uniname/uniname-tests (Depends-on): Add progname.
70834         * tests/uniname/test-uninames.c: Include progname.h.
70835         (main): Call set_program_name.
70837         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
70838         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
70839         (main): Call set_program_name.
70841         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
70842         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
70843         (main): Call set_program_name.
70845         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
70846         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
70847         (main): Call set_program_name.
70849         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
70850         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
70851         (main): Call set_program_name.
70853         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
70854         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
70855         (main): Call set_program_name.
70857         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
70858         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
70859         (main): Call set_program_name.
70861         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
70862         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
70863         (main): Call set_program_name.
70865         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
70866         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
70867         (main): Call set_program_name.
70869 2009-01-19  Eric Blake  <ebb9@byu.net>
70871         test-unistd: test previous patch
70872         * tests/test-unistd.c: Test *_FILENO macros.
70874         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
70875         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70876         Guarantee a definition.
70877         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
70878         * modules/unistd-safer (Depends-on): Add dependency on unistd.
70879         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
70880         * lib/dup-safer.c (STDERR_FILENO): Likewise.
70881         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70882         Likewise.
70883         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
70884         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
70885         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70886         Likewise.
70887         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
70888         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
70889         (STDERR_FILENO): Likewise.
70890         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
70891         (STDERR_FILENO): Likewise.
70892         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
70893         (STDERR_FILENO): Likewise.
70894         Reported by Elbert Pol.
70896 2009-01-19  Eric Blake  <ebb9@byu.net>
70898         doc: mention more functions added in cygwin 1.7.0
70899         * doc/posix-functions/abort.texi (abort): Update wording related
70900         to cygwin.
70901         * doc/posix-functions/daylight.texi (daylight): Likewise.
70902         * doc/posix-functions/optarg.texi (optarg): Likewise.
70903         * doc/posix-functions/optarg.texi (opterr): Likewise.
70904         * doc/posix-functions/optarg.texi (optind): Likewise.
70905         * doc/posix-functions/optarg.texi (optopt): Likewise.
70906         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
70907         worked in 1.5.x, and was withdrawn in 1.7.
70908         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
70909         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
70910         cygwin versions.
70911         * doc/posix-functions/perror.texi (perror): Likewise.
70912         * doc/posix-functions/printf.texi (printf): Likewise.
70913         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
70914         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
70915         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
70916         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
70917         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
70918         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
70919         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
70920         Likewise.
70921         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
70922         Likewise.
70923         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
70924         this function.
70925         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
70926         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
70927         Likewise.
70928         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
70929         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
70930         * doc/posix-functions/confstr.texi (confstr): Likewise.
70931         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
70932         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
70933         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
70934         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
70935         * doc/posix-functions/fputws.texi (fputws): Likewise.
70936         * doc/posix-functions/fwide.texi (fwide): Likewise.
70937         * doc/posix-functions/getwc.texi (getwc): Likewise.
70938         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
70939         * doc/posix-functions/putwc.texi (putwc): Likewise.
70940         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
70941         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
70942         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
70943         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
70944         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
70945         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
70946         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
70947         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
70948         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
70949         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
70950         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
70952 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70954         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
70955         * lib/ioctl.c: Include <sys/ioctl.h>.
70957 2009-01-19  Simon Josefsson  <simon@josefsson.org>
70959         * modules/getdate-tests (Depends-on): Add progname.
70960         * tests/test-getdate.c: Use progname module, to avoid link errors
70961         on non-glibc systems.
70963 2009-01-18  Simon Josefsson  <simon@josefsson.org>
70965         * modules/filenamecat-tests (Depends-on): Add progname.
70966         * modules/fstrcmp-tests (Depends-on): Likewise.
70968         * tests/test-filenamecat.c: Use progname module, to avoid link
70969         errors on non-glibc systems.
70970         * tests/test-fstrcmp.c: Likewise.
70972 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70974         gettimeofday: avoid warning: nested extern declaration of 'localtime'
70975         * lib/gettimeofday.c: Move extern declaration out of function.
70977 2009-01-18  Bruno Haible  <bruno@clisp.org>
70979         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
70980         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
70981         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
70983 2009-01-18  Bruno Haible  <bruno@clisp.org>
70985         * lib/strftime.c (MEMPCPY): Remove unused macro.
70986         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
70988 2009-01-18  Martin Lambers  <marlam@marlam.de>
70990         New module 'link'.
70991         * lib/unistd.in.h (link): New declaration.
70992         * lib/link.c: New file.
70993         * m4/link.m4: New file.
70994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
70995         HAVE_LINK.
70996         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
70997         * modules/link: New file.
70998         * doc/posix-functions/link.texi: Mention the new module.
71000 2009-01-18  Bruno Haible  <bruno@clisp.org>
71002         * tests/test-avltree_list.c (main): Call set_program_name.
71003         * tests/test-avltree_oset.c (main): Likewise.
71004         * tests/test-obstack-printf.c: Include progname.h.
71005         (main): Call set_program_name.
71006         * tests/test-quotearg.c: Include progname.h.
71007         (main): Call set_program_name.
71008         * tests/test-xmemdup0.c: Include progname.h.
71009         (main): Call set_program_name.
71011 2009-01-18  Bruno Haible  <bruno@clisp.org>
71013         New module 'alphasort'.
71014         * lib/dirent.in.h (alphasort): New declaration.
71015         * lib/alphasort.c: New file, from glibc with modifications.
71016         * m4/alphasort.m4: New file.
71017         * modules/alphasort: New file.
71018         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
71019         HAVE_ALPHASORT.
71020         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
71021         HAVE_ALPHASORT.
71022         * doc/posix-functions/alphasort.texi: Mention the new module and the
71023         portability problems.
71025 2009-01-18  Bruno Haible  <bruno@clisp.org>
71027         New module 'scandir'.
71028         * lib/dirent.in.h (scandir): New declaration.
71029         * lib/scandir.c: New file, from glibc with modifications.
71030         * m4/scandir.m4: New file.
71031         * modules/scandir: New file.
71032         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
71033         HAVE_SCANDIR.
71034         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
71035         HAVE_SCANDIR.
71036         * doc/posix-functions/scandir.texi: Mention the new module and the
71037         portability problems.
71039 2009-01-17  Bruno Haible  <bruno@clisp.org>
71041         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
71042         Update documentation.
71043         (func_remove_suffix): Escape all dots in the suffix. Update
71044         documentation.
71045         (func_filter_filelist): Update documentation.
71046         Reported by Ralf Wildenhues.
71048 2009-01-17  Bruno Haible  <bruno@clisp.org>
71050         * modules/dprintf-posix-tests: New file.
71051         * tests/test-dprintf-posix.sh: New file.
71052         * tests/test-dprintf-posix.c: New file.
71054         New modules 'dprintf', 'dprintf-posix'.
71055         * lib/stdio.in.h (dprintf): New declaration.
71056         * lib/dprintf.c: New file.
71057         * m4/dprintf.m4: New file.
71058         * m4/dprintf-posix.m4: New file.
71059         * modules/dprintf: New file.
71060         * modules/dprintf-posix: New file.
71061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
71062         HAVE_DPRINTF, REPLACE_DPRINTF.
71063         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
71064         HAVE_DPRINTF, REPLACE_DPRINTF.
71065         * doc/posix-functions/dprintf.texi: Mention the new modules.
71067 2009-01-17  Bruno Haible  <bruno@clisp.org>
71069         * modules/vdprintf-posix-tests: New file.
71070         * tests/test-vdprintf-posix.sh: New file.
71071         * tests/test-vdprintf-posix.c: New file.
71073         New modules 'vdprintf', 'vdprintf-posix'.
71074         * lib/stdio.in.h (vdprintf): New declaration.
71075         * lib/vdprintf.c: New file.
71076         * m4/vdprintf.m4: New file.
71077         * m4/vdprintf-posix.m4: New file.
71078         * modules/vdprintf: New file.
71079         * modules/vdprintf-posix: New file.
71080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
71081         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71082         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
71083         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71084         * doc/posix-functions/vdprintf.texi: Mention the new modules.
71086 2009-01-17  Bruno Haible  <bruno@clisp.org>
71088         Fix replacement of fopen on mingw.
71089         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
71090         mingw.
71092 2009-01-17  Bruno Haible  <bruno@clisp.org>
71094         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
71095         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
71097 2009-01-17  Bruno Haible  <bruno@clisp.org>
71099         Avoid test-fflush2.sh failure on mingw.
71100         * tests/test-fflush2.c: Include binary-io.h.
71101         (main): Put standard input into binary mode.
71102         * modules/fflush-tests (Depends-on): Add binary-io.
71104 2009-01-17  Bruno Haible  <bruno@clisp.org>
71106         * lib/wchar.in.h: In another particular situation, include only the
71107         system's <wchar.h> file.
71108         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
71109         Reported by Albert Chin-A-Young <china@thewrittenword.com>
71110         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
71112 2009-01-17  Bruno Haible  <bruno@clisp.org>
71114         Support for stripping executables in --enable-relocatable.
71115         * build-aux/install-reloc: Expect one more argument, or an environment
71116         variable RELOC_STRIP_PROG. If set, strip the destination program and
71117         its wrapper.
71118         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
71119         RELOC_STRIP_PROG.
71120         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
71121         to set RELOCATABLE_STRIP.
71122         * NEWS: Mention the new Makefile requirement.
71124 2009-01-17  Bruno Haible  <bruno@clisp.org>
71126         * build-aux/install-reloc: Remove debugging information left over by
71127         C compiler on MacOS X.
71129 2009-01-17  Bruno Haible  <bruno@clisp.org>
71131         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
71132         * lib/progreloc.c (find_executable): Fix type of pointer passed to
71133         _NSGetExecutablePath.
71135 2009-01-16  Jim Meyering  <meyering@redhat.com>
71137         strerror: avoid warnings about discarding "const"
71138         * lib/strerror.c (rpl_strerror): Instead of returning a const
71139         string from each and every "case", use a variable, and add a single
71140         cast after the switch.
71142 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
71144         * lib/arpa_inet.in.h: Add extern "C" block for C++.
71146 2009-01-16  Bruno Haible  <bruno@clisp.org>
71148         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
71149         array initializer syntax that also works in C++ mode.
71150         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71152 2009-01-16  Jim Meyering  <meyering@redhat.com>
71154         poll: suppress a warning
71155         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
71156         to ignore "...unsigned expression < 0 is always false" warnings.
71158 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
71160         poll: remove declarations of unused variables
71161         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
71162         sockbuf and optlen.
71164 2009-01-15  Bruno Haible  <bruno@clisp.org>
71166         Make fflush-after-ungetc POSIX compliant on BSD systems.
71167         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
71168         (clear_ungetc_buffer): Implement also for other systems.
71169         (rpl_fflush): On glibc systems, invoke
71170         clear_ungetc_buffer_preserving_position. Otherwise, invoke
71171         clear_ungetc_buffer after fetching the stream's position, not before.
71173 2009-01-15  Bruno Haible  <bruno@clisp.org>
71175         Make fflush-after-ungetc POSIX compliant on glibc systems.
71176         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
71177         after ungetc.
71178         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
71179         (rpl_fflush): On glibc systems, simply call the system's fflush
71180         function after clearing the ungetc buffer.
71181         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
71182         Instead, lseek only to the end of file, then use the system's fseeko
71183         for the rest. On glibc systems, reset the EOF indicator bit.
71185 2009-01-15  Jim Meyering  <meyering@redhat.com>
71187         openmp.m4: revert quote-adding change, for portability to older autoconf
71188         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
71189         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
71190         Simon Josefsson noticed the problem when using autoconf-2.61.
71192 2009-01-15  Bruno Haible  <bruno@clisp.org>
71194         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
71195         * tests/test-fflush2.c (ASSERT): Always fail.
71196         (main): Add two tests for fflush() after ungetc(), taking into account
71197         the Austin Group's clarification.
71198         Suggested by Eric Blake.
71200 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
71202         mktime.m4: remove K&R-style function prototypes
71203         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
71204         for the Sun C++ compiler.
71206 2009-01-14  Bruno Haible  <bruno@clisp.org>
71208         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
71209         while including <wchar.h>.
71210         * lib/wchar.in.h: In two particular situations on HP-UX, include only
71211         the system's <wchar.h> file.
71212         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71214 2009-01-14  Bruno Haible  <bruno@clisp.org>
71216         * m4/csharp.m4: Don't mention gettext on the serial number line.
71217         * m4/csharpexec.m4: Likewise.
71218         * m4/eaccess.m4: Likewise.
71219         * m4/javaexec.m4: Likewise.
71220         * m4/sig_atomic_t.m4: Likewise.
71221         * m4/tmpdir.m4: Likewise.
71222         * m4/intldir.m4: Bump gettext version.
71223         * m4/lib-ld.m4: Likewise.
71225 2009-01-14  Bruno Haible  <bruno@clisp.org>
71227         * lib/progname.c (set_program_name): Add more comments.
71228         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71230 2009-01-14  Simon Josefsson  <simon@josefsson.org>
71232         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
71233         were sys/stat.h does not define it.
71235 2009-01-14  Jim Meyering  <meyering@redhat.com>
71237         many *.m4 files: improve m4 quoting
71238         99% of this change was performed by running the following commands:
71239         git ls-files | grep '\.m4$' | xargs perl -pi \
71240           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
71241           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71242           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71243           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
71244         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
71245         The remainder were to add Copyright dates, increment serial numbers,
71246         undo some changes in comments, exclude m4/intl.m4, and add quotes
71247         around the "1" in ",1" where the unusual spacing prohibited the
71248         above regexps from doing the job.  For more details, see
71249         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
71250         * m4/acl.m4: Modified.
71251         * m4/afs.m4: Likewise.
71252         * m4/alloca.m4: Likewise.
71253         * m4/argp.m4: Likewise.
71254         * m4/argz.m4: Likewise.
71255         * m4/atexit.m4: Likewise.
71256         * m4/bison-i18n.m4: Likewise.
71257         * m4/bison.m4: Likewise.
71258         * m4/byteswap.m4: Likewise.
71259         * m4/c-stack.m4: Likewise.
71260         * m4/c-strtod.m4: Likewise.
71261         * m4/calloc.m4: Likewise.
71262         * m4/canonicalize-lgpl.m4: Likewise.
71263         * m4/chown.m4: Likewise.
71264         * m4/clock_time.m4: Likewise.
71265         * m4/codeset.m4: Likewise.
71266         * m4/copy-file.m4: Likewise.
71267         * m4/csharp.m4: Likewise.
71268         * m4/csharpcomp.m4: Likewise.
71269         * m4/csharpexec.m4: Likewise.
71270         * m4/d-ino.m4: Likewise.
71271         * m4/d-type.m4: Likewise.
71272         * m4/dirfd.m4: Likewise.
71273         * m4/double-slash-root.m4: Likewise.
71274         * m4/eaccess.m4: Likewise.
71275         * m4/eealloc.m4: Likewise.
71276         * m4/environ.m4: Likewise.
71277         * m4/errno_h.m4: Likewise.
71278         * m4/euidaccess.m4: Likewise.
71279         * m4/execute.m4: Likewise.
71280         * m4/fatal-signal.m4: Likewise.
71281         * m4/fchdir.m4: Likewise.
71282         * m4/fcntl_h.m4: Likewise.
71283         * m4/fileblocks.m4: Likewise.
71284         * m4/filenamecat.m4: Likewise.
71285         * m4/findprog.m4: Likewise.
71286         * m4/flexmember.m4: Likewise.
71287         * m4/fnmatch.m4: Likewise.
71288         * m4/fopen.m4: Likewise.
71289         * m4/fpending.m4: Likewise.
71290         * m4/fprintf-posix.m4: Likewise.
71291         * m4/free.m4: Likewise.
71292         * m4/frexp.m4: Likewise.
71293         * m4/frexpl.m4: Likewise.
71294         * m4/fsusage.m4: Likewise.
71295         * m4/ftruncate.m4: Likewise.
71296         * m4/gc-camellia.m4: Likewise.
71297         * m4/gc-random.m4: Likewise.
71298         * m4/gc.m4: Likewise.
71299         * m4/getaddrinfo.m4: Likewise.
71300         * m4/getcwd-abort-bug.m4: Likewise.
71301         * m4/getcwd-path-max.m4: Likewise.
71302         * m4/getdate.m4: Likewise.
71303         * m4/getdomainname.m4: Likewise.
71304         * m4/getgroups.m4: Likewise.
71305         * m4/gethostname.m4: Likewise.
71306         * m4/gethrxtime.m4: Likewise.
71307         * m4/getline.m4: Likewise.
71308         * m4/getloadavg.m4: Likewise.
71309         * m4/getndelim2.m4: Likewise.
71310         * m4/getpass.m4: Likewise.
71311         * m4/gettext.m4: Likewise.
71312         * m4/gettime.m4: Likewise.
71313         * m4/gettimeofday.m4: Likewise.
71314         * m4/gnulib-common.m4: Likewise.
71315         * m4/group-member.m4: Likewise.
71316         * m4/host-os.m4: Likewise.
71317         * m4/iconv.m4: Likewise.
71318         * m4/iconv_open.m4: Likewise.
71319         * m4/inet_ntop.m4: Likewise.
71320         * m4/inet_pton.m4: Likewise.
71321         * m4/inline.m4: Likewise.
71322         * m4/intldir.m4: Likewise.
71323         * m4/intlmacosx.m4: Likewise.
71324         * m4/intmax.m4: Likewise.
71325         * m4/intmax_t.m4: Likewise.
71326         * m4/inttypes.m4: Likewise.
71327         * m4/inttypes_h.m4: Likewise.
71328         * m4/inttypes-pri.m4: Likewise.
71329         * m4/isapipe.m4: Likewise.
71330         * m4/isnand.m4: Likewise.
71331         * m4/isnanf.m4: Likewise.
71332         * m4/isnanl.m4: Likewise.
71333         * m4/javacomp.m4: Likewise.
71334         * m4/javaexec.m4: Likewise.
71335         * m4/jm-winsz1.m4: Likewise.
71336         * m4/jm-winsz2.m4: Likewise.
71337         * m4/lchown.m4: Likewise.
71338         * m4/lcmessage.m4: Likewise.
71339         * m4/ldexpl.m4: Likewise.
71340         * m4/lib-ld.m4: Likewise.
71341         * m4/lib-link.m4: Likewise.
71342         * m4/libsigsegv.m4: Likewise.
71343         * m4/link-follow.m4: Likewise.
71344         * m4/localcharset.m4: Likewise.
71345         * m4/locale-fr.m4: Likewise.
71346         * m4/locale-ja.m4: Likewise.
71347         * m4/locale-tr.m4: Likewise.
71348         * m4/locale-zh.m4: Likewise.
71349         * m4/lock.m4: Likewise.
71350         * m4/longlong.m4: Likewise.
71351         * m4/ls-mntd-fs.m4: Likewise.
71352         * m4/lstat.m4: Likewise.
71353         * m4/malloc.m4: Likewise.
71354         * m4/mathl.m4: Likewise.
71355         * m4/mbrtowc.m4: Likewise.
71356         * m4/mbstate_t.m4: Likewise.
71357         * m4/mbswidth.m4: Likewise.
71358         * m4/memchr.m4: Likewise.
71359         * m4/memcmp.m4: Likewise.
71360         * m4/memcpy.m4: Likewise.
71361         * m4/memmem.m4: Likewise.
71362         * m4/memmove.m4: Likewise.
71363         * m4/mempcpy.m4: Likewise.
71364         * m4/memrchr.m4: Likewise.
71365         * m4/memset.m4: Likewise.
71366         * m4/minmax.m4: Likewise.
71367         * m4/mkdir-slash.m4: Likewise.
71368         * m4/mkdtemp.m4: Likewise.
71369         * m4/mktime.m4: Likewise.
71370         * m4/mmap-anon.m4: Likewise.
71371         * m4/mountlist.m4: Likewise.
71372         * m4/nanosleep.m4: Likewise.
71373         * m4/nls.m4: Likewise.
71374         * m4/nocrash.m4: Likewise.
71375         * m4/open.m4: Likewise.
71376         * m4/openat.m4: Likewise.
71377         * m4/openmp.m4: Likewise.
71378         * m4/pathmax.m4: Likewise.
71379         * m4/perl.m4: Likewise.
71380         * m4/physmem.m4: Likewise.
71381         * m4/pipe.m4: Likewise.
71382         * m4/po.m4: Likewise.
71383         * m4/poll.m4: Likewise.
71384         * m4/posixtm.m4: Likewise.
71385         * m4/posixver.m4: Likewise.
71386         * m4/printf-frexp.m4: Likewise.
71387         * m4/printf-frexpl.m4: Likewise.
71388         * m4/printf-posix.m4: Likewise.
71389         * m4/printf-posix-rpl.m4: Likewise.
71390         * m4/printf.m4: Likewise.
71391         * m4/progtest.m4: Likewise.
71392         * m4/putenv.m4: Likewise.
71393         * m4/readline.m4: Likewise.
71394         * m4/readlink.m4: Likewise.
71395         * m4/readutmp.m4: Likewise.
71396         * m4/realloc.m4: Likewise.
71397         * m4/regex.m4: Likewise.
71398         * m4/relocatable.m4: Likewise.
71399         * m4/relocatable-lib.m4: Likewise.
71400         * m4/rename-dest-slash.m4: Likewise.
71401         * m4/rename.m4: Likewise.
71402         * m4/rmdir-errno.m4: Likewise.
71403         * m4/rmdir.m4: Likewise.
71404         * m4/roundf.m4: Likewise.
71405         * m4/roundl.m4: Likewise.
71406         * m4/rpmatch.m4: Likewise.
71407         * m4/save-cwd.m4: Likewise.
71408         * m4/selinux-selinux-h.m4: Likewise.
71409         * m4/setenv.m4: Likewise.
71410         * m4/settime.m4: Likewise.
71411         * m4/sig2str.m4: Likewise.
71412         * m4/sig_atomic_t.m4: Likewise.
71413         * m4/signalblocking.m4: Likewise.
71414         * m4/signbit.m4: Likewise.
71415         * m4/sigpipe.m4: Likewise.
71416         * m4/sockets.m4: Likewise.
71417         * m4/sockpfaf.m4: Likewise.
71418         * m4/st_dm_mode.m4: Likewise.
71419         * m4/stat-time.m4: Likewise.
71420         * m4/stdbool.m4: Likewise.
71421         * m4/stdint.m4: Likewise.
71422         * m4/stdint_h.m4: Likewise.
71423         * m4/stpcpy.m4: Likewise.
71424         * m4/stpncpy.m4: Likewise.
71425         * m4/strcase.m4: Likewise.
71426         * m4/strchrnul.m4: Likewise.
71427         * m4/strcspn.m4: Likewise.
71428         * m4/strdup.m4: Likewise.
71429         * m4/strftime.m4: Likewise.
71430         * m4/strndup.m4: Likewise.
71431         * m4/strnlen.m4: Likewise.
71432         * m4/strpbrk.m4: Likewise.
71433         * m4/strptime.m4: Likewise.
71434         * m4/strsep.m4: Likewise.
71435         * m4/strtod.m4: Likewise.
71436         * m4/strtoimax.m4: Likewise.
71437         * m4/strtok_r.m4: Likewise.
71438         * m4/strtol.m4: Likewise.
71439         * m4/strtoll.m4: Likewise.
71440         * m4/strtoul.m4: Likewise.
71441         * m4/strtoull.m4: Likewise.
71442         * m4/strtoumax.m4: Likewise.
71443         * m4/strverscmp.m4: Likewise.
71444         * m4/threadlib.m4: Likewise.
71445         * m4/timegm.m4: Likewise.
71446         * m4/tm_gmtoff.m4: Likewise.
71447         * m4/tmpdir.m4: Likewise.
71448         * m4/tmpfile.m4: Likewise.
71449         * m4/tzset.m4: Likewise.
71450         * m4/uintmax_t.m4: Likewise.
71451         * m4/unlinkdir.m4: Likewise.
71452         * m4/unlocked-io.m4: Likewise.
71453         * m4/uptime.m4: Likewise.
71454         * m4/userspec.m4: Likewise.
71455         * m4/utimbuf.m4: Likewise.
71456         * m4/utime.m4: Likewise.
71457         * m4/utimes-null.m4: Likewise.
71458         * m4/utimes.m4: Likewise.
71459         * m4/vararrays.m4: Likewise.
71460         * m4/vasnprintf.m4: Likewise.
71461         * m4/vfprintf-posix.m4: Likewise.
71462         * m4/vprintf-posix.m4: Likewise.
71463         * m4/wait-process.m4: Likewise.
71464         * m4/wchar_t.m4: Likewise.
71465         * m4/wint_t.m4: Likewise.
71466         * m4/write-any-file.m4: Likewise.
71467         * m4/yield.m4: Likewise.
71469 2009-01-13  Bruno Haible  <bruno@clisp.org>
71471         Avoid test-copy-file.sh failures when ACL support insufficient.
71472         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71473         TESTS_ENVIRONMENT.
71474         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71475         Reported by Jim Meyering.
71477 2009-01-13  Bruno Haible  <bruno@clisp.org>
71479         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71480         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71481         * modules/unistdio/u8-printf-parse (Files): Likewise.
71482         * modules/unistdio/u32-printf-parse (Files): Likewise.
71483         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71485 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71487         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71488         and m4/inttypes_h.m4 too.
71490 2009-01-12  Eric Blake  <ebb9@byu.net>
71492         tests: IRIX 6.2 cc can't compile -0.0 into .data
71493         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71494         rather than at compile-time.
71495         * tests/test-floorl.c (minus_zero): Likewise.
71496         * tests/test-frexpl.c (minus_zero): Likewise.
71497         * tests/test-isnan.c (minus_zerol): Likewise.
71498         * tests/test-isnanl.h (minus_zero): Likewise.
71499         * tests/test-ldexpl.c (minus_zero): Likewise.
71500         * tests/test-roundl.c (minus_zero): Likewise.
71501         * tests/test-signbit.c (minus_zerol): Likewise.
71502         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71503         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71504         * tests/test-truncl.c (minus_zero): Likewise.
71505         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71506         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71507         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71509 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71511         regex: fix glibc bug 9697
71512         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71513         handling.
71515 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71517         regex: fix glibc bug 697
71518         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71519         being NULL also if there are no backreferences.
71521 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71523         regex: merge glibc changes
71524         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71525         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71526         re_string_skip_chars, re_string_reconstruct): Likewise.
71527         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71529 2009-01-07  Jim Meyering  <meyering@redhat.com>
71531         poll: filter through cppi
71532         * lib/poll.c: Indent cpp directives to reflect nesting.
71534 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71536         poll: don't return uninitialized
71537         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71539 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71541         avoid compile failure on AIX 6.1
71542         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71543         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
71545 2009-01-04  Jim Meyering  <meyering@redhat.com>
71547         remove duplicate inclusion of <stdio.h>
71548         * tests/test-fprintf-posix.c: Likewise.
71549         * tests/test-printf-posix.c: Likewise.
71550         * tests/test-snprintf-posix.c: Likewise.
71551         * tests/test-sprintf-posix.c: Likewise.
71552         * tests/test-vasprintf-posix.c: Likewise.
71553         * tests/test-vfprintf-posix.c: Likewise.
71554         * tests/test-vprintf-posix.c: Likewise.
71555         * tests/test-vsnprintf-posix.c: Likewise.
71556         * tests/test-vsprintf-posix.c: Likewise.
71558 2009-01-03  Jim Meyering  <meyering@redhat.com>
71560         gnulib-tool: fix sed-based filtering
71561         * gnulib-tool (func_filter_filelist): Remove extra backslash
71562         in sed_fff_filter definition.
71564 2009-01-02  Jim Meyering  <meyering@redhat.com>
71566         strftime: avoid compilation failure on Solaris 2.6
71567         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
71568         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
71569         Don't #define mbrlen or mbsinit, since now they're guaranteed to
71570         be available.  Reported by Tom G. Christensen.  Details in
71571         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
71573 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71574             Bruno Haible  <bruno@clisp.org>
71576         Speed up gnulib-tool by doing more string processing through shell
71577         built-ins.
71578         * gnulib-tool (fast_func_append): New variable.
71579         (func_remove_prefix, func_remove_suffix): New functions.
71580         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
71581         (func_filter_filelist): New function.
71582         (func_get_dependencies): Use func_remove_suffix instead of sed.
71583         (func_get_automake_snippet): Use func_filter_filelist instead of a
71584         subshell and sed invocation.
71586 2009-01-01  Bruno Haible  <bruno@clisp.org>
71588         Fix a security bug.
71589         * gnulib-tool (func_import, import, update): Don't allow the characters
71590         '"', '$', '`', '\' in macro arguments that become part of commands that
71591         are evaluated.
71593 2009-01-01  Bruno Haible  <bruno@clisp.org>
71595         * gnulib-tool (func_reset_sigpipe): Add more comments.
71597 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71599         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
71600         func_emit_tests_Makefile_am, func_import): Abort loops early if we
71601         already know the answer.
71603 2009-01-01  Jim Meyering  <meyering@redhat.com>
71605         * lib/version-etc.c (version_etc_va): Update copyright year.
71607 2008-12-30  Bruno Haible  <bruno@clisp.org>
71609         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
71610         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
71611         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
71613 2008-12-29  Eric Blake  <ebb9@byu.net>
71615         multiarch: avoid autoconf AC_REQUIRE bug
71616         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
71617         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
71618         2.63 and older.
71619         Reported by Bruno Haible, and analyzed in
71620         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
71622 2008-12-29  Bruno Haible  <bruno@clisp.org>
71624         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
71625         files in subdirectories correctly.
71626         Reported by Ralf Wildenhues.
71628 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71630         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
71631         rather than 'join FILE -', for Solaris join.
71633 2008-12-29  Bruno Haible  <bruno@clisp.org>
71635         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
71636         quoting.
71637         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71638         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
71639         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
71640         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
71641         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
71642         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
71643         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
71644         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
71645         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71646         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
71647         * m4/nls.m4 (AM_NLS): Likewise.
71648         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
71649         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
71650         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71651         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
71652         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
71653         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
71654         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
71655         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
71656         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
71657         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71658         * m4/xsize.m4 (gl_XSIZE): Likewise.
71659         Suggested by Jim Meyering.
71661 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71663         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
71664         * lib/parse-duration.c: use a switch instead of cascading if's.
71666 2008-12-29  Eric Blake  <ebb9@byu.net>
71668         wchar.h: supply WEOF on Irix 5.3
71669         * lib/wchar.in.h (wint_t): Also supply WEOF.
71670         * lib/wctype.in.h (wint_t): Likewise.
71671         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
71672         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
71673         Reported by Tom G. Christensen.
71675 2008-12-26  Bruno Haible  <bruno@clisp.org>
71677         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
71678         i486, i586, i686.
71680 2008-12-26  Bruno Haible  <bruno@clisp.org>
71682         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
71684 2008-12-26  Bruno Haible  <bruno@clisp.org>
71686         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
71687         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
71688         not __STDC_CONSTANT_MACROS.
71689         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71691 2008-12-25  Bruno Haible  <bruno@clisp.org>
71693         Add support for universal builds to vasnprintf.
71694         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
71695         universal builds, guess no.
71696         * modules/vasnprintf-posix (Depends-on): Add multiarch.
71697         * modules/vasprintf-posix (Depends-on): Likewise.
71698         * modules/fprintf-posix (Depends-on): Likewise.
71699         * modules/vfprintf-posix (Depends-on): Likewise.
71700         * modules/snprintf-posix (Depends-on): Likewise.
71701         * modules/vsnprintf-posix (Depends-on): Likewise.
71702         * modules/sprintf-posix (Depends-on): Likewise.
71703         * modules/vsprintf-posix (Depends-on): Likewise.
71704         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71705         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71706         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71707         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71708         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71709         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71710         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71712         Add support for universal builds to <inttypes.h>.
71713         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
71714         _SCNu64_PREFIX): In Apple
71715         universal builds, define directly, using _LP64.
71716         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
71717         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
71718         * modules/inttypes (Depends-on): Add multiarch.
71719         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71721         Add support for universal builds to <stdint.h>.
71722         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
71723         universal builds, define directly, using _LP64.
71724         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
71725         Apple universal builds, don't test for the size and suffix of ptrdiff_t
71726         and size_t.
71727         * modules/stdint (Depends-on): Add multiarch.
71728         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71730         New module 'multiarch'.
71731         * modules/multiarch: New file.
71732         * m4/multiarch.m4: New file.
71734 2008-12-25  Bruno Haible  <bruno@clisp.org>
71736         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
71738 2008-12-25  Bruno Haible  <bruno@clisp.org>
71740         * modules/btowc (License): Relicense under LGPLv2+.
71741         * modules/mbsinit (License): Likewise.
71742         * modules/mbrtowc (License): Likewise.
71743         * modules/wcrtomb (License): Likewise.
71744         * modules/streq (License): Likewise.
71745         Reported by David Lutterkort <lutter@redhat.com>.
71747 2008-12-23  Bruno Haible  <bruno@clisp.org>
71749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
71751 2008-12-23  Bruno Haible  <bruno@clisp.org>
71753         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
71754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
71755         GETADDRINFO_LIB, not in LIBS.
71756         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
71757         * modules/canon-host (Link): Likewise.
71758         * NEWS: Mention the change.
71759         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
71760         GETADDRINFO_LIB.
71762 2008-12-22  Bruno Haible  <bruno@clisp.org>
71764         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
71765         * doc/posix-functions/iswalpha_l.texi: Likewise.
71766         * doc/posix-functions/iswblank_l.texi: Likewise.
71767         * doc/posix-functions/iswcntrl_l.texi: Likewise.
71768         * doc/posix-functions/iswctype_l.texi: Likewise.
71769         * doc/posix-functions/iswdigit_l.texi: Likewise.
71770         * doc/posix-functions/iswgraph_l.texi: Likewise.
71771         * doc/posix-functions/iswlower_l.texi: Likewise.
71772         * doc/posix-functions/iswprint_l.texi: Likewise.
71773         * doc/posix-functions/iswpunct_l.texi: Likewise.
71774         * doc/posix-functions/iswspace_l.texi: Likewise.
71775         * doc/posix-functions/iswupper_l.texi: Likewise.
71776         * doc/posix-functions/iswxdigit_l.texi: Likewise.
71777         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
71778         * doc/posix-functions/open_wmemstream.texi: Likewise.
71779         * doc/posix-functions/swscanf.texi: Likewise.
71780         * doc/posix-functions/towctrans_l.texi: Likewise.
71781         * doc/posix-functions/towlower.texi: Likewise.
71782         * doc/posix-functions/towlower_l.texi: Likewise.
71783         * doc/posix-functions/towupper.texi: Likewise.
71784         * doc/posix-functions/towupper_l.texi: Likewise.
71785         * doc/posix-functions/vfwprintf.texi: Likewise.
71786         * doc/posix-functions/vfwscanf.texi: Likewise.
71787         * doc/posix-functions/vswscanf.texi: Likewise.
71788         * doc/posix-functions/vwprintf.texi: Likewise.
71789         * doc/posix-functions/vwscanf.texi: Likewise.
71790         * doc/posix-functions/wcpcpy.texi: Likewise.
71791         * doc/posix-functions/wcpncpy.texi: Likewise.
71792         * doc/posix-functions/wcscasecmp.texi: Likewise.
71793         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
71794         * doc/posix-functions/wcscoll_l.texi: Likewise.
71795         * doc/posix-functions/wcsdup.texi: Likewise.
71796         * doc/posix-functions/wcsncasecmp.texi: Likewise.
71797         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
71798         * doc/posix-functions/wcsnlen.texi: Likewise.
71799         * doc/posix-functions/wcsnrtombs.texi: Likewise.
71800         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
71801         * doc/posix-functions/wctrans_l.texi: Likewise.
71802         * doc/posix-functions/wctype_l.texi: Likewise.
71803         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
71804         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
71805         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
71806         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
71807         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
71808         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
71809         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
71810         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
71811         * doc/glibc-functions/wcschrnul.texi: Likewise.
71812         * doc/glibc-functions/wcsftime_l.texi: Likewise.
71813         * doc/glibc-functions/wcstod_l.texi: Likewise.
71814         * doc/glibc-functions/wcstof_l.texi: Likewise.
71815         * doc/glibc-functions/wcstol_l.texi: Likewise.
71816         * doc/glibc-functions/wcstold_l.texi: Likewise.
71817         * doc/glibc-functions/wcstoll_l.texi: Likewise.
71818         * doc/glibc-functions/wcstoq.texi: Likewise.
71819         * doc/glibc-functions/wcstoul_l.texi: Likewise.
71820         * doc/glibc-functions/wcstoull_l.texi: Likewise.
71821         * doc/glibc-functions/wcstouq.texi: Likewise.
71822         * doc/glibc-functions/wmempcpy.texi: Likewise.
71824 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
71825             Eric Blake  <ebb9@byu.net>
71826             Paolo Bonzini  <bonzini@gnu.org>
71827             Bruno Haible  <bruno@clisp.org>
71829         Make c-stack work on Haiku.
71830         * lib/c-stack.c (SA_ONSTACK): Define fallback.
71831         (c_stack_action): Use SA_ONSTACK flag.
71833 2008-12-22  Bruno Haible  <bruno@clisp.org>
71835         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
71837 2008-12-22  Bruno Haible  <bruno@clisp.org>
71839         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
71840         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
71841         being overridden.
71842         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
71843         New macros.
71844         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
71845         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
71846         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
71847         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
71849 2008-12-22  Bruno Haible  <bruno@clisp.org>
71851         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
71852         from test code.
71854 2008-12-22  Eric Blake  <ebb9@byu.net>
71856         Avoid gcc warnings on cygwin.
71857         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
71858         Avoid unused variable.
71859         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
71860         Likewise.
71862 2008-12-22  Bruno Haible  <bruno@clisp.org>
71864         Remove HAVE_MBRTOWC conditionals.
71865         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
71866         (mbscasecmp): Assume mbrtowc function.
71867         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
71868         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
71869         * lib/mbschr.c: Include mbuiter.h unconditionally.
71870         (mbschr): Assume mbrtowc function.
71871         * lib/mbscspn.c: Include mbuiter.h unconditionally.
71872         (mbscspn): Assume mbrtowc function.
71873         * lib/mbslen.c: Include mbuiter.h unconditionally.
71874         (mbslen): Assume mbrtowc function.
71875         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
71876         (mbsncasecmp): Assume mbrtowc function.
71877         * lib/mbsnlen.c: Include mbiter.h unconditionally.
71878         (mbsnlen): Assume mbrtowc function.
71879         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
71880         (mbspbrk): Assume mbrtowc function.
71881         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
71882         (mbspcasecmp): Assume mbrtowc function.
71883         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
71884         (mbsrchr): Assume mbrtowc function.
71885         * lib/mbssep.c: Include mbuiter.h unconditionally.
71886         (mbssep): Assume mbrtowc function.
71887         * lib/mbsspn.c: Include mbuiter.h unconditionally.
71888         (mbsspn): Assume mbrtowc function.
71889         * lib/mbsstr.c: Include mbuiter.h unconditionally.
71890         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
71891         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
71892         (mbstok_r): Assume mbrtowc function.
71893         * lib/propername.c: Include mbuiter.h unconditionally.
71894         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
71895         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
71896         (trim2): Assume mbrtowc function.
71897         * lib/mbswidth.c (mbsinit): Remove fallback definition.
71898         (mbsnwidth): Assume mbrtowc function.
71899         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
71900         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
71901         fallback definitions.
71902         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
71904 2008-12-22  Bruno Haible  <bruno@clisp.org>
71906         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
71908 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
71910         * modules/regex: Request emulations for the mb*/wc* functions we need.
71911         * m4/regex.m4: Don't look for those functions here.
71912         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
71914 2008-12-22  Bruno Haible  <bruno@clisp.org>
71916         * modules/fnmatch (Depends-on): Remove duplicated dependency.
71918 2008-12-21  Bruno Haible  <bruno@clisp.org>
71920         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
71921         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
71922         (Include): Remove conditionalization.
71923         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
71924         (Include): Remove conditionalization.
71925         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
71926         (Include): Remove conditionalization.
71927         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
71928         * m4/mbfile.m4 (gl_MBFILE): Likewise.
71929         * NEWS: Mention the change.
71930         Reported by Alan Hourihane <alanh@fairlite.co.uk>
71931         via Sergey Poznyakoff <gray@gnu.org.ua>.
71933 2008-12-21  Bruno Haible  <bruno@clisp.org>
71935         * MODULES.html.sh (Extended multibyte and wide character utilities
71936         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
71937         wcrtomb, wcsrtombs.
71938         (Support for systems lacking POSIX:2008): Add accept, bind, close,
71939         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
71940         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
71941         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
71943 2008-12-21  Bruno Haible  <bruno@clisp.org>
71945         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
71947 2008-12-21  Bruno Haible  <bruno@clisp.org>
71949         * modules/wcsnrtombs-tests: New file.
71950         * tests/test-wcsnrtombs1.sh: New file.
71951         * tests/test-wcsnrtombs2.sh: New file.
71952         * tests/test-wcsnrtombs3.sh: New file.
71953         * tests/test-wcsnrtombs4.sh: New file.
71954         * tests/test-wcsnrtombs.c: New file.
71956         New module 'wcsnrtombs'.
71957         * lib/wchar.in.h (wcsnrtombs): New declaration.
71958         * lib/wcsnrtombs.c: New file.
71959         * lib/wcsrtombs-state.c: New file.
71960         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
71961         (internal_state): Remove variable.
71962         * m4/wcsnrtombs.m4: New file.
71963         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
71964         compilation units.
71965         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
71966         HAVE_WCSNRTOMBS.
71967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
71968         HAVE_WCSNRTOMBS.
71969         * modules/wcsnrtombs: New file.
71970         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
71971         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
71973 2008-12-21  Bruno Haible  <bruno@clisp.org>
71975         * modules/wcsrtombs-tests: New file.
71976         * tests/test-wcsrtombs1.sh: New file.
71977         * tests/test-wcsrtombs2.sh: New file.
71978         * tests/test-wcsrtombs3.sh: New file.
71979         * tests/test-wcsrtombs4.sh: New file.
71980         * tests/test-wcsrtombs.c: New file.
71982         New module 'wcsrtombs'.
71983         * lib/wchar.in.h (wcsrtombs): New declaration.
71984         * lib/wcsrtombs.c: New file.
71985         * m4/wcsrtombs.m4: New file.
71986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
71987         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
71988         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
71989         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
71990         * modules/wcsrtombs: New file.
71991         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
71992         bugs.
71994 2008-12-21  Bruno Haible  <bruno@clisp.org>
71996         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
71997         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
71998         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
71999         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
72000         if not correct.
72001         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
72002         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
72003         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72004         m4/locale-zh.m4, m4/codeset.m4.
72005         * doc/posix-functions/wcrtomb.texi: Document the bug.
72007 2008-12-21  Bruno Haible  <bruno@clisp.org>
72009         Work around a btowc() bug on IRIX 6.5.
72010         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
72011         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
72012         REPLACE_WTOBC if not.
72013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
72014         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
72015         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
72017 2008-12-21  Bruno Haible  <bruno@clisp.org>
72019         * modules/wcrtomb-tests: New file.
72020         * tests/test-wcrtomb.sh: New file.
72021         * tests/test-wcrtomb.c: New file.
72023         New module 'wcrtomb'.
72024         * lib/wchar.in.h (wcrtomb): New declaration.
72025         * lib/wcrtomb.c: New file.
72026         * m4/wcrtomb.m4: New file.
72027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
72028         HAVE_WCRTOMB.
72029         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
72030         HAVE_WCRTOMB.
72031         * modules/wcrtomb: New file.
72032         * doc/posix-functions/wcrtomb.texi: Mention the new module.
72034 2008-12-21  Bruno Haible  <bruno@clisp.org>
72036         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
72037         * modules/mbsrtowcs (Files): Likewise.
72038         * modules/wctob (Files): Likewise.
72039         * modules/c-strcase-tests (Files): Likewise.
72040         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72041         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72042         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72043         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72044         * modules/vasnprintf-posix-tests (Files): Likewise.
72046 2008-12-21  William Pursell  <bill.pursell@gmail.com>
72048         gitlog-to-changelog: pass all command-line arguments to git-log
72049         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
72050         it is sometimes convenient to filter the commits in various ways.
72051         gitlog-to-changelog only allows --since to specify a start date,
72052         but git-log itself supports many other filtering mechanisms.
72053         At the moment, I want to filter by branch name.  Rather than
72054         adding a --branch option to gitlog-to-changelog, it seems more
72055         flexible to simply pass all options directly to git-log and let
72056         git do the work.  Notice that this effectively makes --since a
72057         redundant option for gitlog-to-changelog, but removing it would
72058         require current usage to change since calls would then require
72059         an additional '--'.
72061 2008-12-21  Bruno Haible  <bruno@clisp.org>
72063         * modules/mbsnrtowcs-tests: New file.
72064         * tests/test-mbsnrtowcs1.sh: New file.
72065         * tests/test-mbsnrtowcs2.sh: New file.
72066         * tests/test-mbsnrtowcs3.sh: New file.
72067         * tests/test-mbsnrtowcs4.sh: New file.
72068         * tests/test-mbsnrtowcs.c: New file.
72070         New module 'mbsnrtowcs'.
72071         * lib/wchar.in.h (mbsnrtowcs): New declaration.
72072         * lib/mbsnrtowcs.c: New file.
72073         * lib/mbsrtowcs-state.c: New file.
72074         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
72075         (internal_state): Remove variable.
72076         * m4/mbsnrtowcs.m4: New file.
72077         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
72078         compilation units.
72079         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
72080         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72081         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
72082         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72083         * modules/mbsnrtowcs: New file.
72084         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
72085         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
72086         portability problem.
72088 2008-12-21  Bruno Haible  <bruno@clisp.org>
72090         Work around mbsrtowcs bug.
72091         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
72092         (gl_FUNC_MBSRTOWCS): Invoke it.
72093         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72094         m4/locale-zh.m4.
72095         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
72097 2008-12-21  Bruno Haible  <bruno@clisp.org>
72099         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
72101 2008-12-21  Bruno Haible  <bruno@clisp.org>
72103         Update doc for AIX.
72104         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
72105         16-bit wchar_t type.
72106         * doc/posix-functions/btowc.texi: Likewise.
72107         * doc/posix-functions/fgetwc.texi: Likewise.
72108         * doc/posix-functions/fgetws.texi: Likewise.
72109         * doc/posix-functions/fputwc.texi: Likewise.
72110         * doc/posix-functions/fputws.texi: Likewise.
72111         * doc/posix-functions/fwide.texi: Likewise.
72112         * doc/posix-functions/fwprintf.texi: Likewise.
72113         * doc/posix-functions/fwscanf.texi: Likewise.
72114         * doc/posix-functions/getwchar.texi: Likewise.
72115         * doc/posix-functions/getwc.texi: Likewise.
72116         * doc/posix-functions/iswalnum.texi: Likewise.
72117         * doc/posix-functions/iswalpha.texi: Likewise.
72118         * doc/posix-functions/iswblank.texi: Likewise.
72119         * doc/posix-functions/iswcntrl.texi: Likewise.
72120         * doc/posix-functions/iswctype.texi: Likewise.
72121         * doc/posix-functions/iswdigit.texi: Likewise.
72122         * doc/posix-functions/iswgraph.texi: Likewise.
72123         * doc/posix-functions/iswlower.texi: Likewise.
72124         * doc/posix-functions/iswprint.texi: Likewise.
72125         * doc/posix-functions/iswpunct.texi: Likewise.
72126         * doc/posix-functions/iswspace.texi: Likewise.
72127         * doc/posix-functions/iswupper.texi: Likewise.
72128         * doc/posix-functions/iswxdigit.texi: Likewise.
72129         * doc/posix-functions/mbrtowc.texi: Likewise.
72130         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72131         * doc/posix-functions/mbstowcs.texi: Likewise.
72132         * doc/posix-functions/mbtowc.texi: Likewise.
72133         * doc/posix-functions/putwchar.texi: Likewise.
72134         * doc/posix-functions/putwc.texi: Likewise.
72135         * doc/posix-functions/swprintf.texi: Likewise.
72136         * doc/posix-functions/tolower.texi: Likewise.
72137         * doc/posix-functions/toupper.texi: Likewise.
72138         * doc/posix-functions/towctrans.texi: Likewise.
72139         * doc/posix-functions/ungetwc.texi: Likewise.
72140         * doc/posix-functions/vswprintf.texi: Likewise.
72141         * doc/posix-functions/wcrtomb.texi: Likewise.
72142         * doc/posix-functions/wcscat.texi: Likewise.
72143         * doc/posix-functions/wcschr.texi: Likewise.
72144         * doc/posix-functions/wcscmp.texi: Likewise.
72145         * doc/posix-functions/wcscoll.texi: Likewise.
72146         * doc/posix-functions/wcscpy.texi: Likewise.
72147         * doc/posix-functions/wcscspn.texi: Likewise.
72148         * doc/posix-functions/wcsftime.texi: Likewise.
72149         * doc/posix-functions/wcslen.texi: Likewise.
72150         * doc/posix-functions/wcsncat.texi: Likewise.
72151         * doc/posix-functions/wcsncmp.texi: Likewise.
72152         * doc/posix-functions/wcsncpy.texi: Likewise.
72153         * doc/posix-functions/wcspbrk.texi: Likewise.
72154         * doc/posix-functions/wcsrchr.texi: Likewise.
72155         * doc/posix-functions/wcsrtombs.texi: Likewise.
72156         * doc/posix-functions/wcsspn.texi: Likewise.
72157         * doc/posix-functions/wcsstr.texi: Likewise.
72158         * doc/posix-functions/wcstod.texi: Likewise.
72159         * doc/posix-functions/wcstof.texi: Likewise.
72160         * doc/posix-functions/wcstoimax.texi: Likewise.
72161         * doc/posix-functions/wcstok.texi: Likewise.
72162         * doc/posix-functions/wcstold.texi: Likewise.
72163         * doc/posix-functions/wcstoll.texi: Likewise.
72164         * doc/posix-functions/wcstol.texi: Likewise.
72165         * doc/posix-functions/wcstombs.texi: Likewise.
72166         * doc/posix-functions/wcstoull.texi: Likewise.
72167         * doc/posix-functions/wcstoul.texi: Likewise.
72168         * doc/posix-functions/wcstoumax.texi: Likewise.
72169         * doc/posix-functions/wcswidth.texi: Likewise.
72170         * doc/posix-functions/wcsxfrm.texi: Likewise.
72171         * doc/posix-functions/wctob.texi: Likewise.
72172         * doc/posix-functions/wctomb.texi: Likewise.
72173         * doc/posix-functions/wctrans.texi: Likewise.
72174         * doc/posix-functions/wctype.texi: Likewise.
72175         * doc/posix-functions/wcwidth.texi: Likewise.
72176         * doc/posix-functions/wmemchr.texi: Likewise.
72177         * doc/posix-functions/wmemcmp.texi: Likewise.
72178         * doc/posix-functions/wmemcpy.texi: Likewise.
72179         * doc/posix-functions/wmemmove.texi: Likewise.
72180         * doc/posix-functions/wmemset.texi: Likewise.
72181         * doc/posix-functions/wprintf.texi: Likewise.
72182         * doc/posix-functions/wscanf.texi: Likewise.
72184 2008-12-21  Bruno Haible  <bruno@clisp.org>
72186         Update doc for HP-UX 11.11.
72187         * doc/posix-functions/btowc.texi: Clarify that the function is missing
72188         in HP-UX version 11.00, not in all versions of HP-UX 11.
72189         * doc/posix-functions/fwide.texi: Likewise.
72190         * doc/posix-functions/fwprintf.texi: Likewise.
72191         * doc/posix-functions/fwscanf.texi: Likewise.
72192         * doc/posix-functions/inet_ntop.texi: Likewise.
72193         * doc/posix-functions/inet_pton.texi: Likewise.
72194         * doc/posix-functions/mbrlen.texi: Likewise.
72195         * doc/posix-functions/mbrtowc.texi: Likewise.
72196         * doc/posix-functions/mbsinit.texi: Likewise.
72197         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72198         * doc/posix-functions/swprintf.texi: Likewise.
72199         * doc/posix-functions/swscanf.texi: Likewise.
72200         * doc/posix-functions/towctrans.texi: Likewise.
72201         * doc/posix-functions/vfwprintf.texi: Likewise.
72202         * doc/posix-functions/vswprintf.texi: Likewise.
72203         * doc/posix-functions/vwprintf.texi: Likewise.
72204         * doc/posix-functions/wcrtomb.texi: Likewise.
72205         * doc/posix-functions/wcsrtombs.texi: Likewise.
72206         * doc/posix-functions/wcsstr.texi: Likewise.
72207         * doc/posix-functions/wctob.texi: Likewise.
72208         * doc/posix-functions/wctrans.texi: Likewise.
72209         * doc/posix-functions/wmemchr.texi: Likewise.
72210         * doc/posix-functions/wmemcmp.texi: Likewise.
72211         * doc/posix-functions/wmemcpy.texi: Likewise.
72212         * doc/posix-functions/wmemmove.texi: Likewise.
72213         * doc/posix-functions/wmemset.texi: Likewise.
72214         * doc/posix-functions/wprintf.texi: Likewise.
72215         * doc/posix-functions/wscanf.texi: Likewise.
72217 2008-12-21  Bruno Haible  <bruno@clisp.org>
72219         Work around a portability problem.
72220         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
72221         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
72223 2008-12-20  Bruno Haible  <bruno@clisp.org>
72225         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
72226         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
72227         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
72228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
72229         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
72231         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
72232         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
72233         set.
72234         (GNULIB_defined_mbstate_t): New macro.
72235         (mbsinit): Redefine if REPLACE_MBSINIT is set.
72236         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
72237         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
72238         reuses the system's mbrtowc function but works around the bugs.
72239         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
72240         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
72241         macros.
72242         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
72243         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
72244         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
72245         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
72246         REPLACE_MBSINIT if mbsinit needs to be overridden.
72247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
72248         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72249         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
72250         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72251         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72252         m4/locale-zh.m4.
72253         (Depends): Add mbsinit.
72254         * modules/mbsinit (Depends): Add mbrtowc.
72255         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
72257 2008-12-20  Bruno Haible  <bruno@clisp.org>
72259         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
72260         so that there are no conversion errors on AIX.
72261         * tests/test-mbsrtowcs.c (main): LIkewise.
72263 2008-12-20  Bruno Haible  <bruno@clisp.org>
72265         Work around wctob bug on Solaris <= 9.
72266         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
72267         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
72268         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
72269         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
72270         * modules/wctob (Files): Add m4/locale-fr.m4.
72271         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
72273 2008-12-20  Bruno Haible  <bruno@clisp.org>
72275         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
72276         /dev/null.
72277         * tests/test-select-in.sh: Likewise.
72278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72280 2008-12-20  Bruno Haible  <bruno@clisp.org>
72282         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
72283         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
72284         Cygwin 1.5.x.
72286 2008-12-20  Bruno Haible  <bruno@clisp.org>
72288         Ensure mbstate_t is defined on HP-UX 11.11.
72289         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
72290         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
72291         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
72292         AC_USE_SYSTEM_EXTENSIONS.
72293         * modules/fnmatch (Depends-on): Add extensions.
72294         * modules/mbrlen (Depends-on): Likewise.
72295         * modules/mbrtowc (Depends-on): Likewise.
72296         * modules/mbsinit (Depends-on): Likewise.
72297         * modules/mbsrtowcs (Depends-on): Likewise.
72298         * modules/mbswidth (Depends-on): Likewise.
72299         * modules/quotearg (Depends-on): Likewise.
72300         * modules/strftime (Depends-on): Likewise.
72302 2008-12-20  Bruno Haible  <bruno@clisp.org>
72304         Ensure wctob is declared on IRIX 6.5.
72305         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72306         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72307         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72309         of HAVE_WCTOB.
72310         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72311         HAVE_WCTOB.
72312         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72314 2008-12-19  Bruno Haible  <bruno@clisp.org>
72316         * modules/mbsrtowcs-tests: New file.
72317         * tests/test-mbsrtowcs1.sh: New file.
72318         * tests/test-mbsrtowcs2.sh: New file.
72319         * tests/test-mbsrtowcs3.sh: New file.
72320         * tests/test-mbsrtowcs4.sh: New file.
72321         * tests/test-mbsrtowcs.c: New file.
72323         New module 'mbsrtowcs'.
72324         * lib/wchar.in.h (mbsrtowcs): New declaration.
72325         * lib/mbsrtowcs.c: New file.
72326         * m4/mbsrtowcs.m4: New file.
72327         * modules/mbsrtowcs: New file.
72328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72329         HAVE_MBSRTOWCS.
72330         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72331         HAVE_MBSRTOWCS.
72332         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72334 2008-12-19  Bruno Haible  <bruno@clisp.org>
72336         New module 'mbrlen'.
72337         * lib/wchar.in.h (mbrlen): New declaration.
72338         * lib/mbrlen.c: New file.
72339         * m4/mbrlen.m4: New file.
72340         * modules/mbrlen: New file.
72341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72342         HAVE_MBRLEN.
72343         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72344         HAVE_MBRLEN.
72345         * doc/posix-functions/mbrlen.texi: Document the new module.
72347 2008-12-19  Bruno Haible  <bruno@clisp.org>
72349         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72350         * modules/mbrtowc (Depends-on): Add verify.
72351         Suggested by Paul Eggert.
72353 2008-12-18  Bruno Haible  <bruno@clisp.org>
72355         * modules/mbsinit-tests: New file.
72356         * tests/test-mbsinit.sh: New file.
72357         * tests/test-mbsinit.c: New file.
72359 2008-12-18  Bruno Haible  <bruno@clisp.org>
72361         * modules/mbrtowc-tests: New file.
72362         * tests/test-mbrtowc1.sh: New file.
72363         * tests/test-mbrtowc2.sh: New file.
72364         * tests/test-mbrtowc3.sh: New file.
72365         * tests/test-mbrtowc4.sh: New file.
72366         * tests/test-mbrtowc.c: New file.
72368         New module 'mbrtowc'.
72369         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72370         mbsinit and mbrtowc.
72371         (mbrtowc): New declaration.
72372         * lib/mbrtowc.c: New file.
72373         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72374         * modules/mbrtowc: New file.
72375         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72376         HAVE_MBRTOWC.
72377         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72378         HAVE_MBRTOWC.
72379         * doc/posix-functions/mbrtowc.texi: Document the new module.
72381 2008-12-18  Bruno Haible  <bruno@clisp.org>
72383         New module 'wctob'.
72384         * lib/wchar.in.h (wctob): New declaration.
72385         * lib/wctob.c: New file.
72386         * m4/wctob.m4: New file.
72387         * modules/wctob: New file.
72388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72389         HAVE_WCTOB.
72390         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72391         * doc/posix-functions/wctob.texi: Document the new module.
72393 2008-12-18  Bruno Haible  <bruno@clisp.org>
72395         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72396         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72398 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72400         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72401         G. Christensen" <tgc@jupiterrise.com>.
72403         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72404         G. Christensen" <tgc@jupiterrise.com>.
72406         * lib/flock.c: Need to include string.h.  Reported by "Tom
72407         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72408         <ebb9@byu.net>.
72410 2008-12-18  Bruno Haible  <bruno@clisp.org>
72412         * m4/locale-ja.m4: New file, from GNU gettext.
72414 2008-12-17  Bruno Haible  <bruno@clisp.org>
72416         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72417         Suggested by Eric Blake.
72419 2008-12-17  Bruno Haible  <bruno@clisp.org>
72421         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72423 2008-12-17  Bruno Haible  <bruno@clisp.org>
72425         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72426         * modules/mbsinit (Depends-on): Add verify.
72427         Suggested by Paul Eggert.
72429 2008-12-17  Bruno Haible  <bruno@clisp.org>
72431         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72432         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72433         gl_FUNC_MBRTOWC.
72434         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72435         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72436         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72437         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72438         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72439         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72440         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72441         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72442         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72443         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72444         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72445         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72446         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72447         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72448         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72449         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72450         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72451         * modules/trim (configure.ac): Likewise.
72453 2008-12-17  Bruno Haible  <bruno@clisp.org>
72455         * modules/btowc-tests: New file.
72456         * tests/test-btowc1.sh: New file.
72457         * tests/test-btowc2.sh: New file.
72458         * tests/test-btowc.c: New file.
72460         New module 'btowc'.
72461         * lib/wchar.in.h (btowc): New declaration.
72462         * lib/btowc.c: New file.
72463         * m4/btowc.m4: New file.
72464         * modules/btowc: New file.
72465         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72466         HAVE_BTOWC.
72467         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72468         * doc/posix-functions/btowc.texi: Document the new module.
72470 2008-12-17  Bruno Haible  <bruno@clisp.org>
72472         New module 'mbsinit'.
72473         * lib/wchar.in.h (mbsinit): New declaration.
72474         * lib/mbsinit.c: New file.
72475         * m4/mbsinit.m4: New file.
72476         * modules/mbsinit: New file.
72477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72478         HAVE_MBSINIT.
72479         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72480         HAVE_MBSINIT.
72481         * doc/posix-functions/mbsinit.texi: Document the new module.
72483 2008-12-16  Bruno Haible  <bruno@clisp.org>
72485         * lib/unistd.in.h: Add comment.
72486         * tests/test-environ.c: Don't include <stdlib.h>.
72488 2008-12-16  Bruno Haible  <bruno@clisp.org>
72490         * lib/parse-duration.h (parse_duration): Document return value
72491         convention.
72492         * lib/parse-duration.c: Include specification header first. Add
72493         comments.
72494         (_): Remove macro.
72495         (parse_year_month_day, parse_hour_minute_second): Move side effects
72496         outside of strchr call.
72497         (parse_non_iso8601): Move side effects outside of isspace call.
72498         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72499         call.
72501 2008-12-16  Bruno Haible  <bruno@clisp.org>
72503         * tests/test-parse-duration.sh: Produce no output when the test
72504         succeeds.
72506 2008-12-16  Bruno Haible  <bruno@clisp.org>
72508         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72509         expressions.
72511 2008-12-15  Bruno Haible  <bruno@clisp.org>
72513         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72514         * doc/glibc-functions/flistxattr.texi: Likewise.
72515         * doc/glibc-functions/fopencookie.texi: Likewise.
72516         * doc/glibc-functions/fremovexattr.texi: Likewise.
72517         * doc/glibc-functions/fsetxattr.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/removexattr.texi: Likewise.
72525         * doc/glibc-functions/setxattr.texi: Likewise.
72526         * doc/posix-functions/open_memstream.texi: Likewise.
72528 2008-12-15  Eric Blake  <ebb9@byu.net>
72530         Update doc for cygwin 1.7.
72531         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72532         functions.
72533         * doc/posix-functions/fchmodat.texi: Likewise.
72534         * doc/posix-functions/fchownat.texi: Likewise.
72535         * doc/posix-functions/fdopendir.texi: Likewise.
72536         * doc/posix-functions/fmemopen.texi: Likewise.
72537         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72538         * doc/posix-functions/fstatat.texi: Likewise.
72539         * doc/posix-functions/futimens.texi: Likewise.
72540         * doc/posix-functions/gai_strerror.texi: Likewise.
72541         * doc/posix-functions/getaddrinfo.texi: Likewise.
72542         * doc/posix-functions/getnameinfo.texi: Likewise.
72543         * doc/posix-functions/if_freenameindex.texi: Likewise.
72544         * doc/posix-functions/if_indextoname.texi: Likewise.
72545         * doc/posix-functions/if_nameindex.texi: Likewise.
72546         * doc/posix-functions/if_nametoindex.texi: Likewise.
72547         * doc/posix-functions/insque.texi: Likewise.
72548         * doc/posix-functions/linkat.texi: Likewise.
72549         * doc/posix-functions/llrint.texi: Likewise.
72550         * doc/posix-functions/llrintf.texi: Likewise.
72551         * doc/posix-functions/llrintl.texi: Likewise.
72552         * doc/posix-functions/lockf.texi: Likewise.
72553         * doc/posix-functions/lrintl.texi: Likewise.
72554         * doc/posix-functions/mkdirat.texi: Likewise.
72555         * doc/posix-functions/mkfifoat.texi: Likewise.
72556         * doc/posix-functions/mknodat.texi: Likewise.
72557         * doc/posix-functions/mq_close.texi: Likewise.
72558         * doc/posix-functions/mq_getattr.texi: Likewise.
72559         * doc/posix-functions/mq_notify.texi: Likewise.
72560         * doc/posix-functions/mq_open.texi: Likewise.
72561         * doc/posix-functions/mq_receive.texi: Likewise.
72562         * doc/posix-functions/mq_send.texi: Likewise.
72563         * doc/posix-functions/mq_setattr.texi: Likewise.
72564         * doc/posix-functions/mq_timedreceive.texi: Likewise.
72565         * doc/posix-functions/mq_timedsend.texi: Likewise.
72566         * doc/posix-functions/mq_unlink.texi: Likewise.
72567         * doc/posix-functions/open_memstream.texi: Likewise.
72568         * doc/posix-functions/openat.texi: Likewise.
72569         * doc/posix-functions/posix_fadvise.texi: Likewise.
72570         * doc/posix-functions/posix_fallocate.texi: Likewise.
72571         * doc/posix-functions/posix_madvise.texi: Likewise.
72572         * doc/posix-functions/posix_memalign.texi: Likewise.
72573         * doc/posix-functions/posix_openpt.texi: Likewise.
72574         * doc/posix-functions/readlinkat.texi: Likewise.
72575         * doc/posix-functions/remque.texi: Likewise.
72576         * doc/posix-functions/renameat.texi: Likewise.
72577         * doc/posix-functions/rintl.texi: Likewise.
72578         * doc/posix-functions/sem_unlink.texi: Likewise.
72579         * doc/posix-functions/shm_open.texi: Likewise.
72580         * doc/posix-functions/shm_unlink.texi: Likewise.
72581         * doc/posix-functions/signgam.texi: Likewise.
72582         * doc/posix-functions/sigset.texi: Likewise.
72583         * doc/posix-functions/stpcpy.texi: Likewise.
72584         * doc/posix-functions/stpncpy.texi: Likewise.
72585         * doc/posix-functions/strerror.texi: Likewise.
72586         * doc/posix-functions/strtod.texi: Likewise.
72587         * doc/posix-functions/symlinkat.texi: Likewise.
72588         * doc/posix-functions/unlinkat.texi: Likewise.
72589         * doc/posix-functions/utimensat.texi: Likewise.
72590         * doc/glibc-functions/bindresvport.texi: Likewise.
72591         * doc/glibc-functions/dn_expand.texi: Likewise.
72592         * doc/glibc-functions/exp10.texi: Likewise.
72593         * doc/glibc-functions/exp10f.texi: Likewise.
72594         * doc/glibc-functions/fgetxattr.texi: Likewise.
72595         * doc/glibc-functions/flistxattr.texi: Likewise.
72596         * doc/glibc-functions/fopencookie.texi: Likewise.
72597         * doc/glibc-functions/freeifaddrs.texi: Likewise.
72598         * doc/glibc-functions/fremovexattr.texi: Likewise.
72599         * doc/glibc-functions/fsetxattr.texi: Likewise.
72600         * doc/glibc-functions/getifaddrs.texi: Likewise.
72601         * doc/glibc-functions/getxattr.texi: Likewise.
72602         * doc/glibc-functions/lgetxattr.texi: Likewise.
72603         * doc/glibc-functions/listxattr.texi: Likewise.
72604         * doc/glibc-functions/llistxattr.texi: Likewise.
72605         * doc/glibc-functions/lremovexattr.texi: Likewise.
72606         * doc/glibc-functions/lsetxattr.texi: Likewise.
72607         * doc/glibc-functions/pow10.texi: Likewise.
72608         * doc/glibc-functions/pow10f.texi: Likewise.
72609         * doc/glibc-functions/rcmd_af.texi: Likewise.
72610         * doc/glibc-functions/removexattr.texi: Likewise.
72611         * doc/glibc-functions/res_init.texi: Likewise.
72612         * doc/glibc-functions/res_mkquery.texi: Likewise.
72613         * doc/glibc-functions/res_query.texi: Likewise.
72614         * doc/glibc-functions/res_querydomain.texi: Likewise.
72615         * doc/glibc-functions/res_send.texi: Likewise.
72616         * doc/glibc-functions/rresvport_af.texi: Likewise.
72617         * doc/glibc-functions/setxattr.texi: Likewise.
72618         * doc/glibc-functions/strcasestr.texi: Likewise.
72620 2008-12-15  Bruno Haible  <bruno@clisp.org>
72622         Fix compilation error on OSF/1 4.0.
72623         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
72624         <sys/time.h>, simply delegate to the system header.
72625         Reported by Daniel Richard G. <oss@teragram.com>.
72627 2008-12-15  Bruno Haible  <bruno@clisp.org>
72629         * doc/posix-functions/openat.texi: Mention the 'openat' module.
72630         * doc/posix-functions/fchmodat.texi: Likewise.
72631         * doc/posix-functions/fchownat.texi: Likewise.
72632         * doc/posix-functions/fdopendir.texi: Likewise.
72633         * doc/posix-functions/fstatat.texi: Likewise.
72634         * doc/posix-functions/mkdirat.texi: Likewise.
72635         * doc/posix-functions/unlinkat.texi: Likewise.
72637 2008-12-14  Bruno Haible  <bruno@clisp.org>
72639         Update doc for POSIX:2008.
72640         * doc/posix-functions/faccessat.texi: New file.
72641         * doc/posix-functions/fchmodat.texi: New file.
72642         * doc/posix-functions/fchownat.texi: New file.
72643         * doc/posix-functions/fdopendir.texi: New file.
72644         * doc/posix-functions/fstatat.texi: New file.
72645         * doc/posix-functions/futimens.texi: New file.
72646         * doc/posix-functions/linkat.texi: New file.
72647         * doc/posix-functions/mkdirat.texi: New file.
72648         * doc/posix-functions/mkfifoat.texi: New file.
72649         * doc/posix-functions/mknodat.texi: New file.
72650         * doc/posix-functions/open_wmemstream.texi: New file.
72651         * doc/posix-functions/openat.texi: New file.
72652         * doc/posix-functions/psiginfo.texi: New file.
72653         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
72654         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
72655         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
72656         * doc/posix-functions/readlinkat.texi: New file.
72657         * doc/posix-functions/renameat.texi: New file.
72658         * doc/posix-functions/strerror_l.texi: New file.
72659         * doc/posix-functions/symlinkat.texi: New file.
72660         * doc/posix-functions/unlinkat.texi: New file.
72661         * doc/posix-functions/utimensat.texi: New file.
72662         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72664 2008-12-14  Bruno Haible  <bruno@clisp.org>
72666         Update doc for POSIX:2008.
72667         * doc/posix-functions/alphasort.texi: Renamed from
72668         doc/glibc-functions/alphasort.texi.
72669         * doc/posix-functions/dirfd.texi: Renamed from
72670         doc/glibc-functions/dirfd.texi.
72671         * doc/posix-functions/dprintf.texi: Renamed from
72672         doc/glibc-functions/dprintf.texi.
72673         * doc/posix-functions/duplocale.texi: Renamed from
72674         doc/glibc-functions/duplocale.texi.
72675         * doc/posix-functions/fexecve.texi: Renamed from
72676         doc/glibc-functions/fexecve.texi.
72677         * doc/posix-functions/fmemopen.texi: Renamed from
72678         doc/glibc-functions/fmemopen.texi.
72679         * doc/posix-functions/freelocale.texi: Renamed from
72680         doc/glibc-functions/freelocale.texi.
72681         * doc/posix-functions/getdate_err.texi: Renamed from
72682         doc/glibc-functions/getdate_err.texi.
72683         * doc/posix-functions/isalnum_l.texi: Renamed from
72684         doc/glibc-functions/isalnum_l.texi.
72685         * doc/posix-functions/isalpha_l.texi: Renamed from
72686         doc/glibc-functions/isalpha_l.texi.
72687         * doc/posix-functions/isblank_l.texi: Renamed from
72688         doc/glibc-functions/isblank_l.texi.
72689         * doc/posix-functions/iscntrl_l.texi: Renamed from
72690         doc/glibc-functions/iscntrl_l.texi.
72691         * doc/posix-functions/isdigit_l.texi: Renamed from
72692         doc/glibc-functions/isdigit_l.texi.
72693         * doc/posix-functions/isgraph_l.texi: Renamed from
72694         doc/glibc-functions/isgraph_l.texi.
72695         * doc/posix-functions/islower_l.texi: Renamed from
72696         doc/glibc-functions/islower_l.texi.
72697         * doc/posix-functions/isprint_l.texi: Renamed from
72698         doc/glibc-functions/isprint_l.texi.
72699         * doc/posix-functions/ispunct_l.texi: Renamed from
72700         doc/glibc-functions/ispunct_l.texi.
72701         * doc/posix-functions/isspace_l.texi: Renamed from
72702         doc/glibc-functions/isspace_l.texi.
72703         * doc/posix-functions/isupper_l.texi: Renamed from
72704         doc/glibc-functions/isupper_l.texi.
72705         * doc/posix-functions/iswalnum_l.texi: Renamed from
72706         doc/glibc-functions/iswalnum_l.texi.
72707         * doc/posix-functions/iswalpha_l.texi: Renamed from
72708         doc/glibc-functions/iswalpha_l.texi.
72709         * doc/posix-functions/iswblank_l.texi: Renamed from
72710         doc/glibc-functions/iswblank_l.texi.
72711         * doc/posix-functions/iswcntrl_l.texi: Renamed from
72712         doc/glibc-functions/iswcntrl_l.texi.
72713         * doc/posix-functions/iswctype_l.texi: Renamed from
72714         doc/glibc-functions/iswctype_l.texi.
72715         * doc/posix-functions/iswdigit_l.texi: Renamed from
72716         doc/glibc-functions/iswdigit_l.texi.
72717         * doc/posix-functions/iswgraph_l.texi: Renamed from
72718         doc/glibc-functions/iswgraph_l.texi.
72719         * doc/posix-functions/iswlower_l.texi: Renamed from
72720         doc/glibc-functions/iswlower_l.texi.
72721         * doc/posix-functions/iswprint_l.texi: Renamed from
72722         doc/glibc-functions/iswprint_l.texi.
72723         * doc/posix-functions/iswpunct_l.texi: Renamed from
72724         doc/glibc-functions/iswpunct_l.texi.
72725         * doc/posix-functions/iswspace_l.texi: Renamed from
72726         doc/glibc-functions/iswspace_l.texi.
72727         * doc/posix-functions/iswupper_l.texi: Renamed from
72728         doc/glibc-functions/iswupper_l.texi.
72729         * doc/posix-functions/iswxdigit_l.texi: Renamed from
72730         doc/glibc-functions/iswxdigit_l.texi.
72731         * doc/posix-functions/isxdigit_l.texi: Renamed from
72732         doc/glibc-functions/isxdigit_l.texi.
72733         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
72734         doc/glibc-functions/mbsnrtowcs.texi.
72735         * doc/posix-functions/mkdtemp.texi: Renamed from
72736         doc/glibc-functions/mkdtemp.texi.
72737         * doc/posix-functions/newlocale.texi: Renamed from
72738         doc/glibc-functions/newlocale.texi.
72739         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
72740         doc/glibc-functions/nl_langinfo_l.texi.
72741         * doc/posix-functions/open_memstream.texi: Renamed from
72742         doc/glibc-functions/open_memstream.texi.
72743         * doc/posix-functions/opterr.texi: Renamed from
72744         doc/glibc-functions/opterr.texi.
72745         * doc/posix-functions/optind.texi: Renamed from
72746         doc/glibc-functions/optind.texi.
72747         * doc/posix-functions/optopt.texi: Renamed from
72748         doc/glibc-functions/optopt.texi.
72749         * doc/posix-functions/psignal.texi: Renamed from
72750         doc/glibc-functions/psignal.texi.
72751         * doc/posix-functions/scandir.texi: Renamed from
72752         doc/glibc-functions/scandir.texi.
72753         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
72754         doc/glibc-functions/sched_get_priority_min.texi.
72755         * doc/posix-functions/signgam.texi: Renamed from
72756         doc/glibc-functions/signgam.texi.
72757         * doc/posix-functions/stpcpy.texi: Renamed from
72758         doc/glibc-functions/stpcpy.texi.
72759         * doc/posix-functions/stpncpy.texi: Renamed from
72760         doc/glibc-functions/stpncpy.texi.
72761         * doc/posix-functions/strcasecmp_l.texi: Renamed from
72762         doc/glibc-functions/strcasecmp_l.texi.
72763         * doc/posix-functions/strcoll_l.texi: Renamed from
72764         doc/glibc-functions/strcoll_l.texi.
72765         * doc/posix-functions/strfmon_l.texi: Renamed from
72766         doc/glibc-functions/strfmon_l.texi.
72767         * doc/posix-functions/strftime_l.texi: Renamed from
72768         doc/glibc-functions/strftime_l.texi.
72769         * doc/posix-functions/strncasecmp_l.texi: Renamed from
72770         doc/glibc-functions/strncasecmp_l.texi.
72771         * doc/posix-functions/strndup.texi: Renamed from
72772         doc/glibc-functions/strndup.texi.
72773         * doc/posix-functions/strnlen.texi: Renamed from
72774         doc/glibc-functions/strnlen.texi.
72775         * doc/posix-functions/strsignal.texi: Renamed from
72776         doc/glibc-functions/strsignal.texi.
72777         * doc/posix-functions/strxfrm_l.texi: Renamed from
72778         doc/glibc-functions/strxfrm_l.texi.
72779         * doc/posix-functions/timer_gettime.texi: Renamed from
72780         doc/glibc-functions/timer_gettime.texi.
72781         * doc/posix-functions/tolower_l.texi: Renamed from
72782         doc/glibc-functions/tolower_l.texi.
72783         * doc/posix-functions/toupper_l.texi: Renamed from
72784         doc/glibc-functions/toupper_l.texi.
72785         * doc/posix-functions/towctrans_l.texi: Renamed from
72786         doc/glibc-functions/towctrans_l.texi.
72787         * doc/posix-functions/towlower_l.texi: Renamed from
72788         doc/glibc-functions/towlower_l.texi.
72789         * doc/posix-functions/towupper_l.texi: Renamed from
72790         doc/glibc-functions/towupper_l.texi.
72791         * doc/posix-functions/uselocale.texi: Renamed from
72792         doc/glibc-functions/uselocale.texi.
72793         * doc/posix-functions/vdprintf.texi: Renamed from
72794         doc/glibc-functions/vdprintf.texi.
72795         * doc/posix-functions/wcpcpy.texi:
72796         Renamed from doc/glibc-functions/wcpcpy.texi.
72797         * doc/posix-functions/wcpncpy.texi: Renamed from
72798         doc/glibc-functions/wcpncpy.texi.
72799         * doc/posix-functions/wcscasecmp.texi: Renamed from
72800         doc/glibc-functions/wcscasecmp.texi.
72801         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
72802         doc/glibc-functions/wcscasecmp_l.texi.
72803         * doc/posix-functions/wcscoll_l.texi: Renamed from
72804         doc/glibc-functions/wcscoll_l.texi.
72805         * doc/posix-functions/wcsdup.texi: Renamed from
72806         doc/glibc-functions/wcsdup.texi.
72807         * doc/posix-functions/wcsncasecmp.texi: Renamed from
72808         doc/glibc-functions/wcsncasecmp.texi.
72809         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
72810         doc/glibc-functions/wcsncasecmp_l.texi.
72811         * doc/posix-functions/wcsnlen.texi: Renamed from
72812         doc/glibc-functions/wcsnlen.texi.
72813         * doc/posix-functions/wcsnrtombs.texi: Renamed from
72814         doc/glibc-functions/wcsnrtombs.texi.
72815         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
72816         doc/glibc-functions/wcsxfrm_l.texi.
72817         * doc/posix-functions/wctrans_l.texi: Renamed from
72818         doc/glibc-functions/wctrans_l.texi.
72819         * doc/posix-functions/wctype_l.texi: Renamed from
72820         doc/glibc-functions/wctype_l.texi.
72821         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72822         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
72823         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
72824         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
72825         these subsections.
72826         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
72827         Remove sections.
72829 2008-12-14  Bruno Haible  <bruno@clisp.org>
72831         Update doc for POSIX:2008.
72832         * doc/posix-functions/*.texi: Update URL of POSIX specification.
72834 2008-12-14  Bruno Haible  <bruno@clisp.org>
72836         Update doc for POSIX:2008.
72837         * doc/pastposix-functions/bcmp.texi: Renamed from
72838         doc/posix-functions/bcmp.texi.
72839         * doc/pastposix-functions/bcopy.texi: Renamed from
72840         doc/posix-functions/bcopy.texi.
72841         * doc/pastposix-functions/bsd_signal.texi: Renamed from
72842         doc/posix-functions/bsd_signal.texi.
72843         * doc/pastposix-functions/bzero.texi: Renamed from
72844         doc/posix-functions/bzero.texi.
72845         * doc/pastposix-functions/ecvt.texi: Renamed from
72846         doc/posix-functions/ecvt.texi.
72847         * doc/pastposix-functions/fcvt.texi: Renamed from
72848         doc/posix-functions/fcvt.texi.
72849         * doc/pastposix-functions/ftime.texi: Renamed from
72850         doc/posix-functions/ftime.texi.
72851         * doc/pastposix-functions/gcvt.texi: Renamed from
72852         doc/posix-functions/gcvt.texi.
72853         * doc/pastposix-functions/getcontext.texi: Renamed from
72854         doc/posix-functions/getcontext.texi.
72855         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
72856         doc/posix-functions/gethostbyaddr.texi.
72857         * doc/pastposix-functions/gethostbyname.texi: Renamed from
72858         doc/posix-functions/gethostbyname.texi.
72859         * doc/pastposix-functions/getwd.texi: Renamed from
72860         doc/posix-functions/getwd.texi.
72861         * doc/pastposix-functions/h_errno.texi: Renamed from
72862         doc/posix-functions/h_errno.texi.
72863         * doc/pastposix-functions/index.texi: Renamed from
72864         doc/posix-functions/index.texi.
72865         * doc/pastposix-functions/makecontext.texi: Renamed from
72866         doc/posix-functions/makecontext.texi.
72867         * doc/pastposix-functions/mktemp.texi: Renamed from
72868         doc/posix-functions/mktemp.texi.
72869         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
72870         doc/posix-functions/pthread_attr_getstackaddr.texi.
72871         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
72872         doc/posix-functions/pthread_attr_setstackaddr.texi.
72873         * doc/pastposix-functions/rindex.texi: Renamed from
72874         doc/posix-functions/rindex.texi.
72875         * doc/pastposix-functions/scalb.texi: Renamed from
72876         doc/posix-functions/scalb.texi.
72877         * doc/pastposix-functions/setcontext.texi: Renamed from
72878         doc/posix-functions/setcontext.texi.
72879         * doc/pastposix-functions/swapcontext.texi: Renamed from
72880         doc/posix-functions/swapcontext.texi.
72881         * doc/pastposix-functions/ualarm.texi: Renamed from
72882         doc/posix-functions/ualarm.texi.
72883         * doc/pastposix-functions/usleep.texi: Renamed from
72884         doc/posix-functions/usleep.texi.
72885         * doc/pastposix-functions/vfork.texi: Renamed from
72886         doc/posix-functions/vfork.texi.
72887         * doc/pastposix-functions/wcswcs.texi: Renamed from
72888         doc/posix-functions/wcswcs.texi.
72889         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
72890         (Function Substitutes): Update.
72892 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72894         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
72895         m4/strerror.m4.
72897 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72898             Bruno Haible  <bruno@clisp.org>
72900         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
72902 2008-12-13  Bruno Haible  <bruno@clisp.org>
72904         * modules/strtoull (Depends-on): Remove unistd.
72906 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72908         * modules/strtoull (Depends-on): Add stdlib.
72910 2008-12-11  Simon Josefsson  <simon@josefsson.org>
72912         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
72914 2008-12-10  Jim Meyering  <meyering@redhat.com>
72916         gl_ASSERT: don't say assertions are disabled when they're not
72917         * m4/assert.m4 (gl_ASSERT): Do not make configure report
72918         "checking whether to enable assertions... no", when they are in
72919         fact enabled.  This is solely a bug in the output of configure.
72920         In spite of saying "no", NDEBUG was not defined in that case.
72921         Also, as noted by Eric Blake, leave assertions enabled upon
72922         --enable-assert=INVALID.
72924 2008-12-10  Bruno Haible  <bruno@clisp.org>
72926         Change MODULES.html to refer to POSIX:2008 where possible.
72927         * MODULES.html.sh (POSIX2008_URL): New variable.
72928         (posix_headers): Remove sys/timeb, ucontext.
72929         (posix2001_headers): New variable.
72930         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
72931         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
72932         index, makecontext, mktemp, pthread_attr_getstackaddr,
72933         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
72934         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
72935         (posix2001_functions): New variable.
72936         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
72937         otherwise.
72939 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72941         add missing include to parse-duration.c
72942         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
72943         * modules/parse-duration (Depends-on): Add xalloc.
72945         fix sed script reading maint.mk
72946         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
72947         (syntax-check-rules): Use it.
72949 2008-12-09  Bruno Haible  <bruno@clisp.org>
72951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
72952         MacOS X 10.4/PowerPC.
72953         Reported by Simon Josefsson.
72955 2008-12-08  Jim Meyering  <meyering@redhat.com>
72957         work around mingw's lack of some S_IF definitions
72958         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
72959         Reported by Simon Josefsson.
72961 2008-12-08  Bruno Haible  <bruno@clisp.org>
72963         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
72964         applied to variables. Needed on MacOS X 10.4/PowerPC.
72965         Reported by Simon Josefsson.
72967 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
72968         and Eric Blake  <ebb9@byu.net>
72970         assert: honor --enable-assert
72971         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
72972         order to honor --enable-assert, rather than treating it as a
72973         synonym for --disable-assert.
72975 2008-12-08  Jim Meyering  <meyering@redhat.com>
72977         * lib/posixtm.c: Remove now-useless declaration of mktime.
72979         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
72981 2008-12-07  Bruno Haible  <bruno@clisp.org>
72983         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
72984         test_once): Mark functions as static.
72985         * tests/test-tls.c (test_tls): Likewise.
72987 2008-12-07  Bruno Haible  <bruno@clisp.org>
72989         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
72990         iconv_register_autodetect.
72992 2008-12-07  Jim Meyering  <meyering@redhat.com>
72994         posixtm.c: avoid a warning
72995         * lib/posixtm.c (posixtime): Don't initialize tm0.
72996         It's no longer needed to placate gcc4's -Wuninitialized,
72997         and the attempt to placate would elicit a new warning.
72999         unicodeio.c: mark unused parameters
73000         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73001         (fallback_failure_callback): Likewise.
73003 2008-12-07  Bruno Haible  <bruno@clisp.org>
73005         * gnulib-tool (func_create_testdir): When building the tests
73006         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
73007         Reported by Simon Josefsson.
73009 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73011         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
73013 2008-12-06  Bruno Haible  <bruno@clisp.org>
73015         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
73016         Suggested by Eric Blake.
73018 2008-12-06  Bruno Haible  <bruno@clisp.org>
73020         Fix a c-stack test failure on MacOS X.
73021         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
73022         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
73023         handler for SIGBUS as well.
73024         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
73025         install a signal handler for SIGBUS as well.
73026         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
73028 2008-12-06  Bruno Haible  <bruno@clisp.org>
73030         Advocacy documentation.
73031         * doc/gnulib-intro.texi (Benefits): New section.
73032         * doc/gnulib.texi: Update.
73034 2008-12-06  Bruno Haible  <bruno@clisp.org>
73036         Document the 'manywarnings' module.
73037         * doc/manywarnings.texi: New file.
73038         * doc/gnulib.texi: Include it.
73040 2008-12-05  Eric Blake  <ebb9@byu.net>
73042         tests: silence some gcc warnings
73043         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
73044         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
73045         type mismatches.
73047 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73048             Bruno Haible  <bruno@clisp.org>
73050         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
73052 2008-11-29  Jim Meyering  <meyering@redhat.com>
73054         unicodeio.c: mark unused parameters
73055         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73056         (fallback_failure_callback): Likewise.
73058         fts: fix a thinko
73059         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
73060         (set_stat_type): Return S_IF*-valued "type" directly.
73061         Prompted by James Youngman's spotting a related bug.
73062         Confirmed by further testing through find.
73064         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
73065         * lib/fts.c (D_TYPE): Define.
73066         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
73067         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
73068         (s_ifmt_shift_bits): New function.
73069         (set_stat_type): New function.
73070         (fts_build): When not calling fts_stat, call set_stat_type
73071         to propagate dirent.d_type info to fts_read caller.
73072         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
73073         fts_statp->st_mode type information may be valid.
73075 2008-11-28  Simon Josefsson  <simon@josefsson.org>
73077         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
73078         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
73079         <sds@gnu.org>.
73081 2008-11-20  Bruno Haible  <bruno@clisp.org>
73083         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
73084         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
73085         INCLUDE_NEXT.
73086         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
73087         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
73088         * modules/math (Makefile.am): Substitute
73089         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
73090         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73092 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
73093             Bruno Haible  <bruno@clisp.org>
73095         * lib/stdint.in.h: Define all type macros so that their expansion is
73096         a single typedef'ed token. Fixes a compilation failure in Boost which
73097         does "using ::int8_t;".
73099 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73101         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
73102         gl_MANYWARN_ALL_GCC.
73103         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
73104         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
73105         * modules/manywarnings: New file.
73106         * MODULES.html.sh: Mention manywarnings module.
73108 2008-11-18  Bruno Haible  <bruno@clisp.org>
73110         * doc/gnulib-tool.texi (Unit tests): New section.
73112 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73114         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
73115         paths like 'lib/po/foo.po'.
73117 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73119         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
73120         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
73122 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73124         * m4/warnings.m4: Use CPPFLAGS to really check whether the
73125         parameter works.
73127 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73129         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
73131 2008-11-17  Bruce Korb  <bkorb@gnu.org>
73133         * modules/parse-duration-tests: New file.
73134         * tests/test-parse-duration.sh: New file.
73135         * tests/test-parse-duration.c: New file.
73137         New module 'parse-duration'.
73138         * lib/parse-duration.h: New file.
73139         * lib/parse-duration.c: New file.
73140         * modules/parse-duration: New file.
73142 2008-11-17  Bruno Haible  <bruno@clisp.org>
73144         * tests/test-select-out.sh: Comment out the first pipe test.
73145         Reported by Simon Josefsson.
73147 2008-11-17  Bruno Haible  <bruno@clisp.org>
73149         * modules/getaddrinfo (Depends-on): Add servent, hostent.
73150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
73151         gl_HOSTENT.
73153 2008-11-17  Bruno Haible  <bruno@clisp.org>
73155         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
73156         -lnetwork and -lnet. Needed for Haiku and BeOS.
73158 2008-11-16  Bruno Haible  <bruno@clisp.org>
73160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
73162 2008-11-16  Bruno Haible  <bruno@clisp.org>
73164         Avoid test failure on Haiku.
73165         * tests/test-fsync.c: Include <errno.h>.
73166         (main): Don't require that fsync (0) fails.
73168 2008-11-15  Bruno Haible  <bruno@clisp.org>
73170         New module 'hostent'.
73171         * modules/hostent: New file.
73172         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
73174 2008-11-15  Bruno Haible  <bruno@clisp.org>
73176         New module 'servent'.
73177         * modules/servent: New file.
73178         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
73180 2008-11-15  Bruno Haible  <bruno@clisp.org>
73182         Avoid generating same test program with two different rules.
73183         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
73184         test-frexp to test-frexp-nolibm.
73185         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
73186         test-frexpl to test-frexpl-nolibm.
73188 2008-11-15  Bruno Haible  <bruno@clisp.org>
73190         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
73191         $(FREXPL_LIBM).
73193 2008-11-15  Bruno Haible  <bruno@clisp.org>
73195         * lib/netdb.in.h: Activate the definitions also when the system's
73196         <netdb.h> has 'struct addrinfo'.
73197         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
73198         EAI_OVERFLOW or AI_NUMERICSERV.
73199         * doc/posix-headers/netdb.texi: Document the problem.
73201 2008-11-15  Bruno Haible  <bruno@clisp.org>
73203         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
73205         Make the 'sched' module work on platforms where <sched.h> exists but
73206         is incomplete (such as Haiku).
73207         * lib/sched.in.h; Include the system's <sched.h> if it exists.
73208         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
73209         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
73210         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
73211         HAVE_STRUCT_SCHED_PARAM.
73212         * modules/sched (Depends-on): Add include_next.
73213         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
73214         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
73215         * doc/posix-headers/sched.texi: Document the issue.
73217 2008-11-13  Jim Meyering  <meyering@redhat.com>
73219         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
73220         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
73221         test would fail due to the difference in the Report bugs to ...
73222         line.  The expected address is empty, "<>", while the actual
73223         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
73225 2008-11-12  Bruno Haible  <bruno@clisp.org>
73227         lstat: don't compile lstat.c on systems lacking lstat
73228         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
73229         which don't have lstat; this is handled by lib/sys_stat.in.h already.
73230         Reported by Daniel P. Berrange via Jim Meyering.
73232 2008-11-12  Jim Meyering  <meyering@redhat.com>
73234         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
73236 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73238         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
73239         instead.
73241 2008-11-12  Bruno Haible  <bruno@clisp.org>
73243         * lib/unicodeio.c: Include unistr.h.
73244         (utf8_wctomb): Remove function.
73245         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
73247 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73249         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
73250         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
73251         <bruno@clisp.org>.
73252         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
73254 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73256         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
73257         * doc/gnulib.texi: Add section for warnings.
73259 2008-11-11  Bruno Haible  <bruno@clisp.org>
73261         * lib/sockets.h: Add a comment.
73263 2008-11-11  Karl Berry  <karl@gnu.org>
73265         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
73267 2008-11-11  Eric Blake  <ebb9@byu.net>
73269         fdl.texi: avoid git symlinks
73270         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
73272 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73274         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
73276 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73278         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
73279         (gl_WARN_ADD): Substitute $2 if literal.
73281 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73283         * m4/warning.m4: Remove.
73285 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73287         * m4/warnings.m4: Almost complete rewrite. :-)
73289 2008-11-10  Simon Josefsson  <simon@josefsson.org>
73291         * modules/warnings: New module.
73292         * m4/warnings.m4: New file.
73293         * MODULES.html.sh: Mention warnings module.
73294         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73295         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73297 2008-11-10  Eric Blake  <ebb9@byu.net>
73299         fdl.texi: make a symlink to the latest version
73300         * doc/standards.texi: Revert today's earlier change.
73301         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73302         * doc/fdl.texi: ...and replace this with a symlink to the newer
73303         fdl-1.3.texi.
73305 2008-11-10  Bruno Haible  <bruno@clisp.org>
73307         * tests/test-select-fd.c (main): Accept the result file name as fourth
73308         argument.
73309         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73310         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73312 2008-11-10  Bruno Haible  <bruno@clisp.org>
73314         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73315         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73316         as autoconf-substituted macros.
73317         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73318         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73319         gl_NETDB_H_DEFAULTS. Set these variables.
73320         * modules/netdb (Makefile.am): Substitute these variables.
73322 2008-11-10  Eric Blake  <ebb9@byu.net>
73324         standards.texi: include correct file for FDL 1.3
73325         * doc/standards.texi (GNU Free Documentation License): Change
73326         include file to pull in FDL 1.3, not 1.2.
73328         fdl.texi: revert accidental change to license
73329         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73331 2008-11-10  Bruno Haible  <bruno@clisp.org>
73333         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73334         cross-compiling guesses also when the native compile gives no result.
73336 2008-11-10  Bruno Haible  <bruno@clisp.org>
73338         * lib/spawni.c (__spawni): Force variable into the stack.
73340 2008-11-10  Bruno Haible  <bruno@clisp.org>
73342         Add support for Haiku.
73343         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73344         glibc and BeOS, but also on Haiku.
73345         * lib/fpurge.c (fpurge): Likewise.
73346         * lib/freadable.c (freadable): Likewise.
73347         * lib/freadahead.c (freadahead): Likewise.
73348         * lib/freading.c (freading): Likewise.
73349         * lib/freadptr.c (freadptr): Likewise.
73350         * lib/freadseek.c (freadptrinc): Likewise.
73351         * lib/fseeko.c (rpl_fseeko): Likewise.
73352         * lib/fseterr.c (fseterr): Likewise.
73353         * lib/fwritable.c (fwritable): Likewise.
73354         * lib/fwriting.c (fwriting): Likewise.
73355         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73357 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73359         * lib/config.charset: Treat Haiku like BeOS.
73361 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73363         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73364         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73366 2008-11-08  Bruno Haible  <bruno@clisp.org>
73368         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73369         AC_CACHE_CHECK.
73371 2008-11-08  Bruno Haible  <bruno@clisp.org>
73373         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73375 2008-11-08  Bruno Haible  <bruno@clisp.org>
73377         * tests/test-select-fd.c: New file.
73378         * tests/test-select-in.sh: New file.
73379         * tests/test-select-out.sh: New file.
73380         * tests/test-select-stdin.c: New file.
73381         * modules/select-tests (Files): Add the new files.
73382         (Depends-on): Add gettimeofday.
73383         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73384         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73385         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73387 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73388             Bruno Haible  <bruno@clisp.org>
73390         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73392 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73394         * build-aux/pmccabe2html: Added support for C++ source files.
73396 2008-11-05  Ben Pfaff  <blp@gnu.org>
73398         Fix lib/close.c build on Windows.
73399         * modules/close (Files): Add lib/w32sock.h.
73401 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73403         Accept Bison's NEWS format.
73404         * build-aux/announce-gen (print_news_deltas): Tweak
73405         $re_prefix.
73407 2008-11-04  Bruno Haible  <bruno@clisp.org>
73409         * modules/random_r (Maintainer): Add glibc.
73411 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73413         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73414         by karl@freefriends.org (Karl Berry).
73415         * doc/alloca.texi: Likewise.
73416         * doc/c-ctype.texi: Likewise.
73417         * doc/c-strcase.texi: Likewise.
73418         * doc/c-strcaseeq.texi: Likewise.
73419         * doc/c-strcasestr.texi: Likewise.
73420         * doc/c-strstr.texi: Likewise.
73421         * doc/c-strtod.texi: Likewise.
73422         * doc/c-strtold.texi: Likewise.
73423         * doc/ctime.texi: Likewise.
73424         * doc/error.texi: Likewise.
73425         * doc/fdl.texi: Likewise.
73426         * doc/gcd.texi: Likewise.
73427         * doc/getdate.texi: Likewise.
73428         * doc/gnulib-intro.texi: Likewise.
73429         * doc/gnulib-tool.texi: Likewise.
73430         * doc/gnulib.texi: Likewise.
73431         * doc/inet_ntoa.texi: Likewise.
73432         * doc/maintain.texi: Likewise.
73433         * doc/make-stds.texi: Likewise.
73434         * doc/quote.texi: Likewise.
73435         * doc/regexprops-generic.texi: Likewise.
73436         * doc/standards.texi: Likewise.
73437         * doc/verify.texi: Likewise.
73438         * doc/visibility.texi: Likewise.
73439         * doc/gnulib.texi (GNU Free Documentation License): Include
73440         fdl-1.3.texi instead of fdl.texi.
73442 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73444         * doc/fdl-1.3.texi: New file, from
73445         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73446         * modules/fdl-1.3: Add.
73447         * MODULES.html.sh: Add fdl-1.3.
73449 2008-11-03  Bruno Haible  <bruno@clisp.org>
73451         Make determination of absolute name of header file work with AIX xlc.
73452         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73453         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73454         preprocessing.
73455         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73456         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73458 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73460         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73461         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73462         <ludo@gnu.org>.
73464 2008-11-02  Bruno Haible  <bruno@clisp.org>
73466         Mark 'strpbrk' obsolete.
73467         * modules/strpbrk (Status, Notice): New sections.
73468         * modules/strtok_r (Depends-on): Add strpbrk.
73470 2008-11-02  Bruno Haible  <bruno@clisp.org>
73472         Mark 'strdup' obsolete.
73473         * modules/strdup (Status, Notice): New sections.
73474         * modules/findprog (Depends-on): Add strdup.
73475         * modules/getaddrinfo (Depends-on): Likewise.
73476         * modules/localename (Depends-on): Likewise.
73477         * modules/relocatable-lib (Depends-on): Likewise.
73478         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73479         * modules/relocatable-prog (Depends-on): Likewise.
73480         * modules/trim (Depends-on): Likewise.
73481         * modules/unictype/gen-ctype (Depends-on): Likewise.
73482         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73484 2008-11-02  Bruno Haible  <bruno@clisp.org>
73486         Mark 'strcspn' obsolete.
73487         * modules/strcspn (Status, Notice): New sections.
73489 2008-11-02  Bruno Haible  <bruno@clisp.org>
73491         Mark 'rmdir' obsolete.
73492         * modules/rmdir (Status, Notice): New sections.
73493         * modules/clean-temp (Depends-on): Add rmdir.
73494         * modules/openat (Depends-on): Likewise.
73496 2008-11-02  Bruno Haible  <bruno@clisp.org>
73498         Mark 'raise' obsolete.
73499         * modules/raise (Status, Notice): New sections.
73500         (Include): Specify <signal.h>.
73501         * modules/stdio (Depends-on): Add raise.
73502         * modules/write (Depends-on): Likewise.
73504 2008-11-02  Bruno Haible  <bruno@clisp.org>
73506         Mark 'memset' obsolete.
73507         * modules/memset (Status, Notice): New sections.
73509 2008-11-02  Bruno Haible  <bruno@clisp.org>
73511         Mark 'memmove' obsolete.
73512         * modules/memmove (Status, Notice): New sections.
73513         * modules/argp (Depends-on): Add memmove.
73514         * modules/argz (Depends-on): Likewise.
73515         * modules/canonicalize (Depends-on): Likewise.
73516         * modules/canonicalize-lgpl (Depends-on): Likewise.
73517         * modules/fts (Depends-on): Likewise.
73518         * modules/getcwd (Depends-on): Likewise.
73519         * modules/human (Depends-on): Likewise.
73520         * modules/regex (Depends-on): Likewise.
73521         * modules/striconveh (Depends-on): Likewise.
73522         * modules/trim (Depends-on): Likewise.
73523         * modules/unistr/u8-move (Depends-on): Likewise.
73524         * modules/unistr/u16-move (Depends-on): Likewise.
73525         * modules/unistr/u32-move (Depends-on): Likewise.
73527 2008-11-02  Bruno Haible  <bruno@clisp.org>
73529         Mark 'memcpy' obsolete.
73530         * modules/memcpy (Status, Notice): New sections.
73532 2008-11-02  Bruno Haible  <bruno@clisp.org>
73534         Mark 'memcmp' obsolete.
73535         * modules/memcmp (Status, Notice): New sections.
73536         * modules/argmatch (Depends-on): Add memchr.
73537         * modules/backupfile (Depends-on): Likewise.
73538         * modules/c-strcasestr (Depends-on): Likewise.
73539         * modules/crypto/des (Depends-on): Likewise.
73540         * modules/csharpcomp (Depends-on): Likewise.
73541         * modules/fnmatch (Depends-on): Likewise.
73542         * modules/git-merge-changelog (Depends-on): Likewise.
73543         * modules/isnand (Depends-on): Likewise.
73544         * modules/isnand-nolibm (Depends-on): Likewise.
73545         * modules/isnanf (Depends-on): Likewise.
73546         * modules/isnanf-nolibm (Depends-on): Likewise.
73547         * modules/isnanl (Depends-on): Likewise.
73548         * modules/isnanl-nolibm (Depends-on): Likewise.
73549         * modules/mbchar (Depends-on): Likewise.
73550         * modules/memcoll (Depends-on): Likewise.
73551         * modules/quotearg (Depends-on): Likewise.
73552         * modules/regex (Depends-on): Likewise.
73553         * modules/relocatable-prog (Depends-on): Likewise.
73554         * modules/same (Depends-on): Likewise.
73555         * modules/signbit (Depends-on): Likewise.
73556         * modules/strcasestr-simple (Depends-on): Likewise.
73557         * modules/unictype/gen-ctype (Depends-on): Likewise.
73558         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73559         * modules/uniname/uniname (Depends-on): Likewise.
73560         * modules/unistr/u8-cmp (Depends-on): Likewise.
73562 2008-11-02  Bruno Haible  <bruno@clisp.org>
73564         Mark 'memchr' obsolete.
73565         * modules/memchr (Status, Notice): New sections.
73566         * modules/argp (Depends-on): Add memchr.
73567         * modules/base64 (Depends-on): Likewise.
73568         * modules/c-strcasestr (Depends-on): Likewise.
73569         * modules/chdir-long (Depends-on): Likewise.
73570         * modules/fnmatch (Depends-on): Likewise.
73571         * modules/getsubopt (Depends-on): Likewise.
73572         * modules/git-merge-changelog (Depends-on): Likewise.
73573         * modules/glob (Depends-on): Likewise.
73574         * modules/strcasestr-simple (Depends-on): Likewise.
73575         * modules/strnlen (Depends-on): Likewise.
73577 2008-11-02  Bruno Haible  <bruno@clisp.org>
73579         Mark 'atexit' obsolete.
73580         * modules/atexit (Status, Notice): New sections.
73581         * modules/chdir-long (Depends-on): Add atexit.
73582         * modules/wait-process (Depends-on): Likewise.
73584 2008-11-02  Bruno Haible  <bruno@clisp.org>
73586         * gnulib-tool: New option --with-obsolete.
73587         (func_usage): Document it.
73588         (func_modules_transitive_closure): Drop obsolete dependencies if
73589         incobsolete is not true.
73590         (func_import): Read and save the incobsolete variable to the cache.
73592 2008-11-02  Bruno Haible  <bruno@clisp.org>
73594         * modules/TEMPLATE-EXTENDED: New field 'Status'.
73595         * gnulib-tool: New option --extract-status.
73596         (func_usage): Document it.
73597         (sed_extract_prog): Recognize it.
73598         (func_get_status): New function.
73600 2008-10-30  Simon Josefsson  <simon@josefsson.org>
73602         * modules/sockets (License): Change from LGPL to LGPLv2+.
73604 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73606         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
73608 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73610         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73611         Mention times and sys_times.
73612         * modules/sys_times, modules/sys_times-tests: New modules.
73613         * modules/times, modules/times-tests: Likewise
73614         * m4/sys_times_h.m4: New file.
73615         * lib/sys_times.in.h: Likewise
73616         * lib/times.c: Likewise.
73617         * tests/test-sys_times.c: Likewise.
73618         * tests/test-times.c: Likewise.
73619         * doc/posix-headers/sys_times.texi: Update.
73620         * doc/posix-functions/times.texi: Update.
73622 2008-10-28  Jim Meyering  <meyering@redhat.com>
73624         * modules/tempname (Depends-on): Add lstat.
73626         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
73628 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73630         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
73631         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
73632         using idiom used elsewhere in gnulib.
73634 2008-10-27  Jim Meyering  <meyering@redhat.com>
73636         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
73638 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73640         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
73641         TESTS_ENVIRONMENT, for shell scripts that needs to call built
73642         programs.
73643         * tests/test-argp-2.sh: Use $EXEEXT when needed.
73645 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73647         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
73649 2008-10-27  Bruno Haible  <bruno@clisp.org>
73651         * tests/test-lstat.c: Include <stdio.h>.
73653 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73655         * modules/lstat-tests: New module.
73656         * tests/test-lstat.c: New file.
73658 2008-10-26  Jim Meyering  <meyering@redhat.com>
73660         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
73662 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73663             Bruno Haible  <bruno@clisp.org>
73665         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
73666         * modules/configmake (Include): Add a note that the include must come
73667         after all system headers.
73668         * lib/javaversion.c: Include configmake.h after all other includes.
73670 2008-10-26  Bruno Haible  <bruno@clisp.org>
73672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
73673         HAVE_STRUCT_RANDOM_DATA to 1.
73674         (gl_STDLIB_H): Simplify.
73676 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73678         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
73679         substitute HAVE_STRUCT_RANDOM_DATA.
73680         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
73681         random_data.
73682         * modules/stdlib (Makefile.am): Substitute
73683         HAVE_STRUCT_RANDOM_DATA.
73685 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73687         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
73688         * doc/gnulib-intro.texi (Copyright): Likewise.
73690 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73692         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
73693         findings.
73695 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
73696             Bruno Haible  <bruno@clisp.org>
73698         * lib/unistd.in.h: Include <winsock2.h>.
73699         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
73700         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
73701         Provide dummy declarations.
73702         (gethostname): Override.
73703         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
73704         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
73705         gl_PREREQ_SYS_H_WINSOCK2.
73706         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
73707         * doc/posix-functions/gethostname.texi: More details.
73709 2008-10-25  Bruno Haible  <bruno@clisp.org>
73711         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
73712         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
73713         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
73715         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
73716         here ...
73717         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
73718         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
73719         gl_UNISTD_H_DEFAULTS.
73721 2008-10-25  Eric Blake  <ebb9@byu.net>
73723         signbit: avoid spurious compiler failure
73724         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
73725         declarations inside function.
73727 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73728             Bruno Haible  <bruno@clisp.org>
73730         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
73731         * modules/random_r (Depends-on): Add stdint.
73733 2008-10-24  Bruno Haible  <bruno@clisp.org>
73735         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
73736         Eggert.
73737         * modules/strerror (License): Likewise.
73739 2008-10-24  Jim Meyering  <meyering@redhat.com>
73741         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
73742         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
73744 2008-10-24  Eric Blake  <ebb9@byu.net>
73746         getgroups: fix compilation when getgroups is available
73747         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
73748         but with <config.h> override of getgroups disabled.
73750 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73752         * doc/gnulib.texi (Header files): Add note about C++ problems.
73753         Explained by Bruno Haible <bruno@clisp.org>.
73755 2008-10-23  Bruno Haible  <bruno@clisp.org>
73757         Define a dummy SA_NODEFER macro on Interix.
73758         * lib/signal.in.h (SA_NODEFER): Define fallback.
73759         Reported by Aleksey Cheusov <cheusov@tut.by> via
73760         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
73762 2008-10-23  Bruno Haible  <bruno@clisp.org>
73764         * modules/freadahead (License): Change to LGPLv2+.
73765         Suggested by Simon Josefsson.
73767 2008-10-23  Jim Meyering  <meyering@redhat.com>
73769         random_r: new module
73770         * modules/random_r: New file.
73771         * m4/random_r.m4: New file.
73772         * lib/random_r.c: New file, from glibc.
73773         * modules/random_r-tests: New file.
73774         * tests/test-random_r.c: New file.
73775         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
73776          Declare.
73777         (RAND_MAX): Define.
73778         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
73779         * modules/stdlib: Substitute them, too.
73780         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
73781         * doc/glibc-functions/initstate_r.texi: Mention the new module.
73782         * doc/glibc-functions/random_r.texi: Likewise.
73783         * doc/glibc-functions/setstate_r.texi: Likewise.
73784         * doc/glibc-functions/srandom_r.texi: Likewise.
73785         * config/srclist.txt: Mention it.
73787 2008-10-23  David Lutterkort  <lutter@redhat.com>
73789         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
73790         link requirement
73792 2008-10-23  Jim Meyering  <meyering@redhat.com>
73794         selinux-h: mark parameters of stub functions as intentionally unused
73795         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
73796         * lib/se-context.in.h: Likewise.
73798 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73800         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
73802 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73804         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
73806 2008-10-22  Eric Blake  <ebb9@byu.net>
73808         glthread/thread: avoid compiler warning
73809         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
73810         Add unreachable abort to silence compiler.
73812 2008-10-22  Eric Blake  <ebb9@byu.net>
73814         netdb: also supply struct addrinfo for cygwin 1.5.x
73815         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
73816         older cygwin.
73817         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
73818         cygwin.
73819         * doc/posix-headers/netdb.texi (netdb.h): Document this.
73821 2008-10-22  Bruno Haible  <bruno@clisp.org>
73823         * users.txt: Update entry about pspp.
73825 2008-10-21  Bruno Haible  <bruno@clisp.org>
73827         Simplification.
73828         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
73829         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
73831         Simplification.
73832         * lib/ioctl.c (ioctl): Don't undefine.
73833         * lib/socket.c (socket): Don't undefine.
73835         Remove unused module indicator macros.
73836         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
73837         GNULIB_$1 as a C macro.
73839         * doc/posix-functions/close.texi: Undo last change.
73840         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
73841         Windows platforms.
73843 2008-10-21  Bruno Haible  <bruno@clisp.org>
73845         Add gethostname() declaration to <unistd.h>.
73846         * lib/unistd.in.h (gethostname): New declaration.
73847         * lib/gethostname.c: Include <unistd.h>.
73848         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
73849         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
73850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
73851         and HAVE_GETHOSTNAME.
73852         * modules/gethostname (Depends-on): Add unistd.
73853         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73854         (Include): Specify <unistd.h>.
73855         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
73856         HAVE_GETHOSTNAME.
73857         * tests/test-gethostname.c: Include <unistd.h> first.
73859 2008-10-21  Bruno Haible  <bruno@clisp.org>
73861         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
73862         * modules/select-tests (Depends-on): Likewise.
73863         Reported by Simon Josefsson.
73865 2008-10-21  Simon Josefsson  <simon@josefsson.org>
73867         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
73868         * lib/accept.c: New file, based on winsock.c.
73869         * lib/bind.c: New file, based on winsock.c.
73870         * lib/connect.c: New file, based on winsock.c.
73871         * lib/getpeername.c: New file, based on winsock.c.
73872         * lib/getsockname.c: New file, based on winsock.c.
73873         * lib/getsockopt.c: New file, based on winsock.c.
73874         * lib/ioctl.c: New file, based on winsock.c.
73875         * lib/listen.c: New file, based on winsock.c.
73876         * lib/recv.c: New file, based on winsock.c.
73877         * lib/recvfrom.c: New file, based on winsock.c.
73878         * lib/send.c: New file, based on winsock.c.
73879         * lib/sendto.c: New file, based on winsock.c.
73880         * lib/setsockopt.c: New file, based on winsock.c.
73881         * lib/shutdown.c: New file, based on winsock.c.
73882         * lib/socket.c: New file, based on winsock.c.
73883         * lib/w32sock.h: New file, based on winsock.c.
73884         * lib/winsock.c: Remove file.
73885         * modules/accept: Likewise.
73886         * modules/bind: Likewise.
73887         * modules/connect: Likewise.
73888         * modules/getpeername: Likewise.
73889         * modules/getsockname: Likewise.
73890         * modules/getsockopt: Likewise.
73891         * modules/ioctl: Likewise.
73892         * modules/listen: Likewise.
73893         * modules/recv: Likewise.
73894         * modules/recvfrom: Likewise.
73895         * modules/send: Likewise.
73896         * modules/sendto: Likewise.
73897         * modules/setsockopt: Likewise.
73898         * modules/shutdown: Likewise.
73899         * modules/socket: Use socket.c instead of winsock.c.
73900         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
73901         * doc/posix-functions/accept.texi: Doc fix.
73902         * doc/posix-functions/bind.texi: Doc fix.
73903         * doc/posix-functions/close.texi: Doc fix.
73904         * doc/posix-functions/connect.texi: Doc fix.
73905         * doc/posix-functions/getpeername.texi: Doc fix.
73906         * doc/posix-functions/getsockname.texi: Doc fix.
73907         * doc/posix-functions/getsockopt.texi: Doc fix.
73908         * doc/posix-functions/ioctl.texi: Doc fix.
73909         * doc/posix-functions/listen.texi: Doc fix.
73910         * doc/posix-functions/recv.texi: Doc fix.
73911         * doc/posix-functions/recvfrom.texi: Doc fix.
73912         * doc/posix-functions/send.texi: Doc fix.
73913         * doc/posix-functions/sendto.texi: Doc fix.
73914         * doc/posix-functions/setsockopt.texi: Doc fix.
73915         * doc/posix-functions/shutdown.texi: Doc fix.
73916         * doc/posix-functions/socket.texi: Doc fix.
73918 2008-10-20  Bruno Haible  <bruno@clisp.org>
73920         Take into account the role of SIGABRT_COMPAT on Windows 2008.
73921         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
73922         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
73923         as an alias for SIGABRT.
73924         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
73925         (sigaction): Map it to SIGABRT.
73926         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
73928 2008-10-20  Bruno Haible  <bruno@clisp.org>
73930         * lib/fts.c: Don't include lstat.h.
73931         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
73933         Move the lstat() declaration to <sys/stat.h>.
73934         * lib/lstat.h: Remove file.
73935         * lib/sys_stat.in.h: Add special invocation convention.
73936         (lstat): New declaration.
73937         * lib/lstat.c (orig_lstat): New function.
73938         (rpl_lstat): Use orig_lstat instead of lstat.
73939         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
73940         AC_C_INLINE. Set REPLACE_LSTAT.
73941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
73942         and REPLACE_LSTAT.
73943         * modules/lstat (Files): Remove lib/lstat.h.
73944         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
73945         (Include): Specify <sys/stat.h> instead of lstat.h.
73946         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
73947         REPLACE_LSTAT.
73948         * NEWS: Mention the change.
73950 2008-10-20  Bruno Haible  <bruno@clisp.org>
73952         * modules/posix_spawn-tests: New file.
73953         * tests/test-posix_spawn3.c: New file.
73955 2008-10-20  Bruno Haible  <bruno@clisp.org>
73957         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
73958         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73959         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
73960         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73961         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
73963 2008-10-20  Bruno Haible  <bruno@clisp.org>
73965         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
73966         of posix_spawn on AIX 5.3.
73968 2008-10-20  Bruno Haible  <bruno@clisp.org>
73970         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
73972 2008-10-20  Bruno Haible  <bruno@clisp.org>
73974         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
73975         of AC_LANG_PROGRAM.
73977 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73979         * lib/netdb.in.h: Don't define GNU specific constants until they
73980         are supported or needed.  Reported by Bruno Haible
73981         <bruno@clisp.org>.
73983 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73985         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
73987 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73989         * lib/getaddrinfo.h: Remove file.
73990         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
73991         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
73992         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
73993         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
73994         * modules/netdb: Substitute GNULIB_GETADDRINFO.
73995         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
73996         * tests/test-getaddrinfo.c: Likewise.
73997         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
73998         * NEWS: Mention change.
74000 2008-10-19  Bruno Haible  <bruno@clisp.org>
74002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
74004 2008-10-19  Bruno Haible  <bruno@clisp.org>
74006         * lib/wait-process.c: Include simply <sys/wait.h>.
74007         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
74008         WIFSTOPPED): Remove fallback definitions.
74009         * modules/wait-process (Depends-on): Add sys_wait.
74011         New module 'sys_wait'.
74012         * modules/sys_wait: New file.
74013         * lib/sys_wait.in.h: New file, partially copied from
74014         lib/wait-process.c.
74015         * m4/sys_wait_h.m4: New file.
74016         * doc/posix-headers/sys_wait.texi: Mention the new module.
74018 2008-10-19  Bruno Haible  <bruno@clisp.org>
74020         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
74022 2008-10-19  Bruno Haible  <bruno@clisp.org>
74024         Assume that waitpid() fills an 'int' status, not a 'union wait'.
74025         * lib/wait-process.c (WAIT_T): Remove type.
74026         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
74027         (wait_subprocess): Update.
74029 2008-10-19  Bruno Haible  <bruno@clisp.org>
74031         New module 'atoll'.
74032         * modules/atoll: New file.
74033         * lib/stdlib.in.h (atoll): New declaration.
74034         * lib/atoll.c: New file, from glibc with modifications.
74035         * m4/atoll.m4: New file.
74036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
74037         HAVE_ATOLL.
74038         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
74039         * doc/posix-functions/atoll.texi: Mention the new module.
74041 2008-10-19  Bruno Haible  <bruno@clisp.org>
74043         Add strtoull() declaration to <stdlib.h>.
74044         * lib/stdlib.in.h (strtoull): New declaration.
74045         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74046         Set HAVE_STRTOULL.
74047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
74048         HAVE_STRTOULL.
74049         * modules/strtoull (Depends-on): Add stdlib.
74050         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74051         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
74052         HAVE_STRTOULL.
74054 2008-10-19  Bruno Haible  <bruno@clisp.org>
74056         Add strtoll() declaration to <stdlib.h>.
74057         * lib/stdlib.in.h (strtoll): New declaration.
74058         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74059         Set HAVE_STRTOLL.
74060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
74061         HAVE_STRTOLL.
74062         * modules/strtoll (Depends-on): Add stdlib.
74063         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74064         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
74066 2008-10-19  Bruno Haible  <bruno@clisp.org>
74068         * modules/bcopy (Depends-on): Add strings.
74069         (Include): Specify <strings.h>.
74071 2008-10-19  Bruno Haible  <bruno@clisp.org>
74073         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
74075 2008-10-19  Bruno Haible  <bruno@clisp.org>
74077         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
74078         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
74079         mingw.
74081 2008-10-19  Bruno Haible  <bruno@clisp.org>
74083         * lib/atanl.c: Don't include isnanl.h.
74084         * lib/cosl.c: Likewise.
74085         * lib/ldexpl.c: Likewise.
74086         * lib/logl.c: Likewise.
74087         * lib/sinl.c: Likewise.
74088         * lib/sqrtl.c: Likewise.
74089         * lib/tanl.c: Likewise.
74091         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
74092         * lib/isnanf.h: Remove file.
74093         * lib/isnand.h: Remove file.
74094         * lib/isnanl.h: Remove file.
74095         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
74096         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
74097         macros.
74098         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
74099         HAVE_ISNANF, don't define it as a C macro.
74100         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
74101         HAVE_ISNAND, don't define it as a C macro.
74102         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
74103         HAVE_ISNANL, don't define it as a C macro.
74104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
74105         HAVE_ISNAN[FDL].
74106         * modules/isnanf (Files): Remove lib/isnanf.h.
74107         (Depends-on): Add math.
74108         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74109         (Include): Specify <math.h> instead of isnanf.h.
74110         * modules/isnand (Files): Remove lib/isnand.h.
74111         (Depends-on): Add math.
74112         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74113         (Include): Specify <math.h> instead of isnand.h.
74114         * modules/isnanl (Files): Remove lib/isnanl.h.
74115         (Depends-on): Add math.
74116         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74117         (Include): Specify <math.h> instead of isnanl.h.
74118         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
74119         HAVE_ISNAN[FDL].
74120         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
74121         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
74122         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
74123         * NEWS: Mention the change.
74125 2008-10-18  Bruno Haible  <bruno@clisp.org>
74127         Add getusershell(), setusershell(), endusershell() declarations to
74128         <unistd.h>.
74129         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
74130         declarations.
74131         * lib/getusershell.c: Include unistd.h.
74132         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
74133         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74134         HAVE_GETUSERSHELL.
74135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
74136         and HAVE_GETUSERSHELL.
74137         * modules/getusershell (Depends-on): Add unistd, extensions.
74138         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74139         (Include): Specify <unistd.h>.
74140         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
74141         HAVE_GETUSERSHELL.
74143 2008-10-18  Bruno Haible  <bruno@clisp.org>
74145         Add a getloadavg() declaration to <stdlib.h>.
74146         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
74147         getloadavg declaration.
74148         (getloadavg): New declaration.
74149         * lib/getloadavg.c: Include <stdlib.h> first.
74150         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
74151         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
74152         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
74153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
74154         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74155         * modules/getloadavg (Depends-on): Add stdlib, extensions.
74156         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74157         (Include): Specify <stdlib.h>.
74158         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
74159         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74161 2008-10-18  Bruno Haible  <bruno@clisp.org>
74163         * lib/dirchownmod.c: Don't include lchmod.h.
74165         Move the lchmod() declaration to <sys/stat.h>.
74166         * lib/lchmod.h: Remove file.
74167         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
74168         (lchmod): New declaration, moved here from lib/lchown.h.
74169         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
74170         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
74171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
74172         and HAVE_LCHMOD.
74173         * modules/lchmod (Files): Remove lib/lchmod.h.
74174         (Depends-on): Add sys_stat, extensions.
74175         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74176         (Include): Specify <sys/stat.h> instead of lchmod.h.
74177         * modules/sys_stat (Depends-on): Add link-warning.
74178         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
74179         definition of GL_LINK_WARNING.
74180         * NEWS: Mention the change.
74182 2008-10-18  Bruno Haible  <bruno@clisp.org>
74184         * lib/fchdir.c: Don't include dirfd.h.
74185         * lib/fts.c: Likewise.
74186         * lib/getcwd.c: Likewise.
74187         * lib/glob.c: Likewise.
74189         Move the dirfd() declaration to <dirent.h>.
74190         * lib/dirfd.h: Remove file.
74191         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
74192         (dirfd): New declaration.
74193         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
74194         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
74195         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
74196         HAVE_DECL_DIRFD.
74197         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
74198         HAVE_DECL_DIRFD.
74199         * modules/dirfd (Files): Remove lib/dirfd.h.
74200         (Depends-on): Add dirent, extensions.
74201         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
74202         (Include): Specify <dirent.h> instead of dirfd.h.
74203         * modules/dirent (Depends-on): Add link-warning.
74204         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
74205         definition of GL_LINK_WARNING.
74206         * NEWS: Mention the change.
74208 2008-10-18  Bruno Haible  <bruno@clisp.org>
74210         Move the euidaccess() declaration to <unistd.h>.
74211         * lib/euidaccess.h: Remove file.
74212         * lib/unistd.in.h (euidaccess): New declaration.
74213         * lib/euidaccess.c: Don't include euidaccess.h.
74214         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
74215         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
74216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
74217         and HAVE_EUIDACCESS.
74218         * modules/euidaccess (Files): Remove lib/euidaccess.h.
74219         (Depends-on): Add unistd.
74220         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74221         (Include): Specify <unistd.h> instead of euidaccess.h.
74222         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
74223         HAVE_EUIDACCESS.
74224         * NEWS: Mention the change.
74226 2008-10-18  Bruno Haible  <bruno@clisp.org>
74228         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
74230         Move the getdomainname() declaration to <unistd.h>.
74231         * lib/getdomainname.h: Remove file.
74232         * lib/unistd.in.h (getdomainname): New declaration.
74233         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
74234         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
74235         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74236         HAVE_GETDOMAINNAME.
74237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74238         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
74239         * modules/getdomainname (Files): Remove lib/getdomainname.h.
74240         (Depends-on): Add unistd, extensions.
74241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74242         (Includes): Specify <unistd.h> instead of getdomainname.h.
74243         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
74244         HAVE_GETDOMAINNAME.
74245         * NEWS: Mention the change.
74247 2008-10-18  Bruno Haible  <bruno@clisp.org>
74249         * modules/dirent: New file.
74250         * m4/dirent_h.m4: New file.
74251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
74252         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
74253         * modules/fchdir (Files): Remove lib/dirent.in.h.
74254         (Depends-on): Add dirent.
74255         (Makefile.am): Move rules to modules/dirent.
74256         * doc/posix-headers/dirent.texi: Mention the new module.
74258 2008-10-18  Bruno Haible  <bruno@clisp.org>
74260         Avoid -Wunused-parameter warnings in public gnulib header files.
74261         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
74262         macro.
74263         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
74265 2008-10-18  Bruno Haible  <bruno@clisp.org>
74267         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
74268         * doc/glibc-functions/error.texi: Mention the module 'error'.
74269         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
74270         * doc/glibc-functions/getdomainname.texi: Mention the module
74271         'getdomainname'.
74272         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
74273         * doc/glibc-functions/getpagesize.texi: Mention the module
74274         'getpagesize'.
74275         * doc/glibc-functions/getusershell.texi: Mention the module
74276         'getusershell'.
74277         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
74278         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
74279         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
74280         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
74281         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
74282         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
74283         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
74284         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
74285         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
74286         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
74287         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
74288         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
74289         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
74290         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
74292 2008-10-17  Bruno Haible  <bruno@clisp.org>
74294         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74295         HP-UX and IRIX, use -0.0L.
74296         * tests/test-ceill.c (minus_zero): Likewise.
74297         * tests/test-floorl.c (minus_zero): Likewise.
74298         * tests/test-frexpl.c (minus_zero): Likewise.
74299         * tests/test-isnan.c (minus_zerol): Likewise.
74300         * tests/test-isnanl.h (minus_zero): Likewise.
74301         * tests/test-ldexpl.c (minus_zero): Likewise.
74302         * tests/test-roundl.c (minus_zero): Likewise.
74303         * tests/test-signbit.c (minus_zerol): Likewise.
74304         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74305         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74306         * tests/test-truncl.c (minus_zero): Likewise.
74307         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74308         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74309         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74310         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74312 2008-10-17  Bruno Haible  <bruno@clisp.org>
74314         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74315         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74316         that it gets activated only for gcc >= 3.0.
74317         * lib/dirent.in.h: Likewise.
74318         * lib/errno.in.h: Likewise.
74319         * lib/fcntl.in.h: Likewise.
74320         * lib/float.in.h: Likewise.
74321         * lib/iconv.in.h: Likewise.
74322         * lib/inttypes.in.h: Likewise.
74323         * lib/locale.in.h: Likewise.
74324         * lib/math.in.h: Likewise.
74325         * lib/netdb.in.h: Likewise.
74326         * lib/netinet_in.in.h: Likewise.
74327         * lib/search.in.h: Likewise.
74328         * lib/signal.in.h: Likewise.
74329         * lib/spawn.in.h: Likewise.
74330         * lib/stdarg.in.h: Likewise.
74331         * lib/stdint.in.h: Likewise.
74332         * lib/stdio.in.h: Likewise.
74333         * lib/stdlib.in.h: Likewise.
74334         * lib/string.in.h: Likewise.
74335         * lib/strings.in.h: Likewise.
74336         * lib/sys_file.in.h: Likewise.
74337         * lib/sys_ioctl.in.h: Likewise.
74338         * lib/sys_select.in.h: Likewise.
74339         * lib/sys_socket.in.h: Likewise.
74340         * lib/sys_stat.in.h: Likewise.
74341         * lib/sys_time.in.h: Likewise.
74342         * lib/sysexits.in.h: Likewise.
74343         * lib/time.in.h: Likewise.
74344         * lib/unistd.in.h: Likewise.
74345         * lib/wchar.in.h: Likewise.
74346         * lib/wctype.in.h: Likewise.
74347         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74349 2008-10-17  Jim Meyering  <meyering@redhat.com>
74351         ignore-value: don't depend on inline module
74352         * modules/ignore-value (Depends-on): Remove 'inline'.
74353         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74354         Suggestion from Bruno Haible.
74356 2008-10-17  Bruno Haible  <bruno@clisp.org>
74358         New implementation of condition variables for Win32.
74359         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74360         (gl_linked_waitqueue_t): New type.
74361         (gl_cond_t): Use it.
74362         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74363         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74364         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74365         (glthread_cond_init_func, glthread_cond_wait_func,
74366         glthread_cond_timedwait_func, glthread_cond_signal_func,
74367         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74368         Reimplemented on the basis of gl_linked_waitqueue_t.
74369         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74370         gl_waitqueue_t.
74371         (gl_rwlock_t): Update.
74372         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74374 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74376         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74377         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74379 2008-10-17  Jim Meyering  <meyering@redhat.com>
74381         ignore-value: new module
74382         * modules/ignore-value: New file.
74383         * lib/ignore-value.h: New file.
74384         * MODULES.html.sh (Compiler warning management): New section,
74385         just for this module.  More to come.
74387 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74389         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74390         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74391         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74393 2008-10-16  Jim Meyering  <meyering@redhat.com>
74395         openat-die.c: avoid 'no previous prototype' warning
74396         * lib/openat-die.c: Include "openat.h".
74397         Reported by Reuben Thomas <rrt@sc3d.org>.
74399 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74401         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74402         * lib/netdb.in.h: Fix typo.
74403         Reported by Bruno Haible  <bruno@clisp.org>
74405         * lib/netdb.in.h: Include sys/socket.h for platforms without
74406         netdb.h, to get structures like hostent on MinGW.
74407         * modules/netdb (Depends-on): Add sys_socket.
74409 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74411         * modules/netdb, modules/netdb-tests: New file.
74412         * m4/netdb_h.m4: New file.
74413         * lib/netdb.in.h: Add, currently just an empty file pending
74414         definitions.
74415         * tests/test-netdb.c: New file.
74416         * doc/posix-headers/netdb.texi: Mention that we replace it if
74417         needed.
74418         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74419         netdb.
74421 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74423         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74424         with code.
74426 2008-10-13  Bruno Haible  <bruno@clisp.org>
74428         * lib/glthread/cond.c (glthread_cond_wait_func,
74429         glthread_cond_timedwait_func): Add a comment.
74431 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74433         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74434         * tests/test-select.c: Likewise,
74436 2008-10-13  Bruno Haible  <bruno@clisp.org>
74438         * lib/glthread/cond.c (glthread_cond_wait_func,
74439         glthread_cond_timedwait_func): Fix variable name.
74440         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74442 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74444         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74445         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74446         struct sockaddr.sa_len.
74447         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74449 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74451         * build-aux/pmccabe2html: Add css and css_url parameters.
74453 2008-10-12  Bruno Haible  <bruno@clisp.org>
74455         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74456         calling aclx_get.
74457         Reported by Rainer Tammer <tammer@tammer.net>.
74459 2008-10-12  Bruno Haible  <bruno@clisp.org>
74461         Use msvcrt aware primitives for creation/termination of Win32 threads.
74462         * lib/glthread/thread.c: Include <process.h>.
74463         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74464         (wrapper_func): Update signature.
74465         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74467 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74468             Bruno Haible  <bruno@clisp.org>
74470         Provide a Win32 implementation of the 'cond' module.
74471         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74472         * lib/glthread/cond.c (glthread_cond_init_func,
74473         glthread_cond_wait_func, glthread_cond_timedwait_func,
74474         glthread_cond_signal_func, glthread_cond_broadcast_func,
74475         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74476         * modules/cond (Dependencies): Add gettimeofday.
74478 2008-10-11  Bruno Haible  <bruno@clisp.org>
74480         Make sleep work on older versions of mingw.
74481         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74482         only whether it exists.
74483         * doc/posix-functions/sleep.texi: Mention the problem with older
74484         versions of mingw.
74486 2008-10-11  Bruno Haible  <bruno@clisp.org>
74488         New module 'shutdown'.
74489         * modules/shutdown: New file.
74490         * lib/sys_socket.in.h (shutdown): New declaration.
74491         * lib/winsock.c (shutdown): New function.
74492         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74493         GNULIB_SHUTDOWN.
74494         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74495         * doc/posix-functions/shutdown.texi: Document the new module.
74497 2008-10-11  Jim Meyering  <meyering@redhat.com>
74499         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74501 2008-10-11  Bruno Haible  <bruno@clisp.org>
74503         New module 'fclose'.
74504         * modules/fclose: New file.
74505         * lib/stdio.in.h (fclose): New declaration.
74506         * lib/fclose.c: New file.
74507         * m4/fclose.m4: New file.
74508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74509         REPLACE_FCLOSE.
74510         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74511         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74512         REPLACE_FCLOSE.
74513         * modules/close (Depends-on): fclose.
74514         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74516 2008-10-11  Bruno Haible  <bruno@clisp.org>
74518         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74519         set errno and don't call _close.
74521 2008-10-10  Bruno Haible  <bruno@clisp.org>
74523         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74524         ACL, not afterwards. Fixes test failure on Cygwin.
74526 2008-10-09  Ben Pfaff  <blp@gnu.org>
74528         * build-aux/announce-gen: Fix gnulib version related part of usage
74529         message.  Die with a useful error message if no tarballs are
74530         found.
74532 2008-10-10  Jim Meyering  <meyering@redhat.com>
74534         bootstrap: use git's --depth=N option only if it's supported
74535         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74536         recognize the --depth option.  Reported by Pádraig Brady.
74538 2008-10-09  Bruno Haible  <bruno@clisp.org>
74540         New module 'ioctl'.
74541         * modules/ioctl: New file.
74542         * lib/sys_socket.in.h (ioctl): Remove declaration.
74543         * lib/winsock.c: Include <sys/ioctl.h>.
74544         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
74545         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74546         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
74547         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
74548         * doc/posix-functions/ioctl.texi: Mention the new module.
74550 2008-10-09  Bruno Haible  <bruno@clisp.org>
74552         New module 'sys_ioctl'.
74553         * lib/sys_ioctl.in.h: New file.
74554         * m4/sys_ioctl_h.m4: New file.
74555         * modules/sys_ioctl: New file.
74556         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
74558 2008-10-09  Bruno Haible  <bruno@clisp.org>
74560         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
74561         * lib/winsock.c: Include <stdarg.h>.
74562         (rpl_ioctl): Change to second argument 'int' and then varargs.
74564 2008-10-09  Bruno Haible  <bruno@clisp.org>
74566         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
74567         when the sys_socket module is present and the system has <winsock2.h>.
74569 2008-10-09  Bruno Haible  <bruno@clisp.org>
74571         * doc/posix-functions/close.texi: Mention module 'close' instead of
74572         module 'sys_socket'.
74574 2008-10-09  Bruno Haible  <bruno@clisp.org>
74576         * doc/glibc-headers/sys_ioctl.texi: New file.
74577         * doc/gnulib.texi: Include it.
74579 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74580             Bruno Haible  <bruno@clisp.org>
74582         Combine the two replacements of 'close'.
74583         * lib/sys_socket.in.h (close): Define to a reminder to include
74584         <unistd.h>.
74585         (_gl_close_fd_maybe_socket): New declaration.
74586         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
74587         * lib/winsock.c (close): Remove undefinition.
74588         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
74589         needed for the gnulib module 'close'.
74590         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
74591         define to an error symbol or to a warning, if suitable.
74592         * lib/close.c: Include <sys/socket.h>.
74593         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
74594         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
74595         UNISTD_H_HAVE_WINSOCK2_H.
74596         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
74597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74598         UNISTD_H_HAVE_WINSOCK2_H.
74599         * modules/sys_socket (Files): Add m4/unistd_h.m4.
74600         (configure.ac): Set a module indicator.
74601         (Makefile.am): Substitute GNULIB_CLOSE.
74602         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
74603         * modules/poll-tests (Depends-on): Add close.
74604         * modules/select-tests (Depends-on): Likewise.
74606 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74607             Bruno Haible  <bruno@clisp.org>
74609         New module 'close'.
74610         * modules/close: New file.
74611         * lib/unistd.in.h (close): Move declaration out of the
74612         FCHDIR_REPLACEMENT scope.
74613         (_gl_unregister_fd): New declaration.
74614         * lib/close.c: New file.
74615         * lib/fchdir.c (rpl_close): Remove function.
74616         * m4/close.m4: New file.
74617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74618         close.
74619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
74620         REPLACE_CLOSE.
74621         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
74622         REPLACE_CLOSE.
74623         * modules/fchdir (Depends-on): Add close.
74625 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74626             Bruno Haible  <bruno@clisp.org>
74628         * lib/fcntl.in.h (open): Simplify conditionals.
74629         (_gl_register_fd): New declaration.
74630         * lib/fchdir.c (rpl_open): Remove function.
74631         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
74632         also.
74633         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
74634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74635         open.
74637 2008-10-09  Jim Meyering  <meyering@redhat.com>
74639         GNUmakefile: use the more name-space-friendly "_version"
74640         * top/GNUmakefile (_dummy): Update.
74641         (_version): Rename from "version".
74643 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74644             Bruno Haible  <bruno@clisp.org>
74646         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
74647         rpl_close.
74648         (_gl_register_fd): New function, extracted from rpl_open.
74649         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
74650         (rpl_open, rpl_opendir): Use _gl_register_fd.
74652 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74654         Fix organization of 'open' replacement.
74655         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
74656         (gl_FUNC_OPEN): Use it.
74657         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
74659 2008-10-08  Bruno Haible  <bruno@clisp.org>
74661         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
74663 2008-10-08  Simon Josefsson  <simon@josefsson.org>
74665         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
74666         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
74667         listen).
74669 2008-10-08  Eric Blake  <ebb9@byu.net>
74671         GNUmakefile: add 'make version' target
74672         * top/GNUmakefile (_curr-ver): Split version update rules...
74673         (version): ...into a target.
74675 2008-10-07  Bruno Haible  <bruno@clisp.org>
74677         Use a more portable replacement expression for -0.0L.
74678         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
74679         instead of -0.0L. Fix m4 quotation.
74681         * tests/test-signbit.c: Include <float.h>.
74682         (minus_zero): New variable.
74683         (test_signbitl): Use minus_zero instead of -zero.
74684         * modules/signbit-tests (Depends-on): Add float.
74686         * tests/test-ceill.c: Include <float.h>.
74687         (zero): Remove variable.
74688         (minus_zero): New variable.
74689         (main): Use minus_zero instead of -zero.
74690         * modules/ceill-tests (Depends-on): Add float.
74692         * tests/test-floorl.c: Include <float.h>.
74693         (zero): Remove variable.
74694         (minus_zero): New variable.
74695         (main): Use minus_zero instead of -zero.
74696         * modules/floorl-tests (Depends-on): Add float.
74698         * tests/test-roundl.c: Include <float.h>.
74699         (zero): Remove variable.
74700         (minus_zero): New variable.
74701         (main): Use minus_zero instead of -zero.
74702         * modules/roundl-tests (Depends-on): Add float.
74704         * tests/test-truncl.c: Include <float.h>.
74705         (zero): Remove variable.
74706         (minus_zero): New variable.
74707         (main): Use minus_zero instead of -zero.
74708         * modules/truncl-tests (Depends-on): Add float.
74710         * tests/test-frexpl.c (zero): Remove variable.
74711         (minus_zero): New variable.
74712         (main): Use minus_zero instead of -zero.
74713         * modules/frexpl-tests (Depends-on): Add float.
74715         * tests/test-isnan.c (zerol): Remove variable.
74716         (minus_zerol): New variable.
74717         (test_long_double): Use minus_zerol instead of -zerol.
74718         * modules/isnan-tests (Depends-on): Add float.
74720         * tests/test-isnanl.h (zero): Remove variable.
74721         (minus_zero): New variable.
74722         (main): Use minus_zero instead of -zero.
74723         * modules/isnanl-nolibm-tests (Depends-on): Add float.
74724         * modules/isnanl-tests (Depends-on): Add float.
74726         * tests/test-ldexpl.c (zero): Remove variable.
74727         (minus_zero): New variable.
74728         (main): Use minus_zero instead of -zero.
74729         * modules/ldexpl-tests (Depends-on): Add float.
74731         * tests/test-snprintf-posix.h (zerol): Remove variable.
74732         (minus_zerol): New variable.
74733         (test_function): Use minus_zerol instead of -zerol.
74734         * modules/snprintf-posix-tests (Depends-on): Add float.
74735         * modules/vsnprintf-posix-tests (Depends-on): Add float.
74737         * tests/test-sprintf-posix.h (zerol): Remove variable.
74738         (minus_zerol): New variable.
74739         (test_function): Use minus_zerol instead of -zerol.
74740         * modules/sprintf-posix-tests (Depends-on): Add float.
74741         * modules/vsprintf-posix-tests (Depends-on): Add float.
74743         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
74744         (minus_zerol): New variable.
74745         (test_function): Use minus_zerol instead of -zerol.
74746         * modules/vasnprintf-posix-tests (Depends-on): Add float.
74748         * tests/test-vasprintf-posix.c (zerol): Remove variable.
74749         (minus_zerol): New variable.
74750         (test_function): Use minus_zerol instead of -zerol.
74751         * modules/vasprintf-posix-tests (Depends-on): Add float.
74753 2008-10-07  Simon Josefsson  <simon@josefsson.org>
74755         * MODULES.html.sh (Support for building documentation): Mention
74756         pmccabe2html.  Sort entries.
74758         Add pmccabe2html module, from gnupdf.
74759         * build-aux/pmccabe.css: New file.
74760         * build-aux/pmccabe2html: New file.
74761         * m4/pmccabe2html.m4: New file.
74762         * modules/pmccabe2html: New file.
74764 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
74766         flock: new module
74767         * MODULES.html.sh: Add to list of modules.
74768         * lib/flock.c: flock implementation for Windows and Unix systems
74769         which have fcntl.
74770         * doc/glibc-functions/flock.texi: Update documentation.
74771         * lib/sys_file.in.h: <sys/file.h> header file.
74772         * m4/flock.m4: M4 macros.
74773         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
74774         * modules/flock: flock module.
74775         * modules/flock-tests: flock tests module.
74776         * modules/sys_file: sys/file.h module.
74777         * tests/test-flock.c: test suite for flock.
74779 2008-10-06  Jim Meyering  <meyering@redhat.com>
74781         bootstrap: check for LT_INIT more portably still ;-)
74782         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
74783         Spotted by Bruno Haible.
74785 2008-10-06  Eric Blake  <ebb9@byu.net>
74787         test-signbit: avoid tripping Irix cc bug on -0.0L
74788         * tests/test-signbit.c (minus_zerol): Delete, and replace with
74789         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
74790         entire testsuite consistent and avoids an Irix 6.2 bug.
74792 2008-10-05  Bruno Haible  <bruno@clisp.org>
74793             Jim Meyering  <jim@meyering.net>
74795         Add an option for ignoring EPIPE during close_stdout.
74796         * lib/closeout.h: Include <stdbool.h>.
74797         (close_stdout_set_ignore_EPIPE): New declaration.
74798         * lib/closeout.c: Include <stdbool.h>.
74799         (ignore_EPIPE): New variable.
74800         (close_stdout_set_ignore_EPIPE): New function.
74801         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
74802         * lib/close-stream.c (close_stream): Mention the possible EPIPE
74803         failure.
74804         * modules/closeout (Depends-on): Add stdbool.
74806 2008-10-05  Bruno Haible  <bruno@clisp.org>
74808         * modules/accept: New file.
74809         * modules/bind: New file.
74810         * modules/connect: New file.
74811         * modules/getpeername: New file.
74812         * modules/getsockname: New file.
74813         * modules/getsockopt: New file.
74814         * modules/listen: New file.
74815         * modules/recv: New file.
74816         * modules/recvfrom: New file.
74817         * modules/send: New file.
74818         * modules/sendto: New file.
74819         * modules/setsockopt: New file.
74820         * modules/socket: New file.
74821         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
74822         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
74823         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
74824         the particular module is requested. Add a link warning when the
74825         particular module is not requested.
74826         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
74827         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
74828         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
74829         the particular module is requested.
74830         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
74831         gl_SYS_SOCKET_H_DEFAULTS): New macros.
74832         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
74833         * modules/sys_socket (Depends-on): Add link-warning.
74834         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
74835         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
74836         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
74837         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
74838         GL_LINK_WARNING.
74839         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
74840         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
74841         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
74842         * doc/posix-functions/getpeername.texi: Mention the new module
74843         'getpeername'.
74844         * doc/posix-functions/getsockname.texi: Mention the new module
74845         'getsockname'.
74846         * doc/posix-functions/getsockopt.texi: Mention the new module
74847         'getsockopt'.
74848         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
74849         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
74850         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
74851         * doc/posix-functions/send.texi: Mention the new module 'send'.
74852         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
74853         * doc/posix-functions/setsockopt.texi: Mention the new module
74854         'setsockopt'.
74855         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
74856         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
74857         listen, connect, accept.
74858         * modules/select-tests (Depends-on): Likewise.
74860 2008-10-05  Bruno Haible  <bruno@clisp.org>
74862         * lib/winsock.c (strerror): Remove unused #undef.
74863         (rpl_close): Remove unused local variable.
74865         * modules/sys_socket (Depends-on); Add errno.
74867 2008-10-05  Bruno Haible  <bruno@clisp.org>
74869         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
74870         (select): Add a link warning when the 'select' module is not used.
74871         * modules/sys_select (Depends-on): Add link-warning.
74872         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
74873         Suggested by Paolo Bonzini.
74875 2008-10-05  Jim Meyering  <meyering@redhat.com>
74877         bootstrap: check for LT_INIT more portably
74878         * build-aux/bootstrap: Avoid using grep -E, since it's not
74879         portable enough.  Suggestion from Bruno Haible.
74881 2008-10-05  Bruno Haible  <bruno@clisp.org>
74883         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
74884         as being fixed by gnulib.
74886 2008-10-05  Bruno Haible  <bruno@clisp.org>
74888         * modules/select-tests: New file, mostly copied from
74889         modules/sys_select-tests.
74890         * tests/test-select.c: New file, mostly copied from
74891         tests/test-sys_select.c.
74892         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
74893         * modules/sys_select-tests (Depends-on): Remove all dependencies.
74894         (Makefile.am): Remove test_sys_select_LDADD.
74896         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
74897         to an undefined symbol, for an error message.
74898         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
74899         (gl_SYS_SELECT_H_DEFAULTS): New macro.
74900         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
74901         winsock-select.c here.
74902         * modules/sys_select (Files): Remove lib/winsock-select.c.
74903         (Depends-on): Remove alloca.
74904         (Makefile.am): Substitute GNULIB_SELECT.
74905         * modules/select: New file.
74906         * doc/posix-functions/select.texi: Update.
74908 2008-10-05  Bruno Haible  <bruno@clisp.org>
74910         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
74911         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
74912         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
74913         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
74914         getdtablesize.
74915         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
74916         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
74918 2008-10-05  Bruno Haible  <bruno@clisp.org>
74920         * modules/getdtablesize-tests: New file.
74921         * tests/test-getdtablesize.c: New file.
74923         New module 'getdtablesize'.
74924         * lib/unistd.in.h (getdtablesize): New declaration.
74925         * lib/getdtablesize.c: New file.
74926         * m4/getdtablesize.m4: New file.
74927         * modules/getdtablesize: New file.
74928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74929         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
74930         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
74931         HAVE_GETDTABLESIZE.
74932         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
74934 2008-10-05  Bruno Haible  <bruno@clisp.org>
74936         * modules/sched (Makefile.am): Fix typo.
74937         Reported by Simon Josefsson.
74939 2008-10-05  Jim Meyering  <meyering@redhat.com>
74941         bootstrap: check for LT_INIT, too
74942         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
74943         are deprecated.  Suggestion from Ralf Wildenhues.
74945 2008-10-05  Bruno Haible  <bruno@clisp.org>
74947         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
74948         overriding them by ours.
74949         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
74951 2008-10-05  Jim Meyering  <meyering@redhat.com>
74953         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
74954         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
74955         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
74957 2008-10-04  Bruno Haible  <bruno@clisp.org>
74959         * modules/dup2 (License): Change to LGPLv2+.
74960         * modules/sleep (License): Likewise.
74961         * modules/perror (License): Likewise.
74962         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
74963         Blake.
74964         * modules/signal (License): Likewise.
74965         * modules/sigprocmask (License): Likewise.
74966         * modules/raise (License): Change to LGPLv2+, with approval by Jim
74967         Meyering.
74969 2008-10-04  Bruno Haible  <bruno@clisp.org>
74971         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
74972         Reported by Rainer Tammer <tammer@tammer.net>.
74974 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
74975             Bruno Haible  <bruno@clisp.org>
74977         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
74978         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
74979         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
74981 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
74983         filevercmp: new module
74984         * lib/filevercmp.h: New function filevercmp comparing version strings.
74985         * lib/filevercmp.c: Implementation of filevercmp function.
74986         * modules/filevercmp: Module metadata.
74987         * tests/test-filevercmp.c: Unit test for new module.
74988         * modules/filevercmp-tests: Unit test metadata.
74989         * MODULES.html.sh: Add filevercmp module.
74991 2008-10-03  Bruno Haible  <bruno@clisp.org>
74993         * lib/c-ctype.h: Add comment.
74994         Reported by Jim Meyering.
74996 2008-10-02  Bruno Haible  <bruno@clisp.org>
74998         * modules/posix_spawn-internal (Depends-on): Add 'open'.
75000 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75002         * build-aux/bootstrap: Allow renaming bootstrap, and change the
75003         name of bootstrap.conf accordingly.
75005 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75007         * build-aux/bootstrap: Install git-merge-changelog configuration
75008         items into .gitconfig if needed.
75010 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75012         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
75013         git repository, and initialize/update it accordingly.
75015 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
75017         * modules/fsync-tests: New file.
75018         * tests/test-fsync.c: New file.
75020         New module 'fsync'.
75021         * lib/fsync.c: New file.
75022         * m4/fsync.m4: New file.
75023         * modules/fsync: New file.
75024         * lib/unistd.in.h (fsync): New declaration.
75025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
75026         GNULIB_FSYNC and HAVE_FSYNC.
75027         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
75028         * MODULES.html.sh (posix_functions): Add fsync.
75029         * doc/posix-functions/fsync.texi: Mention the new module.
75031 2008-10-02  Jim Meyering  <meyering@redhat.com>
75033         fts.c: sync with similar code from coreutils' remove.c
75034         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
75035         Guard also with "#if defined __linux__", since for now at least,
75036         this code is Linux-kernel-specific.
75038 2008-10-02  Jim Meyering  <meyering@redhat.com>
75040         fts: bug fixes
75041         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
75042         Include <sys/vfs.h>, not <sys/statfs.h>.
75044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
75045         Include <sys/vfs.h>, not <sys/statfs.h>.
75047 2008-10-01  Bruno Haible  <bruno@clisp.org>
75049         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
75050         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
75051         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
75052         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
75053         * doc/posix-functions/posix_spawnp.texi: Likewise.
75054         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
75055         whether posix_spawn actually works.
75056         * m4/pipe.m4 (gl_PIPE): Likewise.
75057         * modules/execute (Files): Add m4/posix_spawn.m4.
75058         * modules/pipe (Files): Add m4/posix_spawn.m4.
75059         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
75061 2008-10-01  Jim Meyering  <meyering@redhat.com>
75063         remove trailing spaces
75064         * NEWS: Likewise.
75065         * lib/poll.c (poll): Likewise.
75066         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
75067         * lib/winsock.c (rpl_close): Likewise.
75068         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
75069         * modules/yield: Likewise.
75070         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
75071         * tests/test-sys_select.c (connect_to_socket): Likewise.
75073         fts.c: adjust a new interface to be more generally useful
75074         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
75075         (fts_build): Adjust caller.
75077 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75079         * modules/cond-tests: New file.
75080         * tests/test-cond.c: New file.
75082 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75083             Bruno Haible  <bruno@clisp.org>
75085         * modules/cond (Dependencies): Add errno, time.
75086         * lib/glthread/cond.h: Include <time.h>.
75087         (gl_cond_define, gl_cond_define_initialized): Use the same definition
75088         across platforms.
75090 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75091             Bruno Haible  <bruno@clisp.org>
75093         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
75095 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75096             Bruno Haible  <bruno@clisp.org>
75098         * modules/tls-tests (Depends-on): Add thread, yield.
75099         (configure.ac): Remove all checks.
75100         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
75101         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75102         gl_thread_self): Remove definitions. Include glthread/thread.h and
75103         glthread/yield.h instead.
75104         (test_tls): Pass an additional NULL argument to gl_thread_join.
75106 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75107             Bruno Haible  <bruno@clisp.org>
75109         * modules/lock-tests (Depends-on): Add thread, yield.
75110         (configure.ac): Remove all checks.
75111         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
75112         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75113         gl_thread_self): Remove definitions. Include glthread/thread.h and
75114         glthread/yield.h instead.
75115         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
75116         additional NULL argument to gl_thread_join.
75118 2008-09-30  Bruno Haible  <bruno@clisp.org>
75120         Fix the Win32 implementation of the 'thread' module.
75121         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
75122         pointer type.
75123         (gl_thread_self): Invoke gl_thread_self_func.
75124         (gl_thread_self_func): New declaration.
75125         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
75126         (do_init_self_key, init_self_key): New functions.
75127         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
75128         Remove some fields.
75129         (running_threads, running_lock): Remove variables.
75130         (get_current_thread_handle): New function.
75131         (gl_thread_self_func, wrapper_func, glthread_create_func,
75132         glthread_join_func, gl_thread_exit_func): Largely rewritten and
75133         simplified.
75135 2008-09-30  Bruno Haible  <bruno@clisp.org>
75137         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
75138         files.
75140 2008-09-30  Jim Meyering  <meyering@redhat.com>
75142         fts.m4: correct the test for statfs.f_type
75143         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
75144         when checking for statfs.f_type.
75146 2008-09-15  Simon Josefsson  <simon@josefsson.org>
75148         tests: avoid some compiler warnings
75149         * tests/test-memchr.c (main): Pass NULL indirectly.
75150         * tests/test-getdate.c (main): Remove unused variable 'ret'.
75152 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
75154         getdate.y: disallow countable dayshifts like "4 yesterday ago"
75155         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
75156         exactly specified dayshifts.
75157         (dayshift): New rule.
75158         (rel): Add dayshift.
75159         (relative_time_table) [tomorrow, yesterday, today, now]:
75160         Use tDAY_SHIFT in place of tDAY_UNIT.
75161         * tests/test-getdate.c: Add tests for now-disallowed countable
75162         dayshifts, e.g., "4 yesterday ago".
75164 2008-09-29  Bruno Haible  <bruno@clisp.org>
75166         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
75167         * tests/test-posix_spawn1.in.sh: Renamed from
75168         tests/test-posix_spawn.in.sh.
75169         * tests/test-posix_spawn2.c: New file.
75170         * tests/test-posix_spawn2.in.sh: New file.
75171         * modules/posix_spawnp-tests (Files): Update.
75172         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
75174 2008-09-29  Bruno Haible  <bruno@clisp.org>
75176         Propagate effects of putenv/setenv/unsetenv to child processes.
75177         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
75178         * lib/pipe.c (create_pipe): Likewise.
75180 2008-09-29  Bruno Haible  <bruno@clisp.org>
75182         Enable use of shell scripts as executables in mingw.
75183         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
75184         run the program as a shell script.
75185         * lib/pipe.c (create_pipe): Likewise.
75186         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
75187         resulting array.
75189 2008-09-29  Eric Blake  <ebb9@byu.net>
75191         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
75193 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
75195         * doc/posix-functions/accept.texi: Update mingw problems.
75196         * doc/posix-functions/bind.texi: Update mingw problems.
75197         * doc/posix-functions/close.texi: Update mingw problems.
75198         * doc/posix-functions/connect.texi: Update mingw problems.
75199         * doc/posix-functions/getpeername.texi: Update mingw problems.
75200         * doc/posix-functions/getsockname.texi: Update mingw problems.
75201         * doc/posix-functions/getsockopt.texi: Update mingw problems.
75202         * doc/posix-functions/ioctl.texi: Update mingw problems.
75203         * doc/posix-functions/listen.texi: Update mingw problems.
75204         * doc/posix-functions/recv.texi: Update mingw problems.
75205         * doc/posix-functions/recvfrom.texi: Update mingw problems.
75206         * doc/posix-functions/select.texi: Update mingw problems.
75207         * doc/posix-functions/send.texi: Update mingw problems.
75208         * doc/posix-functions/sendto.texi: Update mingw problems.
75209         * doc/posix-functions/setsockopt.texi: Update mingw problems.
75210         * doc/posix-functions/socket.texi: Update mingw problems.
75212 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
75213             Bruno Haible  <bruno@clisp.org>
75215         * lib/sys_select.in.h: Include sys/time.h.
75216         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
75217         * modules/sys_select: Depend on sys_time.
75218         * tests/test-sys_select.c: Test that sys/select.h defines struct
75219         timeval fully.
75221 2008-09-29  Bruno Haible  <bruno@clisp.org>
75223         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
75224         * lib/sys_select.in.h: Likewise.
75226 2008-09-29  Bruno Haible  <bruno@clisp.org>
75228         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
75230 2008-09-29  Bruno Haible  <bruno@clisp.org>
75232         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
75233         Set LIBSOCKET instead of augmenting LIBS.
75234         * modules/sockets (Link): New section.
75235         * modules/sockets-tests (test_sockets_LDADD): New variable.
75236         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
75237         * modules/poll-tests (test_poll_LDADD): New variable.
75238         * NEWS: Document the change.
75240 2008-09-29  Bruno Haible  <bruno@clisp.org>
75242         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
75243         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
75244         ARPA_INET_H directly.
75245         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75247 2008-09-28  Bruno Haible  <bruno@clisp.org>
75249         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
75250         from gl_HEADER_SYS_SOCKET.
75251         (gl_HEADER_SYS_SOCKET): Invoke it.
75252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75254 2008-09-28  Bruno Haible  <bruno@clisp.org>
75256         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
75257         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
75258         Needed on OSF/1 4.0.
75260 2008-09-28  Bruno Haible  <bruno@clisp.org>
75262         Override open more carefully.
75263         * lib/open.c (orig_open): New function.
75264         (rpl_open): Use orig_open instead of open.
75265         * lib/fcntl.in.h: Add special invocation convention.
75266         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
75267         (gl_FUNC_OPEN): Invoke it.
75269         Override freopen more carefully.
75270         * lib/freopen.c (orig_freopen): New function.
75271         (rpl_freopen): Use orig_freopen instead of freopen.
75272         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
75273         (gl_FUNC_FREOPEN): Invoke it.
75275         Override fopen more carefully.
75276         * lib/fopen.c (orig_fopen): New function.
75277         (rpl_fopen): Use orig_fopen instead of fopen.
75278         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
75279         (gl_FUNC_FOPEN): Invoke it.
75280         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
75282 2008-09-28  Bruno Haible  <bruno@clisp.org>
75284         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
75285         SIGPIPE.
75287 2008-09-28  Bruno Haible  <bruno@clisp.org>
75289         * tests/test-sigaction.c (handler, main): Disable the check whether
75290         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
75291         glibc systems with LinuxThreads.
75293 2008-09-28  Bruno Haible  <bruno@clisp.org>
75295         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75297         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75298         with AIX xlc.
75299         * lib/fcntl.in.h (open): Likewise.
75300         Reported by Rainer Tammer <tammer@tammer.net>.
75302 2008-09-28  Bruno Haible  <bruno@clisp.org>
75304         * modules/posix_spawnp-tests: New file.
75305         * tests/test-posix_spawn.c: New file.
75306         * tests/test-posix_spawn.in.sh: New file.
75308         New module 'posix_spawnp'.
75309         * modules/posix_spawnp: New file.
75310         * lib/spawnp.c: New file, from GNU libc with modifications.
75311         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75313         New module 'posix_spawn'.
75314         * modules/posix_spawn: New file.
75315         * lib/spawn.c: New file, from GNU libc with modifications.
75316         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75318         New module 'posix_spawnattr_destroy'.
75319         * modules/posix_spawnattr_destroy: New file.
75320         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75321         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75322         module.
75324         New module 'posix_spawnattr_setsigmask'.
75325         * modules/posix_spawnattr_setsigmask: New file.
75326         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75327         modifications.
75328         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75329         new module.
75331         New module 'posix_spawnattr_getsigmask'.
75332         * modules/posix_spawnattr_getsigmask: New file.
75333         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75334         modifications.
75335         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75336         new module.
75338         New module 'posix_spawnattr_setsigdefault'.
75339         * modules/posix_spawnattr_setsigdefault: New file.
75340         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75341         modifications.
75342         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75343         new module.
75345         New module 'posix_spawnattr_getsigdefault'.
75346         * modules/posix_spawnattr_getsigdefault: New file.
75347         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75348         modifications.
75349         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75350         new module.
75352         New module 'posix_spawnattr_setschedpolicy'.
75353         * modules/posix_spawnattr_setschedpolicy: New file.
75354         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75355         modifications.
75356         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75357         new module.
75359         New module 'posix_spawnattr_getschedpolicy'.
75360         * modules/posix_spawnattr_getschedpolicy: New file.
75361         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75362         modifications.
75363         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75364         new module.
75366         New module 'posix_spawnattr_setschedparam'.
75367         * modules/posix_spawnattr_setschedparam: New file.
75368         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75369         modifications.
75370         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75371         new module.
75373         New module 'posix_spawnattr_getschedparam'.
75374         * modules/posix_spawnattr_getschedparam: New file.
75375         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75376         modifications.
75377         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75378         new module.
75380         New module 'posix_spawnattr_setpgroup'.
75381         * modules/posix_spawnattr_setpgroup: New file.
75382         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75383         modifications.
75384         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75385         module.
75387         New module 'posix_spawnattr_getpgroup'.
75388         * modules/posix_spawnattr_getpgroup: New file.
75389         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75390         modifications.
75391         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75392         module.
75394         New module 'posix_spawnattr_setflags'.
75395         * modules/posix_spawnattr_setflags: New file.
75396         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75397         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75398         module.
75400         New module 'posix_spawnattr_getflags'.
75401         * modules/posix_spawnattr_getflags: New file.
75402         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75403         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75404         module.
75406         New module 'posix_spawnattr_init'.
75407         * modules/posix_spawnattr_init: New file.
75408         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75409         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75410         module.
75412         New module 'posix_spawn_file_actions_destroy'.
75413         * modules/posix_spawn_file_actions_destroy: New file.
75414         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75415         modifications.
75416         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75417         the new module.
75419         New module 'posix_spawn_file_actions_addopen'.
75420         * modules/posix_spawn_file_actions_addopen: New file.
75421         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75422         modifications.
75423         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75424         the new module.
75426         New module 'posix_spawn_file_actions_adddup2'.
75427         * modules/posix_spawn_file_actions_adddup2: New file.
75428         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75429         modifications.
75430         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75431         the new module.
75433         New module 'posix_spawn_file_actions_addclose'.
75434         * modules/posix_spawn_file_actions_addclose: New file.
75435         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75436         modifications.
75437         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75438         the new module.
75440         New module 'posix_spawn_file_actions_init'.
75441         * modules/posix_spawn_file_actions_init: New file.
75442         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75443         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75444         new module.
75446         New module 'posix_spawn-internal'.
75447         * modules/posix_spawn-internal: New file.
75448         * lib/spawn_int.h: New file, from GNU libc with modifications.
75449         * lib/spawni.c: New file, from GNU libc with modifications.
75450         * m4/posix_spawn.m4: New file.
75452         New module 'spawn'.
75453         * modules/spawn: New file.
75454         * lib/spawn.in.h: New file, from GNU libc with modifications.
75455         * m4/spawn_h.m4: New file.
75456         * doc/posix-headers/spawn.texi: Mention the new module.
75458 2008-09-28  Bruno Haible  <bruno@clisp.org>
75460         * modules/sched-tests: New file.
75461         * tests/test-sched.c: New file.
75463         New module 'sched'.
75464         * modules/sched: New file.
75465         * lib/sched.in.h: New file.
75466         * m4/sched_h.m4: New file.
75467         * doc/posix-headers/sched.texi: Mention the new module.
75469 2008-09-27  Eric Blake  <ebb9@byu.net>
75471         Fix previous patch, and tweak references to $0.
75472         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75473         (func_version, func_gnulib_dir): Don't call this program
75474         gnulib-tool.
75475         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75476         with using $0 in function.
75477         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75478         (func_fatal_error): Reuse the name the user invoked us with.
75480 2008-09-27  Bruno Haible  <bruno@clisp.org>
75482         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75483         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75484         (gl_ICONV_H): Not here.
75485         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75486         instead of assigning ICONV_H directly.
75488         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75490         WCHAR_H directly.
75492 2008-09-27  Bruno Haible  <bruno@clisp.org>
75494         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75495         * modules/arpa_inet (Depends-on): Add link-warning.
75496         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75497         * modules/unistd (Makefile.am): Likewise.
75499 2008-09-26  Bruno Haible  <bruno@clisp.org>
75501         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75502         variables.
75503         (func_version): Essentially copied from gnulib-tool.
75504         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75505         func_readlink): Copied from gnulib-tool.
75507 2008-09-26  Bruno Haible  <bruno@clisp.org>
75509         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75510         invoking git-version-gen.
75512 2008-09-26  Bruno Haible  <bruno@clisp.org>
75514         * posix-modules: Update to directory names changed on 2008-01-19.
75515         Remove commas in output before splitting into words. No more need to
75516         avoid 'ftruncate' since 2007-02-19.
75518 2008-09-26  Bruno Haible  <bruno@clisp.org>
75520         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75522 2008-09-26  Bruno Haible  <bruno@clisp.org>
75524         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75525         * modules/fwriteerror (Depends-on): Add errno.
75527 2008-09-26  Bruno Haible  <bruno@clisp.org>
75529         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75530         * tests/test-vc-list-files-cvs.sh: Likewise.
75532 2008-09-26  Bruno Haible  <bruno@clisp.org>
75534         * doc/posix-headers/sys_resource.texi: Reorder items.
75536 2008-09-26  Jim Meyering  <meyering@redhat.com>
75538         fts: tweak inode comparison function
75539         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75540         inode numbers, as documented.
75542         fts: sort dirent entries on inode number before traversing
75543         This avoids a quadratic, seek-related performance penalty when
75544         operating on a directory containing many entries (measurable at 10k;
75545         3.5 hours at 2 million entries with a cold cache) on certain types
75546         of file systems, including ext3 and ext4, but not tmpfs.
75547         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
75548         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
75549         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
75550         (fs_handles_readdir_ordered_dirents_efficiently): New function.
75551         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
75552         (fts_build): Set the stat.st_ino member from D_INO.
75553         If it is likely to be useful, sort dirent entries on inode number.
75555         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
75556         and the struct statfs.f_type member.
75557         * modules/fts (Depends-on): Add d-ino.
75559 2008-09-26  Bruno Haible  <bruno@clisp.org>
75561         * modules/sigpipe-die (Depends-on): Add sigpipe.
75563         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
75564         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
75565         and GNULIB_STDIO_H_SIGPIPE are set.
75566         * lib/stdio-write.c: New file.
75567         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
75568         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75569         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75570         REPLACE_STDIO_WRITE_FUNCS.
75571         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
75572         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75573         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75574         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75575         * modules/stdio (Files): Add lib/stdio-write.c.
75576         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
75577         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75578         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75579         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75580         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
75581         REPLACE_FPRINTF_POSIX.
75582         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
75583         REPLACE_PRINTF_POSIX.
75584         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
75585         REPLACE_VFPRINTF_POSIX.
75586         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
75587         REPLACE_VPRINTF_POSIX.
75588         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
75589         SIGPIPE issue.
75590         * doc/posix-functions/fputc.texi: Likewise.
75591         * doc/posix-functions/fputs.texi: Likewise.
75592         * doc/posix-functions/fwrite.texi: Likewise.
75593         * doc/posix-functions/printf.texi: Likewise.
75594         * doc/posix-functions/putc.texi: Likewise.
75595         * doc/posix-functions/putchar.texi: Likewise.
75596         * doc/posix-functions/puts.texi: Likewise.
75597         * doc/posix-functions/vfprintf.texi: Likewise.
75598         * doc/posix-functions/vprintf.texi: Likewise.
75600         * modules/safe-write (Depends-on): Add write.
75602         * modules/sigpipe-tests: New file.
75603         * tests/test-sigpipe.c: New file.
75604         * tests/test-sigpipe.sh: New file.
75606         * modules/write: New file.
75607         * lib/unistd.in.h: Include <sys/types.h>.
75608         (write): New declaration.
75609         * lib/write.c: New file.
75610         * m4/write.m4: New file.
75611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75612         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
75613         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
75614         GNULIB_WRITE, REPLACE_WRITE.
75615         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
75616         and the SIGPIPE issue.
75618         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
75619         (raise): New declaration.
75620         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
75621         (ext_signal): New function.
75622         (rpl_raise): New function.
75623         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
75624         GNULIB_SIGNAL_H_SIGPIPE.
75625         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
75626         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
75628         * modules/sigpipe: New file.
75629         * m4/sigpipe.m4: New file.
75631 2008-09-25  Derek Price  <derek@ximbiot.com>
75632             Bruno Haible  <bruno@clisp.org>
75634         * gnulib-tool (func_import): Report all license incompatibilities, not
75635         just the first one.
75637 2008-09-25  Bruno Haible  <bruno@clisp.org>
75639         * gnulib-tool (func_import): When computing the edits, consider not
75640         only the Makefile.ams that exist but also those that will be generated.
75642 2008-09-25  Simon Josefsson  <simon@josefsson.org>
75644         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
75645         fixes gnulib-tool --test warning about duplicate dependency.
75647 2008-09-25  Bruno Haible  <bruno@clisp.org>
75649         * gnulib-tool: Don't ask the user to perform edits in the generated
75650         Makefile.ams.
75651         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
75652         apply to the Makefile.am being generated.
75653         (func_emit_tests_Makefile_am): Execute edits that apply to the
75654         Makefile.am being generated.
75655         (func_import): Setup list of Makefile.am edits before emitting the
75656         Makefile.ams, not at the end.
75657         (func_create_testdir): Update.
75658         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75660 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75662         * gnulib-tool (func_import): Store the --tests-base option in the
75663         comment in gnulib-cache.m4.
75665 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
75667         * NEWS: Document increased portability that sys_select now provides.
75669         * lib/sys_select.in.h: Install select wrapper.
75670         * lib/sys_socket.in.h: Use more descriptive name when there is no
75671         select wrapper.
75672         * lib/winsock-select.c: New.
75673         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
75674         Require gl_HEADER_SYS_SOCKET.
75675         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
75676         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
75677         * tests/test-sys_select.c: Add functional tests.
75679 2008-09-24  Eric Blake  <ebb9@byu.net>
75681         open, fopen: close fd leak in last patch
75682         * lib/open.c (rpl_open): Close fd before returning error.
75683         * lib/fopen.c (rpl_fopen): Close fd before returning error.
75684         * doc/posix-functions/open.texi (open): Document that Irix also
75685         has the bug.
75686         * doc/posix-functions/fopen.texi (fopen): Likewise.
75687         Reported by Paolo Bonzini.
75689 2008-09-24  Bruno Haible  <bruno@clisp.org>
75691         Ensure that a filename ending in a slash cannot be used to access a
75692         non-directory.
75693         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
75694         to check whether it's really a directory.
75695         * lib/fopen.c: Include fcntl.h, unistd.h.
75696         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
75697         and fdopen().
75698         * modules/fopen (Depends-on): Add unistd.
75699         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
75700         * tests/test-fopen.c (main): Likewise.
75701         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
75702         * doc/posix-functions/fopen.texi: Likewise.
75703         Reported by Eric Blake.
75705 2008-09-23  Eric Blake  <ebb9@byu.net>
75707         c-stack: avoid compiler optimizations when provoking overflow
75708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
75709         recursion harder to optimize, to ensure a stack overflow occurs.
75710         * tests/test-c-stack.c (recurse): Likewise.
75711         Borrowed from libsigsegv.
75713         c-stack: work around Irix sigaltstack bug
75714         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
75715         whether sigaltstack uses wrong end of stack_t (copied in part from
75716         libsigsegv).
75717         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
75718         Irix bug, without requiring an over-allocation.
75719         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
75720         bug.
75722         fopen: document mingw bug on directories
75723         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
75724         not allowing a stream visiting a directory, even though reading
75725         from such a stream is not portable.
75727 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75729         * lib/poll.c: Rewrite.
75730         * modules/poll: Depend on alloca.
75732 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75734         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
75735         instead define prototypes for a full set of wrappers.  Ensure
75736         that Cygwin does not use the compatibility code, which is only
75737         for MinGW.
75738         * lib/winsock.c: New.
75739         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
75740         * modules/sys_socket: Add lib/winsock.c.
75742         * modules/poll-tests: Add errno and perror.
75743         * tests/test-poll.c: Use ioctl, not ioctlsocket.
75745 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75747         * tests/test-poll.c: Downgrade minimum needed Winsock version.
75749 2008-09-23  Bruno Haible  <bruno@clisp.org>
75751         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
75752         * doc/glibc-functions/*: Likewise.
75754 2008-09-23  Simon Josefsson  <simon@josefsson.org>
75756         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
75757         success.
75759 2008-09-22  Eric Blake  <ebb9@byu.net>
75760             Bruno Haible  <bruno@clisp.org>
75762         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
75763         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
75764         supply %A but mishandle pseudo-NaN.
75765         Reported by Simon Josefsson.
75767 2008-09-21  Bruno Haible  <bruno@clisp.org>
75769         * tests/test-lock.c (main): Tweak skip message.
75770         * tests/test-tls.c (main): Likewise.
75772 2008-09-21  Bruno Haible  <bruno@clisp.org>
75774         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
75775         whether 'struct sigaction' has sa_sigaction here...
75776         (gl_PREREQ_SIG_HANDLER_H): ... not here.
75777         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
75779 2008-09-21  Bruno Haible  <bruno@clisp.org>
75781         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
75782         section.
75783         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
75784         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
75785         the new section.
75786         (Support for obsolete systems lacking POSIX:2001): New section.
75787         (String handling <string.h>): Move strdup to the new section.
75788         Suggested by Simon Josefsson and Paolo Bonzini.
75790 2008-09-21  Bruno Haible  <bruno@clisp.org>
75792         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
75793         exponents in %e and %g results on 'long double'. Needed for mingw's
75794         improved *printf functions.
75795         * tests/test-vasprintf-posix.c (test_function): Likewise.
75796         * tests/test-snprintf-posix.h (test_function): Likewise.
75797         * tests/test-sprintf-posix.h (test_function): Likewise.
75798         Reported by Eric Blake.
75800 2008-09-21  Bruno Haible  <bruno@clisp.org>
75802         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
75803         * tests/test-sprintf-posix.h (test_function): Likewise.
75805 2008-09-21  Bruno Haible  <bruno@clisp.org>
75807         * modules/getpass (Depends-on): Add strdup-posix.
75809         New module 'strdup-posix'.
75810         * modules/strdup-posix: New file.
75811         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
75812         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
75813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75814         REPLACE_STRDUP.
75815         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
75816         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
75817         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75818         strdup-posix.
75820         * modules/strdup (Depends-on): Remove malloc-posix.
75822 2008-09-20  Bruno Haible  <bruno@clisp.org>
75824         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
75825         Wildenhues.
75827 2008-09-20  Bruno Haible  <bruno@clisp.org>
75829         Ensure that wint_t gets defined on IRIX 5.3.
75830         * lib/wchar.in.h (wint_t): Define if not defined by the system.
75831         * lib/wctype.in.h (wint_t): Likewise.
75832         (__wctype_wint_t): Remove type.
75833         (isw*): Use wint_t instead of __wctype_wint_t.
75834         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
75835         * modules/wchar (Files): Add m4/wint_t.m4.
75836         (Makefile.am): Substitute HAVE_WINT_T.
75837         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
75838         * tests/test-wctype.c: Check that wint_t is defined.
75839         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
75840         * doc/posix-headers/wctype.texi: Likewise.
75841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75843 2008-09-18  Bruno Haible  <bruno@clisp.org>
75845         * gnulib-tool (func_exit): Update comment.
75847 2008-09-18  Simon Josefsson  <simon@josefsson.org>
75849         * modules/getaddrinfo (Depends-on): Remove strdup, this module
75850         assumes strdup exists and does not depend on strdup to return
75851         ENOMEM on out of memory conditions.
75853 2008-09-18  Bruno Haible  <bruno@clisp.org>
75855         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
75856         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
75857         digits for the exponent.
75859 2008-09-18  Jim Meyering  <meyering@redhat.com>
75860             Bruno Haible  <bruno@clisp.org>
75862         * lib/vasnprintf.c (decimal_point_char): Define also if
75863         NEED_PRINTF_INFINITE_LONG_DOUBLE.
75865 2008-09-16  Bruno Haible  <bruno@clisp.org>
75866         and Eric Blake  <ebb9@byu.net>
75868         vasnprintf: support Irix 5.3
75869         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
75870         that mishandle long double infinity.
75871         Reported by Tom G. Christensen.
75873 2008-09-16  Bruno Haible  <bruno@clisp.org>
75875         * doc/glibc-functions/scandir.texi: Mention the function is missing on
75876         Solaris 9.
75877         * doc/glibc-functions/alphasort.texi: Likewise.
75878         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
75880 2008-09-16  Jim Meyering  <meyering@redhat.com>
75882         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
75883         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
75884         a umask modification leak out of a subshell.  Otherwise, the
75885         opensolaris /bin/sh would be accepted and thus cause unwarranted
75886         failures in the coreutils test suite.
75888 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
75890         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
75891         to succeed.
75893 2008-09-16  Jim Meyering  <meyering@redhat.com>
75895         avoid spurious test failure when library is built without ACL support
75896         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
75897         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
75898         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
75899         * tests/test-copy-acl.sh: Likewise.
75901 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75903         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
75904         based on character occurrence counts.
75906 2008-09-15  Eric Blake  <ebb9@byu.net>
75908         tests: avoid some compiler warnings
75909         * tests/test-memchr.c (main): Pass NULL indirectly.
75910         * tests/test-closein.c (main): Avoid unused variable.
75912 2008-09-15  Bruno Haible  <bruno@clisp.org>
75914         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
75915         are missing on OpenBSD 4.0 individually.
75916         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75918 2008-09-15  Bruno Haible  <bruno@clisp.org>
75920         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
75921         * doc/posix-functions/strerror.texi: Mention also Cygwin.
75922         * doc/posix-functions/perror.texi: Likewise.
75923         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
75924         is missing.
75925         Reported by Eric Blake.
75927         * lib/errno.in.h: Use replacement values >= 2000.
75928         Reported by Eric Blake.
75930 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75932         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
75933         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
75934         limit.
75935         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
75936         compareseq was aborted.
75938 2008-09-14  Bruno Haible  <bruno@clisp.org>
75940         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
75941         yvec_edit_count.
75942         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
75943         (fstrcmp_bounded): Simplify result computation accordingly.
75945 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75947         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
75948         (fstrcmp): Define in terms of fstrcmp_bounded.
75949         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
75950         lower_bound argument.
75951         Return quickly if the result is certainly < lower_bound.
75952         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
75954 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75956         * lib/diffseq.h (EARLY_ABORT): New macro.
75957         (compareseq): Change return type to bool. Return true when EARLY_ABORT
75958         evaluates to true.
75960 2008-09-14  Bruno Haible  <bruno@clisp.org>
75962         * modules/perror-tests: New file.
75963         * tests/test-perror.sh: New file.
75964         * tests/test-perror.c: New file.
75966         New module 'perror'.
75967         * lib/stdio.in.h (perror): New declaration.
75968         * lib/perror.c: New file.
75969         * m4/perror.m4: New file.
75970         * modules/perror: New file.
75971         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
75972         * doc/posix-functions/perror.texi: Mention the perror module.
75973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
75974         REPLACE_PERROR.
75975         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
75976         REPLACE_PERROR.
75978 2008-09-14  Bruno Haible  <bruno@clisp.org>
75980         * modules/stdio (Makefile.am): Reorder to match the order in
75981         lib/stdio.in.h.
75982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
75984 2008-09-13  Bruno Haible  <bruno@clisp.org>
75986         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
75988 2008-09-13  Bruno Haible  <bruno@clisp.org>
75990         Extend strerror to cover the added errno values.
75991         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
75992         (rpl_strerror): Provide error messages for the added errno values and
75993         for the WSA* values.
75994         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
75995         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
75996         strerror.
75997         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
75998         * modules/strerror (Depends-on): Add errno.
75999         * doc/posix-functions/strerror.texi: Document the change.
76000         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
76001         and EOVERFLOW.
76003 2008-09-13  Bruno Haible  <bruno@clisp.org>
76005         * modules/EOVERFLOW: Remove file.
76006         * m4/eoverflow.m4: Remove file.
76007         * modules/EOVERFLOW-tests: Remove file.
76008         * tests/test-EOVERFLOW.c: Remove file.
76009         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
76010         * modules/ftell (Depends-on): Likewise.
76011         * modules/getdelim (Depends-on): Likewise.
76012         * modules/getugroups (Depends-on): Likewise.
76013         * modules/poll (Depends-on): Likewise.
76014         * modules/snprintf (Depends-on): Likewise.
76015         * modules/sprintf-posix (Depends-on): Likewise.
76016         * modules/vasnprintf (Depends-on): Likewise.
76017         * modules/vasprintf (Depends-on): Likewise.
76018         * modules/vfprintf-posix (Depends-on): Likewise.
76019         * modules/vsnprintf (Depends-on): Likewise.
76020         * modules/vsprintf-posix (Depends-on): Likewise.
76021         * modules/xvasprintf (Depends-on): Likewise.
76022         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76023         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
76024         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
76025         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
76026         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76027         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
76028         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
76029         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
76030         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76031         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
76032         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
76033         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
76034         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76035         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
76036         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
76037         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
76038         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76039         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
76040         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
76041         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
76042         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76043         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
76044         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
76045         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
76046         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
76047         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76048         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
76049         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
76050         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
76051         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
76052         * MODULES.html.sh: Remove EOVERFLOW.
76053         * NEWS: Mention the change.
76055 2008-09-13  Bruno Haible  <bruno@clisp.org>
76057         * modules/errno-tests: New file.
76058         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
76060         * lib/errno.in.h: New file.
76061         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
76062         * modules/errno: New file.
76063         * doc/posix-headers/errno.texi: Update documentation.
76064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
76066 2008-09-13  Bruno Haible  <bruno@clisp.org>
76068         * tests/test-poll.c: Use #if for native Windows, rather than testing
76069         __MSVCRT__.
76071 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76072             Bruno Haible  <bruno@clisp.org>
76074         * lib/glob.c: Don't include <pwd.h> on native Windows.
76075         (WINDOWS32): New macro.
76076         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
76078 2008-09-13  Bruno Haible  <bruno@clisp.org>
76080         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
76081         (ETIMEDOUT): Remove macro.
76082         (glthread_cond_timedwait_multithreaded): New declaration.
76083         (glthread_cond_timedwait): Use it.
76084         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
76085         (glthread_cond_timedwait_multithreaded): New function.
76087 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76089         * modules/poll-tests: Do not check for io.h.
76090         * tests/test-poll.c: Check for __MSVCRT__ instead.
76092 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76094         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
76095         * modules/poll-tests: Add inet_pton, stdbool, sockets.
76096         * tests/test-poll.c: Use them.  Use _pipe on Windows.
76098 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76100         * modules/poll-tests: New.
76101         * tests/test-poll.c: New.
76103 2008-09-12  Eric Blake  <ebb9@byu.net>
76105         frexp: test for NetBSD failure on -0.0
76106         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
76107         not all, bugs from NetBSD 3.0 have been fixed.
76108         * doc/posix-functions/frexp.texi (frexp): Document bug.
76109         Reported by Thomas Klausner.
76111         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
76112         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
76113         literal -0.0.
76114         Reported by Jonathan C. Patschke <jp@centtech.com>.
76116 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76118         * lib/glthread/cond.h: Use dummy implementation also if
76119         USE_WIN32_THREADS.
76121 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76123         * modules/fnmatch-posix (License): Change to LGPLv2+.
76124         * modules/fnmatch-gnu (License): Likewise.
76126 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76128         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
76130 2008-09-11  Jim Meyering  <meyering@redhat.com>
76132         * users.txt: Add gtk-vnc.
76134 2008-09-08  Simon Josefsson  <simon@josefsson.org>
76136         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
76137         rotate amounts.
76139         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
76140         required for 16-bit and 8-bit rotates.
76141         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
76142         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
76143         UINT8_MAX instead of hard-coded constants.
76144         Suggested by Paul Eggert.
76146 2008-09-07  Bruno Haible  <bruno@clisp.org>
76148         * tests/test-striconveh.c (main): Check behaviour when converting from
76149         UTF-7.
76151         Make striconveh work better with stateful encodings.
76152         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
76153         that iconv does not increment the inptr when returning -1/EINVAL.
76155 2008-09-07  Bruno Haible  <bruno@clisp.org>
76157         * build-aux/config.rpath: Update according to libtool-2.2.6.
76158         * build-aux/config.libpath: Likewise.
76160 2008-09-06  Bruno Haible  <bruno@clisp.org>
76162         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
76163         * lib/freadptr.c (freadptr): Likewise.
76164         * lib/freadseek.c (freadptrinc): Likewise.
76165         Reported by Simon Josefsson.
76167 2008-09-06  Bruno Haible  <bruno@clisp.org>
76169         * modules/freadptr (License): Change to LGPLv2+.
76170         * modules/freadseek (License): Likewise.
76171         Suggested by Eric Blake.
76173         * modules/memchr2 (License): Change to LGPLv2+.
76174         Approved by Eric Blake.
76176 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76177             Bruno Haible  <bruno@clisp.org>
76179         Make gnulib-tool work with native 'sed' on AIX.
76180         * gnulib-tool (sed_noop): New variable.
76181         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
76182         func_add_or_update, func_create_testdir): Use it to initialize sed
76183         script variables.
76184         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76186 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
76187             Bruno Haible  <bruno@clisp.org>
76189         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
76190         also works after #include directives.
76192 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
76194         getdate.y: reject an out-of-range timezone value
76195         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
76196         the range [-24...+24].  When specified with only one or two digits,
76197         * tests/test-getdate.c: Tests for the fix.
76198         * doc/getdate.texi: Document this change.
76200 2008-09-03  Bruno Haible  <bruno@clisp.org>
76202         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
76204 2008-09-02  Simon Josefsson  <simon@josefsson.org>
76206         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
76207         <bruce.korb@gmail.com> with ideas from Ben Pfaff
76208         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
76209         Blake <ebb9@byu.net>.
76211         * tests/test-bitrotate.c: Add more test vectors.
76213 2008-09-02  Eric Blake  <ebb9@byu.net>
76215         vasnprintf-posix: handle large precision via %.*d
76216         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
76217         when handling it ourselves.
76218         * tests/test-vasnprintf-posix.c (test_function): Add test.
76219         * tests/test-snprintf-posix.h (test_function): Likewise.
76220         * tests/test-sprintf-posix.h (test_function): Likewise.
76221         * tests/test-vasprintf-posix.c (test_function): Likewise.
76222         Reported by Alain Guibert.
76224 2008-09-01  Eric Blake  <ebb9@byu.net>
76226         c-stack: make configure-time check more robust
76227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
76228         successful sigaction call.
76229         Reported by Tom G. Christensen.
76231 2008-09-01  Bruno Haible  <bruno@clisp.org>
76233         New module 'findprog-lgpl'.
76234         * modules/findprog-lgpl: New file.
76235         * lib/findprog-lgpl.c: New file.
76236         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
76237         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
76238         to decide whether to use strdup or xstrdup, concatenated_filename or
76239         xconcatenated_filename.
76241 2008-09-01  Bruno Haible  <bruno@clisp.org>
76243         Split module 'concat-filename' into 'concat-filename' (LGPL) and
76244         'xconcat-filename' (GPL).
76245         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
76246         (License): Change to LGPLv2+.
76247         * modules/xconcat-filename: New file.
76248         * lib/concat-filename.h (concatenated_filename): Change specification.
76249         (xconcatenated_filename): New declaration.
76250         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
76251         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
76252         memory situations.
76253         * lib/xconcat-filename.c: New file.
76254         * NEWS: Mention the change.
76255         * lib/findprog.c: Include concat-filename.h, not filename.h.
76256         (find_in_path): Use xconcatenated_filename instead of
76257         concatenated_filename.
76258         * lib/javacomp.c: Include concat-filename.h, not filename.h.
76259         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
76260         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
76261         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
76262         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
76263         instead of concatenated_filename.
76264         * lib/javaexec.c: Include concat-filename.h, not filename.h.
76265         (execute_java_class): Use xconcatenated_filename instead of
76266         concatenated_filename.
76267         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
76268         * modules/javacomp (Depends-on): Likewise.
76269         * modules/javaexec (Depends-on): Likewise.
76271 2008-09-01  Bruno Haible  <bruno@clisp.org>
76273         Split module 'filename' into 'filename' and 'concat-filename'.
76274         * modules/filename: Keep only lib/filename.h.
76275         (License): Change to LGPLv2+.
76276         * modules/concat-filename: New file, extracted from modules/filename.
76277         * lib/filename.h (concatenated_filename): Remove declaration.
76278         * lib/concat-filename.h: New file, extracted from lib/filename.h.
76279         * lib/concat-filename.c: Include concat-filename.h.
76280         * NEWS: Mention the change.
76282 2008-09-01  Simon Josefsson  <simon@josefsson.org>
76284         * lib/bitrotate.h (rotl8, rotr8): Add.
76286         * modules/bitrotate (configure.ac): Need
76287         AC_REQUIRE([AC_C_INLINE]).
76288         (Description): Mention stdint.h.  Reported by Bruno Haible
76289         <bruno@clisp.org>.
76291         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
76292         Paolo Bonzini <bonzini@gnu.org>.
76294 2008-08-31  Bruno Haible  <bruno@clisp.org>
76296         Assume Solaris specific bi-arch conventions on Solaris systems.
76297         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76298         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76299         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76300         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76301         like acl_libdirstem.
76302         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76303         acl_libdirstem.
76304         * NEWS: Mention the change.
76305         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76307 2008-08-31  Jim Meyering  <meyering@redhat.com>
76309         * lib/strftime.h: Add comments describing the two added arguments.
76311         remove duplicate #include directives
76312         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76313         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76315 2008-08-31  Bruno Haible  <bruno@clisp.org>
76317         New module 'sigpipe-die'.
76318         * modules/sigpipe-die: New file.
76319         * lib/sigpipe-die.h: New file.
76320         * lib/sigpipe-die.c: New file.
76321         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76323 2008-08-31  Bruno Haible  <bruno@clisp.org>
76325         Don't override previously installed signal handlers.
76326         * lib/fatal-signal.c (saved_sigactions): New variable.
76327         (uninstall_handlers): Reset the signal to the saved handler, not
76328         to SIG_DFL (except when ignored).
76329         (install_handlers): Save the previous handlers.
76331 2008-08-30  Bruno Haible  <bruno@clisp.org>
76333         * gnulib-tool (func_reset_sigpipe): New function.
76334         (func_get_automake_snippet, func_modules_transitive_closure,
76335         func_import): Invoke it before a join command that reads from stdin,
76336         to avoid "echo: write error: Broken pipe" error messages on stderr.
76337         Reported by Sam Steingold <sds@gnu.org>.
76339 2008-08-30  Bruno Haible  <bruno@clisp.org>
76341         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76342         Code copied from m4/open.m4.
76343         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76344         access and the filename ends in a slash. Code copied from lib/open.c.
76345         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76346         * tests/test-fopen.c (main): Check against bug with trailing slash.
76348 2008-08-29  Bruno Haible  <bruno@clisp.org>
76350         Avoid some "gcc -pedantic" warnings.
76351         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76352         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76353         * lib/dirent.in.h: Likewise.
76354         * lib/fcntl.in.h: Likewise.
76355         * lib/float.in.h: Likewise.
76356         * lib/iconv.in.h: Likewise.
76357         * lib/inttypes.in.h: Likewise.
76358         * lib/locale.in.h: Likewise.
76359         * lib/math.in.h: Likewise.
76360         * lib/netinet_in.in.h: Likewise.
76361         * lib/search.in.h: Likewise.
76362         * lib/signal.in.h: Likewise.
76363         * lib/stdarg.in.h: Likewise.
76364         * lib/stdint.in.h: Likewise.
76365         * lib/stdio.in.h: Likewise.
76366         * lib/stdlib.in.h: Likewise.
76367         * lib/string.in.h: Likewise.
76368         * lib/strings.in.h: Likewise.
76369         * lib/sys_select.in.h: Likewise.
76370         * lib/sys_socket.in.h: Likewise.
76371         * lib/sys_stat.in.h: Likewise.
76372         * lib/sys_time.in.h: Likewise.
76373         * lib/sysexits.in.h: Likewise.
76374         * lib/time.in.h: Likewise.
76375         * lib/unistd.in.h: Likewise.
76376         * lib/wchar.in.h: Likewise.
76377         * lib/wctype.in.h: Likewise.
76378         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76379         * modules/fchdir (Makefile.am): Likewise.
76380         * modules/fcntl (Makefile.am): Likewise.
76381         * modules/float (Makefile.am): Likewise.
76382         * modules/iconv_open (Makefile.am): Likewise.
76383         * modules/inttypes (Makefile.am): Likewise.
76384         * modules/locale (Makefile.am): Likewise.
76385         * modules/math (Makefile.am): Likewise.
76386         * modules/netinet_in (Makefile.am): Likewise.
76387         * modules/search (Makefile.am): Likewise.
76388         * modules/signal (Makefile.am): Likewise.
76389         * modules/stdarg (Makefile.am): Likewise.
76390         * modules/stdint (Makefile.am): Likewise.
76391         * modules/stdio (Makefile.am): Likewise.
76392         * modules/stdlib (Makefile.am): Likewise.
76393         * modules/string (Makefile.am): Likewise.
76394         * modules/strings (Makefile.am): Likewise.
76395         * modules/sys_select (Makefile.am): Likewise.
76396         * modules/sys_socket (Makefile.am): Likewise.
76397         * modules/sys_stat (Makefile.am): Likewise.
76398         * modules/sys_time (Makefile.am): Likewise.
76399         * modules/sysexits (Makefile.am): Likewise.
76400         * modules/time (Makefile.am): Likewise.
76401         * modules/unistd (Makefile.am): Likewise.
76402         * modules/wchar (Makefile.am): Likewise.
76403         * modules/wctype (Makefile.am): Likewise.
76404         Reported by Reuben Thomas <rrt@sc3d.org>.
76406 2008-08-29  Bruno Haible  <bruno@clisp.org>
76408         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76409         any more.
76411 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76413         * MODULES.html.sh (Misc): Add bitrotate.
76415         * modules/bitrotate: New file.
76417         * lib/bitrotate.h: New file.
76419         * modules/bitrotate-tests: New file.
76421         * tests/test-bitrotate.c: New file.
76423         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76424         on the bitrotate module.
76426         * lib/arctwo.c: Use new bitrotate module.
76428 2008-08-29  Jim Meyering  <meyering@redhat.com>
76430         bootstrap: merge changes from coreutils
76431         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76432         of copied files.  Remove a kludge, now that this is fixed.
76433         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76434         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76435         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76437 2008-08-29  Bruno Haible  <bruno@clisp.org>
76439         * MODULES.html.sh: Remove --cvs-urls option.
76441 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76443         maint.mk: adjust to file name change
76444         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76446 2008-08-28  Jim Meyering  <meyering@redhat.com>
76448         * modules/getndelim2 (License): Relicense to LGPLv2+.
76449         Approved by Richard Stallman for the version of 1995, and by
76450         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76452 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76454         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76455         dummy if one is not available.  Do not touch them if
76456         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76457         (getc_maybe_unlocked): New.
76458         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76460 2008-08-26  Eric Blake  <ebb9@byu.net>
76462         doc/INSTALL: resync from autoconf
76463         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76464         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76465         moving...
76466         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76467         * INSTALL: Regenerate.
76468         * INSTALL.ISO: New file.
76469         * INSTALL.UTF-8: Likewise.
76471 2008-08-26  Jim Meyering  <meyering@redhat.com>
76473         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76474         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76475         these definitions conditional, so that they may be overridden, too.
76477 2008-08-26  Bruno Haible  <bruno@clisp.org>
76479         Generate INSTALL file variants with prettier quotes.
76480         * doc/Makefile (INSTALL_PRELUDE): New macro.
76481         (INSTALL): Use it.
76482         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76484 2008-08-26  Bruno Haible  <bruno@clisp.org>
76486         Run makeinfo in an English locale.
76487         * doc/Makefile (MAKEINFO): New variable.
76489 2008-08-26  Bruno Haible  <bruno@clisp.org>
76491         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76492         Suggested by Eric Blake.
76494 2008-08-25  Bruno Haible  <bruno@clisp.org>
76496         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76498 2008-08-25  Eric Blake  <ebb9@byu.net>
76500         c-stack: test that stack overflow can be caught
76501         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76502         that platform allows handling stack overflow; at least OS/2 EMX
76503         has sigaltstack, but crashes before transferring control to
76504         handler on stack overflow.
76505         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76506         check for HAVE_STACK_OVERFLOW_HANDLING.
76507         Reported by Elbert Pol.
76509 2008-08-25  Bruno Haible  <bruno@clisp.org>
76511         * doc/posix-functions/strftime.texi: Fix description of strftime
76512         module.
76514 2008-08-24  Bruno Haible  <bruno@clisp.org>
76516         * tests/uniwidth/test-uc_width2.c: New file.
76517         * tests/uniwidth/test-uc_width2.sh: New file.
76518         * modules/uniwidth/width-tests (Files): Add the new files.
76519         (TESTS): Add uniwidth/test-uc_width2.sh.
76520         (TESTS_ENVIRONMENT): New variable.
76521         (check_PROGRAMS): Add test-uc_width2.
76522         (test_uc_width2_SOURCES): New variable.
76524         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76525         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76526         not 0x00AB.
76527         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76529 2008-08-22  Eric Blake  <ebb9@byu.net>
76531         test-lock, test-tls: mention why a test is skipped
76532         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76533         skipped.
76534         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76536         count-one-bits: relax license
76537         * modules/count-one-bits (License): Relicense to LGPLv2+.
76538         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76540 2008-08-22  Andreas Schwab  <schwab@suse.de>
76542         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76543         Remove spurious space in assignment.
76545 2008-08-21  Simon Josefsson  <simon@josefsson.org>
76547         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
76548         Paul Eggert <eggert@CS.UCLA.EDU>.
76550 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
76552         * modules/gettext: Add m4/threadlib.m4.
76554 2008-08-19  Eric Blake  <ebb9@byu.net>
76556         test-c-stack: fix compilation failure on FreeBSD 5.0
76557         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
76558         headers before <sys/resource.h>.
76559         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
76560         the bug.
76561         Reported by Nelson H. F. Beebe.
76563         strverscmp: migrate from "strverscmp.h" to <string.h>
76564         * modules/string (Makefile.am): Add new hooks.
76565         * modules/strverscmp (Files): Remove strverscmp.h.
76566         (Depends-on): Add string.
76567         (configure.ac): Add indicator.
76568         (Include): Mention new header.
76569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
76570         defaults.
76571         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
76572         results.
76573         * lib/strverscmp.h: Delete.
76574         * lib/string.in.h (strverscmp): Provide declaration, when needed.
76575         * tests/test-strverscmp.c (includes): Adjust client.
76576         * lib/check-version.c (includes): Likewise.
76577         * NEWS: Document the change.
76579         strverscmp: add unit test
76580         * modules/strverscmp-tests: New file.
76581         * tests/test-strverscmp.c: Likewise.
76583 2008-08-19  Simon Josefsson  <simon@josefsson.org>
76585         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
76586         regarding Windows crypto stuff, from Mono.
76588 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
76590         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
76591         if present, for intel RND.  Return error on failures.
76593 2008-08-18  Ben Pfaff  <blp@gnu.org>
76595         gitlog-to-changelog: give better diagnostic for failed pipe-open
76596         * build-aux/gitlog-to-changelog: Improve error message: suggest
76597         that the version of Git may be too old.
76599 2008-08-18  Simon Josefsson  <simon@josefsson.org>
76601         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
76602         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
76604 2008-08-18  Bruno Haible  <bruno@clisp.org>
76606         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76607         pthread_in_use().
76609 2008-08-18  Bruno Haible  <bruno@clisp.org>
76611         * lib/glthread/threadlib.c: Include <pthread.h>.
76613 2008-08-18  Bruno Haible  <bruno@clisp.org>
76615         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
76616         glthread_recursive_lock_* macros.
76617         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
76618         Fix syntax error.
76620 2008-08-18  Bruno Haible  <bruno@clisp.org>
76622         * lib/glthread/thread.c: Avoid forcing a context switch right after
76623         thread creation.
76625 2008-08-17  Bruno Haible  <bruno@clisp.org>
76627         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
76628         * lib/glthread/thread.h: Provide Win32 specific implementation.
76629         * modules/thread (Files): Add lib/glthread/thread.c.
76630         (Depends-on): Add lock.
76631         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
76633 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76635         New module 'yield'.
76636         * modules/yield: New file.
76637         * lib/glthread/yield.h: New file.
76638         * m4/yield.m4: New file.
76639         * MODULES.html.sh (Multithreading): Add yield.
76641 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76643         New module 'thread'.
76644         * modules/thread: New file.
76645         * lib/glthread/thread.h: New file.
76646         * m4/thread.m4: New file.
76647         * MODULES.html.sh (Multithreading): Add thread.
76649 2008-08-17  Bruno Haible  <bruno@clisp.org>
76651         * lib/glthread/lock.h: Include <stdlib.h> always.
76652         * lib/glthread/tls.h: Likewise.
76653         * lib/glthread/cond.h: Likewise.
76655 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76657         New module 'cond'.
76658         * modules/cond: New file.
76659         * lib/glthread/cond.h: New file.
76660         * lib/glthread/cond.c: New file.
76661         * m4/cond.m4: New file.
76662         * MODULES.html.sh (Multithreading): Add cond.
76664 2008-08-16  Eric Blake  <ebb9@byu.net>
76666         c-stack: fix regression on Irix 5.3 from 2008-06-21
76667         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
76668         sa_sigaction...
76669         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
76670         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
76671         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
76672         * modules/signal (Makefile.am): Use the value.
76673         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
76674         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
76675         * doc/posix-headers/signal.texi (signal.h): Document this
76676         portability issue.
76677         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
76678         Reported by Tom G. Christensen.
76680 2008-08-17  Bruno Haible  <bruno@clisp.org>
76682         New module 'threadlib'.
76683         * modules/threadlib: New file.
76684         * lib/glthread/threadlib.c: New file, extracted from
76685         lib/glthread/lock.c.
76686         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
76687         functions.
76688         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
76689         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
76690         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
76691         macros.
76692         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
76693         (gl_DISABLE_THREADS): Remove macro.
76694         * modules/lock (Files): Remove build-aux/config.rpath.
76695         (Depends-on): Remove havelib. Add threadlib.
76696         (configure.ac-early): Remove section.
76697         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
76698         * modules/tls (Depends-on): Remove lock. Add threadlib.
76699         (Link): New section, copied from threadlib.
76700         * MODULES.html.sh (Multithreading): Add threadlib.
76702 2008-08-14  Bruno Haible  <bruno@clisp.org>
76704         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
76705         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
76706         glthread_rwlock_unlock, glthread_rwlock_destroy,
76707         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
76708         glthread_recursive_lock_destroy): Define as macros always.
76709         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
76710         glthread_lock_lock.
76711         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
76712         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
76713         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
76714         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
76715         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
76716         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
76717         (glthread_recursive_lock_lock_func): Renamed from
76718         glthread_recursive_lock_lock.
76719         (glthread_recursive_lock_unlock_func): Renamed from
76720         glthread_recursive_lock_unlock.
76721         (glthread_recursive_lock_destroy_func): Renamed from
76722         glthread_recursive_lock_destroy.
76724 2008-08-14  Bruno Haible  <bruno@clisp.org>
76726         * lib/glthread/lock.h: Renamed from lib/lock.h.
76727         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
76728         * lib/glthread/tls.h: Renamed from lib/tls.h.
76729         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
76730         * lib/fstrcmp.c: Update includes.
76731         * lib/strsignal.c: Update includes.
76732         * modules/lock (Files, Makefile.am): Update.
76733         (Include): Change to "glthread/lock.h".
76734         * modules/tls (Files, Makefile.am): Update.
76735         (Include): Change to "glthread/tls.h".
76736         * tests/test-lock.c: Update includes.
76737         * tests/test-tls.c: Update includes.
76738         * NEWS: Mention the renamed header files.
76740 2008-08-11  Jim Meyering  <meyering@redhat.com>
76742         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
76744 2008-08-11  Eric Blake  <ebb9@byu.net>
76746         test-c-stack: avoid C99-ism
76747         * tests/test-c-stack.c (main): Fix whitespace, move declaration
76748         before statement.
76749         Reported by Alain Guibert.
76751 2008-08-10  Jim Meyering  <meyering@redhat.com>
76753         ensure that return value of uinttostr et al are not ignored
76754         * lib/inttostr.h (__GNUC_PREREQ): Define.
76755         (__attribute_warn_unused_result__): Define.
76756         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
76758 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
76760         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
76761         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
76763 2008-08-07  Jim Meyering  <meyering@redhat.com>
76765         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
76767         * modules/mkstemp (License): Relicense under LGPLv2+.
76768         * modules/tempname (License): Likewise.
76770 2008-08-06  Bruno Haible  <bruno@clisp.org>
76772         * lib/poll.c (poll): Further micro-optimization.
76774 2008-08-06  Jim Meyering  <meyering@redhat.com>
76776         inet_pton.c: use locale-independent tolower
76777         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
76778         (inet_pton6): Use c_tolower rather than tolower.
76779         * modules/inet_pton (Depends-on): Add c-ctype.
76781 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
76783         * lib/poll.c (poll): Avoid division when timeout is 0, cache
76784         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
76786 2008-08-06  Jim Meyering  <meyering@redhat.com>
76788         * modules/inet_pton (License): Relicense under LGPLv2+.
76790 2008-08-03  Bruno Haible  <bruno@clisp.org>
76792         Additional non-aborting API for lock and tls.
76793         * lib/lock.h: Include <errno.h>.
76794         (glthread_lock_init): New macro/function.
76795         (gl_lock_init): Define as wrapper around glthread_lock_init.
76796         (glthread_lock_lock): New macro/function.
76797         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
76798         (glthread_lock_unlock): New macro/function.
76799         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
76800         (glthread_lock_destroy): New macro/function.
76801         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
76802         (glthread_rwlock_init): New macro/function.
76803         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
76804         (glthread_rwlock_rdlock): New macro/function.
76805         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
76806         (glthread_rwlock_wrlock): New macro/function.
76807         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
76808         (glthread_rwlock_unlock): New macro/function.
76809         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
76810         (glthread_rwlock_destroy): New macro/function.
76811         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
76812         (glthread_recursive_lock_init): New macro/function.
76813         (gl_recursive_lock_init): Define as wrapper around
76814         glthread_recursive_lock_init.
76815         (glthread_recursive_lock_lock): New macro/function.
76816         (gl_recursive_lock_lock): Define as wrapper around
76817         glthread_recursive_lock_lock.
76818         (glthread_recursive_lock_unlock): New macro/function.
76819         (gl_recursive_lock_unlock): Define as wrapper around
76820         glthread_recursive_lock_unlock.
76821         (glthread_recursive_lock_destroy): New macro/function.
76822         (gl_recursive_lock_destroy): Define as wrapper around
76823         glthread_recursive_lock_destroy.
76824         (glthread_once): New macro/function.
76825         (gl_once): Define as wrapper around glthread_once.
76826         Update function declarations.
76827         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
76828         glthread_rwlock_init. Return error code.
76829         (glthread_rwlock_rdlock_multithreaded): Renamed from
76830         glthread_rwlock_rdlock. Return error code.
76831         (glthread_rwlock_wrlock_multithreaded): Renamed from
76832         glthread_rwlock_wrlock. Return error code.
76833         (glthread_rwlock_unlock_multithreaded): Renamed from
76834         glthread_rwlock_unlock. Return error code.
76835         (glthread_rwlock_destroy_multithreaded): Renamed from
76836         glthread_rwlock_destroy. Return error code.
76837         (glthread_recursive_lock_init_multithreaded): Renamed from
76838         glthread_recursive_lock_init. Return error code.
76839         (glthread_recursive_lock_lock_multithreaded): Renamed from
76840         glthread_recursive_lock_lock. Return error code.
76841         (glthread_recursive_lock_unlock_multithreaded): Renamed from
76842         glthread_recursive_lock_unlock. Return error code.
76843         (glthread_recursive_lock_destroy_multithreaded): Renamed from
76844         glthread_recursive_lock_destroy. Return error code.
76845         (glthread_once_call): Make static.
76846         (glthread_once_multithreaded): Renamed from glthread_once.
76847         * lib/tls.h: Include <errno.h>.
76848         (glthread_tls_key_init): New macro/function.
76849         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
76850         (glthread_tls_set): New macro/function.
76851         (gl_tls_set): Define as wrapper around glthread_tls_set.
76852         (glthread_tls_key_destroy): New macro/function.
76853         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
76854         Update function declarations.
76855         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
76856         glthread_tls_get.
76857         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76859 2008-08-04  Eric Blake  <ebb9@byu.net>
76861         gnumakefile: use space, not TAB, outside of targets
76862         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
76864 2008-08-02  Jim Meyering  <meyering@redhat.com>
76866         getdate.y: avoid locale-dependent date parsing failure
76867         In Turkish locales, getdate would fail to recognize keywords
76868         containing a lowercase "i".  The solution is not to rely on
76869         locale-sensitive case-conversion.
76870         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
76871         (lookup_word): Use c_toupper in place of toupper.
76872         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
76873         Reported by Vefa Bicakci <bicave@superonline.com> in
76874         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
76875         * modules/getdate (Depends-on): Add c-ctype.
76877 2008-08-02  Bruno Haible  <bruno@clisp.org>
76879         * gnulib-tool (func_import): When updating or creating a .gitignore
76880         file, prepend each added line with a slash, and ignore leading slashes
76881         from the existing lines.
76882         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
76884 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76886         Portability fix for GNU make 3.79.1.
76887         * top/GNUmakefile: Avoid 'else COND', which older GNU make
76888         versions do not understand.
76890 2008-08-01  Bruno Haible  <bruno@clisp.org>
76892         Work around bug of HP-UX 10.20 cc with -0.0 literal.
76893         * tests/test-isnanf.h (zero): New variable.
76894         (main): Avoid literal -0.0f.
76895         * tests/test-isnand.h (zero): New variable.
76896         (main): Avoid literal -0.0.
76897         * tests/test-isnanl.h (zero): New variable.
76898         (main): Avoid literal -0.0L.
76899         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
76900         (test_float, test_double, test_long_double): Avoid literals -0.0f,
76901         -0.0, -0.0L.
76902         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
76903         (test_signbitd): Avoid literal -0.0.
76904         (test_signbitl): Avoid literal -0.0L.
76905         * tests/test-ceilf1.c (zero): New variable.
76906         (main): Avoid literal -0.0f.
76907         * tests/test-ceill.c (zero): New variable.
76908         (main): Avoid literal -0.0L.
76909         * tests/test-floorf1.c (zero): New variable.
76910         (main): Avoid literal -0.0f.
76911         * tests/test-floorl.c (zero): New variable.
76912         (main): Avoid literal -0.0L.
76913         * tests/test-roundf1.c (zero): New variable.
76914         (main): Avoid literal -0.0f.
76915         * tests/test-round1.c (zero): New variable.
76916         (main): Avoid literal -0.0.
76917         * tests/test-roundl.c (zero): New variable.
76918         (main): Avoid literal -0.0L.
76919         * tests/test-truncf1.c (zero): New variable.
76920         (main): Avoid literal -0.0f.
76921         * tests/test-trunc1.c (zero): New variable.
76922         (main): Avoid literal -0.0.
76923         * tests/test-truncl.c (zero): New variable.
76924         (main): Avoid literal -0.0L.
76925         * tests/test-frexp.c (zero): New variable.
76926         (main): Avoid literal -0.0.
76927         * tests/test-frexpl.c (zero): New variable.
76928         (main): Avoid literal -0.0L.
76929         * tests/test-ldexpl.c (zero): New variable.
76930         (main): Avoid literal -0.0L.
76931         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76932         (zerod, zerol): New variables.
76933         (test_function): Avoid literals -0.0, -0.0L.
76934         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76935         (zerod, zerol): New variables.
76936         (test_function): Avoid literals -0.0, -0.0L.
76937         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76938         (zerod, zerol): New variables.
76939         (test_function): Avoid literals -0.0, -0.0L.
76940         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76941         (zerod, zerol): New variables.
76942         (test_function): Avoid literals -0.0, -0.0L.
76943         * tests/test-strtod.c (zero): New variable.
76944         (main): Avoid literal -0.0.
76945         Reported by Jonathan C. Patschke <jp@centtech.com>.
76947 2008-07-31  Jim Meyering  <meyering@redhat.com>
76949         sha256.h: correct definition of SHA224_DIGEST_SIZE
76950         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
76951         Reported by Paulie Pena IV <paulie4@gmail.com>.
76952         Define as 224 / 8, rather than as a literal.
76953         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
76954         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
76955         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
76957 2008-07-31  Bruno Haible  <bruno@clisp.org>
76959         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
76960         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
76961         Reported by Jonathan Patschke <jp@centtech.com>.
76963 2008-07-31  Bruno Haible  <bruno@clisp.org>
76965         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
76966         Reported by Paolo Bonzini <bonzini@gnu.org>.
76968 2008-07-30  Eric Blake  <ebb9@byu.net>
76970         test-strtod: allow compilation without -lm
76971         * tests/test-strtod.c (main): Avoid link dependence on fabs.
76972         Reported by Dennis Clarke <blastwave@gmail.com>.
76974 2008-07-28  Jim Meyering  <meyering@redhat.com>
76976         bootstrap: work also when there are no .po files in po/
76977         * build-aux/bootstrap (update_po_files): Complete the change
76978         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
76980 2008-07-27  Jim Meyering  <meyering@redhat.com>
76982         * users.txt: Add zile.
76984 2008-07-26  Ben Pfaff  <blp@gnu.org>
76986         Add missing dependencies on new m4/exponent[fdl].m4 files.
76987         * modules/isnanf-nolibm: Add m4/exponentf.m4.
76988         * modules/isnand-nolibm: Add m4/exponentd.m4.
76989         * modules/isnanl-nolibm: Add m4/exponentl.m4.
76990         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
76991         m4/isnan[fdl].m4, because the macros actually used moved.
76992         Reported by Jim Meyering.
76994 2008-07-14  Ben Pfaff  <blp@gnu.org>
76996         Add isinf module.
76997         * lib/isinf.c: New file.
76998         * lib/math.in.h: Define isinf macro if we have decided to replace
76999         it.
77000         * m4/isinf.m4: New file.
77001         * m4/math_h.m4: Initialize and substitute variables for isinf
77002         module.
77003         * modules/isinf: New file.
77004         * modules/isinf-tests: New file.
77005         * modules/math: Add substitutions for new module.
77006         * tests/test-isinf.c: New file.
77007         * doc/posix-functions/isinf.texi: Mention new module.
77008         * MODULES.html.sh: Mention new module.
77010 2008-07-14  Ben Pfaff  <blp@gnu.org>
77012         Factor out some macros for use by additional modules.
77013         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
77014         exponentf.m4.
77015         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
77016         exponentd.m4.
77017         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
77018         file exponentl.m4.
77019         * m4/exponentf.m4: New file.
77020         * m4/exponentd.m4: New file.
77021         * m4/exponentl.m4: New file.
77022         * modules/isnanf: Use new file m4/exponentf.m4.
77023         * modules/isnand: Use new file m4/exponentd.m4.
77024         * modules/isnanl: Use new file m4/exponentl.m4.
77026 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
77028         mktime.c: normalize tp->tm_isdst value to -1/0/1.
77029         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
77030         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
77031         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
77033         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
77034         readlink on platforms without PATH_MAX.
77036 2008-07-21  Eric Blake  <ebb9@byu.net>
77038         Warn, not fail, on stale version.
77039         * top/GNUmakefile (_curr-ver): Tone down previous patch.
77041         Don't allow installation with stale devel version number.
77042         * top/GNUmakefile (_is-install-target): New macro.
77043         (_curr-ver): Forbid installation with stale version number.
77045 2008-07-20  Bruno Haible  <bruno@clisp.org>
77047         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
77048         TESTS_ENVIRONMENT.
77049         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
77051 2008-07-20  Bruno Haible  <bruno@clisp.org>
77053         * lib/c-stack.h (c_stack_action): Add documentation.
77054         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
77056 2008-07-20  Bruno Haible  <bruno@clisp.org>
77058         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
77059         * modules/readlink (License): Likewise.
77061 2008-07-17  Eric Blake  <ebb9@byu.net>
77063         * modules/c-stack (Link): Fix typo.
77065         Make c-stack use libsigsegv, when available.
77066         * modules/c-stack (Depends-on): Add libsigsegv.
77067         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
77068         needed.
77069         * lib/c-stack.c (SIGSTKSZ): Define fallback.
77070         (segv_handler, overflow_handler, c_stack_action)
77071         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
77072         implementation when libsigsegv is available, but only when using
77073         the library is necessary.
77074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
77075         comment, explaining why XSI check fails on Linux.
77076         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
77077         * tests/test-c-stack2.sh: Tweak skip message.
77078         * NEWS: Document new link-time requirements.
77080 2008-07-16  Eric Blake  <ebb9@byu.net>
77082         c-stack: Expose false positives when not using libsigsegv.
77083         * modules/c-stack-tests (Files): Expand test.
77084         * tests/test-c-stack.c (main): Add means to conditionally trigger
77085         non-overflow SIGSEGV.
77086         * tests/test-c-stack2.sh: New file.
77088 2008-07-14  Bruno Haible  <bruno@clisp.org>
77090         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
77091         Reported by Eric Blake.
77093 2008-07-14  Sam Steingold  <sds@gnu.org>
77094             Bruno Haible  <bruno@clisp.org>
77096         New module libsigsegv.
77097         * modules/libsigsegv: New file.
77098         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
77099         modifications.
77100         * MODULES.html.sh (Signal handling): New section.
77102 2008-07-14  Bruno Haible  <bruno@clisp.org>
77104         * modules/unictype/ctype-* (Description): Add the word "function".
77105         Improves the resulting doc in MODULES.html.
77107 2008-07-12  Ben Pfaff  <blp@gnu.org>
77109         Add longlong module.
77110         * modules/longlong: New file.
77112 2008-07-12  Bruno Haible  <bruno@clisp.org>
77114         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
77115         to empty.
77117 2008-07-10  Ben Pfaff  <blp@gnu.org>
77119         Add isnan module.
77120         * doc/posix-functions/isnan.texi: Mention new module.
77121         * lib/math.in.h: Define isnan macro if we have decided to replace
77122         it.
77123         * m4/isnan.m4: New file.
77124         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
77125         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
77126         also.
77127         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
77128         redundancy.
77129         * m4/math_h.m4: Initialize and substitute variables for isnan
77130         module.
77131         * modules/isnan: New file.
77132         * modules/isnan-tests: New file.
77133         * modules/math: Add substitutions for new module.
77134         * tests/test-isnan.c: New file.
77135         * MODULES.html.sh: Mention new module.
77137 2008-07-10  Ben Pfaff  <blp@gnu.org>
77139         Add isnanf module.
77140         * lib/isnanf.m4: New file.
77141         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
77142         (gl_HAVE_ISNANF_IN_LIBM): New macro.
77143         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
77144         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
77145         * modules/isnanf: New file.
77146         * modules/isnanf-tests: New file.
77147         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
77148         files.
77149         * tests/test-isnanf-nolibm.c: factored most of its contents into
77150         new file tests/test-isnanf.h.
77151         * tests/test-isnanf.h: New file.
77152         * tests/test-isnanf.c: New file.
77153         * MODULES.html.sh: Mention new module.
77154         * doc/glibc-functions/isnanf.texi: Mention new module.
77156 2008-07-10  Ben Pfaff  <blp@gnu.org>
77158         Add isnand module.
77159         * lib/isnand.h: New file.
77160         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
77161         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
77162         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
77163         functionality also.
77164         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
77165         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
77166         (gl_HAVE_ISNAND_IN_LIBM): New macro.
77167         * modules/isnand: New file.
77168         * modules/isnand-tests: New file.
77169         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
77170         files.
77171         * tests/test-isnand-nolibm.c: factored most of its contents into
77172         new file tests/test-isnand.h.
77173         * tests/test-isnand.h: New file.
77174         * tests/test-isnand.c: New file.
77175         * MODULES.html.sh: Mention new module.
77177 2008-07-10  Ben Pfaff  <blp@gnu.org>
77179         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
77180         * lib/isnand.h: Rename lib/isnand-nolibm.h.
77181         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
77182         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
77183         * modules/isnanf-nolibm: Update references to renamed files.
77184         * modules/isnand-nolibm: Likewise.
77185         * modules/isnanf-nolibm-tests: Likewise.
77186         * modules/isnand-nolibm-tests: Likewise.
77187         * lib/frexp.c: Likewise.
77188         * lib/isfinite.c: Likewise.
77189         * lib/signbitd.c: Likewise.
77190         * lib/signbitf.c: Likewise.
77191         * lib/vasnprintf.c: Likewise.
77192         * tests/test-ceilf1.c: Likewise.
77193         * tests/test-ceilf2.c: Likewise.
77194         * tests/test-floorf1.c: Likewise.
77195         * tests/test-floorf2.c: Likewise.
77196         * tests/test-frexp.c: Likewise.
77197         * tests/test-round1.c: Likewise.
77198         * tests/test-round2.c: Likewise.
77199         * tests/test-roundf1.c: Likewise.
77200         * tests/test-strtod.c: Likewise.
77201         * tests/test-trunc1.c: Likewise.
77202         * tests/test-trunc2.c: Likewise.
77203         * tests/test-truncf1.c: Likewise.
77204         * tests/test-truncf2.c: Likewise.
77205         * NEWS: Mention the renamed header files.
77207 2008-07-11  Jim Meyering  <meyering@redhat.com>
77209         vc-list-files: make the last-resort awk code more portable
77210         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
77211         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
77212         does not support it.
77214 2008-07-10  Eric Blake  <ebb9@byu.net>
77216         Work with tar's bootstrap.
77217         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
77218         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
77219         an m4 comment.
77221 2008-07-09  Jim Meyering  <meyering@redhat.com>
77223         posix-shell.m4: fix typo that made this test malfunction
77224         * m4/posix-shell.m4: Remove capitalization in variable name.
77226 2008-07-08  Bruno Haible  <bruno@clisp.org>
77228         * m4/onceonly.m4: Update comments.
77229         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77231 2008-07-04  Jim Meyering  <meyering@redhat.com>
77233         * users.txt: Add vc-dwim.
77234         (bison, coreutils): Use the gitweb URL.
77236 2008-07-03  Jim Meyering  <meyering@redhat.com>
77238         * users.txt: Add libffcall.  From Sam Steingold.
77240 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
77242         getdate.y: do not ignore TZ with relative day, month or year offset
77243         * lib/getdate.y (get_date): Move the tz-handling block to follow the
77244         relative-date-handling, since otherwise, the latter would clobber the
77245         sole output (an updated Start value) of the tz-handling block.
77246         * tests/test-getdate.c: Tests for the fix
77248 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77250         Recognize 'foo_LIBRARIES += libgnu.a'.
77251         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
77252         makefile snippet has already specified an installation location,
77253         also using '+='.
77255 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
77257         getdate.y: factor out common actions
77258         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
77259         Use them in place of open-coded actions.
77261 2008-07-01  Simon Josefsson  <simon@josefsson.org>
77263         Add self-test for getdate module.
77264         * modules/getdate-tests: New file.
77265         * tests/test-getdate.c: New file.
77267 2008-06-29  Bruno Haible  <bruno@clisp.org>
77269         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
77270         .gitignore.
77271         Reported by Sylvain Beucler <beuc@beuc.net>.
77273 2008-06-29  Bruno Haible  <bruno@clisp.org>
77275         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
77276         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
77278 2008-06-29  Bruno Haible  <bruno@clisp.org>
77280         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
77281         EXTRA_DIST.
77282         Reported by Sylvain Beucler <beuc@beuc.net>.
77284 2008-06-26  Jim Meyering  <meyering@redhat.com>
77286         make several modules depend on the "open" module
77287         This provides slightly increased consistency when opening-for-write
77288         the name of a non-directory spelled with a trailing slash.
77289         * modules/chdir-safer: Likewise.
77290         * modules/chown: Likewise.
77291         * modules/clean-temp: Likewise.
77292         * modules/copy-file: Likewise.
77293         * modules/fchdir: Likewise.
77294         * modules/fcntl-safer: Likewise.
77295         * modules/pipe: Likewise.
77296         * modules/utime: Likewise.
77297         Prompted by Eric Blake and Bruno Haible.
77299 2008-06-24  Andreas Schwab  <schwab@suse.de>
77301         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77302         literals can be used as initializers for global variables.
77304 2008-06-23  Eric Blake  <ebb9@byu.net>
77306         Make gnulib-cache.m4 easier to diff.
77307         * gnulib-tool (func_import): Allow newlines when reading cached
77308         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77310 2008-06-23  Bruno Haible  <bruno@clisp.org>
77312         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77313         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77314         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77315         m4/signalblocking.m4.
77316         (gl_PREREQ_SIGACTION): Don't invoke it.
77317         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77318         gl_PREREQ_SIG_HANDLER_H.
77319         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77320         Don't check for sigaction here.
77322 2008-06-23  Bruno Haible  <bruno@clisp.org>
77324         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77325         (install_handlers): Don't set the SA_RESETHAND flag.
77327 2008-06-23  Bruno Haible  <bruno@clisp.org>
77329         * m4/sigaction.m4: Comment fixes.
77330         * lib/signal.in.h: Likewise.
77332 2008-06-23  Eric Blake  <ebb9@byu.net>
77334         Fix typo.
77335         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77337         Avoid SA_ namespace.
77338         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77339         Reported by Ralf Wildenhues.
77341         Avoid test failure due to SA_RESTORER.
77342         * tests/test-sigaction.c (SA_MASK): New macro.
77343         (main): Avoid failing due to extension flags being set.
77344         Reported by Jim Meyering.
77346         Revert use of sig-handler.h in sigprocmask.c.
77347         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77348         it requires the existence of struct sigaction.
77349         * lib/sigprocmask.c (handler_t): Restore typedef.
77350         (rpl_signal, old_handlers): Use local type.
77352 2008-06-22  Bruno Haible  <bruno@clisp.org>
77354         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77355         conditionally.
77356         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77358 2008-06-22  Bruno Haible  <bruno@clisp.org>
77360         * doc/posix-functions/siginterrupt.texi: Move note.
77362         * lib/signal.in.h (SA_RESTART): New macro.
77363         * lib/sigaction.c: Update comment.
77365         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77367         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77368         (gl_PREREQ_SIGPROCMASK): Invoke it.
77369         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77371         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77373         * lib/sigprocmask.c: Update a comment.
77375 2008-06-21  Eric Blake  <ebb9@byu.net>
77377         Use sigaction module rather than signal().
77378         * modules/c-stack (Depends-on): Add sigaction.
77379         * modules/fatal-signal (Depends-on): Likewise.
77380         * modules/nanosleep (Depends-on): Likewise.
77381         * modules/sigprocmask (Files): Add sig-handler.h.
77382         * modules/sigaction (Files): Likewise.
77383         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77384         Eggert.
77385         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77386         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77387         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77388         (init_fatal_signals): Likewise.
77389         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77390         (siginterrupt): Delete fallback.
77391         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77392         instead.
77393         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77394         siginterrupt.
77396         New module sigaction, for mingw.
77397         * modules/sigaction: New module...
77398         * modules/sigaction-tests: ...and its test.
77399         * m4/sigaction.m4: New file.
77400         * lib/sigaction.c: Likewise.
77401         * tests/test-sigaction.c: Likewise.
77402         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77403         * modules/signal (Makefile.am): Likewise.
77404         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77405         needed.
77406         * doc/posix-headers/signal.texi (signal.h): Mention provided
77407         types.
77408         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77409         that sigaction is preferable.
77410         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77411         module.
77412         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77413         sigaction.
77415         Improve robustness of sigprocmask by overriding signal.
77416         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77417         is in use.
77418         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77419         (SIGKILL, SIGSTOP): Provide fallbacks.
77420         (rpl_signal): Implement.
77421         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77422         signal can be called inside handlers.
77424         Fix nanosleep module on mingw.
77425         * modules/nanosleep (Depends-on): Add sys_select.
77426         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77428         Fix licensing of sigprocmask.
77429         * modules/raise (License): Relicense as LGPL.
77431 2008-06-21  Bruno Haible  <bruno@clisp.org>
77433         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77434         result if it contains question marks.
77435         Reported by Michael Geng <linux@michaelgeng.de>.
77437 2008-06-19  Bruno Haible  <bruno@clisp.org>
77439         Fix CVS-ism.
77440         * doc/gnulib.texi: Include updated-stamp.texi.
77441         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77442         (updated-stamp.texi): New rule.
77443         (gnulib.info): Depend on it.
77444         * doc/.gitignore: Add updated-stamp.texi.
77445         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77447 2008-06-19  Bruno Haible  <bruno@clisp.org>
77449         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77450         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77452 2008-06-19  Eric Blake  <ebb9@byu.net>
77454         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77455         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77456         Reported by Stepan Kasal.
77458 2008-06-18  Bruno Haible  <bruno@clisp.org>
77460         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77461         Reported by Eric Blake.
77463 2008-06-18  Eric Blake  <ebb9@byu.net>
77465         Work around cygwin 1.5.25 strsignal bug.
77466         * tests/test-strsignal.c: Allow for const char *.
77467         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77469 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77471         * users.txt: Update URL to article and add author/date
77472         information.
77474 2008-06-17  Bruno Haible  <bruno@clisp.org>
77476         New macro gl_DISABLE_THREADS.
77477         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77478         if the user did not pass --enable-threads or --disable-threads option.
77479         (gl_DISABLE_THREADS): New macro.
77480         Reported by Eric Blake <ebb9@byu.net>.
77482 2008-06-17  Bruno Haible  <bruno@clisp.org>
77484         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77485         when the macro ignores it.
77486         Based on a patch by Eric Blake <ebb9@byu.net>.
77488 2008-06-17  Bruno Haible  <bruno@clisp.org>
77490         * modules/tls (License): Change to LGPLv2+.
77491         Reported by Eric Blake.
77493 2008-06-17  Eric Blake  <ebb9@byu.net>
77495         Simplify c-stack prerequisites.
77496         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77498         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77499         check.
77500         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77501         <sys/resource.h>.
77503         Move c-stack test into testsuite.
77504         * modules/c-stack-tests: New file.
77505         * lib/c-stack.c [DEBUG]: Move test program...
77506         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77507         fail test if sigaltstack is lacking.
77508         * tests/test-c-stack.sh: New driver file.
77510 2008-06-16  Eric Blake  <ebb9@byu.net>
77512         Use raise module consistently.
77513         * modules/fatal-signal (Depends-on): Add raise.
77514         * modules/sigprocmask (Depends-on): Likewise.
77515         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77516         * lib/sigprocmask.c (sigprocmask): Likewise.
77517         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77518         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77520         Fix compliance bug in sigpending.
77521         * lib/sigprocmask.c (sigpending): Return pending array via
77522         parameter, not return value.
77524 2008-06-14  Eric Blake  <ebb9@byu.net>
77526         Improve obstack-printf test code.
77527         * tests/test-obstack-printf.c (test_function): Fix comment, and
77528         simplify usage of obstack_* in macros.  Add a test for coverage.
77529         Reported by Bruno Haible.
77531 2008-06-14  Bruno Haible  <bruno@clisp.org>
77533         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77534         array size as a constant, not as a const variable.
77535         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77536         AC_USE_SYSTEM_EXTENSIONS.
77537         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77538         Test whether the obstack_printf function actually exists.
77539         * modules/obstack-printf (Depends-on): Add extensions.
77540         (Include): Remove obstack.h.
77541         * modules/obstack-printf-posix (Depends-on): Add extensions.
77542         (Include): Remove obstack.h.
77544 2008-06-13  Eric Blake  <ebb9@byu.net>
77546         Add obstack-printf and obstack-printf-posix modules.
77547         * modules/obstack-printf: New file.
77548         * modules/obstack-printf-posix: Likewise.
77549         * MODULES.html.sh (Misc): Mention them.
77550         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77551         Likewise.
77552         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77553         Likewise.
77554         * modules/stdio (Makefile.am): Accomodate new modules.
77555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77556         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
77557         Declare.
77558         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
77559         functions.
77560         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
77561         (gl_REPLACE_OBSTACK_PRINTF): New macros
77562         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
77563         * tests/test-obstack-printf.c: New file.
77564         * modules/obstack-printf-tests: Likewise.
77565         * modules/obstack-printf-posix-tests: Likewise.
77567 2008-06-11  Bruno Haible  <bruno@clisp.org>
77569         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
77570         * lib/open.c: Include errno.h.
77571         (open): Fail when attempting to write to a file that has a trailing
77572         slash.
77573         * tests/test-open.c (main): Test against trailing slash bug.
77574         * doc/posix-functions/open.texi: Mention the trailing slash bug.
77576 2008-06-10  Bruno Haible  <bruno@clisp.org>
77578         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
77579         for $? to work inside the trap command, with various /bin/sh-s.
77580         * tests/test-vc-list-files-cvs.sh: Likewise.
77582 2008-06-10  Bruno Haible  <bruno@clisp.org>
77584         * lib/acl-internal.h: Don't include gettext.h here.
77585         * lib/set-mode-acl.c: Include gettext.h here.
77586         * lib/copy-acl.c: Likewise.
77588 2008-06-10  Bruno Haible  <bruno@clisp.org>
77590         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
77591         * lib/wait-process.c (wait_subprocess): Likewise.
77592         * lib/execute.h (execute): Add termsigp argument.
77593         * lib/execute.c (execute): Likewise.
77594         * lib/csharpcomp.c (compile_csharp_using_pnet,
77595         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
77596         * lib/csharpexec.c (execute_csharp_using_pnet,
77597         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
77598         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
77599         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
77600         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
77601         is_jikes_present): Update.
77602         * lib/javaexec.c (execute_java_class): Update.
77603         * lib/javaversion.c (execute_and_read_line): Update.
77604         * NEWS: Document the changes.
77605         Reported by Eric Blake.
77607 2008-06-10  Eric Blake  <ebb9@byu.net>
77609         Add missing include.
77610         * tests/test-strstr.c (includes): Add <signal.h>.
77611         * tests/test-strcasestr.c (includes): Likewise.
77612         * tests/test-memmem.c (includes): Likewise.
77614 2008-06-10  Bruno Haible  <bruno@clisp.org>
77616         * lib/wait-process.c (wait_subprocess): Add an assertion.
77618 2008-06-10  Bruno Haible  <bruno@clisp.org>
77620         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
77622 2008-06-10  Bruno Haible  <bruno@clisp.org>
77624         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
77625         using alarm().
77626         * tests/test-strcasestr.c (main): Likewise.
77627         * tests/test-strstr.c (main): Likewise.
77629 2008-06-09  Bruno Haible  <bruno@clisp.org>
77631         Work around the Solaris 10 ACE ACLs ABI change.
77632         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
77633         declare if ACL_NO_TRIVIAL is present.
77634         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
77635         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
77636         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
77637         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
77638         define if ACL_NO_TRIVIAL is present.
77639         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
77640         and use the current ABI.
77641         (file_has_acl): Use same #if condition as elsewhere.
77642         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
77643         in use, and use the current ABI.
77644         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
77645         Reported by Jim Meyering.
77647 2008-06-09  Eric Blake  <ebb9@byu.net>
77649         Work around environments that (stupidly) ignore SIGALRM.
77650         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
77651         before using alarm().
77652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77653         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77654         Reported by Ian Beckwith <ianb@erislabs.net>.
77656         Produce autobuild blurb earlier in log.
77657         * modules/autobuild (configure.ac-early): Move AB_INIT here.
77659 2008-06-09  Jim Meyering  <meyering@redhat.com>
77660         and Ondřej Vašík  <ovasik@redhat.com>
77662         utimens.c: correct kernel bug work-around
77663         Ondřej Vašík found that the invalid return value of 280 indicates
77664         failure, not success, and the kernel bug we're trying to work
77665         around affects not just the utimensat call, but also the fallback
77666         futimens call.
77667         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
77668         not success.
77669         [HAVE_FUTIMENS]: Use the same work-around, here.
77671 2008-06-09  Jim Meyering  <meyering@redhat.com>
77673         add more guards around definition of ACE_-related code
77674         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
77675         ALLOW and ACE_OWNER are also defined.
77677 2008-06-08  Bruno Haible  <bruno@clisp.org>
77679         * lib/acl-internal.h: Add me as co-author.
77680         * lib/file-has-acl.c: Likewise.
77681         * lib/set-mode-acl.c: Likewise.
77682         * lib/copy-acl.c: Likewise.
77684 2008-06-08  Bruno Haible  <bruno@clisp.org>
77686         Add support for AIX ACLs.
77687         * lib/acl-internal.h (acl_nontrivial): New declaration.
77688         * lib/file-has-acl.c (acl_nontrivial): New function.
77689         (file_has_acl): Add implementation using AIX 4 ACL API.
77690         * lib/set-mode-acl.c (qset_acl): Likewise.
77691         * lib/copy-acl.c (qcopy_acl): Likewise.
77693 2008-06-08  Bruno Haible  <bruno@clisp.org>
77695         Add support for HP-UX ACLs.
77696         * lib/acl-internal.h (acl_nontrivial): New declaration.
77697         * lib/file-has-acl.c (acl_nontrivial): New function.
77698         (file_has_acl): Add implementation using HP-UX 11 ACL API.
77699         * lib/set-mode-acl.c (qset_acl): Likewise.
77700         * lib/copy-acl.c (qcopy_acl): Likewise.
77702 2008-06-08  Bruno Haible  <bruno@clisp.org>
77704         Add support for Cygwin ACLs.
77705         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
77706         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
77707         the chmod_or_fchmod call.
77708         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
77710 2008-06-08  Bruno Haible  <bruno@clisp.org>
77712         Fix bug with setuid modes in Solaris 10+ code.
77713         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
77714         succeeded, when the mode contains some special bits.
77716 2008-06-08  Bruno Haible  <bruno@clisp.org>
77718         Add support for Solaris 7..10 ACLs.
77719         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
77720         declarations.
77721         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
77722         functions.
77723         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
77724         * lib/set-mode-acl.c (qset_acl): Likewise.
77725         * lib/copy-acl.c (qcopy_acl): Likewise.
77727 2008-06-08  Bruno Haible  <bruno@clisp.org>
77729         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
77730         declaration.
77731         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
77732         (acl_access_nontrivial): Remove MacOS X case.
77733         (file_has_acl): Use acl_extended_nontrivial.
77734         * lib/copy-acl.c (qcopy_acl): Likewise.
77736 2008-06-08  Bruno Haible  <bruno@clisp.org>
77738         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
77740 2008-06-08  Jim Meyering  <meyering@redhat.com>
77742         * modules/acl (Maintainer): Add Bruno Haible.
77744 2008-06-07  Bruno Haible  <bruno@clisp.org>
77746         Improve support for Tru64 ACLs.
77747         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
77748         ACL on OSF/1.
77750 2008-06-07  Bruno Haible  <bruno@clisp.org>
77752         Add support for MacOS X ACLs.
77753         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
77754         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
77755         * lib/set-mode-acl.c (qset_acl): Likewise.
77756         * lib/copy-acl.c (qcopy_acl): Likewise.
77758 2008-06-07  Bruno Haible  <bruno@clisp.org>
77760         Fix memory leak introduced on 2008-05-22.
77761         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
77762         use.
77764 2008-06-07  Bruno Haible  <bruno@clisp.org>
77766         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
77767         to construct an empty ACL.
77769 2008-06-07  Bruno Haible  <bruno@clisp.org>
77771         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
77772         precisely.
77773         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
77775 2008-06-07  Bruno Haible  <bruno@clisp.org>
77777         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
77778         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
77780 2008-06-07  Bruno Haible  <bruno@clisp.org>
77782         * doc/posix-functions/_setjmp.texi: Explain the use of this function
77783         regardless of POSIX.
77784         * doc/posix-functions/_longjmp.texi: Likewise.
77785         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
77786         SystemV platform in this case.
77788 2008-06-06  Eric Blake  <ebb9@byu.net>
77790         Document abort() bugs.
77791         * doc/posix-functions/abort.texi (abort): Mention anomalies.
77793         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
77794         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
77795         sigsetjmp.
77796         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
77797         siglongjmp, but only as a macro.
77798         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
77799         is obsolete.
77800         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
77802         Tweak documentation to cover cygwin argz bugs.
77803         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
77804         argz bug fix; no code change needed since no cygwin releases
77805         occurred between the last fix and the bug being tested.
77806         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
77807         module and recently fixed cygwin bugs.
77808         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
77809         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
77810         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
77811         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
77812         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
77813         Likewise.
77814         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
77815         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
77816         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
77817         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
77818         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
77819         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
77820         Likewise.
77822         Avoid gcc warning on cygwin.
77823         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
77824         !ACL_NO_TRIVIAL]: Avoid unused variable.
77826 2008-06-05  Eric Blake  <ebb9@byu.net>
77828         Be tolerant of UNKNOWN version in gnulib-tool test dir.
77829         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
77830         git-version-gen fails to come up with a version.
77831         Reported by Simon Josefsson.
77833 2008-06-05  Jim Meyering  <meyering@redhat.com>
77834             Paul Eggert  <eggert@cs.ucla.edu>
77836         utimens.c: work around a probable Linux kernel bug
77837         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
77838         appears to be a kernel bug that causes utimensat to return 280
77839         instead of 0, indicating success.
77841 2008-06-04  Bruno Haible  <bruno@clisp.org>
77843         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
77844         2008-06-01 commit.
77846 2008-06-04  Bruno Haible  <bruno@clisp.org>
77848         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
77849         * lib/file-has-acl.c (acl_access_nontrivial): New function.
77850         (file_has_acl): Use it. Save errno afterwards.
77851         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
77853 2008-06-03  Bruno Haible  <bruno@clisp.org>
77855         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
77856         draft code. Simplify #ifs.
77857         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
77858         Put Solaris code after POSIX-draft code. Fix comments regarding
77859         Solaris 10, HP-UX. Mention Cygwin.
77860         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
77862 2008-06-03  Eric Blake  <ebb9@byu.net>
77864         Provide fallback for older kernels.
77865         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
77866         Provide runtime fallback if kernel lacks support.
77867         Reported by Mike Frysinger.
77869 2008-06-02  Bruno Haible  <bruno@clisp.org>
77871         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
77872         it exists.
77874 2008-06-02  Bruno Haible  <bruno@clisp.org>
77876         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
77877         * lib/copy-acl.c (qcopy_acl): Update comment.
77879 2008-06-02  Bruno Haible  <bruno@clisp.org>
77881         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
77882         like ACL APIs.
77884 2008-06-02  Bruno Haible  <bruno@clisp.org>
77886         * tests/test-file-has-acl.sh: Use different code for Cygwin.
77887         * tests/test-set-mode-acl.sh: Likewise.
77888         * tests/test-copy-acl.sh: Likewise.
77889         * tests/test-copy-file.sh: Likewise.
77891 2008-06-02  Bruno Haible  <bruno@clisp.org>
77893         * tests/test-file-has-acl.sh: Remove unused code.
77895 2008-06-01  Bruno Haible  <bruno@clisp.org>
77897         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
77898         (copy_acl): Just a wrapper around qcopy_acl that emits the error
77899         messages.
77900         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
77902 2008-06-01  Bruno Haible  <bruno@clisp.org>
77904         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
77905         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
77906         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
77907         APIs.
77908         * modules/acl-tests (configure.ac): Remove tests now contained in
77909         m4/acl.m4.
77911 2008-06-02  Jim Meyering  <meyering@redhat.com>
77913         announce-gen: use a better key-server host name
77914         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
77915         it may be more consistently reliable.  Suggested by Werner Koch
77916         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
77918 2008-06-01  Bruno Haible  <bruno@clisp.org>
77920         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
77921         Reported by Voroskoi Andras <voroskoi@gmail.com>.
77923 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
77925         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
77927 2008-06-01  Bruno Haible  <bruno@clisp.org>
77929         New ACL tests.
77930         * tests/test-file-has-acl.sh: New file.
77931         * tests/test-file-has-acl.c: New file.
77932         * tests/test-set-mode-acl.sh: New file.
77933         * tests/test-set-mode-acl.c: New file.
77934         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
77935         * tests/test-copy-acl.c: New file.
77936         * modules/acl-tests: New file, based on modules/copy-file-tests.
77937         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
77938         (Depends-on): Add acl-tests.
77939         (configure.ac): Remove checks.
77940         (Makefile.am): Don't create test-sameacls program here any more.
77942 2008-06-01  Bruno Haible  <bruno@clisp.org>
77944         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
77945         * tests/test-sameacls.c: Include progname.h.
77946         (main): Invoke set_program_name. Portability fixes for MacOS X,
77947         Solaris, HP-UX.
77949 2008-06-01  Bruno Haible  <bruno@clisp.org>
77951         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
77952         function.
77953         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
77955 2008-06-01  Bruno Haible  <bruno@clisp.org>
77957         * modules/rpmatch (Depends-on): Add strdup.
77959 2008-06-01  Bruno Haible  <bruno@clisp.org>
77961         * lib/pipe.c: Include unistd-safer.h.
77962         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
77963         * modules/pipe (Depends-on): Add unistd-safer.
77965 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77967         * modules/autobuild (configure.ac): Call AB_INIT.
77969 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77971         * tests/test-getaddrinfo.c: Don't print debug messages by default.
77972         Suggested by Bruno Haible <bruno@clisp.org>.
77974 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77976         * tests/test-base64.c: Cast size_t to unsigned long when invoking
77977         printf.  Use %lu instead of %d.  Reported by Bruno Haible
77978         <bruno@clisp.org>.
77980 2008-05-29  Eric Blake  <ebb9@byu.net>
77982         Prefer new POSIX 200x interfaces over futimesat.
77983         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
77984         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
77985         when available.
77986         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
77988 2008-05-28  Bruno Haible  <bruno@clisp.org>
77990         * modules/stpcpy (License): Change to LGPLv2+.
77991         Requested by David Lutterkort <dlutter@redhat.com>.
77993 2008-05-27  Bruno Haible  <bruno@clisp.org>
77995         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
77996         current mingw.
77997         Reported by Jose E. Marchesi <jemarch@gnu.org>.
77999 2008-05-27  Bruno Haible  <bruno@clisp.org>
78001         * modules/iconv_open (Link): New section, from module 'iconv'.
78002         * modules/striconv (Link): Likewise.
78003         * modules/striconveh (Link): Likewise.
78004         * modules/xstriconv (Link): Likewise.
78005         * modules/unicodeio (Link): Likewise.
78006         * modules/propername (Link): Likewise.
78007         Reported by Jim Meyering.
78009 2008-05-26  Jim Meyering  <meyering@redhat.com>
78011         sha256: do not artificially restrict buffer length to be < 2^32
78012         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
78013         uint32_t to size_t.
78014         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
78015         to match.
78017         avoid unaligned access errors, e.g., on sparc
78018         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
78019         direct access through a possibly-unaligned uint64* pointer.
78020         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
78021         direct access through a possibly-unaligned uint32* pointer.
78022         Prompted by this patch from Tom "spot" Callaway:
78023         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
78025         sha512.c: fix typo in comment
78026         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
78028 2008-05-25  Bruno Haible  <bruno@clisp.org>
78030         * lib/set-mode-acl.c: Renamed from lib/acl.c.
78031         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
78032         (Makefile.am): Update lib_SOURCES.
78034 2008-05-25  Bruno Haible  <bruno@clisp.org>
78036         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
78038 2008-05-25  Jim Meyering  <meyering@redhat.com>
78040         useless-if-before-free: freed expr may have white-space differences
78041         * build-aux/useless-if-before-free: Recognize cases in which the
78042         freed expression differs from the tested one in embedded white
78043         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
78044         $1 was used, so we can't make any regexp shy.  Improved tests now
78045         detect this.
78047         useless-if-before-free: accept white space in the expression.
78048         * build-aux/useless-if-before-free: For now, any white space
78049         in the expression must be identical in the free argument.
78051         useless-if-before-free: efficiency tweak
78052         * build-aux/useless-if-before-free: Make the expression-matching
78053         regexp "shy".
78054         Make the *outer* regexp shy, not the expr-matching one.
78056         update code-in-comment to accept cast of free arg
78057         * build-aux/useless-if-before-free: Update regexp.
78059 2008-05-25  Bruno Haible  <bruno@clisp.org>
78061         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
78062         * modules/copy-file-tests (Files, Makefile.am): Update.
78063         * tests/test-copy-file.c (func_test_copy): Update.
78065 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
78067         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
78069 2008-05-23  Bruno Haible  <bruno@clisp.org>
78071         Improve support for ACLs on OSF/1.
78072         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
78073         Remove fallback for unknown flavors of ACLs.
78075 2008-05-22  Bruno Haible  <bruno@clisp.org>
78077         Add support for ACLs on OSF/1.
78078         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
78079         replacements.
78080         (acl_free_text): New macro fallback.
78081         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
78082         acl_free.
78083         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
78084         acl_free_text function. Require AC_C_INLINE.
78086 2008-05-22  Bruno Haible  <bruno@clisp.org>
78088         Make copy_acl work on MacOS X 10.5.
78089         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
78090         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
78091         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
78092         If MODE_INSIDE_ACL, don't assume that every system has the same text
78093         representation for ACLs as FreeBSD.
78094         * lib/copy-acl.c (copy_acl): Add support for platforms with
78095         !MODE_INSIDE_ACL.
78096         * lib/file-has-acl.c (file_has_acl): Likewise.
78097         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
78098         FreeBSD, MacOS X, or IRIX, respectively.
78100 2008-05-22  Bruno Haible  <bruno@clisp.org>
78102         * lib/acl.h: Don't include <sys/acl.h>.
78103         (GETACLCNT): Move fallback to lib/acl-internal.h.
78104         * lib/acl-internal.h: Include <sys/acl.h> here.
78105         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
78107 2008-05-22  Bruno Haible  <bruno@clisp.org>
78109         Split off copy_acl function to separate file.
78110         * lib/copy-acl.c: New file, extracted from lib/acl.c.
78111         * lib/acl.c (copy_acl): Moved function to separate file.
78112         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
78113         * modules/acl (Files): Add lib/copy-acl.c.
78114         (Makefiles.am): Augment lib_SOURCES.
78116 2008-05-22  Bruno Haible  <bruno@clisp.org>
78118         * modules/copy-file-tests: New file.
78119         * tests/test-copy-file.sh: New file.
78120         * tests/test-copy-file.c: New file.
78121         * tests/test-copy-file-sameacls.c: New file.
78123 2008-05-22  Eric Blake  <ebb9@byu.net>
78125         Avoid gcc warning.
78126         * tests/test-memcmp.c (main): Pass NULL indirectly.
78128 2008-05-21  Bruno Haible  <bruno@clisp.org>
78130         Add reference doc about ACLs.
78131         * doc/acl-resources.txt: New file.
78132         * doc/acl-cygwin.txt: New file.
78134 2008-05-21  Bruno Haible  <bruno@clisp.org>
78136         Avoid one more warning from gcc.
78137         * lib/vasnprintf.c (IF_LINT): Update comments.
78138         (VASNPRINTF): Use it also for the 'prefix' array initializer.
78140 2008-05-21  Jim Meyering  <meyering@redhat.com>
78142         avoid a warning from gcc
78143         * lib/vasnprintf.c (IF_LINT): Define.
78144         (scale10_round_decimal_long_double):
78145         Use it to avoid a "may be used uninitialized" warning.
78146         (scale10_round_decimal_double): Likewise.
78148 2008-05-21  Simon Josefsson  <simon@josefsson.org>
78150         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
78151         declared.
78153 2008-05-20  Bruno Haible  <bruno@clisp.org>
78155         * tests/test-memcmp.c (main): Test also the sign of the result. Test
78156         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
78158 2008-05-20  Simon Josefsson  <simon@josefsson.org>
78160         * modules/memcmp-tests: New file.
78161         * tests/test-memcmp.c: New file.
78163 2008-05-19  Bruno Haible  <bruno@clisp.org>
78165         * modules/propername (Notice, configure.ac): Put quoted "..." into
78166         --keyword option.
78167         * lib/propername.h: Update comments accordingly.
78168         Reported by Eric Blake.
78170 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
78172         * modules/getpass-gnu (Depends-on): Add fseeko.
78174 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78176         * modules/base64-tests: New file.
78178 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
78180         * lib/base64.c (base64_decode_ctx): If a decode context structure
78181         was passed in use it to ignore newlines.  If a context structure
78182         was _not_ passed in, continue to treat newlines as garbage (this
78183         is the historical behavior).  Formerly base64_decode.
78184         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78185         takes a decode context structure.
78186         * lib/base64.h (base64_decode): Macro for four-argument calls.
78187         (base64_decode_alloc): Likewise.
78188         * lib/base64.c (base64_decode_ctx): If a decode context structure
78189         was passed in use it to ignore newlines.  If a context structure
78190         was _not_ passed in, continue to treat newlines as garbage (this
78191         is the historical behavior).  Formerly base64_decode.
78192         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78193         takes a decode context structure.
78194         * lib/base64.h (base64_decode): Macro for four-argument calls.
78195         (base64_decode_alloc): Likewise.
78197 2008-05-19  Jim Meyering  <meyering@redhat.com>
78199         avoid a warning from gcc
78200         * lib/trim.c (IF_LINT): Define.
78201         (trim2): Use it to avoid a "may be used uninitialized" warning.
78203         Fix doc typo.
78204         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
78206 2008-05-19  Bruno Haible  <bruno@clisp.org>
78208         * doc/glibc-functions/getpass.texi: Document limits of other
78209         implementations.
78211 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78212             Bruno Haible <bruno@clisp.org>
78214         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
78216 2008-05-18  Bruno Haible  <bruno@clisp.org>
78218         * modules/propername: New file, from GNU gettext.
78219         * lib/propername.h: New file, from GNU gettext.
78220         * lib/propername.c: New file, from GNU gettext.
78221         * MODULES.html.sh (Internationalization functions): Add propername.
78223 2008-05-16  Jim Meyering  <meyering@redhat.com>
78224             Bruno Haible  <bruno@clisp.org>
78226         Avoid some warnings from "gcc -Wshadow".
78227         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
78229 2008-05-15  Eric Blake  <ebb9@byu.net>
78231         Extend previous patch to cygwin 1.7.0.
78232         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
78233         fast implementation in cygwin >= 1.7.0.
78234         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78237 2008-05-15  Bruno Haible  <bruno@clisp.org>
78239         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
78240         implementation in glibc >= 2.9.
78241         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78244 2008-05-15  Bruno Haible  <bruno@clisp.org>
78246         * MODULES.html.sh (Internationalization functions): Remove linebreak.
78247         (Unicode string functions): Add unilbrk/*.
78248         Reported by Karl Berry.
78250 2008-05-15  Eric Blake  <ebb9@byu.net>
78252         Fix violation of <stdbool.h> replacement in regex.
78253         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
78254         * lib/regexec.c (re_search_internal): Likewise.
78255         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
78257 2008-05-15  Jim Meyering  <meyering@redhat.com>
78259         avoid distracting test output when git or cvs is not found
78260         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
78261         * tests/test-vc-list-files-git.sh: Likewise.
78263 2008-05-15  Eric Blake  <ebb9@byu.net>
78265         Glibc finally accepted the memmem speedup code, bugzilla #5514.
78266         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
78267         glibc version.
78268         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78269         * doc/posix-functions/strstr.texi (strstr): Likewise.
78270         * lib/str-two-way.h (MAX): Sychronize with glibc.
78272 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
78274         * lib/regcomp.c (optimize_utf8): Add a note on why we test
78275         opr.ctx_type.
78276         (calc_first): Initialize constraint field.
78277         (duplicate_node_closure): Use it instead of special casing ANCHORS.
78278         Fix grammar.
78279         (duplicate_node): Merge constraint field for all node types.
78280         (calc_eclosure_iter): Look at constraint field for all node types.
78281         * lib/regex_internal.c (create_cd_newstate): Don't look at
78282         opr.ctx_type.
78284 2008-05-14  Bruno Haible  <bruno@clisp.org>
78286         Help GCC to do better code generation.
78287         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
78288         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
78289         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
78290         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
78291         Declare with attribute 'malloc' if supported.
78293 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78295         use "echo STR|wc -c" rather than unportable "expr length STR"
78296         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78297         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78299 2008-05-14  Jim Meyering  <meyering@redhat.com>
78301         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78302         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78303         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78304         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78305         via Collin Lasse.
78307 2008-05-14  Eric Blake  <ebb9@byu.net>
78309         Avoid quadratic growth in gl_LIBSOURCES.
78310         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78311         Suggested by Bruno Haible.
78313         Test xmemdup0.
78314         * modules/xmemdup0-tests: New file.
78315         * tests/test-xmemdup0.c: Likewise.
78317 2008-05-13  Eric Blake  <ebb9@byu.net>
78319         Split xmemdup0 into its own module.
78320         * modules/xmemdup0: New file.
78321         * lib/xmemdup0.h: Likewise.
78322         * lib/xmemdup0.c: Likewise.
78323         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78324         * lib/xalloc.h (xmemdup0): Remove.
78325         * lib/xmalloc.c (xmemdup0): Likewise.
78327 2008-05-13  Eric Blake  <ebb9@byu.net>
78328             Bruno Haible  <bruno@clisp.org>
78330         Reduce number of forks required during autoconf.
78331         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78332         and gl_LIBSOURCES_DIR.
78333         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78334         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78335         m4_syscmd per file.
78336         <m4_foreach_w>: Move...
78337         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78339 2008-05-13  Eric Blake  <ebb9@byu.net>
78341         * gnulib-tool: Fix various comment typos.
78343 2008-05-12  Bruno Haible  <bruno@clisp.org>
78345         Tailor the linebreaking algorithm.
78346         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78348 2008-05-12  Bruno Haible  <bruno@clisp.org>
78350         Update to Unicode 5.0.0.
78351         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78352         LBP_JV, LBP_JT. Redistribute values.
78353         (unilbrk_table): Change size.
78354         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78355         Unicode TR#14 rev. 22.
78356         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78357         LBP_JV, LBP_JT. Redistribute values.
78358         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78359         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78360         Update.
78361         * lib/unilbrk/lbrkprop1.h: Regenerated.
78362         * lib/unilbrk/lbrkprop2.h: Regenerated.
78363         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78364         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78365         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78366         Likewise.
78367         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78368         Likewise.
78369         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78370         result.
78371         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78372         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78373         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78374         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78375         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78376         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78378 2008-05-11  Bruno Haible  <bruno@clisp.org>
78380         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78382 2008-05-11  Bruno Haible  <bruno@clisp.org>
78384         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78385         * modules/unilbrk/gen-lbrk: New file.
78387 2008-05-11  Bruno Haible  <bruno@clisp.org>
78389         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78390         * m4/sha512.m4 (gl_SHA512): Likewise.
78392 2008-05-11  Jim Meyering  <meyering@redhat.com>
78394         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78395         * modules/crypto/sha256: New file.
78396         * modules/crypto/sha512: Likewise.
78397         * lib/sha256.c: Likewise.
78398         * lib/sha256.h: Likewise.
78399         * lib/sha512.c: Likewise.
78400         * lib/sha512.h: Likewise.
78401         * lib/u64.h: Likewise.
78402         * m4/sha256.m4: Likewise.
78403         * m4/sha512.m4: Likewise.
78404         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78406 2008-05-10  Bruno Haible  <bruno@clisp.org>
78408         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78409         (Input/Output <stdio.h>): Add xprintf.
78410         (Signal handling <signal.h>): Add strsignal.
78411         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78412         (Core language properties): Add func.
78413         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78414         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78415         strings.
78416         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78417         (Input/output): New section.
78418         (File system functions): Add openat-die, stat-macros.
78419         (Networking functions): Add sockets.
78420         (Unicode string functions): Add unictype/*.
78421         (Support for building libraries and executables): Add gperf.
78422         (Support for building documentation): Add agpl-3.0.
78423         (Misc): Add nocrash.
78425 2008-05-10  Bruno Haible  <bruno@clisp.org>
78427         * modules/unictype/gen-ctype: New file.
78429 2008-05-10  Jim Meyering  <meyering@redhat.com>
78431         Make chdir-safer.c more efficient on a system with no symlinks.
78432         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78433         also if ELOOP is zero.  Suggested by Bruno Haible.
78435         Make chdir-safer.c slightly safer.
78436         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78437         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78439         Avoid compile failure on systems without ELOOP (like mingw).
78440         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78441         Reported by Bruno Haible.
78443 2008-05-10  Bruno Haible  <bruno@clisp.org>
78445         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78446         (is_utf8_encoding): Use a case-insensitive comparison.
78447         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78448         streq.
78450 2008-05-10  Bruno Haible  <bruno@clisp.org>
78452         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78453         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78454         * lib/unilbrk/ulc-common.h (iconv_string_length,
78455         iconv_string_keeping_offsets): Remove declarations.
78456         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78457         Don't include <iconv.h>, streq.h, xsize.h.
78458         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78459         conversion.
78460         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78461         <iconv.h>, streq.h, xsize.h.
78462         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78463         conversion.
78464         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78465         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78466         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78467         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78469 2008-05-10  Bruno Haible  <bruno@clisp.org>
78471         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78472         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78474         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78475         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78477         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78478         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78480         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78481         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78483         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78484         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78486         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78487         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78489         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78490         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78492         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78493         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78495 2008-05-10  Bruno Haible  <bruno@clisp.org>
78497         Split up 'linebreak' module.
78498         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78499         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78500         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78501         modifications.
78502         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78503         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78504         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78505         lib/linebreak.c.
78506         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78507         lib/linebreak.c.
78508         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78509         lib/linebreak.c.
78510         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78511         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78512         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78513         lib/linebreak.c.
78514         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78515         lib/linebreak.c.
78516         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78517         lib/linebreak.c.
78518         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78519         lib/linebreak.c.
78520         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78521         lib/linebreak.c.
78522         * modules/unilbrk/base: New file.
78523         * modules/unilbrk/tables: New file.
78524         * modules/unilbrk/u8-possible-linebreaks: New file.
78525         * modules/unilbrk/u16-possible-linebreaks: New file.
78526         * modules/unilbrk/u32-possible-linebreaks: New file.
78527         * modules/unilbrk/ulc-common: New file.
78528         * modules/unilbrk/ulc-possible-linebreaks: New file.
78529         * modules/unilbrk/u8-width-linebreaks: New file.
78530         * modules/unilbrk/u16-width-linebreaks: New file.
78531         * modules/unilbrk/u32-width-linebreaks: New file.
78532         * modules/unilbrk/ulc-width-linebreaks: New file.
78533         * lib/linebreak.h: Remove file.
78534         * lib/linebreak.c: Remove file.
78535         * m4/linebreak.m4: Remove file.
78536         * modules/linebreak: Remove file.
78537         * NEWS: Mention the changes.
78539 2008-05-09  Eric Blake  <ebb9@byu.net>
78541         Add xmemdup0.
78542         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78543         implementation.
78544         * lib/xmalloc.c (xmemdup0): New C implementation.
78546 2008-05-08  Bruno Haible  <bruno@clisp.org>
78548         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
78550 2008-05-07  Eric Blake  <ebb9@byu.net>
78552         Support cross-compilation of <wctype.h>.
78553         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
78554         AC_CACHE_CHECK.
78556 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
78558         * build-aux/vc-list-files: Add support for bzr.
78560 2008-05-03  Jim Meyering  <meyering@redhat.com>
78562         avoid failed assertion with tight malloc
78563         * tests/test-getndelim2.c: Correct an off-by-one assertion.
78565 2008-05-03  Simon Josefsson  <simon@josefsson.org>
78567         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
78568         are needed from arpa/inet.h.
78569         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
78570         Reported by Bruno Haible.
78572 2008-05-02  Jim Meyering  <meyering@redhat.com>
78574         avoid compilation error on FreeBSD 6
78575         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
78577 2008-05-01  Jim Meyering  <meyering@redhat.com>
78579         useless-if-before-free: correct --help's exit status description
78580         * build-aux/useless-if-before-free (usage): Like grep, exit 0
78581         for one or more matches, etc.  Reported by Bruno Haible.
78583         vc-list-files: make the stand-alone gnulib test work
78584         * modules/vc-list-files-tests (configure.ac):
78585         Define and AC_SUBST abs_aux_dir.
78586         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
78587         $(abs_top_srcdir) to each script and having each of them
78588         duplicate the work of setting PATH, set PATH here, using
78589         the new variable, abs_aux_dir instead.
78590         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
78591         * tests/test-vc-list-files-git.sh: Likewise.
78592         Reported by Bruno Haible.
78594 2008-05-01  Bruno Haible  <bruno@clisp.org>
78596         * lib/getndelim2.c (getndelim2): Fix newsize computation during
78597         reallocation. Rename 'done' to 'found_delimiter'.
78599 2008-05-01  Jim Meyering  <meyering@redhat.com>
78601         vc-list-files: accommodate /bin/sh like the one from Solaris 10
78602         * build-aux/vc-list-files: Use `...`, not $(...).
78604 2008-04-30  Jim Meyering  <meyering@redhat.com>
78606         add tests for vc-list-files
78607         * modules/vc-list-files-tests: New module.
78608         * tests/test-vc-list-files-cvs.sh: New file.
78609         * tests/test-vc-list-files-git.sh: New file.
78611         avoid a warning from gcc
78612         * lib/getndelim2.c (IF_LINT): Define.
78613         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
78615         vc-list-files: work properly with build-aux/cvsu, too
78616         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
78617         to all cvs-based clauses.
78619         vc-list-files: work properly in the CVS+awk case, too
78620         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
78622         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
78623         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
78624         take more than one file argument, so .  Add quotes, just in case $dir
78625         ever contains a shell meta-character.  Prompted by Soren Hansen in
78626         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
78628 2008-04-29  Eric Blake  <ebb9@byu.net>
78630         Optimize getndelim2 to use block operations when possible.
78631         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
78632         freadseek, and memchr2.
78633         * lib/getndelim2.c (getndelim2): Use them for block reads.
78635 2008-04-29  Bruno Haible  <bruno@clisp.org>
78637         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
78638         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78639         * modules/inet_ntop (Depends-on): Add extensions.
78640         * modules/inet_pton (Depends-on): Likewise.
78641         Reported by Simon Josefsson.
78643 2008-04-29  Jim Meyering  <meyering@redhat.com>
78645         When the is more than one match in a block, match all of them.
78646         * build-aux/useless-if-before-free: Iterate through each block
78647         until there are no more matches.
78649         Fix broken useless-if-before-free script.
78650         * build-aux/useless-if-before-free: Fix typo: missing "?" after
78651         the expression to match cast of argument to free-like function.
78653 2008-04-29  Eric Blake  <ebb9@byu.net>
78655         Use new header.
78656         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
78658 2008-04-29  Jim Meyering  <meyering@redhat.com>
78660         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
78661         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
78662         by gnulib to exist and to declare e.g., inet_ntop.
78663         Don't include "inet_ntop.h", now removed.
78665         * m4/arpa_inet_h.m4: Remove trailing blanks.
78667 2008-04-29  Eric Blake  <ebb9@byu.net>
78669         Silence valgrind on safe reads beyond potential array bounds.
78670         * lib/rawmemchr.valgrind: New file.
78671         * lib/strchrnul.valgrind: Likewise.
78672         * modules/rawmemchr (Files): Distribute new file.
78673         * modules/strchrnul (Files): Likewise.
78674         Suggested by Bruno Haible.
78676 2008-04-29  Bruno Haible  <bruno@clisp.org>
78678         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
78679         (inet_ntop, inet_pton): Change portability warning's wording.
78680         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
78681         Invoke gl_CHECK_NEXT_HEADERS.
78682         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
78683         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
78684         set ARPA_INET_H.
78685         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78686         * modules/arpa_inet (Description): No longer only for systems that
78687         lack it.
78688         (Depends-on): Add include_next.
78689         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
78690         HAVE_ARPA_INET_H.
78692 2008-04-29  Jim Meyering  <meyering@redhat.com>
78694         * modules/mkdir (License): Re-license as LGPLv2+.
78696 2008-04-29  Bruno Haible  <bruno@clisp.org>
78698         * modules/rawmemchr (Maintainer): Set to Eric.
78699         * modules/strchrnul (Maintainer): Likewise.
78701 2008-04-29  Simon Josefsson  <simon@josefsson.org>
78703         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
78704         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
78706         * modules/arpa_inet (arpa/inet.h): Use them.
78708 2008-04-28  Eric Blake  <ebb9@byu.net>
78710         Test getndelim2.
78711         * modules/getndelim2-tests: New file.
78712         * tests/test-getndelim2.c: Likewise.
78713         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
78714         stream.
78715         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
78717         * MODULES.html.sh: Document new module.
78719 2008-04-20  Bruno Haible  <bruno@clisp.org>
78721         * lib/c-stack.c (die): Use raise.
78722         * modules/c-stack (Depends-on): Add raise.
78724 2008-04-28  Bruno Haible  <bruno@clisp.org>
78726         Expect rpmatch to be declared.
78727         * lib/yesno.c (rpmatch): Remove declaration.
78729         Declare rpmatch.
78730         * lib/stdlib.in.h (rpmatch): New declaration.
78731         * lib/rpmatch.c: Include <stdlib.h> first.
78732         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
78733         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
78734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
78735         HAVE_RPMATCH.
78736         * modules/rpmatch (Depends-on): Add stdlib, extensions.
78737         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
78738         (Include): Set to <stdlib.h>.
78739         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
78740         HAVE_RPMATCH.
78741         * NEWS: Document the change.
78743 2008-04-28  Bruno Haible  <bruno@clisp.org>
78745         Change rpmatch to use nl_langinfo when appropriate.
78746         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
78747         (N_): New macro.
78748         (localized_pattern): New function/macro.
78749         (try): Remove match, nomatch arguments. Copy the pattern into safe
78750         memory before caching it.
78751         (rpmatch): Use localized_pattern. Add translator comments.
78752         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
78753         Suggested by Eric Blake.
78754         * modules/rpmatch (Depends-on): Add stdbool.
78756 2008-04-28  Eric Blake  <ebb9@byu.net>
78758         Add rawmemchr module, matching glibc.
78759         * modules/string (Makefile.am): New indicator.
78760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
78761         * lib/string.in.h (rawmemchr): Declare when appropriate.
78762         * modules/rawmemchr: New file.
78763         * m4/rawmemchr.m4: Likewise.
78764         * lib/rawmemchr.c: Likewise.
78765         * modules/rawmemchr-tests: Likewise.
78766         * tests/test-rawmemchr.c: Likewise.
78767         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
78768         module.
78769         * modules/strchrnul (Depends-on): Add rawmemchr.
78770         * lib/strchrnul.c (strchrnul): Optimize a corner case.
78772         Whitespace cleanup.
78773         * tests/test-strchrnul.c: Reindent.
78774         * lib/strchrnul.c: Likewise.
78776         Optimize and test strchrnul.
78777         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
78778         * modules/strchrnul-tests: New file.
78779         * tests/test-strchrnul.c: Likewise.
78781         Remove intprops dependency.
78782         * modules/memchr (Depends-on): Remove intprops.
78783         * modules/memrchr (Depends-on): Likewise.
78784         * modules/memchr2 (Depends-on): Likewise.
78785         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
78786         * lib/memrchr.c (__memrchr): Likewise.
78787         * lib/memrchr2.c (memchr2): Likewise.
78788         Reported by Simon Josefsson.
78790 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78792         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
78793         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78795 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78797         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
78799         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
78801         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
78803         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
78804         declarations.
78805         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
78807         * m4/inet_pton.m4: Don't check for header files.
78809         * m4/inet_ntop.m4: Don't check for header files.
78811 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78813         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
78814         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
78815         trigger for cygwin).
78816         Reported by Bruno Haible  <bruno@clisp.org>.
78818 2008-04-28  Bruno Haible  <bruno@clisp.org>
78820         * doc/posix-functions/strdup.texi: Mention mingw problem.
78822 2008-04-27  Bruno Haible  <bruno@clisp.org>
78824         * modules/stat-time-tests (Depends-on): Add sleep.
78825         * tests/test-stat-time.c (force_unlink): New function.
78826         (cleanup): Use it.
78827         (test_mtime): Remove the ctime related tests.
78828         (test_ctime): New function, containing the ctime related tests.
78829         (main): Call test_ctime, except on native Windows platforms.
78831 2008-04-27  Bruno Haible  <bruno@clisp.org>
78833         * lib/rpmatch.c (rpmatch): Add some comments.
78834         Reported by James Youngman <jay@gnu.org>.
78836 2008-04-27  Bruno Haible  <bruno@clisp.org>
78838         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
78839         quiet NaNs.
78841 2008-04-27  Bruno Haible  <bruno@clisp.org>
78843         Make test-yesno.sh work on mingw.
78844         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
78845         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
78846         (main): Set stdin to binary mode.
78847         * modules/yesno-tests (Depends-on): Add binary-io.
78849 2008-04-27  Bruno Haible  <bruno@clisp.org>
78851         Fix 'isfinite' on x86, x86_64, ia64 platforms.
78852         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
78853         argument that lie outside the IEEE 854 domain.
78854         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
78855         (gl_ISFINITE): Use it.
78856         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
78858 2008-04-27  Bruno Haible  <bruno@clisp.org>
78860         Allow local renaming in config.h.
78861         * lib/memrchr.c (memrchr): Don't undefine outside libc.
78863 2008-04-27  Bruno Haible  <bruno@clisp.org>
78865         * lib/memchr.c (__memchr): Change type of 'i'.
78866         * lib/memchr2.c (memchr2): Likewise.
78868 2008-04-26  Eric Blake  <ebb9@byu.net>
78869         and Bruno Haible  <bruno@clisp.org>
78871         Optimize and test memrchr.
78872         * modules/memrchr (Depends-on): Add intprops.
78873         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
78874         * modules/memrchr-tests: New file.
78875         * tests/test-memrchr.c: New file.
78877 2008-04-26  Bruno Haible  <bruno@clisp.org>
78879         Add tentative support for DragonFly BSD.
78880         * lib/stdio-impl.h: Add macros for DragonFly BSD.
78881         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
78882         fp.
78883         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78884         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
78885         * lib/fpurge.c (fpurge): Likewise.
78886         * lib/freadable.c (freaadable): Likewise.
78887         * lib/freadahead.c (freadahead): Likewise.
78888         * lib/freading.c (freading): Likewise.
78889         * lib/freadptr.c (freadptr): Likewise.
78890         * lib/freadseek.c (freadptrinc): Likewise.
78891         * lib/fseeko.c (fseeko): Likewise.
78892         * lib/fseterr.c (fseterr): Likewise.
78893         * lib/fwritable.c (fwritable): Likewise.
78894         * lib/fwriting.c (fwriting): Likewise.
78896 2008-04-26  Bruno Haible  <bruno@clisp.org>
78898         * lib/stdio-impl.h: New file.
78899         * lib/fbufmode.c: Include stdio-impl.h.
78900         (fbufmode): Use fp_, remove redundant #defines.
78901         * lib/fflush.c: Include stdio-impl.h.
78902         (clear_ungetc_buffer): Remove redundant #defines.
78903         * lib/fpurge.c: Include stdio-impl.h.
78904         (fpurge): Remove redundant #defines.
78905         * lib/freadable.c: Include stdio-impl.h.
78906         (freadable): Remove redundant #defines.
78907         * lib/freadahead.c: Include stdio-impl.h.
78908         (freadahead): Remove redundant #defines.
78909         * lib/freading.c: Include stdio-impl.h.
78910         (freading): Remove redundant #defines.
78911         * lib/freadptr.c: Include stdio-impl.h.
78912         (freadptr): Remove redundant #defines.
78913         * lib/freadseek.c: Include stdio-impl.h.
78914         (freadptrinc): Remove redundant #defines.
78915         * lib/fseeko.c: Include stdio-impl.h.
78916         (rpl_fseeko): Remove redundant #defines.
78917         * lib/fseterr.c: Include stdio-impl.h.
78918         (fseterr): Remove redundant #defines.
78919         * lib/fwritable.c: Include stdio-impl.h.
78920         (fwritable: Remove redundant #defines.
78921         * lib/fwriting.c: Include stdio-impl.h.
78922         (fwriting): Remove redundant #defines.
78923         * modules/fbufmode (Files): Add lib/stdio-impl.h.
78924         * modules/fflush (Files): Likewise.
78925         * modules/fpurge (Files): Likewise.
78926         * modules/freadable (Files): Likewise.
78927         * modules/freadahead (Files): Likewise.
78928         * modules/freading (Files): Likewise.
78929         * modules/freadptr (Files): Likewise.
78930         * modules/freadseek (Files): Likewise.
78931         * modules/fseeko (Files): Likewise.
78932         * modules/fseterr (Files): Likewise.
78933         * modules/fwritable (Files): Likewise.
78934         * modules/fwriting (Files): Likewise.
78936 2008-04-26  Bruno Haible  <bruno@clisp.org>
78938         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78939         restore_seek_optimization, update_fpos_cache): New functions, extracted
78940         from rpl_fflush.
78941         (rpl_fflush): Use them.
78942         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
78943         (gl_REPLACE_FFLUSH): Use it.
78945 2008-04-26  Bruno Haible  <bruno@clisp.org>
78947         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
78948         on Solaris.
78949         * tests/test-xstrtoimax.sh: Likewise.
78950         * tests/test-xstrtoumax.sh: Likewise.
78951         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78953 2008-04-26  Bruno Haible  <bruno@clisp.org>
78955         * modules/memchr-tests: New file.
78956         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
78958 2008-04-26  Eric Blake  <ebb9@byu.net>
78959             Bruno Haible  <bruno@clisp.org>
78961         * lib/memchr.c: Include intprops.h.
78962         (__memchr): Optimize parallel detection of matching bytes. Rename local
78963         variables. Add explanatory comments.
78965 2008-04-26  Bruno Haible  <bruno@clisp.org>
78967         Fix module 'memchr', broken since 2000-10-28.
78968         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
78970 2008-04-26  Bruno Haible  <bruno@clisp.org>
78972         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
78973         comments.
78975 2008-04-25  Eric Blake  <ebb9@byu.net>
78977         Use native fstatat on cygwin 1.7.0.
78978         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
78979         first.
78981 2008-04-23  Eric Blake  <ebb9@byu.net>
78983         Improve memchr2 performance.
78984         * lib/memchr2.c (memchr2): Further optimize parallel detection of
78985         NUL bytes.
78986         * modules/memchr2 (Depends-on): Use intprops.h.
78988 2008-04-23  Simon Josefsson  <simon@josefsson.org>
78990         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
78991         an inline function instead of a CPP macro.  Patch by Ben Pfaff
78992         <blp@cs.stanford.edu>.
78994 2008-04-23  Simon Josefsson  <simon@josefsson.org>
78996         * lib/arpa_inet.in.h: New file.
78998         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
78999         (Makefile.am): Sed in substitute header file.
79001         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
79002         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
79004         * modules/inet_ntop (configure.ac): Use
79005         gl_ARPA_INET_MODULE_INDICATOR.
79007         * modules/inet_pton (configure.ac): Use
79008         gl_ARPA_INET_MODULE_INDICATOR.
79010 2008-04-22  Jim Meyering  <meyering@redhat.com>
79012         * modules/verify (License): Re-license as LGPLv2+.
79014 2008-04-22  Simon Josefsson  <simon@josefsson.org>
79016         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
79017         parameter to void* as per POSIX standard (MinGW uses char*).
79019 2008-04-21  Bruno Haible  <bruno@clisp.org>
79021         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79022         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79023         Define to replacements if REPLACE_ISWCNTRL is 1.
79024         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
79025         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
79026         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
79027         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
79028         what it fixes.
79029         * doc/posix-functions/iswalpha.texi: Likewise.
79030         * doc/posix-functions/iswblank.texi: Likewise.
79031         * doc/posix-functions/iswcntrl.texi: Likewise.
79032         * doc/posix-functions/iswdigit.texi: Likewise.
79033         * doc/posix-functions/iswgraph.texi: Likewise.
79034         * doc/posix-functions/iswlower.texi: Likewise.
79035         * doc/posix-functions/iswprint.texi: Likewise.
79036         * doc/posix-functions/iswpunct.texi: Likewise.
79037         * doc/posix-functions/iswspace.texi: Likewise.
79038         * doc/posix-functions/iswupper.texi: Likewise.
79039         * doc/posix-functions/iswxdigit.texi: Likewise.
79040         Reported by Alain Guibert.
79042 2008-04-21  Bruno Haible  <bruno@clisp.org>
79044         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
79045         Patch by Alain Guibert.
79047 2008-04-21  Bruno Haible  <bruno@clisp.org>
79049         Fix test failures on mingw.
79050         * tests/test-xstrtol.c (print_no_progname): New function.
79051         (main): Install it in error_print_progname hook.
79052         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
79053         * tests/test-xstrtoimax.sh: Likewise.
79054         * tests/test-xstrtoumax.sh: Likewise.
79056 2008-04-21  Bruno Haible  <bruno@clisp.org>
79058         Fix test failure on mingw.
79059         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
79061 2008-04-21  Bruno Haible  <bruno@clisp.org>
79063         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
79064         Actually assign a value.
79066 2008-04-20  Bruno Haible  <bruno@clisp.org>
79068         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
79069         take 2.
79070         * lib/canonicalize.c (canonicalize_file_name): Elide if the
79071         'canonicalize-lgpl' module is also used.
79072         * lib/canonicalize-lgpl.c: Undo last change.
79073         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
79075 2008-04-20  Bruno Haible  <bruno@clisp.org>
79077         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
79078         config.h. Provide _mkdir based fallback for mingw.
79079         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
79080         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
79081         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
79082         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
79083         rather than defining mkdir in config.h.
79084         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
79085         (gl_SYS_STAT_H_DEFAULTS): New macro.
79086         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
79087         HAVE_IO_H any more.
79088         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
79089         HAVE_DECL_MKDIR and HAVE_IO_H.
79091 2008-04-20  Bruno Haible  <bruno@clisp.org>
79093         * lib/isapipe.c: Port to native Windows platforms.
79095 2008-04-20  Bruno Haible  <bruno@clisp.org>
79097         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
79099 2008-04-21  Eric Blake  <ebb9@byu.net>
79101         Work around preprocessors that don't handle UINTMAX_MAX.
79102         * lib/memchr2.c (memchr2): Avoid embedded #if.
79103         Reported by Alain Guibert, fix suggested by Bruno Haible.
79105 2008-04-21  Simon Josefsson  <simon@josefsson.org>
79107         * doc/posix-functions/strftime.texi (strftime): Explain better
79108         Windows incompatibility.  Suggested by Micah Cowan
79109         <micah@cowan.name>.
79111 2008-04-20  Bruno Haible  <bruno@clisp.org>
79113         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
79114         unistr/u8-mblen.
79116 2008-04-20  Bruno Haible  <bruno@clisp.org>
79118         Fix test failure on platforms with non-GNU iconv.
79119         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
79120         (U_TO_U8): Use it, rather than u16_to_u8.
79121         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
79122         units at the end of the input string.
79123         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
79125 2008-04-20  Bruno Haible  <bruno@clisp.org>
79127         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
79128         when the resulting length is 0.
79129         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
79131 2008-04-20  Bruno Haible  <bruno@clisp.org>
79133         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
79134         works.
79135         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
79137 2008-04-20  Bruno Haible  <bruno@clisp.org>
79139         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
79140         * modules/tsearch-tests (configure.ac): Test for initstate function.
79142 2008-04-20  Bruno Haible  <bruno@clisp.org>
79144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
79145         for nlink_t if missing.
79146         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
79148 2008-04-19  Bruno Haible  <bruno@clisp.org>
79150         Work around snprintf bug on Linux libc5.
79151         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
79152         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79153         gl_SNPRINTF_SIZE1.
79154         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79155         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
79156         that test failed.
79157         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
79158         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
79159         * modules/snprintf (Files): Add m4/printf.m4.
79160         * modules/vsnprintf (Files): Likewise.
79161         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
79162         * doc/posix-functions/vsnprintf.texi: Likewise.
79164 2008-04-19  Bruno Haible  <bruno@clisp.org>
79166         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
79167         from 0.0058 to less than 10^-7.
79169 2008-04-19  Bruno Haible  <bruno@clisp.org>
79171         Fix rounding when a precision is given.
79172         * lib/vasnprintf.c (is_borderline): New function.
79173         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
79174         9...9x.
79175         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
79176         %e, %g.
79177         * tests/test-vasprintf-posix.c (test_function): Likewise.
79178         * tests/test-snprintf-posix.h (test_function): Likewise.
79179         * tests/test-sprintf-posix.h (test_function): Likewise.
79180         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
79181         * tests/test-printf-posix.h (test_function): Likewise.
79182         * tests/test-printf-posix.output: Update.
79183         Reported by John Darrington <john@darrington.wattle.id.au> via
79184         Ben Pfaff <blp@cs.stanford.edu>.
79186 2008-04-18  Simon Josefsson  <simon@josefsson.org>
79188         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
79189         Suggested by Bruno Haible <bruno@clisp.org>.
79191 2008-04-17  Bruno Haible  <bruno@clisp.org>
79193         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
79194         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
79195         implementation.
79196         Patch by Bruce Merry <bmerry@gmail.com>.
79198 2008-04-17  Simon Josefsson  <simon@josefsson.org>
79200         * doc/posix-functions/strftime.texi (strftime): Mention that %e
79201         doesn't work under Windows.
79203 2008-04-16  Bruno Haible  <bruno@clisp.org>
79205         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
79206         New macros.
79207         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
79208         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
79209         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
79210         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
79211         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
79212         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
79213         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
79214         macros.
79215         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
79216         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
79217         Northern Sotho, Uighur.
79219 2008-04-16  Bruno Haible  <bruno@clisp.org>
79221         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
79222         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
79223         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
79224         Reported by Daniel Bergström <daniel@octocode.com>.
79226 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
79227             Bruno Haible  <bruno@clisp.org>
79229         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
79230         function.
79231         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
79232         New functions, mostly extracted from gl_locale_name_default.
79233         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
79235 2008-04-16  Eric Blake  <ebb9@byu.net>
79237         Adjust strtod detection to catch glibc 2.7 bug.
79238         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
79239         Reported by John Gatewood Ham.
79241 2008-04-16  Bruno Haible  <bruno@clisp.org>
79243         Add tentative support for Linux libc5.
79244         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
79245         * lib/fpurge.c (fpurge): Likewise.
79246         * lib/freadable.c (freadable): Likewise.
79247         * lib/freadahead.c (freadahead): Likewise.
79248         * lib/freading.c (freading): Likewise.
79249         * lib/freadptr.c (freadptr): Likewise.
79250         * lib/freadseek.c (freadptrinc): Likewise.
79251         * lib/fseeko.c (rpl_fseeko): Likewise.
79252         * lib/fseterr.c (fseterr): Likewise.
79253         * lib/fwritable.c (fwritable): Likewise.
79254         * lib/fwriting.c (fwriting): Likewise.
79255         Reported by Alain Guibert <alguibert+bts@free.fr>.
79257 2008-04-15  Bruno Haible  <bruno@clisp.org>
79259         * modules/mathl (configure.ac): Define module indicator.
79261 2008-04-15  Bruno Haible  <bruno@clisp.org>
79263         * lib/logl.c (logl): Remove unused variables.
79265 2008-04-15  Bruno Haible  <bruno@clisp.org>
79267         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
79268         fails.
79270 2008-04-15  Bruno Haible  <bruno@clisp.org>
79272         * lib/trim.c (trim2): Fix argument of isspace() macro.
79274 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
79276         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
79277         to 0.
79278         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
79280 2008-04-14  Bruno Haible  <bruno@clisp.org>
79282         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
79283         AC_LANG_PROGRAM argument.
79284         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
79285         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
79286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79287         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79288         * m4/math_h.m4 (gl_MATH_H): Likewise.
79289         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
79290         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79291         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79292         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79293         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79294         * m4/regex.m4 (gl_REGEX): Likewise.
79295         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79296         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79298         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79299         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79300         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79301         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79302         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79304 2008-04-14  Jim Meyering  <meyering@redhat.com>
79306         test-strtod: fix typos: s/abs/fabs/
79307         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79309 2008-04-13  Bruno Haible  <bruno@clisp.org>
79311         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79312         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79313         module is also used and while not building the reloc-wrapper.
79315 2008-04-13  Bruno Haible  <bruno@clisp.org>
79317         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79319 2008-04-13  Bruno Haible  <bruno@clisp.org>
79321         Fix AIX compilation failure introduced on 2008-04-02.
79322         * tests/test-frexp.c (exp): Undefine before redefining.
79323         * tests/test-frexpl.c (exp): Likewise.
79325 2008-04-13  Bruno Haible  <bruno@clisp.org>
79327         Work around a HP-UX stdio bug.
79328         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79329         * tests/test-ftello.c (main): Likewise.
79330         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79331         * doc/posix-functions/ftello.texi: Likewise.
79333 2008-04-13  Bruno Haible  <bruno@clisp.org>
79335         Make test-signbit pass on HP-UX/hppa.
79336         * tests/test-signbit.c (minus_zerol): New variable.
79337         (test_signbitl): Use it.
79339 2008-04-13  Bruno Haible  <bruno@clisp.org>
79341         Make truncl work on OSF/1 4.0.
79342         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79343         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79344         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79346         HAVE_DECL_TRUNCL.
79347         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79348         HAVE_DECL_TRUNCL.
79349         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79351 2008-04-13  Bruno Haible  <bruno@clisp.org>
79353         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79355 2008-04-13  Bruno Haible  <bruno@clisp.org>
79357         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79358         expression, so as to avoid HP-UX 11 cc compiler bug.
79360 2008-04-13  Bruno Haible  <bruno@clisp.org>
79362         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79364 2008-04-13  Bruno Haible  <bruno@clisp.org>
79366         * lib/git-merge-changelog.c: Remove empty declaration outside of
79367         functions.
79369 2008-04-13  Bruno Haible  <bruno@clisp.org>
79371         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79373 2008-04-13  Bruno Haible  <bruno@clisp.org>
79375         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79376         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79378         also if it exists but lacks definitions of the SHUT_* macros.
79379         * modules/sys_socket (Description): Update.
79380         Reported by Elbert Pol <e.pol@chello.nl>.
79382 2008-04-13  Bruno Haible  <bruno@clisp.org>
79384         * lib/localcharset.c (OS2): Don't redefine if already defined.
79385         Reported by Elbert Pol <e.pol@chello.nl>.
79387 2008-04-13  Bruno Haible  <bruno@clisp.org>
79389         * lib/binary-io.h [__EMX__]: Include <io.h>.
79390         Reported by Elbert Pol <e.pol@chello.nl>.
79392 2008-04-12  Bruno Haible  <bruno@clisp.org>
79394         * lib/fpucw.h: Enable the definitions also for x86_64.
79395         Needed for NetBSD/x86_64.
79396         Reported by Thomas Klausner <tk@giga.or.at>.
79398 2008-04-12  Bruno Haible  <bruno@clisp.org>
79400         * tests/test-strtod.c: Include isnand.h.
79401         (main): Use isnand instead of isnan.
79402         Reported by Jim Meyering.
79404 2008-04-12  Bruno Haible  <bruno@clisp.org>
79406         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79407         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79409 2008-04-12  Jim Meyering  <meyering@redhat.com>
79411         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79413 2008-04-12  Bruno Haible  <bruno@clisp.org>
79415         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79416         Reported by Elbert Pol <e.pol@chello.nl>.
79418 2008-04-12  Eric Blake  <ebb9@byu.net>
79420         Work around Solaris 10 math.h bug.
79421         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79422         (gl_MATH_H_DEFAULTS): Set up default.
79423         * modules/math (Makefile.am): Replace new indicators.
79424         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79425         * tests/test-math.c (main): Test this.
79426         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79427         * doc/posix-headers/math.texi (math.h): Mention bug.
79428         Reported by Nelson H. F. Beebe and Jim Meyering.
79430 2008-04-11  Bruno Haible  <bruno@clisp.org>
79432         Adapt to future versions of Apple GCC.
79433         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79434         Reported by Peter O'Gorman <peter@pogma.com>.
79436 2008-04-11  Bruno Haible  <bruno@clisp.org>
79438         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79440 2008-04-11  Bruno Haible  <bruno@clisp.org>
79442         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79444         * modules/getaddrinfo-tests (Makefile.am): Define
79445         test_getaddrinfo_LDADD.
79447 2008-04-11  Bruno Haible  <bruno@clisp.org>
79449         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79450         (init): Fix syntax error.
79451         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79452         is declared.
79454 2008-04-11  Bruno Haible  <bruno@clisp.org>
79456         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79457         * modules/glob (Depends-on): Add stdbool.
79459 2008-04-11  Bruno Haible  <bruno@clisp.org>
79461         * lib/trim.c: Include <string.h>.
79463 2008-04-11  Eric Blake  <ebb9@byu.net>
79465         Avoid compile failure on OS/2.
79466         * lib/regex_internal.h (internal_function): Disable optimization
79467         on OS/2 (__EMX__), where it caused compiler error.
79468         Reported by Elbert Pol.
79470 2008-04-11  Bruno Haible  <bruno@clisp.org>
79472         Flush the standard error stream before aborting. Needed on mingw.
79473         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79474         * tests/test-array_list.c (ASSERT): Likewise.
79475         * tests/test-array_oset.c (ASSERT): Likewise.
79476         * tests/test-avltree_list.c (ASSERT): Likewise.
79477         * tests/test-avltree_oset.c (ASSERT): Likewise.
79478         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79479         * tests/test-binary-io.c (ASSERT): Likewise.
79480         * tests/test-byteswap.c (ASSERT): Likewise.
79481         * tests/test-c-ctype.c (ASSERT): Likewise.
79482         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79483         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79484         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79485         * tests/test-c-strstr.c (ASSERT): Likewise.
79486         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79487         * tests/test-canonicalize.c (ASSERT): Likewise.
79488         * tests/test-carray_list.c (ASSERT): Likewise.
79489         * tests/test-ceilf1.c (ASSERT): Likewise.
79490         * tests/test-ceilf2.c (ASSERT): Likewise.
79491         * tests/test-ceill.c (ASSERT): Likewise.
79492         * tests/test-count-one-bits.c (ASSERT): Likewise.
79493         * tests/test-fbufmode.c (ASSERT): Likewise.
79494         * tests/test-fflush2.c (ASSERT): Likewise.
79495         * tests/test-floorf1.c (ASSERT): Likewise.
79496         * tests/test-floorf2.c (ASSERT): Likewise.
79497         * tests/test-floorl.c (ASSERT): Likewise.
79498         * tests/test-fopen.c (ASSERT): Likewise.
79499         * tests/test-fpending.c (ASSERT): Likewise.
79500         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79501         * tests/test-fpurge.c (ASSERT): Likewise.
79502         * tests/test-freadable.c (ASSERT): Likewise.
79503         * tests/test-freadahead.c (ASSERT): Likewise.
79504         * tests/test-freading.c (ASSERT): Likewise.
79505         * tests/test-freadptr.c (ASSERT): Likewise.
79506         * tests/test-freadptr2.c (ASSERT): Likewise.
79507         * tests/test-freadseek.c (ASSERT): Likewise.
79508         * tests/test-freopen.c (ASSERT): Likewise.
79509         * tests/test-frexp.c (ASSERT): Likewise.
79510         * tests/test-frexpl.c (ASSERT): Likewise.
79511         * tests/test-fseek.c (ASSERT): Likewise.
79512         * tests/test-fseeko.c (ASSERT): Likewise.
79513         * tests/test-fstrcmp.c (ASSERT): Likewise.
79514         * tests/test-ftell.c (ASSERT): Likewise.
79515         * tests/test-ftello.c (ASSERT): Likewise.
79516         * tests/test-func.c (ASSERT): Likewise.
79517         * tests/test-fwritable.c (ASSERT): Likewise.
79518         * tests/test-fwriting.c (ASSERT): Likewise.
79519         * tests/test-getdelim.c (ASSERT): Likewise.
79520         * tests/test-getline.c (ASSERT): Likewise.
79521         * tests/test-i-ring.c (ASSERT): Likewise.
79522         * tests/test-iconv-utf.c (ASSERT): Likewise.
79523         * tests/test-iconv.c (ASSERT): Likewise.
79524         * tests/test-isfinite.c (ASSERT): Likewise.
79525         * tests/test-isnand.c (ASSERT): Likewise.
79526         * tests/test-isnanf.c (ASSERT): Likewise.
79527         * tests/test-isnanl.h (ASSERT): Likewise.
79528         * tests/test-ldexpl.c (ASSERT): Likewise.
79529         * tests/test-linked_list.c (ASSERT): Likewise.
79530         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79531         * tests/test-localename.c (ASSERT): Likewise.
79532         * tests/test-lseek.c (ASSERT): Likewise.
79533         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79534         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79535         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79536         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79537         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79538         * tests/test-mbschr.c (ASSERT): Likewise.
79539         * tests/test-mbscspn.c (ASSERT): Likewise.
79540         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79541         * tests/test-mbspbrk.c (ASSERT): Likewise.
79542         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79543         * tests/test-mbsrchr.c (ASSERT): Likewise.
79544         * tests/test-mbsspn.c (ASSERT): Likewise.
79545         * tests/test-mbsstr1.c (ASSERT): Likewise.
79546         * tests/test-mbsstr2.c (ASSERT): Likewise.
79547         * tests/test-mbsstr3.c (ASSERT): Likewise.
79548         * tests/test-memchr2.c (ASSERT): Likewise.
79549         * tests/test-memmem.c (ASSERT): Likewise.
79550         * tests/test-open.c (ASSERT): Likewise.
79551         * tests/test-printf-frexp.c (ASSERT): Likewise.
79552         * tests/test-printf-frexpl.c (ASSERT): Likewise.
79553         * tests/test-printf-posix.c (ASSERT): Likewise.
79554         * tests/test-quotearg.c (ASSERT): Likewise.
79555         * tests/test-rbtree_list.c (ASSERT): Likewise.
79556         * tests/test-rbtree_oset.c (ASSERT): Likewise.
79557         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
79558         * tests/test-round1.c (ASSERT): Likewise.
79559         * tests/test-roundf1.c (ASSERT): Likewise.
79560         * tests/test-roundl.c (ASSERT): Likewise.
79561         * tests/test-signbit.c (ASSERT): Likewise.
79562         * tests/test-sleep.c (ASSERT): Likewise.
79563         * tests/test-snprintf-posix.c (ASSERT): Likewise.
79564         * tests/test-snprintf.c (ASSERT): Likewise.
79565         * tests/test-sprintf-posix.c (ASSERT): Likewise.
79566         * tests/test-stat-time.c (ASSERT): Likewise.
79567         * tests/test-strcasestr.c (ASSERT): Likewise.
79568         * tests/test-strerror.c (ASSERT): Likewise.
79569         * tests/test-striconv.c (ASSERT): Likewise.
79570         * tests/test-striconveh.c (ASSERT): Likewise.
79571         * tests/test-striconveha.c (ASSERT): Likewise.
79572         * tests/test-strsignal.c (ASSERT): Likewise.
79573         * tests/test-strstr.c (ASSERT): Likewise.
79574         * tests/test-strtod.c (ASSERT): Likewise.
79575         * tests/test-trunc1.c (ASSERT): Likewise.
79576         * tests/test-trunc2.c (ASSERT): Likewise.
79577         * tests/test-truncf1.c (ASSERT): Likewise.
79578         * tests/test-truncf2.c (ASSERT): Likewise.
79579         * tests/test-truncl.c (ASSERT): Likewise.
79580         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
79581         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
79582         * tests/test-vasnprintf.c (ASSERT): Likewise.
79583         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
79584         * tests/test-vasprintf.c (ASSERT): Likewise.
79585         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
79586         * tests/test-vprintf-posix.c (ASSERT): Likewise.
79587         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
79588         * tests/test-vsnprintf.c (ASSERT): Likewise.
79589         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
79590         * tests/test-wcwidth.c (ASSERT): Likewise.
79591         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
79592         * tests/test-xprintf-posix.c (ASSERT): Likewise.
79593         * tests/test-xvasprintf.c (ASSERT): Likewise.
79594         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
79595         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
79596         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
79597         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
79598         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
79599         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
79600         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
79601         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
79602         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
79603         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
79604         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
79605         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
79606         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
79607         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
79608         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
79609         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
79610         * tests/unictype/test-block_list.c (ASSERT): Likewise.
79611         * tests/unictype/test-block_of.c (ASSERT): Likewise.
79612         * tests/unictype/test-block_test.c (ASSERT): Likewise.
79613         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
79614         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
79615         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
79616         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
79617         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
79618         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
79619         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
79620         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
79621         * tests/unictype/test-combining.c (ASSERT): Likewise.
79622         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
79623         * tests/unictype/test-digit.c (ASSERT): Likewise.
79624         * tests/unictype/test-mirror.c (ASSERT): Likewise.
79625         * tests/unictype/test-numeric.c (ASSERT): Likewise.
79626         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
79627         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
79628         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
79629         * tests/unictype/test-scripts.c (ASSERT): Likewise.
79630         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
79631         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
79632         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
79633         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
79634         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
79635         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
79636         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
79637         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
79638         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
79639         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
79640         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
79641         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
79642         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
79643         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
79644         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
79645         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
79646         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
79647         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
79648         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
79649         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
79650         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
79651         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
79652         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
79653         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
79654         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
79655         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
79656         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
79657         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
79658         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
79659         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
79660         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
79661         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
79662         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
79663         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
79664         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
79665         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
79666         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
79667         Reported by Eric Blake.
79669 2008-04-11  Bruno Haible  <bruno@clisp.org>
79671         * lib/wchar.in.h: Tweak comment.
79673 2008-04-11  Bruno Haible  <bruno@clisp.org>
79675         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
79676         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
79677         gl_COMMON.
79678         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
79680 2008-04-11  Bruno Haible  <bruno@clisp.org>
79682         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
79684 2008-04-11  Simon Josefsson  <simon@josefsson.org>
79686         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
79687         of attempting to use non-existing /dev/*random.  Based on patch
79688         from Adam Strzelecki <ono@java.pl> in
79689         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
79691 2008-04-08  Bruno Haible  <bruno@clisp.org>
79693         Add tentative support for emx+gcc.
79694         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
79695         * lib/fpurge.c (fpurge): Likewise.
79696         * lib/freadable.c (freadable): Likewise.
79697         * lib/freadahead.c (freadahead): Likewise.
79698         * lib/freading.c (freading): Likewise.
79699         * lib/freadptr.c (freadptr): Likewise.
79700         * lib/freadseek.c (freadptrinc): Likewise.
79701         * lib/fseeko.c (rpl_fseeko): Likewise.
79702         * lib/fseterr.c (fseterr): Likewise.
79703         * lib/fwritable.c (fwritable): Likewise.
79704         * lib/fwriting.c (fwriting): Likewise.
79705         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
79707 2008-04-09  Eric Blake  <ebb9@byu.net>
79709         Avoid some autoconf warnings.
79710         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
79711         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
79712         * m4/afs.m4 (gl_AFS): Likewise.
79713         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
79714         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
79715         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79716         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
79717         (gl_INTEGER_TYPE_SUFFIX): Likewise.
79718         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
79719         (AC_CHECK_DECLS_ONCE): Likewise.
79720         Rename file...
79721         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
79722         gnulib-tool requires autoconf 2.59 or better.
79723         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
79725 2008-04-08  Eric Blake  <ebb9@byu.net>
79727         Use 'git describe --match' if present (added in git 1.5.5).
79728         * build-aux/git-version-gen: Limit result to tags that match 'v*'
79729         if possible.
79731 2008-04-08  Bruno Haible  <bruno@clisp.org>
79733         Add tentative support for OpenServer.
79734         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
79735         _ptr, _cnt.
79736         * lib/fpurge.c (fpurge): Likewise.
79737         * lib/freadable.c (freadable): Likewise.
79738         * lib/freadahead.c (freadahead): Likewise.
79739         * lib/freading.c (freading): Likewise.
79740         * lib/freadptr.c (freadptr): Likewise.
79741         * lib/freadseek.c (freadptrinc): Likewise.
79742         * lib/fseeko.c (rpl_fseeko): Likewise.
79743         * lib/fseterr.c (fseterr): Likewise.
79744         * lib/fwritable.c (fwritable): Likewise.
79745         * lib/fwriting.c (fwriting): Likewise.
79746         Reported by Roger Cornelius <rac@tenzing.org> and
79747         Brian K. White <brian@aljex.com>.
79749 2008-04-06  Jim Meyering  <meyering@redhat.com>
79751         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
79753 2008-04-06  Bruno Haible  <bruno@clisp.org>
79755         Avoid possible error with non-ASCII bytes in UTF-8 locales.
79756         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
79757         * tests/test-printf-posix.sh: Likewise.
79758         * tests/test-vfprintf-posix.sh: Likewise.
79759         * tests/test-vprintf-posix.sh: Likewise.
79760         * tests/test-xprintf-posix.sh: Likewise.
79762 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79764         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
79765         hide error from 'ls', needed on OS/2.
79766         Report by Elbert Pol <elbert.pol@gmail.com>.
79768 2008-04-04  Eric Blake  <ebb9@byu.net>
79770         Make test-fseeko.c failures meaningful.
79771         * tests/test-fseeko.c: Print line number on failure.
79772         * tests/test-fseek.c: Likewise.
79773         Reported by Nelson H. F. Beebe.
79775         Improve strtod bug detection check.
79776         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
79777         required for Solaris 10.
79778         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
79780 2008-04-04  Bruno Haible  <bruno@clisp.org>
79782         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
79783         by m4/setenv.m4.
79785 2008-04-03  Eric Blake  <ebb9@byu.net>
79787         Ensure sane .version contents.
79788         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
79789         version string.
79790         * build-aux/git-version-gen: Improve documentation.
79792         Make GNU make output nicer.
79793         * top/GNUmakefile [!_have-Makefile]: Add dependency on
79794         MAKECMDGOALS to enforce message for all command line targets.  Set
79795         srcdir for use in maint.mk.
79797         Another maintainer tweak.
79798         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
79799         a target that regenerates version.
79801 2008-04-03  Jim Meyering  <meyering@redhat.com>
79803         vc-list-files: don't cause coreutils "make po-check" failure
79804         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
79806 2008-04-03  Eric Blake  <ebb9@byu.net>
79808         Allow VPATH usage of vc-list-files.
79809         * build-aux/vc-list-files (scriptversion): Add timestamp.
79810         (options): Add --help, --version, -C.
79811         (CVS): Support installed cvsu.
79813 2008-04-02  Bruno Haible  <bruno@clisp.org>
79815         Avoid some "statement with no effect" warnings from gcc.
79816         * tests/test-wctype.c (main): Explicitly ignore unused values.
79817         Reported by Jim Meyering.
79819 2008-04-02  Jim Meyering  <meyering@redhat.com>
79821         Avoid some warnings from "gcc -Wshadow".
79822         * tests/test-frexp.c (exp): Define to a different identifier.
79823         * tests/test-frexpl.c (exp): Likewise.
79825 2008-04-03  Jim Meyering  <meyering@redhat.com>
79827         bootstrap: remove dangling *.[ch] symlinks from lib
79828         * build-aux/bootstrap [dangling symlink removal]: Move find's
79829         -depth option to precede all others, to avoid a warning.
79830         Remove *.[ch] files too, and from "$source_base" (usually lib/).
79832 2008-04-02  Bruno Haible  <bruno@clisp.org>
79834         Avoid some warnings from "gcc -Wshadow".
79835         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
79836         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
79837         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
79838         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
79839         Reported by Jim Meyering.
79841 2008-04-01  Bruno Haible  <bruno@clisp.org>
79843         Fix test to work on IRIX 6.5 with cc.
79844         * tests/test-math.c (numeric_equal): New function.
79845         (main): Use it.
79847 2008-04-01  Bruno Haible  <bruno@clisp.org>
79849         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
79851 2008-04-01  Bruno Haible  <bruno@clisp.org>
79853         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
79854         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79855         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
79856         (Depends-on): Remove math.
79858         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
79859         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79860         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
79861         (Depends-on): Remove math.
79863         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
79864         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79865         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
79866         (Depends-on): Remove math.
79867         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
79868         (Depends-on): Remove math.
79870         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
79871         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79872         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
79873         (Depends-on): Remove math.
79874         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
79875         (Depends-on): Remove math.
79877         * tests/test-round1.c: Include nan.h.
79878         (main): Use NaNd instead of NAN.
79879         * modules/round-tests (Files): Add tests/nan.h.
79881         * tests/test-trunc1.c: Include nan.h.
79882         (main): Use NaNd instead of NAN.
79883         * modules/trunc-tests (Files): Add tests/nan.h.
79885         * tests/test-roundf1.c: Include nan.h.
79886         (main): Use NaNf instead of NAN.
79887         * modules/roundf-tests (Files): Add tests/nan.h.
79889         * tests/test-truncf1.c: Include nan.h.
79890         (main): Use NaNf instead of NAN.
79891         * modules/truncf-tests (Files): Add tests/nan.h.
79893         * tests/test-ceilf1.c: Include nan.h.
79894         (main): Use NaNf instead of NAN.
79895         * modules/ceilf-tests (Files): Add tests/nan.h.
79897         * tests/test-floorf1.c: Include nan.h.
79898         (main): Use NaNf instead of NAN.
79899         * modules/floorf-tests (Files): Add tests/nan.h.
79901         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
79902         (main): Use NaNf instead of NAN.
79903         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
79905         * tests/test-isnand.c: Include nan.h instead of <math.h>.
79906         (main): Use NaNd instead of NAN.
79907         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
79909         * tests/test-frexp.c: Include nan.h.
79910         (main): Use NaNd instead of NAN.
79911         * modules/frexp-tests (Files): Add tests/nan.h.
79913         * lib/isnan.c: Don't include <math.h>.
79914         (FUNC): Don't use NAN macro.
79915         * modules/isnand-nolibm (Depends-on): Remove math.
79916         * modules/isnanf-nolibm (Depends-on): Remove math.
79917         * modules/isnanl (Depends-on): Remove math.
79918         * modules/isnanl-nolibm (Depends-on): Remove math.
79920         * tests/nan.h: New file.
79922 2008-04-01  Eric Blake  <ebb9@byu.net>
79924         Fix typos.
79925         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
79926         values to be the right type.
79928         For now, cater to gnulib strtod inaccuracies.
79929         * tests/test-strtod.c (main): Allow 1-ulp error on expected
79930         fractional results.  While not as nice from a QoI perspective, it
79931         is a quicker patch than correctly implementing decimal to binary
79932         rounding.
79934 2008-03-31  Eric Blake  <ebb9@byu.net>
79936         Guarantee a definition of NAN.
79937         * lib/math.in.h (NAN): Define if missing.
79938         * tests/test-math.c (main): Test it.
79939         * doc/posix-headers/math.texi (math.h): Document this.
79940         * lib/isnan.c (rpl_isnand): Use it.
79941         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
79942         * tests/test-floorf1.c (NaN): Likewise.
79943         * tests/test-frexp.c (NaN): Likewise.
79944         * tests/test-isnand.c (NaN): Likewise.
79945         * tests/test-isnanf.c (NaN): Likewise.
79946         * tests/test-round1.c (NaN): Likewise.
79947         * tests/test-roundf1.c (NaN): Likewise.
79948         * tests/test-snprintf-posix.h (NaN): Likewise.
79949         * tests/test-sprintf-posix.h (NaN): Likewise.
79950         * tests/test-trunc1.c (NaN): Likewise.
79951         * tests/test-truncf1.c (NaN): Likewise.
79952         * tests/test-vasnprintf-posix.c (NaN): Likewise.
79953         * tests/test-vasprintf-posix.c (NaN): Likewise.
79954         * modules/isnand-nolibm (Depends-on): Add math.
79955         * modules/isnanf-nolibm (Depends-on): Likewise.
79956         * modules/isnanl (Depends-on): Likewise.
79957         * modules/isnanl-nolibm (Depends-on): Likewise.
79958         * modules/snprintf-posix-tests (Depends-on): Likewise.
79959         * modules/sprintf-posix-tests (Depends-on): Likewise.
79960         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
79961         * modules/vsprintf-posix-tests (Depends-on): Likewise.
79962         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
79963         * modules/vasprintf-posix-tests (Depends-on): Likewise.
79965 2008-03-31  Bruno Haible  <bruno@clisp.org>
79967         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
79968         * doc/posix-functions/strtod.texi: Likewise.
79970 2008-03-31  Bruno Haible  <bruno@clisp.org>
79972         * tests/test-strtod.c (main): Don't use C99 syntax.
79974 2008-03-31  Bruno Haible  <bruno@clisp.org>
79976         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
79977         Reported by Eric Blake.
79979 2008-03-31  Jim Meyering  <meyering@redhat.com>
79981         Don't compare actual signbit return values.
79982         * tests/test-strtod.c (main): Rather, compare only their
79983         zero/non-zero nature.
79985 2008-03-31  Eric Blake  <ebb9@byu.net>
79987         More strtod documentation.
79988         * doc/posix-functions/strtod.texi (strtod): Interpret more test
79989         failures as distinct bugs.
79991 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
79993         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
79994         Problem reported by Erik Benada in
79995         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
79997 2008-03-30  Bruno Haible  <bruno@clisp.org>
79999         * tests/test-strtod.c: Add comments about which assertion fails on which
80000         platform.
80001         * doc/posix-functions/strtod.texi: Add info about many more platforms.
80003 2008-03-30  Eric Blake  <ebb9@byu.net>
80005         Test signbit behavior on zeros.
80006         * tests/test-signbit.c (test_signbitf): Add tests for zero.
80007         (test_signbitd, test_signbitl): Likewise.
80009         More strtod touchups.
80010         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
80011         sign of negative underflow, for now.  Use .5, not .1.
80012         * doc/posix-functions/strtod.texi (strtod): Mention these
80013         limitations.
80014         Reported by Jim Meyering.
80016 2008-03-30  Bruno Haible  <bruno@clisp.org>
80018         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
80019         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
80021 2008-03-30  Bruno Haible  <bruno@clisp.org>
80023         Avoid failure when attempting to return empty iconv results on some
80024         platforms.
80025         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
80026         allocation, don't report ENOMEM when the resulting string is empty.
80028 2008-03-30  Bruno Haible  <bruno@clisp.org>
80030         Fix buffer overrun.
80031         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
80032         Don't consider the width for tmp_length. Check count against tmp_length
80033         before doing the padding. Ensure enough allocation during padding.
80035 2008-03-30  Eric Blake  <ebb9@byu.net>
80037         strtod touchups.
80038         * lib/strtod.c (strtod): Avoid compiler warnings.
80039         Reported by Jim Meyering.
80041 2008-03-30  Bruno Haible  <bruno@clisp.org>
80043         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
80044         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
80045         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
80046         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
80047         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
80048         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
80049         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
80050         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
80052         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
80053         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
80054         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
80055         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
80056         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
80057         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
80058         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
80059         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
80061         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
80062         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
80063         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
80064         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
80065         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
80066         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
80067         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
80068         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
80070         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
80071         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
80073         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
80074         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
80076         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
80077         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
80079         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
80080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
80081         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
80083         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
80084         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
80085         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
80087         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
80088         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
80089         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
80091         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
80092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
80093         * modules/vasprintf (Depends-on): Add EOVERFLOW.
80095         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
80096         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
80097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
80098         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
80099         (Depends-on): Add EOVERFLOW.
80100         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
80101         (Depends-on): Add EOVERFLOW.
80102         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80103         (Depends-on): Add EOVERFLOW.
80104         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80105         (Depends-on): Add EOVERFLOW.
80106         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80107         (Depends-on): Add EOVERFLOW.
80108         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80109         (Depends-on): Add EOVERFLOW.
80110         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80111         (Depends-on): Add EOVERFLOW.
80112         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80113         (Depends-on): Add EOVERFLOW.
80115         * lib/sprintf.c (EOVERFLOW): Remove fallback.
80116         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
80117         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
80119         * lib/snprintf.c (EOVERFLOW): Remove fallback.
80120         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
80121         * modules/snprintf (Depends-on): Add EOVERFLOW.
80123         * lib/poll.c (EOVERFLOW): Remove fallback.
80124         * modules/poll (Depends-on): Add EOVERFLOW.
80126         * lib/getugroups.c (EOVERFLOW): Remove fallback.
80127         * modules/getugroups (Depends-on): Add EOVERFLOW.
80129         * lib/getdelim.c (EOVERFLOW): Remove fallback.
80130         * modules/getdelim (Depends-on): Add EOVERFLOW.
80132         * lib/ftell.c (EOVERFLOW): Remove fallback.
80133         * modules/ftell (Depends-on): Add EOVERFLOW.
80135         * lib/fprintf.c (EOVERFLOW): Remove fallback.
80136         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
80137         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
80139         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
80141         * modules/EOVERFLOW-tests: New file.
80142         * tests/test-EOVERFLOW.c: New file.
80144         * modules/EOVERFLOW: New file.
80145         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
80147 2008-03-30  Bruno Haible  <bruno@clisp.org>
80149         Fix bug introduced on 2007-06-10.
80150         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
80151         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
80153 2008-03-30  Bruno Haible  <bruno@clisp.org>
80155         Improve freadseek's efficiency after ungetc.
80156         * lib/freadseek.c: Include freadahead.h.
80157         (freadptrinc): New function, extracted from freadseek.
80158         (freadseek): Use it in a loop. Use freadahead to determine the number
80159         of loop iterations.
80160         * modules/freadseek (Depends-on): Add freadahead.
80161         (configure.ac): Require AC_C_INLINE.
80163 2008-03-30  Bruno Haible  <bruno@clisp.org>
80165         * lib/freadseek.c (freadseek): Don't ignore the return value of
80166         freadptr.
80168 2008-03-29  Eric Blake  <ebb9@byu.net>
80170         Add hex float support.
80171         * modules/strtod (Depends-on): Add c-ctype.
80172         (Link): Mention POW_LIB.
80173         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
80174         whitespace between 'e' and exponent.
80175         * tests/test-strtod.c (main): Enable hex float tests.
80176         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
80177         now provides.
80179         Document various strtod bugs, with some fixes.
80180         * doc/posix-functions/strtod.texi (strtod): Document bugs with
80181         "-0x", "inf", "nan", and hex constants.
80182         * doc/posix-functions/atof.texi (atof): Likewise.
80183         * modules/stdlib (Makefile.am): Support strtod.
80184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80185         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
80186         detect additional strtod bugs.
80187         * lib/stdlib.in.h (rpl_strtod): Add declarations.
80188         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
80189         bool where appropriate.  Parse 'inf' and 'nan'.
80190         * tests/test-strtod.c: New file.
80191         * modules/strtod (Depends-on): Add stdbool, stdlib.
80192         (configure.ac): Turn on module indicator.
80193         * modules/strtod-tests: New module.
80195 2008-03-29  Eric Blake  <ebb9@byu.net>
80197         Fix ftell on mingw.
80198         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
80199         * modules/ftell-tests (Depends-on): Add binary-io.
80200         * modules/ftello-tests (Depends-on): Likewise.
80201         * tests/test-ftell.c (main): Enhance test to cover behavior after
80202         ungetc.  Enforce binary mode.
80203         * tests/test-ftello.c (main): Likewise.
80205         Pass test-freadseek on cygwin.
80206         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
80207         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
80208         ungetc buffer.
80210         * tests/test-fflush2.c (main): Fix typo.
80212 2008-03-29  Bruno Haible  <bruno@clisp.org>
80214         * tests/test-fflush2.c (main): Temporarily disable the contents of
80215         this test.
80216         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
80217         Reported by Eric Blake.
80219 2008-03-28  Simon Josefsson  <simon@josefsson.org>
80221         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
80222         (GC_SHA224_DIGEST_SIZE): Add.
80224         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
80225         (gc_hash_digest_length): Likewise.
80226         (gc_hash_buffer): Likewise.
80228 2008-03-25  Bruno Haible  <bruno@clisp.org>
80230         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
80231         detail which gettext release to use.
80232         Reported by Simon Josefsson.
80234 2008-03-26  Jim Meyering  <meyering@redhat.com>
80236         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
80237         * modules/gnumakefile (clean-GNUmakefile): Also, use
80238         test ... && ... || : syntax rather than if-then ... fi.
80240         gnumakefile: Don't double-quote-expand $(VPATH) value.
80241         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
80243 2008-03-24  Eric Blake  <ebb9@byu.net>
80245         Alter GNUmakefile to install into top directory.
80246         * modules/maintainer-makefile: Split, and add dependency...
80247         * modules/gnumakefile: to this new module.
80248         * build-aux/GNUmakefile: Move...
80249         * top/GNUmakefile: ...here.
80250         * build-aux/maint.mk: Move...
80251         * top/maint.mk: ...here.
80252         * MODULES.html.sh (Support for maintaining...): Document new
80253         module.
80255 2008-03-23  Bruno Haible  <bruno@clisp.org>
80257         * gnulib-tool: New options --vc-files, --no-vc-files.
80258         (func_usage): Document them.
80259         (vc_files): New variable.
80260         (func_import): Consider vc_files.
80261         (func_create_testdir): Set vc_files to empty.
80262         Suggested by Jim Meyering and Karl Berry.
80264 2008-03-23  Bruno Haible  <bruno@clisp.org>
80266         Fix regex compilation error on HP-UX 11.
80267         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
80268         * modules/regex (Files): Add m4/mbstate_t.m4.
80269         Reported by Ton Voon <ton.voon@altinity.com>.
80271 2008-03-23  Bruno Haible  <bruno@clisp.org>
80273         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
80275 2008-03-23  Eric Blake  <ebb9@byu.net>
80276             Bruno Haible  <bruno@clisp.org>
80278         Install files from top/ in the destination directory.
80279         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80280         augmentation also for the files from top/.
80281         (func_import, func_create_testdir): Rewrite file names:
80282         top/filename -> filename.
80284 2008-03-23  Bruno Haible  <bruno@clisp.org>
80286         Tweak "gnulib --version" output.
80287         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
80289 2008-03-23  Bruno Haible  <bruno@clisp.org>
80291         Tweak "gnulib --version" output.
80292         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80293         rather than contents of ChangeLog, when possible.
80295 2008-03-21  Eric Blake  <ebb9@byu.net>
80297         More --version tweaks.
80298         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80299         date of last ChangeLog entry.
80301 2008-03-21  Jim Meyering  <meyering@redhat.com>
80303         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80305 2008-03-20  Eric Blake  <ebb9@byu.net>
80307         VPATH fix.
80308         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80310 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80312         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80313         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80315 2008-03-20  Eric Blake  <ebb9@byu.net>
80317         Sync GNUmakefile with coreutils.
80318         * build-aux/GNUmakefile (have-Makefile): Rename...
80319         (_have-Makefile): ...to this, for namespace consideration.
80320         (GNUmakefile.cfg): Include, if present.
80321         (_autoreconf): Define a default.
80322         (_is-dist-target): New rule for rebuilds to pick up intra-release
80323         version.
80324         (maint-cfg.mk): Rename...
80325         (cfg.mk): ...to this.
80327 2008-03-18  Jim Meyering  <meyering@redhat.com>
80329         New script and module: mktempd
80330         * MODULES.html.sh (maint+release support): Add mktempd.
80331         * build-aux/mktempd: New file.
80332         * modules/mktempd: New file.
80334 2008-03-15  Jim Meyering  <meyering@redhat.com>
80336         Undo last change.
80337         * lib/sha1.c, lib/md5.c: 63 != ~63.
80338         Reported by Andreas Schwab.
80340         sha1.c, md5.c: Hoist a redundant expression.
80341         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80342         "ctx->buflen" only once, before calling *_process_block.
80343         * lib/md5.c (md5_process_bytes): Likewise.
80345 2008-03-14  Eric Blake  <ebb9@byu.net>
80347         Bump copyright year in files generated by gnulib-tool.
80348         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80349         gnulib-tool, rather than hard-coding it.
80351         Fix 'gnulib-tool --version' output to work with git.
80352         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80353         (startup): ...here.
80354         (func_version): Use it to invoke git-version-gen, rather than
80355         relying on CVS keyword expansion.  Modernize wording.
80356         (cvsdatestamp, last_checkin_date, version): Kill unused
80357         variables.
80359 2008-03-12  Jim Meyering  <meyering@redhat.com>
80361         Recognize optional cast of the argument to free.
80362         * build-aux/useless-if-before-free: Update regexps.
80364         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80366 2008-03-11  Bruno Haible  <bruno@clisp.org>
80368         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80369         by a single package.
80370         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80371         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80372         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80373         Reported by Sam Steingold <sds@gnu.org>.
80375 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80377         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80378         repositories.
80380 2008-03-11  Bruno Haible  <bruno@clisp.org>
80382         Avoid conflicts between local macro definitions.
80383         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80384         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80386 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80387             Bruno Haible  <bruno@clisp.org>
80389         Make va_copy work with some version of xlc on AIX 5.1.
80390         * lib/stdarg.in.h: New file.
80391         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80392         On AIX, use a <stdarg.h> file substitute.
80393         * modules/stdarg (Files): Add lib/stdarg.in.h.
80394         (Depends-on): Add include_next.
80395         (Makefile.am): Build a stdarg.h substitute if requested.
80396         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80398 2008-03-10  Bruno Haible  <bruno@clisp.org>
80400         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80401         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80402         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80404 2008-03-10  Bruno Haible  <bruno@clisp.org>
80406         * modules/stdlib (Depends-on): Add include_next, remove
80407         absolute-header.
80409 2008-03-09  Bruno Haible  <bruno@clisp.org>
80411         * lib/freadahead.h (freadahead): Document more precisely.
80412         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80413         the sum of both buffer sizes.
80414         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80415         * NEWS: Document the change.
80417 2008-03-09  Bruno Haible  <bruno@clisp.org>
80419         Extend freadptr to return also the buffer size.
80420         * lib/freadptr.h (freadptr): Add sizep argument.
80421         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80422         (freadptr): Add sizep argument. Determine buffer size like freadahead
80423         does.
80424         * tests/test-freadptr.c: Don't include freadahead.h.
80425         (main): Adapt for new calling convention of freadptr.
80426         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80427         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80428         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80429         tests/test-freadptr2.sh.
80430         (Depends): Remove freadahead.
80431         (TESTS): Add test-freadptr2.sh.
80432         (check_PROGRAMS): Add test-freadptr2.
80434 2008-03-09  Bruno Haible  <bruno@clisp.org>
80436         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80437         Report and solution by Simon Josefsson.
80439 2008-03-06  Bruno Haible  <bruno@clisp.org>
80441         Make fflush after ungetc work on BSD platforms.
80442         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80443         * tests/test-fflush2.c: New file.
80444         * tests/test-fflush2.sh: New file.
80445         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80446         tests/test-fflush2.c.
80447         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80448         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80450 2008-03-06  Eric Blake  <ebb9@byu.net>
80452         Likewise for ftello.
80453         * modules/ftello (Dependencies): Add extensions.
80454         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80456 2008-03-06  Bruno Haible  <bruno@clisp.org>
80458         * modules/fseeko (Dependencies): Add extensions.
80459         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80460         Needed on glibc systems.
80462 2008-03-06  Bruno Haible  <bruno@clisp.org>
80464         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80465         email address.
80466         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80468 2008-03-06  Bruno Haible  <bruno@clisp.org>
80470         * users.txt: Add libgnupdf.
80472 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80474         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80475         (Header File Substitutes, Function Substitutes,
80476         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80477         (Build robot for gnulib): Fix typo.
80479 2008-03-06  Bruno Haible  <bruno@clisp.org>
80481         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80482         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80484 2008-03-06  Bruno Haible  <bruno@clisp.org>
80486         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80487         * doc/gnulib.texi: Include it.
80489 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80491         * modules/func (License): Change license to unlimited; there was
80492         no LGPL parts in the module anyway.
80494 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80496         * modules/__func__: Renamed to modules/func.
80497         * modules/__func__-tests: Renamed to modules/func-tests.
80498         * tests/test-__func__.c: Renamed to tests/test-func.c.
80499         * m4/__func__.m4: Renamed to m4/func.m4.
80500         * doc/gnulib.texi (__func__): Section renamed to func.
80501         Suggested by Eric Blake <ebb9@byu.net>.
80503 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80505         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80506         about __func__.  Make example self-contained.  Suggested by Eric
80507         Blake <ebb9@byu.net>.
80509         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80510         Suggested by Eric Blake <ebb9@byu.net>.
80512 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80514         * modules/__func__: New file.
80515         * modules/__func__-tests: New file.
80516         * tests/test-__func__.c: New file.
80517         * m4/__func__.m4: New file.
80518         * doc/gnulib.texi (__func__): Document __func__ module.
80520 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80522         * modules/byteswap (License): Re-license as LGPLv2+.
80524 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80526         * doc/Makefile: Add pdf target.
80528 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80530         * modules/inline (License): Use 'unlimited', since there are only
80531         *.m4 files in this module.
80533 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80534             Bruno Haible  <bruno@clisp.org>
80536         Add support for HP C 7.1 on OpenVMS 8.3.
80537         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80539 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80541         Update VMS specifics.
80542         * lib/getopt.c [VMS]: Remove include of unixlib.h.
80544 2008-03-02  Jim Meyering  <meyering@redhat.com>
80546         Remove the last dependency on the "free" module.
80547         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
80548         Reported by Bob Proulx.
80550         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
80552         Remove useless "if" tests before free.  Deprecate "free" module.
80553         * doc/posix-functions/free.texi: Mention that this
80554         module is no longer useful.
80555         * modules/free (Notice): Say this module is obsolete.
80556         * modules/readutmp (Depends-on): Remove free.
80557         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
80558         * lib/putenv.c (putenv): Likewise.
80559         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
80560         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
80561         * tests/test-c-strcasestr.c (main): Likewise.
80562         * tests/test-c-strstr.c (main): Likewise.
80563         * tests/test-mbscasestr1.c (main): Likewise.
80564         * tests/test-mbscasestr2.c (main): Likewise.
80565         * tests/test-mbsstr1.c (main): Likewise.
80566         * tests/test-mbsstr2.c (main): Likewise.
80567         * tests/test-memmem.c (main): Likewise.
80568         * tests/test-strcasestr.c (main): Likewise.
80569         * tests/test-striconv.c (main): Likewise.
80570         * tests/test-striconveh.c (main): Likewise.
80571         * tests/test-striconveha.c (main): Likewise.
80572         * tests/test-strstr.c (main): Likewise.
80574         * build-aux/git-version-gen: Adjust a comment and the Usage string.
80576         bootstrap: sync from coreutils again
80577         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
80579 2008-03-01  Jim Meyering  <meyering@redhat.com>
80581         bootstrap: sync from coreutils
80582         * build-aux/bootstrap (update_po_files): Copy a .po file into place
80583         also when the target doesn't exist.
80585 2008-03-01  Eric Blake  <ebb9@byu.net>
80587         Fix bugs in last patch.
80588         * lib/memchr2.c (memchr2): Fix typo.
80589         * tests/test-memchr2.c: Test previous bug, and don't use GNU
80590         extension.
80591         Reported by Bruce Korb.
80593         New module 'memchr2'.
80594         * modules/memchr2: New file.
80595         * modules/memchr2-tests: Likewise.
80596         * lib/memchr2.h: Likewise.
80597         * lib/memchr2.c: Likewise, based on memchr.c.
80598         * tests/test-memchr2.c: New test.
80599         * MODULES.html.sh (String handling): Add memchr2.
80601 2008-02-29  Bruno Haible  <bruno@clisp.org>
80603         * modules/freadseek-tests: New file.
80604         * tests/test-freadseek.sh: New file.
80605         * tests/test-freadseek.c: New file.
80607         New module 'freadseek'.
80608         * modules/freadseek: New file.
80609         * lib/freadseek.h: New file.
80610         * lib/freadseek.c: New file.
80611         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
80613 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80615         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
80616         wydawca.
80618         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
80619         program_invocation_name and program_invocation_short_name are
80620         present.
80622 2008-02-28  Bruno Haible  <bruno@clisp.org>
80624         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
80625         * tests/test-freadptr.sh: Also test non-seekable stdin.
80627 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
80629         * build-aux/bootstrap (source_base, m4_base)
80630         (doc_base, tests_base): New variables.
80631         (gnulib_tool_options): Do not hardcode base directories, use
80632         the above variables instead.
80634 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
80636         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
80638 2008-02-28  Bruno Haible  <bruno@clisp.org>
80640         * modules/freadptr-tests: New file.
80641         * tests/test-freadptr.sh: New file.
80642         * tests/test-freadptr.c: New file.
80644         New module 'freadptr'.
80645         * modules/freadptr: New file.
80646         * lib/freadptr.h: New file.
80647         * lib/freadptr.c: New file.
80648         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
80650 2008-02-26  Karl Berry  <karl@freefriends.org>
80652         Sync from Libtool:
80653         * libltdl/argz.c (argz_add, argz_count): New functions.
80654         * libltdl/argz.in.h: Declare them.
80655         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
80657 2008-02-22  Bruno Haible  <bruno@clisp.org>
80659         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
80660         is a pointer type.  Needed for HP-UX 10.
80661         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
80662         * doc/posix-functions/gmtime_r.texi: Likewise.
80663         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80665 2008-02-24  Bruno Haible  <bruno@clisp.org>
80667         * modules/environ-tests: New file.
80668         * tests/test-environ.c: New file.
80670         New module 'environ'.
80671         * modules/environ: New file.
80672         * lib/unistd.in.h (environ): New declaration.
80673         * m4/environ.m4: New file.
80674         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
80675         after use.
80676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
80677         HAVE_DECL_ENVIRON.
80678         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
80679         HAVE_DECL_ENVIRON.
80680         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
80681         wrong claim that 'environ' is missing on some systems.
80682         * modules/execute (Depends-on): Add environ.
80683         * lib/execute.c (environ): Remove fallback declaration.
80684         * modules/pipe (Depends-on): Add environ.
80685         * lib/pipe.c (environ): Remove fallback declaration.
80686         * modules/setenv (Depends-on): Add environ.
80687         * lib/setenv.c (environ): Remove fallback declaration.
80688         * modules/unsetenv (Depends-on): Add environ.
80689         * lib/unsetenv.c (environ): Remove fallback declaration.
80690         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
80691         m4/environ.m4.
80692         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
80693         (gl_PREREQ_UNSETENV): Likewise.
80695 2008-02-24  Bruno Haible  <bruno@clisp.org>
80697         * doc/posix-functions/environ.texi: Document the MacOS X problem.
80699 2008-02-20  Bob Proulx  <bob@proulx.com>
80701         Enable use of older two part flavor 'git describe'.
80702         * build-aux/git-version-gen: If using the older two part flavor of
80703         git version then recreate the third part now present in the
80704         newer three part flavor of git describe.
80706 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
80708         * lib/fts.c (fts_build): Typo correction to comment.
80710 2008-02-17  Bruno Haible  <bruno@clisp.org>
80712         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
80713         generating no-op conflicts.
80715 2008-02-17  Bruno Haible  <bruno@clisp.org>
80717         Speed up by 10%.
80718         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
80719         result_entries, rather than an index-based loop.
80721 2008-02-17  Bruno Haible  <bruno@clisp.org>
80723         Speed up by 25%.
80724         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
80725         'hashcode_cached'.
80726         (entry_create): New function.
80727         (entry_hashcode): Use the cached hashcode if possible.
80728         (read_changelog_file, try_split_merged_entry): Use entry_create.
80730 2008-02-17  Bruno Haible  <bruno@clisp.org>
80732         Speed up from O(n^2) to O(n) for long ChangeLog files.
80733         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
80734         (read_changelog_file): Change implementation of entries_reversed list
80735         to rbtreehash.
80736         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
80738 2008-02-17  Bruno Haible  <bruno@clisp.org>
80740         New option --split-merged-entry.
80741         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
80742         (find_paragraph_end, try_split_merged_entry): New functions.
80743         (long_options): Add option --split-merged-entry.
80744         (usage): Document option --split-merged-entry.
80745         (main): Implement option --split-merged-entry.
80746         Reported by Eric Blake.
80748 2008-02-17  Bruno Haible  <bruno@clisp.org>
80750         * lib/git-merge-changelog.c: Include c-strstr.h.
80751         (main): Support the "git pull --rebase" situation.
80752         * modules/git-merge-changelog (Depends-on): Add c-strstr.
80753         Reported by Eric Blake.
80755 2008-02-16  Eric Blake  <ebb9@byu.net>
80757         Avoid doubling \ in common case of "c-maybe" quoting style.
80758         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
80759         eliding outer quotes.
80760         * lib/quotearg.h: Document this.
80761         * tests/test-quotearg.c (result_strings, inputs, results_g)
80762         (flag_results, locale_results): Test it by adding a new string to
80763         each test group.
80764         (compare_strings): Test new string.
80766 2008-02-13  Eric Blake  <ebb9@byu.net>
80768         Avoid trigraph quoting in default output.
80769         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
80770         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
80771         unless explicitly requested.
80772         * tests/test-quotearg.c (flag_results, main): Add additional tests.
80774 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
80776         Don't rely on signed integer overflowing to negative value.
80777         * lib/getugroups.c (getugroups): Include <limits.h>.
80778         Instead, compare against INT_MAX, and increment only if the test passes.
80780 2008-02-13  Jim Meyering  <meyering@redhat.com>
80781         and Eric Blake  <ebb9@byu.net>
80783         Avoid shadowing warning and compile errors on Linux.
80784         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
80785         forwarding macros on Linux.
80786         (dcgettext): Define a stub, for Linux.
80787         (results_g, main): Avoid warnings.
80789 2008-02-12  Eric Blake  <ebb9@byu.net>
80791         Silence warning in last patch.
80792         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
80794         Quotearg part 4: add tests, fix c-maybe colon quoting.
80795         * lib/quotearg.h: Improve documentation.
80796         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
80797         escapes when adding outer quotes.  When quoting trigraphs, use
80798         valid C notation.  When quoting NUL, omit extra characters if next
80799         character is not digit.  Alter prototype.
80800         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
80801         callers.
80802         * modules/quotearg-tests: New module.
80803         * tests/test-quotearg.c: New test.
80805 2008-02-07  Eric Blake  <ebb9@byu.net>
80807         Quotearg part 3: add flag to control outer quote elision.
80808         * lib/quotearg.h (c_maybe_quoting_style): New style.
80809         (enum quoting_flags): Better documentation of flags.
80810         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
80811         c-maybe style.
80812         (quotearg_buffer_restyled): Handle new flag to elide outer
80813         quotes.
80815         Quotearg part 2: add flag that can control NUL elision.
80816         * lib/quotearg.h (set_quoting_flags): New prototype.
80817         * lib/quotearg.c (struct quoting_options): Add flag field.
80818         (set_quoting_flags): New function.
80819         (quotearg_buffer_restyled): Add flags parameter.
80820         (quotearg_alloc_mem): Set the flag if length cannot be returned.
80821         (quotearg_n_options): Set the flag, since length cannot be
80822         returned.
80823         (quoting_options_from_style): Default flags correctly.
80825         Quotearg part 1: more wrappers, restore quotearg_char state.
80826         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
80827         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
80828         (quotearg_colon_mem): New wrappers.
80829         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
80830         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
80831         functions.
80832         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
80833         (quotearg_colon_mem): New functions.
80835 2008-02-11  Bruno Haible  <bruno@clisp.org>
80837         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
80838         library in the current directory: it does not work with parallel make.
80839         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80841 2008-02-11  Bruno Haible  <bruno@clisp.org>
80843         * .gitattributes: New file.
80845 2008-02-11  Jim Meyering  <meyering@redhat.com>
80847         useless-if-before-free: Fix reversed exit values.
80848         * build-aux/useless-if-before-free: Use correct values
80849         for EXIT_MATCH and EXIT_NO_MATCH.
80851         * build-aux/useless-if-before-free: Close stdout carefully.
80853 2008-02-10  Bruno Haible  <bruno@clisp.org>
80855         New module 'git-merge-changelog'.
80856         * modules/git-merge-changelog: New file.
80857         * lib/git-merge-changelog.c: New file.
80859 2008-02-10  Jim Meyering  <meyering@redhat.com>
80861         useless-if-before-free: New option: --list (-l).
80863         useless-if-before-free: Don't exit immediately upon open failure.
80864         * build-aux/useless-if-before-free: Exit 2 for errors.
80865         Upon failure to open a file, don't exit immediately.
80866         Rather, just warn and continue with any remaining files.
80868 2008-02-10  Bruno Haible  <bruno@clisp.org>
80870         New abstract list operation 'node_set_value'.
80871         * lib/gl_list.h (gl_list_node_set_value): New function.
80872         (struct gl_list_implementation): New field node_set_value.
80873         * lib/gl_list.c (gl_list_node_set_value): New function.
80874         * lib/gl_array_list.c (gl_array_node_set_value): New function.
80875         (gl_array_list_implementation): Update.
80876         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
80877         (gl_carray_list_implementation): Update.
80878         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
80879         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
80880         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
80881         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
80882         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
80883         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
80884         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
80885         Update.
80886         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
80887         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
80888         (gl_sublist_list_implementation): Update.
80890 2008-02-10  Bruno Haible  <bruno@clisp.org>
80892         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
80893         Needed when ELEMENT is #defined to 'some_type *'.
80895 2008-02-10  Jim Meyering  <meyering@redhat.com>
80897         New script and module: useless-if-before-free
80898         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
80899         * build-aux/useless-if-before-free: New file.
80900         * modules/useless-if-before-free: New file.
80902         * build-aux/gitlog-to-changelog: Use committer date, not author date.
80904         xstrtol_error: Fix typo.
80905         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
80906         s/exit_failure/exit_status/.
80908 2008-02-09  Jim Meyering  <meyering@redhat.com>
80910         New script and module: gitlog-to-changelog
80911         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
80912         * modules/gitlog-to-changelog: New file.
80913         * build-aux/gitlog-to-changelog: New file.
80915 2008-02-08  Jim Meyering  <meyering@redhat.com>
80917         Avoid two "parameter unused" warnings.
80918         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
80919         Mark "st" as used.
80921         Use "git COMMAND", not "git-COMMAND".
80922         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
80923         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
80924         * build-aux/git-version-gen: Use "git status", not "git-status".
80926 2008-02-07  Bruno Haible  <bruno@clisp.org>
80928         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
80929         Avoids a crash on Windows Vista.
80930         Reported by Adam Strzelecki <ono@java.pl> via
80931         Simon Josefsson <simon@josefsson.org>.
80933 2008-02-06  Bruno Haible  <bruno@clisp.org>
80935         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
80936         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
80937         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
80938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
80939         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80940         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80941         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
80942         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
80943         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80944         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80945         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80947         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80948         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80949         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80950         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
80951         left-adjust flag.
80952         * tests/test-snprintf-posix.h (test_function): Likewise.
80953         * tests/test-sprintf-posix.h (test_function): Likewise.
80954         * tests/test-vasprintf-posix.c (test_function): Likewise.
80955         * doc/posix-functions/fprintf.texi: Update.
80956         * doc/posix-functions/printf.texi: Update.
80957         * doc/posix-functions/snprintf.texi: Update.
80958         * doc/posix-functions/sprintf.texi: Update.
80959         * doc/posix-functions/vfprintf.texi: Update.
80960         * doc/posix-functions/vprintf.texi: Update.
80961         * doc/posix-functions/vsnprintf.texi: Update.
80962         * doc/posix-functions/vsprintf.texi: Update.
80963         Reported by Peter Fales <psfales@alcatel-lucent.com>.
80965 2008-02-06  Bruno Haible  <bruno@clisp.org>
80967         Fix bug introduced on 2008-01-26.
80968         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
80970 2008-02-06  Bruno Haible  <bruno@clisp.org>
80972         Fix bug introduced on 2007-06-10.
80973         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
80974         !NEED_PRINTF_FLAG_ZERO.
80976 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
80978         getloadavg: use libperfstat on AIX5
80979         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
80981 2008-02-03  Bruno Haible  <bruno@clisp.org>
80983         * lib/diffseq.h: Add comments about required #includes.
80984         Reported by Michael Biggs <gnulib@doubleplum.net>.
80986 2008-02-01  Bruno Haible  <bruno@clisp.org>
80988         * users.txt: Add gnuit.
80990 2008-01-31  Bruno Haible  <bruno@clisp.org>
80992         * lib/md4.c (set_uint32): Mark as inline.
80993         * lib/md5.c (set_uint32): Likewise.
80994         * lib/sha1.c (set_uint32): Likewise.
80995         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
80996         * m4/md5.m4 (gl_MD5): Likewise.
80997         * m4/sha1.m4 (gl_SHA1): Likewise.
80999 2008-01-31  Jim Meyering  <meyering@redhat.com>
81001         Use "sizeof VAR", rather than a literal "4".
81002         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
81003         * lib/md4.c (md4_read_ctx): Likewise.
81004         * lib/sha1.c (sha1_read_ctx): Likewise.
81006 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81008         * tests/test-sha1.c: New file, based on test-md5.c.
81010         * modules/crypto/sha1-tests: New file.
81012 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81014         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
81016 2008-01-31  Jim Meyering  <meyering@redhat.com>
81018         Prefer "sizeof v" over the equivalent "4".
81019         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
81020         * lib/md5.c (set_uint32): Likewise.
81021         * lib/sha1.c (set_uint32): Likewise.
81023 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81025         * lib/sha1.c (set_uint32): Mark function as static.
81027 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81029         md2: clarify comments to say that alignment is not required.
81030         * lib/md2.h: Remove warning about alignment in comment.
81031         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
81032         never been required.
81034 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81036         md4: adapt alignment constraint fix from sha1.
81037         * lib/md4.c (set_uint32): New function, from sha1.c
81038         (md4_read_ctx): Use it.
81039         (md4_finish_ctx): Doc fix.
81040         * lib/md4.h: Doc fix.
81042 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81044         md5: adapt alignment constraint fix from sha1.
81045         * lib/md5.c (set_uint32): New function, from sha1.c
81046         (md5_read_ctx): Use it.
81047         (md5_finish_ctx): Doc fix.
81048         * lib/md5.h: Doc fix.
81050 2008-01-30  Peter Palfrader  <weasel@debian.org>
81052         sha1: remove the result buffer alignment constraint
81053         * lib/sha1.c (set_uint32): New function.
81054         (sha1_read_ctx): Rewrite to remove the result buffer alignment
81055         constraint.
81056         (sha1_finish_ctx): Remove comment warning about alignment constraint.
81057         * lib/sha1.h: Likewise.
81059 2008-01-30  Andreas Schwab  <schwab@suse.de>
81060             Bruno Haible  <bruno@clisp.org>
81062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
81063         correct definition of LDBL_MIN_EXP.
81065 2008-01-30  Karl Berry  <karl@gnu.org>
81067         * config/srclist-update: try to preserve x bit on updates.
81068         * config/srclistvars.sh: update for karl.
81070 2008-01-29  Jim Meyering  <meyering@redhat.com>
81072         vasnprintf.c: Avoid warning about unused label
81073         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
81074         "overflow" label definition and associated code with the
81075         same cpp condition that guards the sole use of that label.
81077 2008-01-26  Bruno Haible  <bruno@clisp.org>
81079         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
81080         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
81081         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
81082         * lib/isnanl-nolibm.h (isnanl): Likewise.
81083         Reported by Paul Eggert <eggert@cs.ucla.edu>.
81085 2008-01-26  Bruno Haible  <bruno@clisp.org>
81087         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
81088         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
81090 2008-01-26  Bruno Haible  <bruno@clisp.org>
81092         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
81093         GCC >= 4.0 built-in.
81094         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
81096 2008-01-26  Bruno Haible  <bruno@clisp.org>
81098         Rename isnan, applicable to 'double' only, to isnand.
81099         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
81100         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
81101         (configure.ac): Update.
81102         (Include): Replace "isnan.h" with "isnand.h".
81103         * m4/isnand.m4: Renamed from m4/isnan.m4.
81104         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
81105         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
81106         instead of isnan.c.
81107         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
81108         instead of HAVE_ISNAN_IN_LIBC.
81109         (isnand): Renamed from isnan.
81110         * lib/isnand.c: New file.
81111         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
81112         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
81113         (Makefile.am): Update.
81114         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
81115         Include isnand.h instead of isnan.h.
81116         (main): Test isnand instead of isnan.
81117         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
81118         isnan-nolibm.
81119         * modules/frexp (Depends-on): Likewise.
81120         * modules/frexp-tests (Depends-on): Likewise.
81121         * modules/frexp-nolibm (Depends-on): Likewise.
81122         * modules/frexp-nolibm-tests (Depends-on): Likewise.
81123         * modules/isfinite (Depends-on): Likewise.
81124         * modules/round-tests (Depends-on): Likewise.
81125         * modules/signbit (Depends-on): Likewise.
81126         * modules/signbit-tests (Depends-on): Likewise.
81127         * modules/snprintf-posix (Depends-on): Likewise.
81128         * modules/sprintf-posix (Depends-on): Likewise.
81129         * modules/trunc-tests (Depends-on): Likewise.
81130         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81131         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81132         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81133         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81134         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81135         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81136         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81137         * modules/vasnprintf-posix (Depends-on): Likewise.
81138         * modules/vasprintf-posix (Depends-on): Likewise.
81139         * modules/vfprintf-posix (Depends-on): Likewise.
81140         * modules/vsnprintf-posix (Depends-on): Likewise.
81141         * modules/vsprintf-posix (Depends-on): Likewise.
81142         * lib/frexp.c: Include isnand.h instead of isnan.h.
81143         (ISNAN): Set to isnand instead of isnan.
81144         * lib/isfinite.c: Include isnand.h instead of isnan.h.
81145         (gl_isfinited): Use isnand instead of isnan.
81146         * lib/signbitd.c: Include isnand.h instead of isnan.h.
81147         (gl_signbitd): Use isnand instead of isnan.
81148         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
81149         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
81150         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
81151         (main): Use isnand instead of isnan.
81152         * tests/test-round1.c: Include isnand.h.
81153         (main): Use isnand instead of isnan.
81154         * tests/test-round2.c: Include isnand.h instead of isnan.h.
81155         (ISNAN): Set to isnand instead of isnan.
81156         * tests/test-trunc1.c: Include isnand.h.
81157         (main): Use isnand instead of isnan.
81158         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
81159         (equal): Use isnand instead of isnan.
81160         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
81161         isnand-nolibm.
81162         * NEWS: Mention the change.
81164 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81165             Bruno Haible  <bruno@clisp.org>
81167         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
81168         the GCC builtins for signbits are present and set
81169         REPLACE_SIGNBIT_USING_GCC if so.
81170         * lib/math.in.h (signbit): Define using GCC builtins if
81171         REPLACE_SIGNBIT_USING_GCC is set.
81172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
81173         REPLACE_SIGNBIT_USING_GCC.
81174         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
81176 2008-01-25  Jim Meyering  <meyering@redhat.com>
81178         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
81179         * lib/poll.c: Include <config.h>, not "config.h".
81180         * tests/test-getaddrinfo.c: Likewise.
81182 2008-01-25  Simon Josefsson  <simon@josefsson.org>
81184         * modules/sockets-tests: New file.
81186 2008-01-24  Simon Josefsson  <simon@josefsson.org>
81188         * modules/sockets: New module, can be used to call WSA_Startup and
81189         WSA_Cleanup when needed.
81191         * lib/sockets.h, lib/sockets.c: New files.
81193         * m4/sockets.m4: New file.
81195         * tests/test-sockets.c: New file.
81197 2008-01-19  Bruno Haible  <bruno@clisp.org>
81199         * doc/posix-headers: Renamed from doc/headers.
81200         * doc/posix-functions: Renamed from doc/functions.
81201         * doc/gnulib.texi: Update.
81203 2008-01-19  Bruno Haible  <bruno@clisp.org>
81205         * doc/glibc-functions/strcasestr.texi: Include contents of
81206         doc/functions/strcasestr.texi, fixing the list of platforms.
81207         * doc/functions/strcasestr.texi: Remove file.
81209 2008-01-19  Bruno Haible  <bruno@clisp.org>
81211         * doc/glibc-functions/memmem.texi: Include contents of
81212         doc/functions/memmem.texi.
81213         * doc/functions/memmem.texi: Remove file.
81215 2008-01-18  Bruno Haible  <bruno@clisp.org>
81217         * doc/glibc-functions/*.texi: New files.
81218         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
81219         to use the new files.
81221 2008-01-17  Bruno Haible  <bruno@clisp.org>
81223         * tests/test-gethostname.c (main): Fix printf statement.
81225 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81227         * modules/gethostname-tests: New file.
81229         * tests/test-gethostname.c: New file.
81231 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81233         * lib/gethostname.c: Include string.h unconditionally, strncpy is
81234         used by the UNAME case.  Reported by Bruno Haible
81235         <bruno@clisp.org>.
81237 2008-01-17  Eric Blake  <ebb9@byu.net>
81239         Convert c-strcasestr to be more efficient.
81240         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
81241         (Depends-on): Add c-strcase, remove malloca, strnlen.
81242         * tests/test-c-strcasestr.c (main): Enhance test.
81243         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
81245 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
81247         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
81248         Use it in creating po/Makevars.
81250 2008-01-15  Simon Josefsson  <simon@josefsson.org>
81252         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
81253         Applications that requires it should initialize libgcrypt
81254         manually.
81256 2008-01-16  Simon Josefsson  <simon@josefsson.org>
81258         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
81260 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
81262         Fix problem with getdate on mingw32 reported by Simon Josefsson
81263         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
81264         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
81265         tzname", when deciding whether to declare tzname.
81266         * lib/strftime.c (tzname): Likewise.
81268 2008-01-15  Bruno Haible  <bruno@clisp.org>
81270         Work around a MacOS X 10.5 bug in frexpl().
81271         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
81272         * doc/functions/frexpl.texi: Document the bug.
81273         Reported by Elias Pipping <pipping@gentoo.org>.
81275 2008-01-14  Eric Blake  <ebb9@byu.net>
81277         Touch up previous patch.
81278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
81279         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
81281         Convert strcasestr module to use Two-Way algorithm.
81282         * modules/strcasestr-simple: New module, based on the old
81283         strcasestr, but with Two-Way rather than KMP.
81284         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
81285         * lib/string.in.h (rpl_strcasestr): Declare.
81286         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
81287         performance.
81288         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
81289         * modules/string (Makefile.am): Support strcasestr.
81290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81291         * modules/strcasestr-tests (Depends-on): Check for alarm.
81292         * tests/test-strcasestr.c: Augment test.
81293         * lib/str-two-way.h: Clean up stray macro.
81294         * NEWS: Document new module.
81295         * MODULES.html.sh (string handling): Likewise.
81296         * doc/functions/strcasestr.texi: New file.
81297         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81298         here, since it is not a POSIX function.
81300 2008-01-14  Colin Watson  <cjwatson@debian.org>
81301             Bruno Haible  <bruno@clisp.org>
81303         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81304         works fine; if not, set REPLACE_STRSIGNAL.
81305         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81307         REPLACE_STRSIGNAL.
81308         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81309         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81310         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81312 2008-01-14  Bruno Haible  <bruno@clisp.org>
81314         * modules/strsignal (Include): Change to <string.h>.
81316 2008-01-14  Colin Watson  <cjwatson@debian.org>
81318         * modules/argp (Notice): Add a notice recommending to change
81319         XGETTEXT_OPTIONS.
81320         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81322 2008-01-13  Colin Watson  <cjwatson@debian.org>
81324         * modules/strsignal-tests: New file.
81325         * tests/test-strsignal.c: New file.
81327         * lib/strsignal.c: New file, from glibc with modifications.
81328         * lib/siglist.h: New file, from glibc with modifications.
81329         * lib/string.in.h (strsignal): New declaration.
81330         * m4/strsignal.m4: New file.
81331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81332         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81333         * modules/strsignal: New file.
81334         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81335         HAVE_DECL_STRSIGNAL.
81337 2008-01-13  Bruno Haible  <bruno@clisp.org>
81339         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81340         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81341         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81342         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81344 2008-01-13  Bruno Haible  <bruno@clisp.org>
81346         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81347         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81348         * lib/argp.h (__attribute__): Likewise.
81349         * lib/c-stack.c (__attribute__): Likewise.
81350         * lib/error.h (__attribute__): Likewise.
81351         * lib/fts.c (__attribute__): Likewise.
81352         * lib/openat.h (__attribute__): Likewise.
81353         * lib/stdio.in.h (__attribute__): Likewise.
81354         * lib/string.in.h (__attribute__): Likewise.
81355         * lib/utimens.c (__attribute__): Likewise.
81356         * lib/vasnprintf.h (__attribute__): Likewise.
81357         * lib/xalloc.h (__attribute__): Likewise.
81358         * lib/xprintf.h (__attribute__): Likewise.
81359         * lib/xstrtol.h (__attribute__): Likewise.
81360         * lib/xvasprintf.h (__attribute__): Likewise.
81362 2008-01-12  Bruno Haible  <bruno@clisp.org>
81364         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81365         * doc/glibc-headers/a.out.texi: New file.
81366         * doc/glibc-headers/aliases.texi: New file.
81367         * doc/glibc-headers/alloca.texi: New file.
81368         * doc/glibc-headers/ar.texi: New file.
81369         * doc/glibc-headers/argp.texi: New file.
81370         * doc/glibc-headers/argz.texi: New file.
81371         * doc/glibc-headers/byteswap.texi: New file.
81372         * doc/glibc-headers/crypt.texi: New file.
81373         * doc/glibc-headers/endian.texi: New file.
81374         * doc/glibc-headers/envz.texi: New file.
81375         * doc/glibc-headers/err.texi: New file.
81376         * doc/glibc-headers/error.texi: New file.
81377         * doc/glibc-headers/execinfo.texi: New file.
81378         * doc/glibc-headers/fpu_control.texi: New file.
81379         * doc/glibc-headers/fstab.texi: New file.
81380         * doc/glibc-headers/fts.texi: New file.
81381         * doc/glibc-headers/getopt.texi: New file.
81382         * doc/glibc-headers/ieee754.texi: New file.
81383         * doc/glibc-headers/ifaddrs.texi: New file.
81384         * doc/glibc-headers/libintl.texi: New file.
81385         * doc/glibc-headers/mcheck.texi: New file.
81386         * doc/glibc-headers/mntent.texi: New file.
81387         * doc/glibc-headers/obstack.texi: New file.
81388         * doc/glibc-headers/paths.texi: New file.
81389         * doc/glibc-headers/printf.texi: New file.
81390         * doc/glibc-headers/pty.texi: New file.
81391         * doc/glibc-headers/resolv.texi: New file.
81392         * doc/glibc-headers/shadow.texi: New file.
81393         * doc/glibc-headers/sysexits.texi: New file.
81394         * doc/glibc-headers/ttyent.texi: New file.
81396 2008-01-12  Jim Meyering  <meyering@redhat.com>
81398         announce-gen: emit Gnulib's git-based version string.
81399         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81400         New option --gnulib-version=V, where V is expected to be
81401         the output of running git describe in the gnulib directory.
81402         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81403         not useful, and plan to stop publishing an xdelta file with each
81404         coreutils release.
81406         * build-aux/announce-gen: Also check for lzma-compressed files.
81408 2008-01-11  Bruno Haible  <bruno@clisp.org>
81410         * tests/test-memmem.c (main): Increase maximum allowed time.
81411         * tests/test-strstr.c (main): Likewise.
81413 2008-01-11  Bruno Haible  <bruno@clisp.org>
81415         * doc/functions/memmem.texi: Add more precisions about platforms.
81416         * doc/functions/strstr.texi: Likewise.
81418 2008-01-10  Eric Blake  <ebb9@byu.net>
81420         * m4/strstr.m4: Delete cruft from copy-n-paste.
81421         Reported by Bruno Haible.
81423 2008-01-10  Bruno Haible  <bruno@clisp.org>
81425         Make c-strstr rely on strstr.
81426         * lib/c-strstr.c: Don't include str-kmp.h.
81427         (c_strstr): Define in terms of strstr.
81428         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81429         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81431 2008-01-10  Bruno Haible  <bruno@clisp.org>
81433         * doc/gnulib.texi (String Functions in C Locale): New section.
81434         * doc/c-ctype.texi: New file.
81435         * doc/c-strcase.texi: New file.
81436         * doc/c-strcaseeq.texi: New file.
81437         * doc/c-strcasestr.texi: New file.
81438         * doc/c-strstr.texi: New file.
81439         * doc/c-strtod.texi: New file.
81440         * doc/c-strtold.texi: New file.
81442 2008-01-10  Eric Blake  <ebb9@byu.net>
81444         * lib/relocatable.h: Fix a comment.
81446 2008-01-10  Eric Blake  <ebb9@byu.net>
81448         Share two-way algorithm.
81449         * lib/str-two-way.h: New file, merged from...
81450         * lib/memmem.c: ...here...
81451         * lib/strstr.c: ...and here.
81452         * modules/memmem (Files): Use it.
81453         * modules/strstr (Files): Likewise.
81455         Avoid quadratic strstr implementations.
81456         * lib/strstr.c: New file.
81457         * m4/strstr.m4: Likewise.
81458         * modules/strstr: Likewise.
81459         * modules/strstr-tests: Likewise.
81460         * tests/test-strstr.c: Likewise.
81461         * lib/string.in.h (rpl_strstr): Declare.
81462         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81464         * modules/string (Makefile.am): Likewise.
81465         * MODULES.html.sh (string handling): Mention new module.
81466         * doc/functions/strstr.texi (strstr): Document the bug.
81468 2008-01-10  Bruno Haible  <bruno@clisp.org>
81470         * lib/relocatable.h (relocate): State whether result is freshly
81471         allocated or not.
81472         * lib/relocatable.c (relocate): Return a freshly allocated string
81473         instead of a pointer to a privately held string.
81474         Reported by Sylvain Beucler <beuc@gnu.org>.
81476 2008-01-10  Colin Watson  <cjwatson@debian.org>
81478         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81479         s/S_ISNLK/S_ISLNK/.
81481 2008-01-09  Bruno Haible  <bruno@clisp.org>
81483         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81484         and other files.
81485         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81486         if it's only a guess.
81487         * modules/memmem: Simplify by depending on memmem-simple.
81489 2008-01-09  Bruno Haible  <bruno@clisp.org>
81491         Work around OpenBSD 4.0 tdelete() bug.
81492         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81493         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81494         macros and don't redefine the enum values.
81495         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81496         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81497         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81499 2008-01-09  Bruno Haible  <bruno@clisp.org>
81501         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81502         (main): Don't perform the tests if setlocale did not install a UTF-8
81503         locale. Needed on OpenBSD 4.0.
81504         * modules/wcwidth-tests (Depends-on): Add localcharset.
81506 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81508         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81509         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81510         * NEWS: announce this.
81511         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81513 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81514         and Eric Blake  <ebb9@byu.net>
81516         Add memmem-simple module.
81517         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81518         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81519         * modules/memmem-simple: New file.
81520         * modules/memmem (Description): Tweak.
81521         * MODULES.html.sh (string handling): Mention new module.
81522         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81523         addressed by memmem-simple.
81524         * NEWS: Document the difference.
81526 2008-01-09  Eric Blake  <ebb9@byu.net>
81528         Give gcc some memmem optimization hints.
81529         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81530         (strcasestr): Declare as pure.
81531         * modules/memmem (Maintainer): Claim my implementation.
81533 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81535         Support AIX 6.1 and higher.
81536         * build-aux/config.libpath: Likewise.
81537         * build-aux/config.rpath: Likewise.
81539 2008-01-08  Jim Meyering  <meyering@redhat.com>
81540             Bruno Haible  <bruno@clisp.org>
81542         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81543         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
81544         Reported by Peter Fales in
81545         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
81547 2008-01-08  Bruno Haible  <bruno@clisp.org>
81549         * modules/unictype/category-of (Depends-on): Add
81550         unictype/category-none.
81551         * modules/unictype/category-and-tests (Depends-on): Add
81552         unictype/category-{L,N,Lu,Nd}.
81553         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
81554         * modules/unictype/category-or-tests (Depends-on): Add
81555         unictype/category-{L,N}.
81556         * modules/unictype/category-name-tests (Depends-on): Add
81557         unictype/category-{Z,Nl}.
81558         Reported by Simon Josefsson.
81560 2008-01-08  Bruno Haible  <bruno@clisp.org>
81562         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
81563         convention better.
81564         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
81565         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
81566         Reported by Peter Miller <millerp@canb.auug.org.au>.
81568 2008-01-08  Eric Blake  <ebb9@byu.net>
81570         Rewrite memmem to guarantee linear complexity without malloc.
81571         * lib/memmem.c (memmem): Use Two-Way rather than
81572         Knuth-Morris-Pratt, to allow O(1) space usage.
81573         (critical_factorization, two_way_short_needle)
81574         (two_way_long_needle): New functions.
81575         (knuth_morris_pratt): Delete.
81576         * modules/memmem (Depends-on): No longer need malloca or stdbool.
81577         Add stdint.
81578         * tests/test-memmem.c (main): Add tests for periodic needle and
81579         sublinear performance.
81580         * doc/functions/memmem.texi (memmem): Document other deficiencies
81581         in cygwin and older glibc.
81583 2008-01-08  Bruno Haible  <bruno@clisp.org>
81585         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
81586         augmentation.
81588 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
81590         Add a configure time option: --disable-acl.
81591         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
81592         AC_ARG_ENABLE(acl).
81594 2008-01-06  Simon Josefsson  <simon@josefsson.org>
81596         * tests/test-localename.c: Don't include obsolete "setenv.h".
81598         * modules/localename-tests (Depends-on): Need unsetenv.
81600 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81602         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
81604 2008-01-06  Colin Watson  <cjwatson@debian.org>
81606         * users.txt: Add man-db.
81608 2008-01-07  Bruno Haible  <bruno@clisp.org>
81610         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
81611         previous section name.
81613 2008-01-07  Bruno Haible  <bruno@clisp.org>
81615         * lib/progname.c (set_program_name): Don't strip off a leading
81616         "lt-" prefix outside a .libs directory.
81617         Suggested by Paul Eggert.
81619 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
81620             Bruno Haible  <bruno@clisp.org>
81622         Improve memory cleanup in 'relocatable' module.
81623         * lib/relocatable.h (compute_curr_prefix): Change return type to
81624         'char *'.
81625         * lib/relocatable.c (compute_curr_prefix): Change return type to
81626         'char *'. Free curr_installdir after use.
81627         (relocate): Free curr_prefix_better after use.
81628         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
81630 2008-01-01  Bruno Haible  <bruno@clisp.org>
81632         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
81633         failure on older glibc systems.
81634         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81636 2008-01-05  Eric Blake  <ebb9@byu.net>
81638         Avoid quadratic system memmem.
81639         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
81640         Reported by Ralf Wildenhues.
81642         Fix memmem test for mingw.
81643         * modules/memmem-tests (configure.ac): Check for alarm.
81644         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
81645         it.
81646         * doc/functions/memmem.texi: New file.
81647         * doc/gnulib.texi (Function Substitutes): Add memmem.
81648         Reported by Bruno Haible.
81650 2008-01-04  Bruno Haible  <bruno@clisp.org>
81652         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
81653         Require gl_HEADER_STRINGS_H_DEFAULTS, not
81654         gl_HEADER_STRING_H_DEFAULTS.
81656 2008-01-04  Eric Blake  <ebb9@byu.net>
81658         Shorten duration of memmem test.
81659         * tests/test-memmem.c (main): Use alarm to declare failure if test
81660         is taking too long.
81661         Reported by Ralf Wildenhues.
81663 2007-12-21  Simon Josefsson  <simon@josefsson.org>
81665         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
81666         string, needed by strerror.
81668 2008-01-03  Colin Watson  <cjwatson@debian.org>
81669             Bruno Haible  <bruno@clisp.org>
81671         * doc/gnulib-tool.texi (Localization): New section.
81673 2008-01-02  Bruno Haible  <bruno@clisp.org>
81675         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
81676         variables to 'unsigned char *' type.
81677         Reported by Paul Eggert.
81679 2008-01-02  Jim Meyering  <jim@meyering.net>
81681         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
81683 2007-12-31  Jim Meyering  <jim@meyering.net>
81685         Avoid use of private FTS type name.
81686         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
81688 2007-12-30  Karl Berry  <karl@gnu.org>
81690         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
81691         work around defect in Texinfo and/or the standalone Info browser.
81693 2007-12-30  Bruno Haible  <bruno@clisp.org>
81695         Unify 5 copies of the KMP code.
81696         * lib/str-kmp.h: New file.
81697         * lib/c-strcasestr.c: Include str-kmp.h.
81698         (knuth_morris_pratt): Remove function.
81699         (c_strcasestr): Update.
81700         * lib/c-strstr.c: Include str-kmp.h.
81701         (knuth_morris_pratt): Remove function.
81702         (c_strcasestr): Update.
81703         * lib/mbscasestr.c: Include str-kmp.h.
81704         (knuth_morris_pratt_unibyte): Remove function.
81705         * lib/mbsstr.c: Include str-kmp.h.
81706         (knuth_morris_pratt_unibyte): Remove function.
81707         * lib/strcasestr.c: Include str-kmp.h.
81708         (knuth_morris_pratt): Remove function.
81709         (strcasestr): Update.
81710         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
81711         * modules/c-strstr (Files): Likewise.
81712         * modules/mbscasestr (Files): Likewise.
81713         * modules/mbsstr (Files): Likewise.
81714         * modules/strcasestr (Files): Likewise.
81715         Suggested by Paul Eggert.
81717 2007-12-30  Bruno Haible  <bruno@clisp.org>
81719         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
81720         defined.
81722 2007-12-30  Bruno Haible  <bruno@clisp.org>
81724         * lib/xmalloca.h: Include xalloc.h.
81725         (xnmalloca): New macro.
81727 2007-12-30  Bruno Haible  <bruno@clisp.org>
81729         * lib/malloca.h (nmalloca): New macro.
81730         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
81731         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
81732         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
81733         knuth_morris_pratt_multibyte): Likewise.
81734         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
81735         knuth_morris_pratt_multibyte): Likewise.
81736         * lib/memmem.c (knuth_morris_pratt): Likewise.
81737         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
81739 2007-12-25  Bruno Haible  <bruno@clisp.org>
81741         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
81742         * lib/glob.c: Don't include openat.h.
81743         (link_exists2_p): Add back the code that deals with the
81744         !GLOB_ALTDIRFUNC case.
81745         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
81746         let it do the filename concatenation.
81747         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
81748         * modules/glob (Depends-on): Remove openat.
81750 2007-12-31  Bruno Haible  <bruno@clisp.org>
81752         * modules/dirfd (License): Change to LGPLv2+.
81753         Approved by Jim Meyering.
81755 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
81757         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
81758         when multiplying M by sizeof (size_t).
81760 2007-12-10  Martin Lambers  <marlam@marlam.de>
81762         Override getpagesize on mingw.
81763         * lib/getpagesize.c: New file.
81764         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
81765         * modules/getpagesize (Files): Add lib/getpagesize.c.
81766         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
81767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81768         REPLACE_GETPAGESIZE.
81769         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
81771 2007-12-25  Bruno Haible  <bruno@clisp.org>
81773         * modules/localcharset (Notice): New field.
81774         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
81775         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
81777 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
81778             Bruno Haible  <bruno@clisp.org>
81780         Avoid using the syntax symbol() in formatted documentation.
81781         * MODULES.html.sh (func_module): When replacing symbol() with a
81782         hyperlink, remove the parentheses. Show an error if some remain.
81783         Recognize and render the '...' syntax.
81784         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
81785         Rework. Add paragraph about GCC's inlining.
81786         * doc/alloca.texi: Likewise.
81787         * doc/error.texi: Remove parentheses from symbol reference.
81788         * doc/gnulib-intro.texi: Likewise.
81789         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
81790         * modules/fnmatch (Description): Reword to say "the ... function".
81791         * modules/full-read (Description): Likewise.
81792         * modules/full-write (Description): Likewise.
81793         * modules/safe-read (Description): Likewise.
81794         * modules/safe-write (Description): Likewise.
81795         * modules/strchrnul (Description): Likewise.
81796         * modules/trim (Description): Likewise.
81797         * modules/error (Description): Remove parentheses from symbol
81798         references.
81799         * modules/verror (Description): Likewise.
81800         Reported by Karl Berry.
81802 2007-12-25  Bruno Haible  <bruno@clisp.org>
81804         Fixup after 2007-10-16 commit.
81805         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
81807 2007-12-24  Bruno Haible  <bruno@clisp.org>
81809         Make --enable-relocatable work with DESTDIR.
81810         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
81811         to compute installdir from destprog.
81812         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
81813         also set the RELOC_DESTDIR variable.
81814         Reported by Левашев Иван <octagram@bluebottle.com>.
81816 2007-12-24  Bruno Haible  <bruno@clisp.org>
81818         Fix link error due to xalloc_die().
81819         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
81820         of xreadlink.
81821         * lib/relocwrapper.c: Update comments.
81822         * build-aux/install-reloc: Remove xreadlink.c from file list.
81823         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
81824         xreadlink.c.
81825         Reported by Левашев Иван <octagram@bluebottle.com>.
81827 2007-12-24  Bruno Haible  <bruno@clisp.org>
81829         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
81830         * lib/setenv.h: Remove file.
81831         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
81832         lib/setenv.h.
81833         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
81834         (Depends-on): Add stdlib.
81835         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
81836         gl_FUNC_UNSETENV.
81837         (Include): Replace setenv.h with <stdlib.h>.
81838         * modules/unsetenv: New file.
81839         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
81840         * lib/unsetenv.c: Include <stdlib.h> first.
81841         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
81842         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
81843         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
81844         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
81845         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
81846         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
81848         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81849         * doc/functions/unsetenv.texi: Update.
81850         * modules/xsetenv (Depends-on): Add unsetenv.
81851         * modules/getdate (Depends-on): Likewise.
81852         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
81853         * lib/xsetenv.c: Don't include setenv.h.
81854         * lib/getdate.y: Likewise.
81855         * lib/relocwrapper.c: Likewise.
81856         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
81857         (Depends-on): Add stdlib.
81858         * NEWS: Mention the changes.
81859         Reported by Левашев Иван <octagram@bluebottle.com>.
81861 2007-12-23  Bruno Haible  <bruno@clisp.org>
81863         * lib/memmem.c (memmem): Use lowercase variable names. Tab
81864         indentation.
81866 2007-12-23  Bruno Haible  <bruno@clisp.org>
81868         * lib/c-strcasestr.c: Add more comments.
81869         * lib/c-strstr.c: Likewise.
81870         * lib/mbscasestr.c: Likewise.
81871         * lib/mbsstr.c: Likewise.
81872         * lib/strcasestr.c: Likewise.
81873         * lib/memmem.c: Likewise.
81875 2007-12-23  Bruno Haible  <bruno@clisp.org>
81877         * tests/test-memmem.c: Include <string.h> first.
81879 2007-12-22  Bruno Haible  <bruno@clisp.org>
81881         * gnulib-tool (func_create_testdir): Change $auxdir while generating
81882         the contents of $testsbase.
81883         Reported by Ralf Wildenhues.
81885 2007-12-22  Bruno Haible  <bruno@clisp.org>
81887         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
81888         two variables local_ldadd_before, local_ldadd_last.
81890 2007-12-20  Eric Blake  <ebb9@byu.net>
81892         Work around circular library issue when cross-compiling.
81893         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
81894         that progname.o does not need to pull in rpl_memcmp.
81896 2007-12-19  Eric Blake  <ebb9@byu.net>
81898         Fix memmem to avoid O(n^2) worst-case complexity.
81899         * lib/memmem.c (knuth_morris_pratt): New function.
81900         (memmem): Use it if first few naive iterations fail.
81901         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
81902         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
81903         * modules/memchr (License): Likewise.
81904         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
81905         malloca.
81906         * tests/test-memmem.c: Rewrite, borrowing ideas from
81907         test-mbsstr1.c; the old version wouldn't even compile!
81908         * modules/memmem-tests: New file.
81909         * lib/string.in.h (rpl_memmem): Add declaration.
81910         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
81911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
81912         REPLACE_MEMMEM.
81914 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
81916         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
81917         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
81918         before any system include files, and undef after them all.  This
81919         should fix a problem on VMS reported by John E. Malmberg in
81920         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
81922 2007-12-17  Eric Blake  <ebb9@byu.net>
81924         Revert addition of verify, for BSD/OS.
81925         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
81926         can't handle large files, for the sake of obsolete platforms.
81927         * modules/fseeko (Depends-on): Remove verify.
81928         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
81929         * doc/functions/ftello.texi (ftello): Likewise.
81930         * doc/functions/fgetpos.texi (fgetpos): Likewise.
81931         Reported by Larry Jones.
81933 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
81935         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
81936         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
81938 2007-12-17  Jim Meyering  <meyering@redhat.com>
81940         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
81941         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
81942         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
81943         * modules/getcwd (Depends-on): Add openat.
81944         Reported by Petr Salinger.
81946 2007-12-17  Bruno Haible  <bruno@clisp.org>
81948         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
81949         avoid a segmentation fault of the configure test on x86_64 systems.
81951 2007-12-15  Jim Meyering  <meyering@redhat.com>
81953         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
81955 2007-12-13  Eric Blake  <ebb9@byu.net>
81957         Another fseek test.
81958         * tests/test-fseek.c (main): Also test ungetc handling.
81959         * tests/test-fseeko.c (main): Likewise.
81960         * modules/fseeko (Depends-on): Add verify.
81961         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
81962         large.
81963         Reported by Larry Jones.
81965         Fix fseeko on mingw.
81966         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
81967         seek.
81969         Beef up fseek tests.
81970         * tests/test-fseek.c (main): Also test eof handling.
81971         * tests/test-fseeko.c (main): Likewise.
81972         Reported by Larry Jones.
81974 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
81976         Fix fseeko on BSD-based platforms.
81977         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
81978         successful seek.
81980 2007-12-12  Eric Blake  <ebb9@byu.net>
81982         Allow circular dependency of separate libtests.a
81983         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
81984         when use_libtests.
81986 2007-12-11  Eric Blake  <ebb9@byu.net>
81988         Fix bug with -0.0L in previous patch.
81989         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
81990         * tests/test-isnan.c (main): Also test on zeroes.
81991         * tests/test-isnanf.c (main): Likewise.
81992         * tests/test-isnanl.h (main): Likewise.
81994         Detect pseudo-denormals on x86 even when cross-compiling.
81995         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
81996         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
81997         invalid bit patterns that happen to satisfy ==.
81999         Avoid link failures with separate libtests.a.
82000         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
82001         last, to satisfy circular dependencies.
82003 2007-12-11  Eric Blake  <ebb9@byu.net>
82004         and Bruno Haible  <bruno@clisp.org>
82006         Fix OpenBSD 4.0 <float.h> handling of long double.
82007         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
82008         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
82009         * doc/headers/float.texi (float.h): Document OpenBSD bug.
82011 2007-12-11  Jim Meyering  <meyering@redhat.com>
82013         * users.txt: Add libvirt.
82015         Support versions of autoconf prior to 2.59c.
82016         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
82017         if it is not already defined.
82019 2007-12-09  Bruno Haible  <bruno@clisp.org>
82021         Let 'gnulib-tool --import' collect sources needed for the tests in
82022         tests/ rather than in lib/.
82023         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
82024         argument. If true, add rules to generate libtests.a, and put libtests.a
82025         into $(LDADD). Consider source files in subdirectories and set
82026         uses_subdirs.
82027         (func_emit_initmacro_start, func_emit_initmacro_end,
82028         func_emit_initmacro_done): Pass all arguments explicitly.
82029         (func_import): Determine two module lists main_modules,
82030         testsrelated_modules. Determine use_libtests. Determine two variables
82031         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
82032         instead of just sed_transform_lib_file. Determine two variables
82033         main_files and testsrelated_files. Compute 'files' as the union of
82034         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
82035         func_add_or_update. In the generated gnulib-comp.m4, collect the
82036         object files for tests/ in different variables than those for lib/.
82037         Substitute LIBTESTS_LIBDEPS.
82038         (func_create_testdir): Combine the uses_subdirs results from
82039         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
82041 2007-12-09  Bruno Haible  <bruno@clisp.org>
82043         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
82044         the build-aux directory.
82046 2007-12-09  Bruno Haible  <bruno@clisp.org>
82048         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
82049         introduced on 2006-09-09.
82051 2007-12-07  Jim Meyering  <meyering@redhat.com>
82053         Let these macros work also with autoconf-2.59.
82054         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
82055         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
82056         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82058 2007-12-06  Jim Meyering  <meyering@redhat.com>
82060         Avoid a configure-time syntax error in gl_FUNC_ACL.
82061         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
82062         function in each branch, before testing the cache variable.
82064 2007-12-04  Eric Blake  <ebb9@byu.net>
82066         Make scripts executable.
82067         * build-aux/config.guess: Add execute permissions.
82068         * build-aux/config.sub: Likewise.
82069         * build-aux/gendocs.sh: Likewise.
82071         Fix frexp on mingw.
82072         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
82073         cross-compiling.
82074         * doc/functions/frexp.texi (frexp): Document the bug.
82076         Make cygwin fseeko check more reliable.
82077         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
82078         version numbers, rather than unrelated feature check.
82079         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
82080         * doc/functions/ftello.texi (ftello): Likewise.
82081         Reported by Bruno Haible.
82083         * m4/strerror.m4: Bump version number.
82085 2007-12-03  Bruno Haible  <bruno@clisp.org>
82087         * doc/functions/mprotect.texi: Mention the mingw problem.
82089 2007-12-03  Eric Blake  <ebb9@byu.net>
82091         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
82092         REPLACE_STRERROR is initialized before this macro.
82094 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
82096         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
82097         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
82098         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
82099         put -lsec in even for programs other than 'ls'.  This fixes a problem
82100         for gettext reported by Bruno Haible in
82101         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
82102         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
82103         Add support for Solaris 10.  This isn't efficient, but should get the
82104         job done for now.
82106 2007-12-03  James Youngman  <jay@gnu.org>
82108         * doc/regexprops-generic.texi: change "an close-group" to "a
82109         close-group" and "illegal" to "not allowed".
82111 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82113         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
82114         pr_byname.h. Needed for the rare case when the maintainer has done
82115         "make maintainer-clean" in the source directory and then attempts a
82116         build outside the source directory.
82117         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
82118         scripts_byname.h.
82120 2007-12-02  Martin Lambers  <marlam@marlam.de>
82121             Bruno Haible  <bruno@clisp.org>
82123         * lib/getpagesize.h: Remove file.
82124         * lib/unistd.in.h: Include declaration of getpagesize here.
82125         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
82126         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
82127         HAVE_SYS_PARAM_H.
82128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
82129         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82130         * modules/getpagesize (Files): Remove lib/getpagesize.h.
82131         (Depends-on): Add unistd.
82132         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82133         (Include): Use <unistd.h> instead of getpagesize.h.
82134         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
82135         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82136         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
82137         gl_GETPAGESIZE invocation, already handled by module dependency.
82138         * lib/pagealign_alloc.c: Don't include getpagesize.h.
82140 2007-12-02  Bruno Haible  <bruno@clisp.org>
82142         * modules/strings-tests: New file.
82143         * tests/test-strings.c: New file.
82145         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
82146         * lib/strings.in.h: New file.
82147         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
82148         * m4/strings_h.m4: New file.
82149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
82150         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
82151         * modules/strings: New file.
82152         * modules/string (Makefile.am): Update.
82153         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
82154         Reported by Karl Berry.
82156 2007-12-01  Eric Blake  <ebb9@byu.net>
82158         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
82159         accommodate fix in cygwin 1.5.25.
82161 2007-12-01  Jim Meyering  <meyering@redhat.com>
82163         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
82164         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
82165         that would inhibit utf8-optimization of a regexp containing line-
82166         or buffer-anchors, e.g., `^', `$'.
82168 2007-11-30  Bruno Haible  <bruno@clisp.org>
82170         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
82171         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
82172         glthread_recursive_lock_init.
82173         * lib/lock.c (glthread_recursive_lock_init)
82174         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
82175         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82177 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
82179         New function qset_acl, like set_acl but with syscall semantics.
82180         * lib/acl.h (qset_acl): New decl.
82181         * lib/acl.c (qset_acl): New function.
82182         (set_acl): Use new function.  Use more-consistent diagnostics.
82184 2007-11-28  Jim Meyering  <meyering@redhat.com>
82186         * modules/physmem (License): Change from GPL to LGPLv2+.
82188 2007-11-26  Bruno Haible  <bruno@clisp.org>
82190         * lib/vasnprintf.c (decode_long_double): Don't abort if the
82191         'long double' type has excess precision.
82192         Reported by Jim Meyering in
82193         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
82195 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82197         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
82198         Sync from <http://gnu.org/licenses>.
82199         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
82200         with license text from same location.
82201         * doc/maintain.texi, doc/standards.texi:  Sync from
82202         <http://savannah.gnu.org/projects/gnustandards>.
82204 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
82205         and Jim Meyering  <meyering@redhat.com>
82207         Adjust getdate' grammar to accept a slightly more regular language.
82208         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
82209         Before, the former was rejected.
82210         * lib/getdate.y (digits_to_date_time): New function, factored
82211         out of ...
82212         (number): ...here.  Just call digits_to_date_time.
82213         (hybrid): New non-terminal to handle an <unsigned number,
82214         signed relative offset> sequence consistently.
82216 2007-11-18  Jim Meyering  <meyering@redhat.com>
82218         Pull my changes from coreutils:
82219         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
82220         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
82221         use of $gnulib_tool_option_extras, so that it's separated from the
82222         preceding argument.
82224         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
82225         * build-aux/bootstrap (cp_mark_as_generated): Create any required
82226         parent destination directories before copying a file into place.
82228 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
82230         bootstrap: work also with 4-argument variant of AC_INIT
82231         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
82233 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82235         Port test-getaddrinfo to Solaris.
82236         Problem reported by Bruno Haible in
82237         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
82238         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
82239         explanation of setting 'hints'.
82240         Don't reject an implementation merely because it returns EAI_SERVICE.
82241         (EAI_SERVICE): Define to 0 if not defined.
82243 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82245         The license of gnu-make and posix-shell is now "GPLed build tool".
82246         * modules/gnu-make (License): Likewise.
82247         * modules/posix-shell (License): Likewise.
82249         New module posix-shell, for determining a POSIX shell
82250         or perhaps something that is close enough to a POSIX shell.
82251         * m4/posix-shell.m4: New file.
82252         * modules/posix-shell: New file.
82254         * MODULES.html.sh: Mention new module.
82256         New module gnu-make, for determining whether we're using GNU Make.
82257         * m4/gnu-make.m4: New file.
82258         * modules/gnu-make: New file.
82259         * MODULES.html.sh: Mention new module.
82261 2007-11-14  Jim Meyering  <meyering@redhat.com>
82263         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
82264         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
82265         use this macro to create a function _definition_.
82266         Remove useless "#undef ARGMATCH_DIE".
82268 2007-11-14  Bruno Haible  <bruno@clisp.org>
82270         * lib/config.charset: Update for OpenBSD 4.1.
82271         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
82273 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
82275         Document 64-bit #if problems in stdint.texi.
82276         * doc/headers/stdint.texi (stdint.h): Mention problems with
82277         64-bit-#if, and how to work around them.
82279         Don't insist on 'long long int' support in the preprocessor.  It
82280         breaks too many things.  For example, PRIdMAX still uses a 'long
82281         long int' format with the latest Sun compiler, even though
82282         HAVE_LONG_LONG_INT isn't defined due to that compiler's
82283         preprocessor problem.  This causes the latest coreutils to dump
82284         core on Solaris 10 sparc with the Sun C compiler.
82285         Instead, fix the 2007-10-16 problem in a different way, by evaluating
82286         the troublesome expressions at configure-time, not at #if-time.
82287         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
82288         preprocessor.
82289         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
82290         compile-time C checks, done at 'configure'-time.
82291         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
82292         * modules/inttypes (Makefile): Substitute the new symbols that
82293         gl_INTTYPES_H now generates.
82294         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82296 2007-11-12  Bruno Haible  <bruno@clisp.org>
82298         Tests for Unicode character classification functions.
82300         * modules/unictype/bidicategory-byname-tests: New file.
82301         * modules/unictype/bidicategory-name-tests: New file.
82302         * modules/unictype/bidicategory-of-tests: New file.
82303         * modules/unictype/bidicategory-test-tests: New file.
82304         * modules/unictype/block-list-tests: New file.
82305         * modules/unictype/block-of-tests: New file.
82306         * modules/unictype/block-test-tests: New file.
82307         * modules/unictype/category-C-tests: New file.
82308         * modules/unictype/category-Cc-tests: New file.
82309         * modules/unictype/category-Cf-tests: New file.
82310         * modules/unictype/category-Cn-tests: New file.
82311         * modules/unictype/category-Co-tests: New file.
82312         * modules/unictype/category-Cs-tests: New file.
82313         * modules/unictype/category-L-tests: New file.
82314         * modules/unictype/category-Ll-tests: New file.
82315         * modules/unictype/category-Lm-tests: New file.
82316         * modules/unictype/category-Lo-tests: New file.
82317         * modules/unictype/category-Lt-tests: New file.
82318         * modules/unictype/category-Lu-tests: New file.
82319         * modules/unictype/category-M-tests: New file.
82320         * modules/unictype/category-Mc-tests: New file.
82321         * modules/unictype/category-Me-tests: New file.
82322         * modules/unictype/category-Mn-tests: New file.
82323         * modules/unictype/category-N-tests: New file.
82324         * modules/unictype/category-Nd-tests: New file.
82325         * modules/unictype/category-Nl-tests: New file.
82326         * modules/unictype/category-No-tests: New file.
82327         * modules/unictype/category-P-tests: New file.
82328         * modules/unictype/category-Pc-tests: New file.
82329         * modules/unictype/category-Pd-tests: New file.
82330         * modules/unictype/category-Pe-tests: New file.
82331         * modules/unictype/category-Pf-tests: New file.
82332         * modules/unictype/category-Pi-tests: New file.
82333         * modules/unictype/category-Po-tests: New file.
82334         * modules/unictype/category-Ps-tests: New file.
82335         * modules/unictype/category-S-tests: New file.
82336         * modules/unictype/category-Sc-tests: New file.
82337         * modules/unictype/category-Sk-tests: New file.
82338         * modules/unictype/category-Sm-tests: New file.
82339         * modules/unictype/category-So-tests: New file.
82340         * modules/unictype/category-Z-tests: New file.
82341         * modules/unictype/category-Zl-tests: New file.
82342         * modules/unictype/category-Zp-tests: New file.
82343         * modules/unictype/category-Zs-tests: New file.
82344         * modules/unictype/category-and-not-tests: New file.
82345         * modules/unictype/category-and-tests: New file.
82346         * modules/unictype/category-byname-tests: New file.
82347         * modules/unictype/category-name-tests: New file.
82348         * modules/unictype/category-none-tests: New file.
82349         * modules/unictype/category-of-tests: New file.
82350         * modules/unictype/category-or-tests: New file.
82351         * modules/unictype/category-test-withtable-tests: New file.
82352         * modules/unictype/combining-class-tests: New file.
82353         * modules/unictype/ctype-alnum-tests: New file.
82354         * modules/unictype/ctype-alpha-tests: New file.
82355         * modules/unictype/ctype-blank-tests: New file.
82356         * modules/unictype/ctype-cntrl-tests: New file.
82357         * modules/unictype/ctype-digit-tests: New file.
82358         * modules/unictype/ctype-graph-tests: New file.
82359         * modules/unictype/ctype-lower-tests: New file.
82360         * modules/unictype/ctype-print-tests: New file.
82361         * modules/unictype/ctype-punct-tests: New file.
82362         * modules/unictype/ctype-space-tests: New file.
82363         * modules/unictype/ctype-upper-tests: New file.
82364         * modules/unictype/ctype-xdigit-tests: New file.
82365         * modules/unictype/decimal-digit-tests: New file.
82366         * modules/unictype/digit-tests: New file.
82367         * modules/unictype/mirror-tests: New file.
82368         * modules/unictype/numeric-tests: New file.
82369         * modules/unictype/property-alphabetic-tests: New file.
82370         * modules/unictype/property-ascii-hex-digit-tests: New file.
82371         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82372         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82373         * modules/unictype/property-bidi-block-separator-tests: New file.
82374         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82375         * modules/unictype/property-bidi-common-separator-tests: New file.
82376         * modules/unictype/property-bidi-control-tests: New file.
82377         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82378         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82379         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82380         * modules/unictype/property-bidi-european-digit-tests: New file.
82381         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82382         * modules/unictype/property-bidi-left-to-right-tests: New file.
82383         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82384         * modules/unictype/property-bidi-other-neutral-tests: New file.
82385         * modules/unictype/property-bidi-pdf-tests: New file.
82386         * modules/unictype/property-bidi-segment-separator-tests: New file.
82387         * modules/unictype/property-bidi-whitespace-tests: New file.
82388         * modules/unictype/property-byname-tests: New file.
82389         * modules/unictype/property-combining-tests: New file.
82390         * modules/unictype/property-composite-tests: New file.
82391         * modules/unictype/property-currency-symbol-tests: New file.
82392         * modules/unictype/property-dash-tests: New file.
82393         * modules/unictype/property-decimal-digit-tests: New file.
82394         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82395         * modules/unictype/property-deprecated-tests: New file.
82396         * modules/unictype/property-diacritic-tests: New file.
82397         * modules/unictype/property-extender-tests: New file.
82398         * modules/unictype/property-format-control-tests: New file.
82399         * modules/unictype/property-grapheme-base-tests: New file.
82400         * modules/unictype/property-grapheme-extend-tests: New file.
82401         * modules/unictype/property-grapheme-link-tests: New file.
82402         * modules/unictype/property-hex-digit-tests: New file.
82403         * modules/unictype/property-hyphen-tests: New file.
82404         * modules/unictype/property-id-continue-tests: New file.
82405         * modules/unictype/property-id-start-tests: New file.
82406         * modules/unictype/property-ideographic-tests: New file.
82407         * modules/unictype/property-ids-binary-operator-tests: New file.
82408         * modules/unictype/property-ids-trinary-operator-tests: New file.
82409         * modules/unictype/property-ignorable-control-tests: New file.
82410         * modules/unictype/property-iso-control-tests: New file.
82411         * modules/unictype/property-join-control-tests: New file.
82412         * modules/unictype/property-left-of-pair-tests: New file.
82413         * modules/unictype/property-line-separator-tests: New file.
82414         * modules/unictype/property-logical-order-exception-tests: New file.
82415         * modules/unictype/property-lowercase-tests: New file.
82416         * modules/unictype/property-math-tests: New file.
82417         * modules/unictype/property-non-break-tests: New file.
82418         * modules/unictype/property-not-a-character-tests: New file.
82419         * modules/unictype/property-numeric-tests: New file.
82420         * modules/unictype/property-other-alphabetic-tests: New file.
82421         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82422         * modules/unictype/property-other-grapheme-extend-tests: New file.
82423         * modules/unictype/property-other-id-continue-tests: New file.
82424         * modules/unictype/property-other-id-start-tests: New file.
82425         * modules/unictype/property-other-lowercase-tests: New file.
82426         * modules/unictype/property-other-math-tests: New file.
82427         * modules/unictype/property-other-uppercase-tests: New file.
82428         * modules/unictype/property-paired-punctuation-tests: New file.
82429         * modules/unictype/property-paragraph-separator-tests: New file.
82430         * modules/unictype/property-pattern-syntax-tests: New file.
82431         * modules/unictype/property-pattern-white-space-tests: New file.
82432         * modules/unictype/property-private-use-tests: New file.
82433         * modules/unictype/property-punctuation-tests: New file.
82434         * modules/unictype/property-quotation-mark-tests: New file.
82435         * modules/unictype/property-radical-tests: New file.
82436         * modules/unictype/property-sentence-terminal-tests: New file.
82437         * modules/unictype/property-soft-dotted-tests: New file.
82438         * modules/unictype/property-space-tests: New file.
82439         * modules/unictype/property-terminal-punctuation-tests: New file.
82440         * modules/unictype/property-test-tests: New file.
82441         * modules/unictype/property-titlecase-tests: New file.
82442         * modules/unictype/property-unassigned-code-value-tests: New file.
82443         * modules/unictype/property-unified-ideograph-tests: New file.
82444         * modules/unictype/property-uppercase-tests: New file.
82445         * modules/unictype/property-variation-selector-tests: New file.
82446         * modules/unictype/property-white-space-tests: New file.
82447         * modules/unictype/property-xid-continue-tests: New file.
82448         * modules/unictype/property-xid-start-tests: New file.
82449         * modules/unictype/property-zero-width-tests: New file.
82450         * modules/unictype/scripts-tests: New file.
82451         * modules/unictype/syntax-c-ident-tests: New file.
82452         * modules/unictype/syntax-c-whitespace-tests: New file.
82453         * modules/unictype/syntax-java-ident-tests: New file.
82454         * modules/unictype/syntax-java-whitespace-tests: New file.
82455         * tests/unictype/test-bidi_byname.c: New file.
82456         * tests/unictype/test-bidi_name.c: New file.
82457         * tests/unictype/test-bidi_of.c: New file.
82458         * tests/unictype/test-bidi_test.c: New file.
82459         * tests/unictype/test-block_list.c: New file.
82460         * tests/unictype/test-block_of.c: New file.
82461         * tests/unictype/test-block_test.c: New file.
82462         * tests/unictype/test-categ_and.c: New file.
82463         * tests/unictype/test-categ_and_not.c: New file.
82464         * tests/unictype/test-categ_byname.c: New file.
82465         * tests/unictype/test-categ_name.c: New file.
82466         * tests/unictype/test-categ_none.c: New file.
82467         * tests/unictype/test-categ_of.c: New file.
82468         * tests/unictype/test-categ_or.c: New file.
82469         * tests/unictype/test-categ_test_withtable.c: New file.
82470         * tests/unictype/test-combining.c: New file.
82471         * tests/unictype/test-decdigit.c: New file.
82472         * tests/unictype/test-digit.c: New file.
82473         * tests/unictype/test-mirror.c: New file.
82474         * tests/unictype/test-numeric.c: New file.
82475         * tests/unictype/test-pr_byname.c: New file.
82476         * tests/unictype/test-pr_test.c: New file.
82477         * tests/unictype/test-predicate-part1.h: New file.
82478         * tests/unictype/test-predicate-part2.h: New file.
82479         * tests/unictype/test-scripts.c: New file.
82480         * tests/unictype/test-sy_c_ident.c: New file.
82481         * tests/unictype/test-sy_java_ident.c: New file.
82483         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82484         for Unicode 5.0.0.
82485         * tests/unictype/test-categ_Cc.c: Likewise.
82486         * tests/unictype/test-categ_Cf.c: Likewise.
82487         * tests/unictype/test-categ_Cn.c: Likewise.
82488         * tests/unictype/test-categ_Co.c: Likewise.
82489         * tests/unictype/test-categ_Cs.c: Likewise.
82490         * tests/unictype/test-categ_L.c: Likewise.
82491         * tests/unictype/test-categ_Ll.c: Likewise.
82492         * tests/unictype/test-categ_Lm.c: Likewise.
82493         * tests/unictype/test-categ_Lo.c: Likewise.
82494         * tests/unictype/test-categ_Lt.c: Likewise.
82495         * tests/unictype/test-categ_Lu.c: Likewise.
82496         * tests/unictype/test-categ_M.c: Likewise.
82497         * tests/unictype/test-categ_Mc.c: Likewise.
82498         * tests/unictype/test-categ_Me.c: Likewise.
82499         * tests/unictype/test-categ_Mn.c: Likewise.
82500         * tests/unictype/test-categ_N.c: Likewise.
82501         * tests/unictype/test-categ_Nd.c: Likewise.
82502         * tests/unictype/test-categ_Nl.c: Likewise.
82503         * tests/unictype/test-categ_No.c: Likewise.
82504         * tests/unictype/test-categ_P.c: Likewise.
82505         * tests/unictype/test-categ_Pc.c: Likewise.
82506         * tests/unictype/test-categ_Pd.c: Likewise.
82507         * tests/unictype/test-categ_Pe.c: Likewise.
82508         * tests/unictype/test-categ_Pf.c: Likewise.
82509         * tests/unictype/test-categ_Pi.c: Likewise.
82510         * tests/unictype/test-categ_Po.c: Likewise.
82511         * tests/unictype/test-categ_Ps.c: Likewise.
82512         * tests/unictype/test-categ_S.c: Likewise.
82513         * tests/unictype/test-categ_Sc.c: Likewise.
82514         * tests/unictype/test-categ_Sk.c: Likewise.
82515         * tests/unictype/test-categ_Sm.c: Likewise.
82516         * tests/unictype/test-categ_So.c: Likewise.
82517         * tests/unictype/test-categ_Z.c: Likewise.
82518         * tests/unictype/test-categ_Zl.c: Likewise.
82519         * tests/unictype/test-categ_Zp.c: Likewise.
82520         * tests/unictype/test-categ_Zs.c: Likewise.
82521         * tests/unictype/test-ctype_alnum.c: Likewise.
82522         * tests/unictype/test-ctype_alpha.c: Likewise.
82523         * tests/unictype/test-ctype_blank.c: Likewise.
82524         * tests/unictype/test-ctype_cntrl.c: Likewise.
82525         * tests/unictype/test-ctype_digit.c: Likewise.
82526         * tests/unictype/test-ctype_graph.c: Likewise.
82527         * tests/unictype/test-ctype_lower.c: Likewise.
82528         * tests/unictype/test-ctype_print.c: Likewise.
82529         * tests/unictype/test-ctype_punct.c: Likewise.
82530         * tests/unictype/test-ctype_space.c: Likewise.
82531         * tests/unictype/test-ctype_upper.c: Likewise.
82532         * tests/unictype/test-ctype_xdigit.c: Likewise.
82533         * tests/unictype/test-decdigit.h: Likewise.
82534         * tests/unictype/test-digit.h: Likewise.
82535         * tests/unictype/test-numeric.h: Likewise.
82536         * tests/unictype/test-pr_alphabetic.c: Likewise.
82537         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82538         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82539         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82540         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82541         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82542         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82543         * tests/unictype/test-pr_bidi_control.c: Likewise.
82544         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
82545         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
82546         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
82547         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
82548         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
82549         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
82550         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
82551         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
82552         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
82553         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
82554         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
82555         * tests/unictype/test-pr_combining.c: Likewise.
82556         * tests/unictype/test-pr_composite.c: Likewise.
82557         * tests/unictype/test-pr_currency_symbol.c: Likewise.
82558         * tests/unictype/test-pr_dash.c: Likewise.
82559         * tests/unictype/test-pr_decimal_digit.c: Likewise.
82560         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
82561         * tests/unictype/test-pr_deprecated.c: Likewise.
82562         * tests/unictype/test-pr_diacritic.c: Likewise.
82563         * tests/unictype/test-pr_extender.c: Likewise.
82564         * tests/unictype/test-pr_format_control.c: Likewise.
82565         * tests/unictype/test-pr_grapheme_base.c: Likewise.
82566         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
82567         * tests/unictype/test-pr_grapheme_link.c: Likewise.
82568         * tests/unictype/test-pr_hex_digit.c: Likewise.
82569         * tests/unictype/test-pr_hyphen.c: Likewise.
82570         * tests/unictype/test-pr_id_continue.c: Likewise.
82571         * tests/unictype/test-pr_id_start.c: Likewise.
82572         * tests/unictype/test-pr_ideographic.c: Likewise.
82573         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
82574         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
82575         * tests/unictype/test-pr_ignorable_control.c: Likewise.
82576         * tests/unictype/test-pr_iso_control.c: Likewise.
82577         * tests/unictype/test-pr_join_control.c: Likewise.
82578         * tests/unictype/test-pr_left_of_pair.c: Likewise.
82579         * tests/unictype/test-pr_line_separator.c: Likewise.
82580         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
82581         * tests/unictype/test-pr_lowercase.c: Likewise.
82582         * tests/unictype/test-pr_math.c: Likewise.
82583         * tests/unictype/test-pr_non_break.c: Likewise.
82584         * tests/unictype/test-pr_not_a_character.c: Likewise.
82585         * tests/unictype/test-pr_numeric.c: Likewise.
82586         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
82587         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
82588         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
82589         * tests/unictype/test-pr_other_id_continue.c: Likewise.
82590         * tests/unictype/test-pr_other_id_start.c: Likewise.
82591         * tests/unictype/test-pr_other_lowercase.c: Likewise.
82592         * tests/unictype/test-pr_other_math.c: Likewise.
82593         * tests/unictype/test-pr_other_uppercase.c: Likewise.
82594         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
82595         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
82596         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
82597         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
82598         * tests/unictype/test-pr_private_use.c: Likewise.
82599         * tests/unictype/test-pr_punctuation.c: Likewise.
82600         * tests/unictype/test-pr_quotation_mark.c: Likewise.
82601         * tests/unictype/test-pr_radical.c: Likewise.
82602         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
82603         * tests/unictype/test-pr_soft_dotted.c: Likewise.
82604         * tests/unictype/test-pr_space.c: Likewise.
82605         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
82606         * tests/unictype/test-pr_titlecase.c: Likewise.
82607         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
82608         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
82609         * tests/unictype/test-pr_uppercase.c: Likewise.
82610         * tests/unictype/test-pr_variation_selector.c: Likewise.
82611         * tests/unictype/test-pr_white_space.c: Likewise.
82612         * tests/unictype/test-pr_xid_continue.c: Likewise.
82613         * tests/unictype/test-pr_xid_start.c: Likewise.
82614         * tests/unictype/test-pr_zero_width.c: Likewise.
82615         * tests/unictype/test-sy_c_whitespace.c: Likewise.
82616         * tests/unictype/test-sy_java_whitespace.c: Likewise.
82618 2007-11-12  Bruno Haible  <bruno@clisp.org>
82620         Unicode character classification functions.
82621         * lib/unictype.h: New file.
82622         * modules/unictype/base: New file.
82623         * modules/unictype/category-L: New file.
82624         * modules/unictype/category-Lu: New file.
82625         * modules/unictype/category-Ll: New file.
82626         * modules/unictype/category-Lt: New file.
82627         * modules/unictype/category-Lm: New file.
82628         * modules/unictype/category-Lo: New file.
82629         * modules/unictype/category-M: New file.
82630         * modules/unictype/category-Mn: New file.
82631         * modules/unictype/category-Mc: New file.
82632         * modules/unictype/category-Me: New file.
82633         * modules/unictype/category-N: New file.
82634         * modules/unictype/category-Nd: New file.
82635         * modules/unictype/category-Nl: New file.
82636         * modules/unictype/category-No: New file.
82637         * modules/unictype/category-P: New file.
82638         * modules/unictype/category-Pc: New file.
82639         * modules/unictype/category-Pd: New file.
82640         * modules/unictype/category-Ps: New file.
82641         * modules/unictype/category-Pe: New file.
82642         * modules/unictype/category-Pi: New file.
82643         * modules/unictype/category-Pf: New file.
82644         * modules/unictype/category-Po: New file.
82645         * modules/unictype/category-S: New file.
82646         * modules/unictype/category-Sm: New file.
82647         * modules/unictype/category-Sc: New file.
82648         * modules/unictype/category-Sk: New file.
82649         * modules/unictype/category-So: New file.
82650         * modules/unictype/category-Z: New file.
82651         * modules/unictype/category-Zs: New file.
82652         * modules/unictype/category-Zl: New file.
82653         * modules/unictype/category-Zp: New file.
82654         * modules/unictype/category-C: New file.
82655         * modules/unictype/category-Cc: New file.
82656         * modules/unictype/category-Cf: New file.
82657         * modules/unictype/category-Cs: New file.
82658         * modules/unictype/category-Co: New file.
82659         * modules/unictype/category-Cn: New file.
82660         * modules/unictype/category-or: New file.
82661         * modules/unictype/category-of: New file.
82662         * modules/unictype/category-test: New file.
82663         * modules/unictype/category-test-withtable: New file.
82664         * modules/unictype/category-byname: New file.
82665         * modules/unictype/category-none: New file.
82666         * modules/unictype/category-and: New file.
82667         * modules/unictype/category-and-not: New file.
82668         * modules/unictype/category-name: New file.
82669         * modules/unictype/combining-class: New file.
82670         * modules/unictype/category-all: New file.
82671         * modules/unictype/bidicategory-all: New file.
82672         * modules/unictype/bidicategory-byname: New file.
82673         * modules/unictype/bidicategory-name: New file.
82674         * modules/unictype/bidicategory-of: New file.
82675         * modules/unictype/bidicategory-test: New file.
82676         * modules/unictype/decimal-digit: New file.
82677         * modules/unictype/digit: New file.
82678         * modules/unictype/numeric: New file.
82679         * modules/unictype/mirror: New file.
82680         * modules/unictype/property-white-space: New file.
82681         * modules/unictype/property-alphabetic: New file.
82682         * modules/unictype/property-other-alphabetic: New file.
82683         * modules/unictype/property-not-a-character: New file.
82684         * modules/unictype/property-default-ignorable-code-point: New file.
82685         * modules/unictype/property-other-default-ignorable-code-point: New
82686         file.
82687         * modules/unictype/property-deprecated: New file.
82688         * modules/unictype/property-logical-order-exception: New file.
82689         * modules/unictype/property-variation-selector: New file.
82690         * modules/unictype/property-private-use: New file.
82691         * modules/unictype/property-unassigned-code-value: New file.
82692         * modules/unictype/property-uppercase: New file.
82693         * modules/unictype/property-other-uppercase: New file.
82694         * modules/unictype/property-lowercase: New file.
82695         * modules/unictype/property-other-lowercase: New file.
82696         * modules/unictype/property-titlecase: New file.
82697         * modules/unictype/property-soft-dotted: New file.
82698         * modules/unictype/property-id-start: New file.
82699         * modules/unictype/property-other-id-start: New file.
82700         * modules/unictype/property-id-continue: New file.
82701         * modules/unictype/property-other-id-continue: New file.
82702         * modules/unictype/property-xid-start: New file.
82703         * modules/unictype/property-xid-continue: New file.
82704         * modules/unictype/property-pattern-white-space: New file.
82705         * modules/unictype/property-pattern-syntax: New file.
82706         * modules/unictype/property-join-control: New file.
82707         * modules/unictype/property-grapheme-base: New file.
82708         * modules/unictype/property-grapheme-extend: New file.
82709         * modules/unictype/property-other-grapheme-extend: New file.
82710         * modules/unictype/property-grapheme-link: New file.
82711         * modules/unictype/property-bidi-control: New file.
82712         * modules/unictype/property-bidi-left-to-right: New file.
82713         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
82714         * modules/unictype/property-bidi-arabic-right-to-left: New file.
82715         * modules/unictype/property-bidi-european-digit: New file.
82716         * modules/unictype/property-bidi-eur-num-separator: New file.
82717         * modules/unictype/property-bidi-eur-num-terminator: New file.
82718         * modules/unictype/property-bidi-arabic-digit: New file.
82719         * modules/unictype/property-bidi-common-separator: New file.
82720         * modules/unictype/property-bidi-block-separator: New file.
82721         * modules/unictype/property-bidi-segment-separator: New file.
82722         * modules/unictype/property-bidi-whitespace: New file.
82723         * modules/unictype/property-bidi-non-spacing-mark: New file.
82724         * modules/unictype/property-bidi-boundary-neutral: New file.
82725         * modules/unictype/property-bidi-pdf: New file.
82726         * modules/unictype/property-bidi-embedding-or-override: New file.
82727         * modules/unictype/property-bidi-other-neutral: New file.
82728         * modules/unictype/property-hex-digit: New file.
82729         * modules/unictype/property-ascii-hex-digit: New file.
82730         * modules/unictype/property-ideographic: New file.
82731         * modules/unictype/property-unified-ideograph: New file.
82732         * modules/unictype/property-radical: New file.
82733         * modules/unictype/property-ids-binary-operator: New file.
82734         * modules/unictype/property-ids-trinary-operator: New file.
82735         * modules/unictype/property-zero-width: New file.
82736         * modules/unictype/property-space: New file.
82737         * modules/unictype/property-non-break: New file.
82738         * modules/unictype/property-iso-control: New file.
82739         * modules/unictype/property-format-control: New file.
82740         * modules/unictype/property-dash: New file.
82741         * modules/unictype/property-hyphen: New file.
82742         * modules/unictype/property-punctuation: New file.
82743         * modules/unictype/property-line-separator: New file.
82744         * modules/unictype/property-paragraph-separator: New file.
82745         * modules/unictype/property-quotation-mark: New file.
82746         * modules/unictype/property-sentence-terminal: New file.
82747         * modules/unictype/property-terminal-punctuation: New file.
82748         * modules/unictype/property-currency-symbol: New file.
82749         * modules/unictype/property-math: New file.
82750         * modules/unictype/property-other-math: New file.
82751         * modules/unictype/property-paired-punctuation: New file.
82752         * modules/unictype/property-left-of-pair: New file.
82753         * modules/unictype/property-combining: New file.
82754         * modules/unictype/property-composite: New file.
82755         * modules/unictype/property-decimal-digit: New file.
82756         * modules/unictype/property-numeric: New file.
82757         * modules/unictype/property-diacritic: New file.
82758         * modules/unictype/property-extender: New file.
82759         * modules/unictype/property-ignorable-control: New file.
82760         * modules/unictype/property-test: New file.
82761         * modules/unictype/property-byname: New file.
82762         * modules/unictype/property-all: New file.
82763         * modules/unictype/scripts: New file.
82764         * modules/unictype/scripts-all: New file.
82765         * modules/unictype/block-of: New file.
82766         * modules/unictype/block-test: New file.
82767         * modules/unictype/block-list: New file.
82768         * modules/unictype/block-all: New file.
82769         * modules/unictype/syntax-c-whitespace: New file.
82770         * modules/unictype/syntax-java-whitespace: New file.
82771         * modules/unictype/syntax-c-ident: New file.
82772         * modules/unictype/syntax-java-ident: New file.
82773         * modules/unictype/ctype-alnum: New file.
82774         * modules/unictype/ctype-alpha: New file.
82775         * modules/unictype/ctype-cntrl: New file.
82776         * modules/unictype/ctype-digit: New file.
82777         * modules/unictype/ctype-graph: New file.
82778         * modules/unictype/ctype-lower: New file.
82779         * modules/unictype/ctype-print: New file.
82780         * modules/unictype/ctype-punct: New file.
82781         * modules/unictype/ctype-space: New file.
82782         * modules/unictype/ctype-upper: New file.
82783         * modules/unictype/ctype-xdigit: New file.
82784         * modules/unictype/ctype-blank: New file.
82785         * lib/unictype/bidi_byname.c: New file.
82786         * lib/unictype/bidi_name.c: New file.
82787         * lib/unictype/bidi_of.c: New file.
82788         * lib/unictype/bidi_test.c: New file.
82789         * lib/unictype/bitmap.h: New file.
82790         * lib/unictype/block_test.c: New file.
82791         * lib/unictype/blocks.c: New file.
82792         * lib/unictype/categ_C.c: New file.
82793         * lib/unictype/categ_Cc.c: New file.
82794         * lib/unictype/categ_Cf.c: New file.
82795         * lib/unictype/categ_Cn.c: New file.
82796         * lib/unictype/categ_Co.c: New file.
82797         * lib/unictype/categ_Cs.c: New file.
82798         * lib/unictype/categ_L.c: New file.
82799         * lib/unictype/categ_Ll.c: New file.
82800         * lib/unictype/categ_Lm.c: New file.
82801         * lib/unictype/categ_Lo.c: New file.
82802         * lib/unictype/categ_Lt.c: New file.
82803         * lib/unictype/categ_Lu.c: New file.
82804         * lib/unictype/categ_M.c: New file.
82805         * lib/unictype/categ_Mc.c: New file.
82806         * lib/unictype/categ_Me.c: New file.
82807         * lib/unictype/categ_Mn.c: New file.
82808         * lib/unictype/categ_N.c: New file.
82809         * lib/unictype/categ_Nd.c: New file.
82810         * lib/unictype/categ_Nl.c: New file.
82811         * lib/unictype/categ_No.c: New file.
82812         * lib/unictype/categ_P.c: New file.
82813         * lib/unictype/categ_Pc.c: New file.
82814         * lib/unictype/categ_Pd.c: New file.
82815         * lib/unictype/categ_Pe.c: New file.
82816         * lib/unictype/categ_Pf.c: New file.
82817         * lib/unictype/categ_Pi.c: New file.
82818         * lib/unictype/categ_Po.c: New file.
82819         * lib/unictype/categ_Ps.c: New file.
82820         * lib/unictype/categ_S.c: New file.
82821         * lib/unictype/categ_Sc.c: New file.
82822         * lib/unictype/categ_Sk.c: New file.
82823         * lib/unictype/categ_Sm.c: New file.
82824         * lib/unictype/categ_So.c: New file.
82825         * lib/unictype/categ_Z.c: New file.
82826         * lib/unictype/categ_Zl.c: New file.
82827         * lib/unictype/categ_Zp.c: New file.
82828         * lib/unictype/categ_Zs.c: New file.
82829         * lib/unictype/categ_and.c: New file.
82830         * lib/unictype/categ_and_not.c: New file.
82831         * lib/unictype/categ_byname.c: New file.
82832         * lib/unictype/categ_name.c: New file.
82833         * lib/unictype/categ_none.c: New file.
82834         * lib/unictype/categ_of.c: New file.
82835         * lib/unictype/categ_or.c: New file.
82836         * lib/unictype/categ_test.c: New file.
82837         * lib/unictype/combining.c: New file.
82838         * lib/unictype/ctype_alnum.c: New file.
82839         * lib/unictype/ctype_alpha.c: New file.
82840         * lib/unictype/ctype_blank.c: New file.
82841         * lib/unictype/ctype_cntrl.c: New file.
82842         * lib/unictype/ctype_digit.c: New file.
82843         * lib/unictype/ctype_graph.c: New file.
82844         * lib/unictype/ctype_lower.c: New file.
82845         * lib/unictype/ctype_print.c: New file.
82846         * lib/unictype/ctype_punct.c: New file.
82847         * lib/unictype/ctype_space.c: New file.
82848         * lib/unictype/ctype_upper.c: New file.
82849         * lib/unictype/ctype_xdigit.c: New file.
82850         * lib/unictype/decdigit.c: New file.
82851         * lib/unictype/digit.c: New file.
82852         * lib/unictype/identsyntaxmap.h: New file.
82853         * lib/unictype/mirror.c: New file.
82854         * lib/unictype/numeric.c: New file.
82855         * lib/unictype/pr_alphabetic.c: New file.
82856         * lib/unictype/pr_ascii_hex_digit.c: New file.
82857         * lib/unictype/pr_bidi_arabic_digit.c: New file.
82858         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
82859         * lib/unictype/pr_bidi_block_separator.c: New file.
82860         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
82861         * lib/unictype/pr_bidi_common_separator.c: New file.
82862         * lib/unictype/pr_bidi_control.c: New file.
82863         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
82864         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
82865         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
82866         * lib/unictype/pr_bidi_european_digit.c: New file.
82867         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
82868         * lib/unictype/pr_bidi_left_to_right.c: New file.
82869         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
82870         * lib/unictype/pr_bidi_other_neutral.c: New file.
82871         * lib/unictype/pr_bidi_pdf.c: New file.
82872         * lib/unictype/pr_bidi_segment_separator.c: New file.
82873         * lib/unictype/pr_bidi_whitespace.c: New file.
82874         * lib/unictype/pr_byname.c: New file.
82875         * lib/unictype/pr_byname.gperf: New file.
82876         * lib/unictype/pr_combining.c: New file.
82877         * lib/unictype/pr_composite.c: New file.
82878         * lib/unictype/pr_currency_symbol.c: New file.
82879         * lib/unictype/pr_dash.c: New file.
82880         * lib/unictype/pr_decimal_digit.c: New file.
82881         * lib/unictype/pr_default_ignorable_code_point.c: New file.
82882         * lib/unictype/pr_deprecated.c: New file.
82883         * lib/unictype/pr_diacritic.c: New file.
82884         * lib/unictype/pr_extender.c: New file.
82885         * lib/unictype/pr_format_control.c: New file.
82886         * lib/unictype/pr_grapheme_base.c: New file.
82887         * lib/unictype/pr_grapheme_extend.c: New file.
82888         * lib/unictype/pr_grapheme_link.c: New file.
82889         * lib/unictype/pr_hex_digit.c: New file.
82890         * lib/unictype/pr_hyphen.c: New file.
82891         * lib/unictype/pr_id_continue.c: New file.
82892         * lib/unictype/pr_id_start.c: New file.
82893         * lib/unictype/pr_ideographic.c: New file.
82894         * lib/unictype/pr_ids_binary_operator.c: New file.
82895         * lib/unictype/pr_ids_trinary_operator.c: New file.
82896         * lib/unictype/pr_ignorable_control.c: New file.
82897         * lib/unictype/pr_iso_control.c: New file.
82898         * lib/unictype/pr_join_control.c: New file.
82899         * lib/unictype/pr_left_of_pair.c: New file.
82900         * lib/unictype/pr_line_separator.c: New file.
82901         * lib/unictype/pr_logical_order_exception.c: New file.
82902         * lib/unictype/pr_lowercase.c: New file.
82903         * lib/unictype/pr_math.c: New file.
82904         * lib/unictype/pr_non_break.c: New file.
82905         * lib/unictype/pr_not_a_character.c: New file.
82906         * lib/unictype/pr_numeric.c: New file.
82907         * lib/unictype/pr_other_alphabetic.c: New file.
82908         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
82909         * lib/unictype/pr_other_grapheme_extend.c: New file.
82910         * lib/unictype/pr_other_id_continue.c: New file.
82911         * lib/unictype/pr_other_id_start.c: New file.
82912         * lib/unictype/pr_other_lowercase.c: New file.
82913         * lib/unictype/pr_other_math.c: New file.
82914         * lib/unictype/pr_other_uppercase.c: New file.
82915         * lib/unictype/pr_paired_punctuation.c: New file.
82916         * lib/unictype/pr_paragraph_separator.c: New file.
82917         * lib/unictype/pr_pattern_syntax.c: New file.
82918         * lib/unictype/pr_pattern_white_space.c: New file.
82919         * lib/unictype/pr_private_use.c: New file.
82920         * lib/unictype/pr_punctuation.c: New file.
82921         * lib/unictype/pr_quotation_mark.c: New file.
82922         * lib/unictype/pr_radical.c: New file.
82923         * lib/unictype/pr_sentence_terminal.c: New file.
82924         * lib/unictype/pr_soft_dotted.c: New file.
82925         * lib/unictype/pr_space.c: New file.
82926         * lib/unictype/pr_terminal_punctuation.c: New file.
82927         * lib/unictype/pr_test.c: New file.
82928         * lib/unictype/pr_titlecase.c: New file.
82929         * lib/unictype/pr_unassigned_code_value.c: New file.
82930         * lib/unictype/pr_unified_ideograph.c: New file.
82931         * lib/unictype/pr_uppercase.c: New file.
82932         * lib/unictype/pr_variation_selector.c: New file.
82933         * lib/unictype/pr_white_space.c: New file.
82934         * lib/unictype/pr_xid_continue.c: New file.
82935         * lib/unictype/pr_xid_start.c: New file.
82936         * lib/unictype/pr_zero_width.c: New file.
82937         * lib/unictype/scripts.c: New file.
82938         * lib/unictype/sy_c_ident.c: New file.
82939         * lib/unictype/sy_c_whitespace.c: New file.
82940         * lib/unictype/sy_java_ident.c: New file.
82941         * lib/unictype/sy_java_whitespace.c: New file.
82943         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
82944         Unicode 5.0.0.
82945         * lib/unictype/blocks.h: Likewise.
82946         * lib/unictype/categ_C.h: Likewise.
82947         * lib/unictype/categ_Cc.h: Likewise.
82948         * lib/unictype/categ_Cf.h: Likewise.
82949         * lib/unictype/categ_Cn.h: Likewise.
82950         * lib/unictype/categ_Co.h: Likewise.
82951         * lib/unictype/categ_Cs.h: Likewise.
82952         * lib/unictype/categ_L.h: Likewise.
82953         * lib/unictype/categ_Ll.h: Likewise.
82954         * lib/unictype/categ_Lm.h: Likewise.
82955         * lib/unictype/categ_Lo.h: Likewise.
82956         * lib/unictype/categ_Lt.h: Likewise.
82957         * lib/unictype/categ_Lu.h: Likewise.
82958         * lib/unictype/categ_M.h: Likewise.
82959         * lib/unictype/categ_Mc.h: Likewise.
82960         * lib/unictype/categ_Me.h: Likewise.
82961         * lib/unictype/categ_Mn.h: Likewise.
82962         * lib/unictype/categ_N.h: Likewise.
82963         * lib/unictype/categ_Nd.h: Likewise.
82964         * lib/unictype/categ_Nl.h: Likewise.
82965         * lib/unictype/categ_No.h: Likewise.
82966         * lib/unictype/categ_P.h: Likewise.
82967         * lib/unictype/categ_Pc.h: Likewise.
82968         * lib/unictype/categ_Pd.h: Likewise.
82969         * lib/unictype/categ_Pe.h: Likewise.
82970         * lib/unictype/categ_Pf.h: Likewise.
82971         * lib/unictype/categ_Pi.h: Likewise.
82972         * lib/unictype/categ_Po.h: Likewise.
82973         * lib/unictype/categ_Ps.h: Likewise.
82974         * lib/unictype/categ_S.h: Likewise.
82975         * lib/unictype/categ_Sc.h: Likewise.
82976         * lib/unictype/categ_Sk.h: Likewise.
82977         * lib/unictype/categ_Sm.h: Likewise.
82978         * lib/unictype/categ_So.h: Likewise.
82979         * lib/unictype/categ_Z.h: Likewise.
82980         * lib/unictype/categ_Zl.h: Likewise.
82981         * lib/unictype/categ_Zp.h: Likewise.
82982         * lib/unictype/categ_Zs.h: Likewise.
82983         * lib/unictype/categ_of.h: Likewise.
82984         * lib/unictype/combining.h: Likewise.
82985         * lib/unictype/ctype_alnum.h: Likewise.
82986         * lib/unictype/ctype_alpha.h: Likewise.
82987         * lib/unictype/ctype_blank.h: Likewise.
82988         * lib/unictype/ctype_cntrl.h: Likewise.
82989         * lib/unictype/ctype_digit.h: Likewise.
82990         * lib/unictype/ctype_graph.h: Likewise.
82991         * lib/unictype/ctype_lower.h: Likewise.
82992         * lib/unictype/ctype_print.h: Likewise.
82993         * lib/unictype/ctype_punct.h: Likewise.
82994         * lib/unictype/ctype_space.h: Likewise.
82995         * lib/unictype/ctype_upper.h: Likewise.
82996         * lib/unictype/ctype_xdigit.h: Likewise.
82997         * lib/unictype/decdigit.h: Likewise.
82998         * lib/unictype/digit.h: Likewise.
82999         * lib/unictype/mirror.h: Likewise.
83000         * lib/unictype/numeric.h: Likewise.
83001         * lib/unictype/pr_alphabetic.h: Likewise.
83002         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
83003         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
83004         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
83005         * lib/unictype/pr_bidi_block_separator.h: Likewise.
83006         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
83007         * lib/unictype/pr_bidi_common_separator.h: Likewise.
83008         * lib/unictype/pr_bidi_control.h: Likewise.
83009         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
83010         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
83011         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
83012         * lib/unictype/pr_bidi_european_digit.h: Likewise.
83013         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
83014         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
83015         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
83016         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
83017         * lib/unictype/pr_bidi_pdf.h: Likewise.
83018         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
83019         * lib/unictype/pr_bidi_whitespace.h: Likewise.
83020         * lib/unictype/pr_combining.h: Likewise.
83021         * lib/unictype/pr_composite.h: Likewise.
83022         * lib/unictype/pr_currency_symbol.h: Likewise.
83023         * lib/unictype/pr_dash.h: Likewise.
83024         * lib/unictype/pr_decimal_digit.h: Likewise.
83025         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
83026         * lib/unictype/pr_deprecated.h: Likewise.
83027         * lib/unictype/pr_diacritic.h: Likewise.
83028         * lib/unictype/pr_extender.h: Likewise.
83029         * lib/unictype/pr_format_control.h: Likewise.
83030         * lib/unictype/pr_grapheme_base.h: Likewise.
83031         * lib/unictype/pr_grapheme_extend.h: Likewise.
83032         * lib/unictype/pr_grapheme_link.h: Likewise.
83033         * lib/unictype/pr_hex_digit.h: Likewise.
83034         * lib/unictype/pr_hyphen.h: Likewise.
83035         * lib/unictype/pr_id_continue.h: Likewise.
83036         * lib/unictype/pr_id_start.h: Likewise.
83037         * lib/unictype/pr_ideographic.h: Likewise.
83038         * lib/unictype/pr_ids_binary_operator.h: Likewise.
83039         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
83040         * lib/unictype/pr_ignorable_control.h: Likewise.
83041         * lib/unictype/pr_iso_control.h: Likewise.
83042         * lib/unictype/pr_join_control.h: Likewise.
83043         * lib/unictype/pr_left_of_pair.h: Likewise.
83044         * lib/unictype/pr_line_separator.h: Likewise.
83045         * lib/unictype/pr_logical_order_exception.h: Likewise.
83046         * lib/unictype/pr_lowercase.h: Likewise.
83047         * lib/unictype/pr_math.h: Likewise.
83048         * lib/unictype/pr_non_break.h: Likewise.
83049         * lib/unictype/pr_not_a_character.h: Likewise.
83050         * lib/unictype/pr_numeric.h: Likewise.
83051         * lib/unictype/pr_other_alphabetic.h: Likewise.
83052         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
83053         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
83054         * lib/unictype/pr_other_id_continue.h: Likewise.
83055         * lib/unictype/pr_other_id_start.h: Likewise.
83056         * lib/unictype/pr_other_lowercase.h: Likewise.
83057         * lib/unictype/pr_other_math.h: Likewise.
83058         * lib/unictype/pr_other_uppercase.h: Likewise.
83059         * lib/unictype/pr_paired_punctuation.h: Likewise.
83060         * lib/unictype/pr_paragraph_separator.h: Likewise.
83061         * lib/unictype/pr_pattern_syntax.h: Likewise.
83062         * lib/unictype/pr_pattern_white_space.h: Likewise.
83063         * lib/unictype/pr_private_use.h: Likewise.
83064         * lib/unictype/pr_punctuation.h: Likewise.
83065         * lib/unictype/pr_quotation_mark.h: Likewise.
83066         * lib/unictype/pr_radical.h: Likewise.
83067         * lib/unictype/pr_sentence_terminal.h: Likewise.
83068         * lib/unictype/pr_soft_dotted.h: Likewise.
83069         * lib/unictype/pr_space.h: Likewise.
83070         * lib/unictype/pr_terminal_punctuation.h: Likewise.
83071         * lib/unictype/pr_titlecase.h: Likewise.
83072         * lib/unictype/pr_unassigned_code_value.h: Likewise.
83073         * lib/unictype/pr_unified_ideograph.h: Likewise.
83074         * lib/unictype/pr_uppercase.h: Likewise.
83075         * lib/unictype/pr_variation_selector.h: Likewise.
83076         * lib/unictype/pr_white_space.h: Likewise.
83077         * lib/unictype/pr_xid_continue.h: Likewise.
83078         * lib/unictype/pr_xid_start.h: Likewise.
83079         * lib/unictype/pr_zero_width.h: Likewise.
83080         * lib/unictype/scripts.h: Likewise.
83081         * lib/unictype/scripts_byname.gperf: Likewise.
83082         * lib/unictype/sy_c_ident.h: Likewise.
83083         * lib/unictype/sy_c_whitespace.h: Likewise.
83084         * lib/unictype/sy_java_ident.h: Likewise.
83085         * lib/unictype/sy_java_whitespace.h: Likewise.
83087         * lib/unictype/Makefile: New file.
83088         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
83089         glibc.
83090         * lib/unictype/3level.h: New file, copied from glibc.
83091         * lib/unictype/3levelbit.h: New file.
83093 2007-11-11  Bruno Haible  <bruno@clisp.org>
83095         * modules/gperf: New file.
83096         * modules/iconv_open (Depends-on): Add it.
83097         (Makefile.am): Remove the GPERF definition.
83099 2007-11-11  Bruno Haible  <bruno@clisp.org>
83101         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
83102         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
83104 2007-11-11  Bruno Haible  <bruno@clisp.org>
83106         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
83107         (usage): Remove function.
83109 2007-11-11  Bruno Haible  <bruno@clisp.org>
83111         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
83112         gl_FUNC_CEILF_LIBS.
83113         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
83114         gl_FUNC_CEIL_LIBS.
83115         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
83116         gl_FUNC_CEILL_LIBS.
83117         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
83118         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
83119         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
83121 2007-11-11  Bruno Haible  <bruno@clisp.org>
83123         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
83124         roundf were declared but do not exist on functions.
83125         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
83126         roundl were declared but do not exist on functions.
83127         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
83128         HAVE_FLOORL_AND_CEILL, respectively.
83129         Needed for Sun C on Solaris 10.
83131 2007-11-11  Bruno Haible  <bruno@clisp.org>
83133         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
83134         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
83135         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
83136         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
83137         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
83138         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
83139         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
83140         HAVE_DECL_ROUNDF.
83141         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
83142         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
83143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
83144         of HAVE_DECL_ROUND*.
83145         * modules/math (Makefile.am): Update.
83147 2007-11-10  Bruno Haible  <bruno@clisp.org>
83149         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
83150         ptrdiff_t as m4/intl.m4.
83152 2007-11-10  Jim Meyering  <meyering@redhat.com>
83154         Avoid link failure for the argmatch test.
83155         * tests/test-argmatch.c (usage): Define function to avoid a link
83156         failure: argmatch_die requires a usage function.
83158 2007-11-09  Bruno Haible  <bruno@clisp.org>
83160         * doc/functions/snprintf.texi: Mention BeOS deficiency.
83161         * doc/functions/vsnprintf.texi: Likewise.
83162         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
83163         with a size argument < 2.
83165 2007-11-09  Bruno Haible  <bruno@clisp.org>
83167         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
83168         buffer. Fixes an inefficiency introduced on 2007-11-03.
83170 2007-11-09  Bruno Haible  <bruno@clisp.org>
83172         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
83173         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
83175 2007-11-08  Jim Meyering  <meyering@redhat.com>
83177         Change cache variable name prefix "jm_" to "gl_" everywhere.
83178         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
83179         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
83180         * m4/uptime.m4: s/gl_/jm_/
83182 2007-11-07  Bruno Haible  <bruno@clisp.org>
83184         Update to GNU gettext 0.17.
83185         * m4/intl.m4: Update to GNU gettext 0.17.
83186         * m4/po.m4: Likewise.
83187         * modules/gettext (Files): Remove m4/ulonglong.m4.
83188         (configure.ac): Require gettext infrastructure from version 0.17.
83190 2007-11-06  Bruno Haible  <bruno@clisp.org>
83192         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
83193         symbolic values are not defined in a public header.
83194         * lib/freadable.c (freadable) [QNX]: Likewise.
83195         * lib/freadahead.c (freadahead) [QNX]: Likewise.
83196         * lib/freading.c (freading) [QNX]: Likewise.
83197         * lib/fseterr.c (fseterr) [QNX]: Likewise.
83198         * lib/fwritable.c (fwritable) [QNX]: Likewise.
83199         * lib/fwriting.c (fwriting) [QNX]: Likewise.
83200         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
83201         Reported by Alain Magloire.
83203         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
83205 2007-11-05  Bruno Haible  <bruno@clisp.org>
83207         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
83208         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
83209         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
83210         Reported by Eric Blake.
83212 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83213             Bruno Haible  <bruno@clisp.org>
83215         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
83216         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
83217         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
83218         (malloc): Undefine also before including <stdlib.h>.
83219         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
83220         Needed on OSF/1 4.0.
83222 2007-11-05  Jim Meyering  <meyering@redhat.com>
83224         git-version-gen: sync from coreutils.
83225         * build-aux/git-version-gen: Add comments.
83226         Change the first '-' to '.' in the snapshot version string,
83227         e.g., 6.9-377-08144 -> 6.9.377-08144
83228         Remove first parameter.
83229         Don't declare a version "-dirty" merely because a time
83230         stamp has changed.
83232 2007-11-04  Bruno Haible  <bruno@clisp.org>
83234         * lib/lock.h: Protect all macro definitions containing an 'if'
83235         statement through a "do { ... } while (0)".
83236         * lib/tls.h: Likewise.
83238 2007-11-04  Bruno Haible  <bruno@clisp.org>
83240         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
83242 2007-11-04  Bruno Haible  <bruno@clisp.org>
83244         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
83245         * modules/fprintf-posix (Depends-on): Add nocrash.
83246         * modules/snprintf-posix (Depends-on): Likewise.
83247         * modules/sprintf-posix (Depends-on): Likewise.
83248         * modules/vasnprintf-posix (Depends-on): Likewise.
83249         * modules/vasprintf-posix (Depends-on): Likewise.
83250         * modules/vfprintf-posix (Depends-on): Likewise.
83251         * modules/vsnprintf-posix (Depends-on): Likewise.
83252         * modules/vsprintf-posix (Depends-on): Likewise.
83253         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83254         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83255         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83256         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83257         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83258         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83259         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83261 2007-11-04  Bruno Haible  <bruno@clisp.org>
83263         * modules/nocrash: New file.
83264         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
83265         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
83267 2007-11-04  Bruno Haible  <bruno@clisp.org>
83269         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
83270         precision handling.
83271         * tests/test-vasprintf-posix.c (test_function): Likewise.
83272         * tests/test-snprintf-posix.h (test_function): Likewise.
83273         * tests/test-sprintf-posix.h (test_function): Likewise.
83275         Fix *printf behaviour for large precisions on mingw and BeOS.
83276         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
83277         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
83278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
83279         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83280         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83281         gl_PRINTF_PRECISION and test its result. Invoke
83282         gl_PREREQ_VASNPRINTF_PRECISION.
83283         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83284         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83285         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83286         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83287         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83289         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83290         * doc/functions/fprintf.texi: Update.
83291         * doc/functions/printf.texi: Update.
83292         * doc/functions/snprintf.texi: Update.
83293         * doc/functions/sprintf.texi: Update.
83294         * doc/functions/vfprintf.texi: Update.
83295         * doc/functions/vprintf.texi: Update.
83296         * doc/functions/vsnprintf.texi: Update.
83297         * doc/functions/vsprintf.texi: Update.
83299 2007-11-04  Bruno Haible  <bruno@clisp.org>
83301         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83303 2007-11-04  Bruno Haible  <bruno@clisp.org>
83305         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83306         Reported by Sylvain Beucler <beuc@gnu.org>.
83308 2007-11-03  Bruno Haible  <bruno@clisp.org>
83310         * tests/test-fprintf-posix2.sh: New file.
83311         * tests/test-fprintf-posix2.c: New file.
83312         * modules/fprintf-posix-tests (Files): Add them.
83313         (TESTS): Add test-fprintf-posix2.sh.
83314         (configure.ac): Check for getrlimit and setrlimit.
83315         (check_PROGRAMS): Add test-fprintf-posix2.
83317         * tests/test-printf-posix2.sh: New file.
83318         * tests/test-printf-posix2.c: New file.
83319         * modules/printf-posix-tests (Files): Add them.
83320         (TESTS): Add test-printf-posix2.sh.
83321         (configure.ac): Check for getrlimit and setrlimit.
83322         (check_PROGRAMS): Add test-printf-posix2.
83324         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83325         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83326         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83327         (decode_double): New function, copied from decode_long_double.
83328         (scale10_round_decimal_decoded): New function, extracted from
83329         scale10_round_decimal_long_double.
83330         (scale10_round_decimal_long_double): Use it.
83331         (scale10_round_decimal_double): New function.
83332         (floorlog10): New function.
83333         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83335         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83336         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83337         gl_PRINTF_ENOMEM and test its result. Invoke
83338         gl_PREREQ_VASNPRINTF_ENOMEM.
83339         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83340         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83343         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83344         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83346         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83347         * modules/snprintf-posix (Depends-on): Likewise.
83348         * modules/sprintf-posix (Depends-on): Likewise.
83349         * modules/vasnprintf-posix (Depends-on): Likewise.
83350         * modules/vasprintf-posix (Depends-on): Likewise.
83351         * modules/vfprintf-posix (Depends-on): Likewise.
83352         * modules/vsnprintf-posix (Depends-on): Likewise.
83353         * modules/vsprintf-posix (Depends-on): Likewise.
83354         * doc/functions/fprintf.texi: Update.
83355         * doc/functions/printf.texi: Update.
83356         * doc/functions/snprintf.texi: Update.
83357         * doc/functions/sprintf.texi: Update.
83358         * doc/functions/vfprintf.texi: Update.
83359         * doc/functions/vprintf.texi: Update.
83360         * doc/functions/vsnprintf.texi: Update.
83361         * doc/functions/vsprintf.texi: Update.
83363 2007-11-03  Bruno Haible  <bruno@clisp.org>
83365         * modules/frexp-nolibm-tests: New file.
83367         * modules/frexp-nolibm: New file.
83368         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83370 2007-11-03  Bruno Haible  <bruno@clisp.org>
83372         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83373         value is C99 compliant.
83374         Needed for OSF/1 5.1.
83376 2007-11-03  Bruno Haible  <bruno@clisp.org>
83378         Fix out-of-memory handling of vasnprintf.
83379         * lib/printf-parse.c: Include <errno.h>.
83380         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83381         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83382         is already set.
83384 2007-11-02  Eric Blake  <ebb9@byu.net>
83386         Fix tests on cygwin.
83387         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83389 2007-11-01  Bruno Haible  <bruno@clisp.org>
83391         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83392         warning.
83393         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83394         needed for POSIX compatibility.
83396 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83398         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83399         for compatibility with GNU.
83401 2007-11-01  Bruno Haible  <bruno@clisp.org>
83403         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83404         (putenv): Renamed from rpl_putenv. Change argument type from
83405         'const char *' to 'char *'.
83406         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83407         of defining putenv in config.h, just set REPLACE_PUTENV.
83408         * modules/putenv (Depends-on): Add stdlib.
83409         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83410         (Include): Use <stdlib.h>.
83411         * lib/stdlib.in.h (putenv): New declaration.
83412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83413         REPLACE_PUTENV.
83414         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83415         REPLACE_PUTENV.
83416         Needed for MacOS X 10.5.0.
83417         Reported by Peter O'Gorman <peter@pogma.com>.
83419 2007-11-01  Jim Meyering  <meyering@redhat.com>
83421         Treat an empty date string exactly like "0".
83422         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83423         if the remaining date string (to be parsed) is empty, use "0".
83424         Reported by Mischa Molhoek and discussed in this thread:
83425         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83427 2007-10-31  Bruno Haible  <bruno@clisp.org>
83429         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83430         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83431         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83432         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83433         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83434         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83436 2007-10-31  Bruno Haible  <bruno@clisp.org>
83438         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83439         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83440         (AC_TYPE_LONG_LONG_INT): Use it.
83441         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83442         it as well.
83443         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83444         to m4/longlong.m4.
83445         * modules/stdint (Files): Remove m4/ulonglong.m4.
83446         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83447         m4/ulonglong.m4.
83448         * modules/strtoumax (Files): Likewise.
83450 2007-10-30  Bruno Haible  <bruno@clisp.org>
83452         * modules/xvasprintf-posix: New file.
83453         Suggested by Eric Blake.
83455 2007-10-30  Bruno Haible  <bruno@clisp.org>
83457         * modules/xprintf-posix-tests: New file.
83458         * tests/test-xprintf-posix.sh: New file.
83459         * tests/test-xprintf-posix.c: New file.
83460         * tests/test-xfprintf-posix.c: New file.
83462         * modules/xprintf-posix: New file.
83464 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83466         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83467         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83468         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83470 2007-10-29  Bruno Haible  <bruno@clisp.org>
83472         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83473         contain the special marker '_cv_'.
83474         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83475         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83476         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83477         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83478         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83479         Reported by Ralf Wildenhues.
83481 2007-10-29  Bruno Haible  <bruno@clisp.org>
83483         * gnulib-tool (func_import): When --lgpl is not specified, set
83484         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83485         GPLv3.
83486         Reported by Simon Josefsson.
83488 2007-10-28  Bruno Haible  <bruno@clisp.org>
83490         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83491         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83492         HAVE_DECL_ISFINITE.
83493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83494         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83495         HAVE_DECL_ISFINITE.
83497 2007-10-28  Bruno Haible  <bruno@clisp.org>
83499         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83500         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83502 2007-10-28  Bruno Haible  <bruno@clisp.org>
83504         Fix link errors with Sun C 5.0 on Solaris 10.
83505         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83506         function is declared but not present in the compiler's libm.
83507         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83508         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83509         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83510         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83511         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83512         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83513         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83515         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83516         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83517         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83518         HAVE_DECL_FLOORL.
83520 2007-10-28  Bruno Haible  <bruno@clisp.org>
83522         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83523         gl_FUNC_FLOORL. Cache the result.
83524         (gl_FUNC_FLOORL): Use it.
83525         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83526         gl_FUNC_CEILL. Cache the result.
83527         (gl_FUNC_CEILL): Use it.
83529         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83530         gl_FUNC_FLOOR. Cache the result.
83531         (gl_FUNC_FLOOR): Use it.
83532         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83533         gl_FUNC_CEIL. Cache the result.
83534         (gl_FUNC_CEIL): Use it.
83536         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83537         gl_FUNC_FLOORF. Cache the result.
83538         (gl_FUNC_FLOORF): Use it.
83539         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83540         gl_FUNC_CEILF. Cache the result.
83541         (gl_FUNC_CEILF): Use it.
83543 2007-10-28  Bruno Haible  <bruno@clisp.org>
83545         * gnulib-tool: Allow specifying the LGPL version number through
83546         --lgpl=2 or --lgpl=3.
83547         (func_usage): Document --lgpl with argument.
83548         Handle --lgpl=... arguments.
83549         (func_import): Recognize also gl_LGPL calls with an argument. When
83550         --lgpl=2 is used and the module's license is just LGPL, report an
83551         error. Set sed_transform_lib_file according to the lgpl variable. In
83552         the generated files, use --lgpl or gl_LGPL invocations with argument,
83553         if necessary.
83554         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
83555         an LGPv2+ license.
83556         * doc/gnulib-tool.texi (Modified imports): Update explanation of
83557         gl_LGPL macro.
83559 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83560             Bruno Haible  <bruno@clisp.org>
83562         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
83563         (u16_uctomb_aux): Likewise.
83564         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
83565         !HAVE_INLINE.
83566         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
83568 2007-10-28  Bruno Haible  <bruno@clisp.org>
83570         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
83571         Invoke AM_GETTEXT_OPTION if it exists.
83572         * modules/vasprintf: Likewise.
83573         * modules/verror: Likewise.
83574         * modules/xprintf: Likewise.
83575         * modules/xvasprintf: Likewise.
83577 2007-10-27  Ben Pfaff  <blp@gnu.org>
83579         * lib/math.in.h: Define isfinite macro and prototypes for
83580         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
83581         implementations.
83582         * m4/math_h.m4: New substitutions for isfinite module.
83583         * lib/isfinite.c: New file.
83584         * m4/isfinite.m4: New file.
83585         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
83586         * modules/isfinite: New file.
83587         * modules/isfinite-tests: New file.
83588         * tests/tests-isfinite.c: New file.
83589         * doc/functions/isfinite.texi: Mention isfinite module.
83590         * MODULES.html.sh: Mention new module.
83592 2007-10-27  Ben Pfaff  <blp@gnu.org>
83594         Ralf Wildenhues reported that Tru64 4.0D declares the round
83595         functions but does not have definitions.
83596         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
83597         cannot be found in any library, set the output variable to
83598         "missing" instead of "".
83599         * m4/round.m4: Also use our substitute if we cannot find round in
83600         any library, even if it is declared.
83601         * m4/roundf.m4: Likewise for roundf.
83602         * m4/roundl.m4: Likewise for roundl.
83603         * lib/math.in.h: Undefine roundf, round, roundl before defining
83604         their replacements, to allow for hypothetical systems where these
83605         may be defined as macros but not available in libraries.
83607 2007-10-27  Bruno Haible  <bruno@clisp.org>
83609         * doc/gnulib.texi: Invoke @firstparagraphindent.
83610         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
83611         changes in gnulib.
83612         (Source changes): New section.
83614 2007-10-26  Bruno Haible  <bruno@clisp.org>
83616         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
83617         borrowed from autoconf.
83619 2007-10-26  Bruno Haible  <bruno@clisp.org>
83621         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
83622         strerror returned the empty string. Needed on HP-UX 11.00.
83624 2007-10-24  Micah Cowan  <micah@cowan.name>
83626         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
83627         * build-aux/bootstrap: Remove support for now-unnecessary option,
83628         --cvs-user, and envvars CVS_USER, CVS_RSH.
83630 2007-10-24  Jim Meyering  <meyering@redhat.com>
83632         Avoid diagnostics from sha1sum when there is no cached checksum.
83633         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
83634         if the po.s1 file hasn't been created yet.
83636         * build-aux/bootstrap: Sync from coreutils:
83637         2007-10-24  Jim Meyering  <meyering@redhat.com>
83638         Get gnulib from the git repository, not from an obsolete cvs one.
83639         * build-aux/bootstrap: Suggestion from Micah Cowan.
83640         2007-10-04  Jim Meyering  <jim@meyering.net>
83641         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
83642         (update_po_files): Work also when there are no .po files in po/.
83644 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83646         * README: Append ".git" to git and cg examples.
83647         Problem reported by Benoit Sigoure.
83649 2007-10-23  Micah Cowan  <micah@cowan.name>
83651         * users.txt: Add wget.
83653 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83655         Fix linking of some unistdio tests on FreeBSD.
83656         * modules/unistdio/u16-vsnprintf-tests
83657         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
83658         * modules/unistdio/u16-vsprintf-tests
83659         (test_u16_vsnprintf1_LDADD): Likewise.
83660         * modules/unistdio/u32-vsnprintf-tests
83661         (test_u32_vsnprintf1_LDADD): Likewise.
83662         * modules/unistdio/u32-vsprintf-tests
83663         (test_u32_vsprintf1_LDADD): Likewise.
83664         * modules/unistdio/u8-vsnprintf-tests
83665         (test_u8_vsnprintf1_LDADD): Likewise.
83666         * modules/unistdio/u8-vsprintf-tests
83667         (test_u8_vsprintf1_LDADD): Likewise.
83668         * modules/unistdio/ulc-vsnprintf-tests
83669         (test_ulc_vsnprintf1_LDADD): Likewise.
83670         * modules/unistdio/ulc-vsprintf-tests
83671         (test_ulc_vsprintf1_LDADD): Likewise.
83673         Fix linking of some uniconv tests on FreeBSD.
83674         * modules/uniconv/u16-conv-from-enc-tests
83675         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
83676         * modules/uniconv/u16-conv-to-enc-tests
83677         (test_u16_conv_to_enc_LDADD): Likewise.
83678         * modules/uniconv/u16-strconv-from-enc-tests
83679         (test_u16_strconv_from_enc_LDADD): Likewise.
83680         * modules/uniconv/u16-strconv-to-enc-tests
83681         (test_u16_strconv_to_enc_LDADD): Likewise.
83682         * modules/uniconv/u32-conv-from-enc-tests
83683         (test_u32_conv_from_enc_LDADD): Likewise.
83684         * modules/uniconv/u32-conv-to-enc-tests
83685         (test_u32_conv_to_enc_LDADD): Likewise.
83686         * modules/uniconv/u32-strconv-from-enc-tests
83687         (test_u32_strconv_from_enc_LDADD): Likewise.
83688         * modules/uniconv/u32-strconv-to-enc-tests
83689         (test_u32_strconv_to_enc_LDADD): Likewise.
83690         * modules/uniconv/u8-conv-from-enc-tests
83691         (test_u8_conv_from_enc_LDADD): Likewise.
83692         * modules/uniconv/u8-conv-to-enc-tests
83693         (test_u8_conv_to_enc_LDADD): Likewise.
83694         * modules/uniconv/u8-strconv-from-enc-tests
83695         (test_u8_strconv_from_enc_LDADD): Likewise.
83696         * modules/uniconv/u8-strconv-to-enc-tests
83697         (test_u8_strconv_to_enc_LDADD): Likewise.
83699 2007-10-22  Bruno Haible  <bruno@clisp.org>
83701         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
83702         size.
83704 2007-10-22  Eric Blake  <ebb9@byu.net>
83706         Tweak x*printf documentation.
83707         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
83708         variable name and comments.
83709         Suggested by Bruno Haible.
83711 2007-10-22  Bruno Haible  <bruno@clisp.org>
83713         * lib/acl.c (copy_acl): Fix file name in comment.
83715 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83717         Fix Tru64 problem with stdbool.h.
83718         * lib/stdbool.in.h (false, true):
83719         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
83720         Don't declare as an enum in this situation; it runs afoul of Tru64.
83721         Problem reported by Steven M. Schweda in
83722         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
83724 2007-10-22  Eric Blake  <ebb9@byu.net>
83726         Also wrap vf?printf.
83727         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
83728         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
83729         (xvprintf, xvfprintf): New functions.
83731 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83733         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
83734         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
83736         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
83737         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
83739 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83741         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
83742         by Bruno Haible.
83744 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83746         * lib/getloadavg.c
83747         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
83748         Undef `sys' after including sys/table.h, for Tru64 4.0D.
83750         * tests/test-i-ring.c: Work for C89.
83752 2007-10-22  Bruno Haible  <bruno@clisp.org>
83754         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
83755         -1u, in preprocessor expression, so that we don't test for the bug
83756         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
83757         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
83759 2007-10-22  Eric Blake  <ebb9@byu.net>
83761         * tests/test-yesno.sh: Silence stderr during test.
83763 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83765         * modules/crypto/gc-camellia: New file.
83767         * m4/gc-camellia.m4: New file.
83769         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
83771         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
83773 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83775         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
83776         --help to stdout.  Reported by sms@antinode.org (Steven
83777         M. Schweda).
83779 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83781         * users.txt: Fix link to libksba.
83783 2007-10-21  Ben Pfaff  <blp@gnu.org>
83785         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
83786         round.c roundf implementation that depends on floorf and ceilf to
83787         be tested unconditionally.
83789 2007-10-21  Ben Pfaff  <blp@gnu.org>
83791         * m4/check-libm-func.m4: Removed.
83792         * m4/check-math-lib.m4: New file.
83793         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
83794         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
83795         definition and lack of AC_LIBOBJ([roundf]).
83796         * m4/roundl.m4: Ditto, and similarly for roundl.
83797         * modules/round: Reference new m4 file.
83798         * modules/roundf: Ditto.
83799         * modules/roundl: Ditto.
83800         * tests/test-round2.c (main): Use ROUND instead of round.
83801         Bug report from Bruno Haible.
83803 2007-10-21  Bruno Haible  <bruno@clisp.org>
83805         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
83806         context.
83808 2007-10-21  Bruno Haible  <bruno@clisp.org>
83810         * tests/test-wcwidth.c (main): Allow negative result for some control
83811         characters.
83813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
83814         Needed on OSF/1 5.1.
83816 2007-10-21  Bruno Haible  <bruno@clisp.org>
83818         * tests/test-floorf1.c: Include isnanf.h.
83819         (main): Use isnanf() instead of isnan().
83820         * tests/test-ceilf1.c: Include isnanf.h.
83821         (main): Use isnanf() instead of isnan().
83822         * tests/test-truncf1.c: Include isnanf.h.
83823         (main): Use isnanf() instead of isnan().
83824         * tests/test-roundf1.c: Include isnanf.h.
83825         (main): Use isnanf() instead of isnan().
83827 2007-10-21  Eric Blake  <ebb9@byu.net>
83829         * users.txt: Update URL for m4.
83831 2007-10-21  Bruno Haible  <bruno@clisp.org>
83833         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
83835 2007-10-21  Bruno Haible  <bruno@clisp.org>
83837         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
83838         Git's management files if the CVS files are not present.
83840 2007-10-20  Bruno Haible  <bruno@clisp.org>
83842         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
83843         gcc-3.4.x.
83845 2007-10-20  Ben Pfaff  <blp@gnu.org>
83847         * lib/math.in.h: Declare round, roundf, roundl if we are providing
83848         implementations.
83849         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
83850         * lib/round.c: New file.
83851         * lib/roundf.c: New file.
83852         * lib/roundl.c: New file.
83853         * m4/round.m4: New file.
83854         * m4/roundf.m4: New file.
83855         * m4/roundl.m4: New file.
83856         * m4/check-libm-func-m4: New file.
83857         * modules/math: Replace round, roundf, roundl related @VARS@ in
83858         math.in.h.
83859         * modules/round: New file.
83860         * modules/round-tests: New file.
83861         * modules/roundf: New file.
83862         * modules/roundf-tests: New file.
83863         * modules/roundl: New file.
83864         * modules/roundl-tests: New file.
83865         * tests/test-round1.c: New file.
83866         * tests/test-round2.c: New file.
83867         * tests/test-roundf1.c: New file.
83868         * tests/test-roundf2.c: New file.
83869         * tests/test-roundl.c: New file.
83870         * doc/functions/round.texi: Mention round module.
83871         * doc/functions/roundf.texi: Mention roundf module.
83872         * doc/functions/roundl.texi: Mention roundl module.
83873         * MODULES.html.sh: Mention new modules.
83874         Thanks to Bruno Haible for suggestions.
83876 2007-10-20  Jim Meyering  <meyering@redhat.com>
83878         * lib/xprintf.c: Include <config.h> unconditionally.
83880         Change xprintf's license to GPL.
83881         * modules/xprintf (License): s/LGPL/GPL/, since this module
83882         depends on modules (exit and exitfail) which are GPL.
83883         Suggestion from Bruno Haible.
83885         xprintf fixes.
83886         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
83887         Use a clearer diagnostic.
83888         Patch from Bruno Haible.
83890 2007-10-20  Bruno Haible  <bruno@clisp.org>
83892         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
83893         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
83894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83896 2007-10-20  Bruno Haible  <bruno@clisp.org>
83898         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
83899         precision in the comparison result > x - 1 or similar.
83900         * tests/test-ceilf2.c (correct_result_p): Likewise.
83901         * tests/test-truncf2.c (correct_result_p): Likewise.
83902         * tests/test-trunc2.c (correct_result_p): Likewise.
83903         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83905 2007-10-20  Bruno Haible  <bruno@clisp.org>
83907         * modules/ceil: New file.
83908         * m4/ceil.m4: New file.
83909         * doc/functions/ceil.texi: Mention the 'ceil' module.
83911 2007-10-20  Bruno Haible  <bruno@clisp.org>
83913         * modules/floor: New file.
83914         * m4/floor.m4: New file.
83915         * doc/functions/floor.texi: Mention the 'floor' module.
83917 2007-10-20  Bruno Haible  <bruno@clisp.org>
83919         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
83920         of %a.
83921         * modules/floorf-tests (Depends-on): Likewise.
83922         * modules/truncf-tests (Depends-on): Likewise.
83923         * modules/trunc-tests (Depends-on): Likewise.
83924         Reported by Ben Pfaff.
83926 2007-10-19  Jim Meyering  <meyering@redhat.com>
83928         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
83929         Don't bother testing specific errno values.  Just test ferror.
83931         New module: xprintf
83932         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
83934 2007-10-19  Bruno Haible  <bruno@clisp.org>
83936         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
83937         syntax.
83938         * modules/javaexec (Makefile.am): Likewise.
83939         * modules/relocatable-prog (Makefile.am): Likewise.
83940         Suggested by Jim Meyering.
83942 2007-10-18  Bruno Haible  <bruno@clisp.org>
83944         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
83945         Reported by Jim Meyering.
83947 2007-10-18  Eric Blake  <ebb9@byu.net>
83949         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
83951 2007-10-18  Bruno Haible  <bruno@clisp.org>
83953         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
83954         the format string into writable memory. Needed in Fortify conditions.
83956 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
83957             Bruno Haible  <bruno@clisp.org>
83959         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
83960         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
83961         * modules/trim (Depends-on): Add mbchar.
83962         (configure.ac): Add gl_FUNC_MBRTOWC.
83963         (Makefile.am): Augment lib_SOURCES.
83965 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83967         Modify glob.c to use fstatat and dirfd, to simplify it.
83968         Suggested by Eric Blake.
83969         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
83970         Don't include <stdbool.h>; not used.
83971         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
83972         (link_exists_p): Simplify implementation, since we can now assume
83973         dirfd and fstatat.
83974         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
83976 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83978         * gnulib-tool (func_get_dependencies): Fix sed script to
83979         match only tests.
83981 2007-10-17  Bruno Haible  <bruno@clisp.org>
83983         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
83984         allow locale names without encoding suffix.
83985         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
83986         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
83988 2007-10-16  Bruno Haible  <bruno@clisp.org>
83990         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
83991         * lib/getgroups.c (getgroups): Likewise.
83992         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
83994 2007-10-16  Bruno Haible  <bruno@clisp.org>
83996         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
83997         * modules/malloc-posix (License): Likewise.
83998         * modules/realloc-posix (License): Likewise.
83999         * modules/calloc-posix (License): Likewise.
84000         * modules/intprops (License): Change from GPL to LGPL, with
84001         Paul Eggert's approval.
84003 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84005         Merge glibc changes into lib/glob.c.
84007         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
84008         2007-10-15 04:59:03 UTC.  Here are the changes:
84010         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
84012         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
84014         * lib/glob.c: Add some branch prediction throughout.
84016         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
84018         [BZ #5103]
84019         * lib/glob.c (glob): Recognize patterns starting \/.
84021         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
84023         [BZ #3996]
84024         * lib/glob.c (attribute_hidden): Define if not defined.
84025         (glob): Unescape dirname, filename or username when needed and not
84026         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
84027         is NULL.  Handle unescaped [ in pattern without closing ].
84028         Don't pass GLOB_CHECK down to recursive glob for directories.
84029         (__glob_pattern_type): New function.
84030         (__glob_pattern_p): Implement using __glob_pattern_type.
84031         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
84032         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
84033         Remove unreachable code.
84035         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
84037         * lib/glob.c (glob_in_dir): Add some comments and asserts to
84038         explain why there are no leaks.
84040         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
84042         [BZ #3253]
84043         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
84044         time, rather allocate increasingly bigger arrays of pointers, if
84045         possible with alloca, if too large with malloc.
84047 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84049         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
84050         Problem reported by H.Merijn Brand in
84051         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
84052         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
84053         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
84055 2007-10-15  Bruno Haible  <bruno@clisp.org>
84057         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
84058         with explicit rpl_ prefix.
84059         * lib/fopen.c (fopen): Likewise.
84060         * lib/freopen.c (freopen): Likewise.
84061         * lib/iconv.c (iconv): Likewise.
84062         * lib/iconv_close.c (iconv_close): Likewise.
84064 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84066         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
84068 2007-10-15  Bruno Haible  <bruno@clisp.org>
84070         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
84071         <stddef.h> instead of <stdlib.h> since we only need NULL.
84072         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84074 2007-10-15  Bruno Haible  <bruno@clisp.org>
84076         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
84077         Replace paragraph talking about LIBOBJS.
84078         Reported by Colin Watson <cjwatson@debian.org>.
84080 2007-10-15  Bruno Haible  <bruno@clisp.org>
84082         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
84083         <stdlib.h> before using NULL.
84085 2007-10-15  Simon Josefsson  <simon@josefsson.org>
84087         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
84088         Reported by Albert Chin <china@thewrittenword.com>.
84090 2007-10-14  Bruno Haible  <bruno@clisp.org>
84092         * modules/iconv_open-utf-tests: New file.
84093         * tests/test-iconv-utf.c: New file.
84095         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
84096         * modules/iconv_open-utf: New file.
84097         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
84098         (iconv, iconv_close): New declarations.
84099         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
84100         be defined.
84101         (iconv_open): Add special handling of conversion between UTF-8 and
84102         UTF-{16,32}{BE,LE}.
84103         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
84104         * lib/iconv_close.c: New file.
84105         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
84106         gl_FUNC_ICONV_OPEN.
84107         (gl_FUNC_ICONV_OPEN): Use it.
84108         (gl_FUNC_ICONV_OPEN_UTF): New macro.
84109         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
84110         and REPLACE_ICONV_UTF.
84111         * modules/iconv_open (Depends-on): Add c-strcase.
84112         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
84113         ICONV_CONST.
84114         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
84116 2007-10-13  Albert Chin  <china@thewrittenword.com>
84117             Bruno Haible  <bruno@clisp.org>
84119         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
84120         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
84122 2007-10-13  Bruno Haible  <bruno@clisp.org>
84124         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
84125         defined, use the ISO C99 inline semantics.
84126         * lib/argp.h (ARGP_EI): Likewise.
84128 2007-10-13  Bruno Haible  <bruno@clisp.org>
84130         Handle 'inline' change in gcc 4.3.0.
84131         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
84132         argp_fmtstream_write, argp_fmtstream_set_lmargin,
84133         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
84134         argp_fmtstream_point): Disable 'extern' declaration if the function
84135         definition is going to be provided inline.
84136         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
84137         semantics, not the ISO C99 inline semantics.
84138         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
84139         'extern' declaration if the function definition is going to be provided
84140         inline.
84141         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
84142         the GNU C inline semantics, not the ISO C99 inline semantics. With
84143         GCC 4.2, avoid a warning.
84145 2007-10-13  Bruno Haible  <bruno@clisp.org>
84147         * lib/freading.h (freading): Enable the use of __freading for
84148         glibc >= 2.7.
84149         * lib/freading.c (freading): Likewise.
84151 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
84153         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
84154         "warning: C99 inline functions are not supported; using GNU89".
84156 2007-10-12  Bruno Haible  <bruno@clisp.org>
84158         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
84159         of 2.
84160         * tests/test-ceilf2.c: New file.
84161         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
84163         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
84164         * modules/ceilf-tests: Update.
84166 2007-10-12  Bruno Haible  <bruno@clisp.org>
84168         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
84169         of 2.
84170         * tests/test-floorf2.c: New file.
84171         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
84173         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
84174         * modules/floorf-tests: Update.
84176 2007-10-12  Bruno Haible  <bruno@clisp.org>
84178         * tests/test-trunc2.c: New file.
84179         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
84181         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
84182         * modules/trunc-tests: Update.
84184 2007-10-12  Bruno Haible  <bruno@clisp.org>
84186         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
84187         of 2.
84188         * tests/test-truncf2.c: New file.
84189         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
84191         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
84192         * modules/truncf-tests: Update.
84194 2007-10-11  Eric Blake  <ebb9@byu.net>
84196         Don't claim strerror is broken on Interix.
84197         * doc/functions/strerror.texi (strerror): Known broken systems are
84198         now Solaris 8, and not Interix.
84199         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
84200         Interix on cross-compile.
84201         Reported by Martin Koeppe in
84202         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
84204 2007-10-11  Bruno Haible  <bruno@clisp.org>
84206         * modules/i-ring-tests: New file.
84207         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
84208         instead of assert.
84210 2007-10-11  Bruno Haible  <bruno@clisp.org>
84212         * modules/filenamecat-tests: New file.
84213         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
84214         * lib/filenamecat.c: Remove test code.
84216 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
84218         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
84220         * lib/strerror.c: Include <string.h> always, to test interface,
84221         and to remove the need for the dummy.
84222         Include intprops.h to compute width instead of doing it ourselves
84223         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
84224         (strerror): Define it to return NULL if there's no system strerror.
84225         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
84226         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
84227         ancient pre-strerror Unix systems well any more.  Saying "unknown
84228         system error" is enough.
84229         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
84230         simpler strerror.c implementation.
84231         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
84232         Simplify the tests to reflect the simpler strerror implementation.
84233         * modules/strerror (Depends-on): Add intprops.
84235 2007-10-09  Eric Blake  <ebb9@byu.net>
84237         Silence test-fpending.
84238         * modules/fpending-tests (Files): Add wrapper script.
84239         * tests/test-fpending.sh: New file.
84241 2007-10-09  Bruno Haible  <bruno@clisp.org>
84243         * MODULES.html.sh (func_module): Don't create a hyperlink for
84244         function names like 'printf_frexp'.
84245         (Misc): Add crc, memxor.
84246         (Characteristics of floating types): New section.
84247         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
84248         isnanf-nolibm, signbit, trunc, truncf, truncl.
84249         (Enhancements for ISO C 99 functions): New subsection Input/output.
84250         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
84251         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
84252         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
84253         (Compatibility checks for POSIX:2001 functions): Add clock-time.
84254         (Enhancements for POSIX:2001 functions): Add chdir-long.
84255         (File system functions): Add areadlink, chdir-safer, read-file.
84256         Remove cycle-check.
84257         (File system as inode set): New section.
84258         (Date and time): Add gethrxtime.
84259         (Multithreading): Add openmp.
84260         (Internationalization functions): Add localename.
84261         (Unicode string functions): Add unistr/u*-mbsnlen.
84262         (Support for maintaining and releasing projects): Add git-version-gen.
84263         (Lone files): Remove directories.
84265 2007-10-08  Ben Pfaff  <blp@gnu.org>
84267         * lib/xmalloca.h: Fix typo in comment.
84269 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84271         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
84272         when avoiding problems with integer overflow.  Use a portable test
84273         instead.
84275 2007-10-08  Simon Josefsson  <simon@josefsson.org>
84277         * modules/dummy (License): Change to LGPLv2+.
84278         * modules/float (License): Likewise
84279         * modules/realloc (License): Likewise
84280         * modules/stdlib (License): Likewise
84282 2007-10-07  Bruno Haible  <bruno@clisp.org>
84284         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
84285         * floor.c (TWO_MANT_DIG): Likewise.
84286         * ceil.c (TWO_MANT_DIG): Likewise.
84287         Reported by Ben Pfaff.
84289 2007-10-07  Bruno Haible  <bruno@clisp.org>
84291         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
84292         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84293         * lib/frexp.c (FUNC): Likewise.
84294         * lib/printf-frexp.h (printf_frexp): Likewise.
84295         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84296         * lib/printf-frexp.c (FUNC): Likewise.
84297         Suggested by Jim Meyering.
84299 2007-10-07  Jim Meyering  <meyering@redhat.com>
84301         Make xnanosleep's integer overflow test more robust.
84302         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84303         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84305 2007-10-07  Bruno Haible  <bruno@clisp.org>
84307         * NEWS: Mention the license change.
84309         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84310         abbreviations in the modules files.
84312         Change copyright notice from GPLv2+ to GPLv3+.
84313         * README: Change copyright notice.
84314         * MODULES.html.sh: Likewise.
84315         * build-aux/bootstrap.conf: Likewise.
84316         * build-aux/config.libpath: Likewise.
84317         * build-aux/csharpcomp.sh.in: Likewise.
84318         * build-aux/csharpexec.sh.in: Likewise.
84319         * build-aux/install-reloc: Likewise.
84320         * build-aux/javacomp.sh.in: Likewise.
84321         * build-aux/javaexec.sh.in: Likewise.
84322         * build-aux/ldd.sh.in: Likewise.
84323         * build-aux/reloc-ldflags: Likewise.
84324         * build-aux/relocatable.sh.in: Likewise.
84325         * build-aux/x-to-1.in: Likewise.
84326         * check-module: Likewise.
84327         * config/srclistvars.sh: Likewise.
84328         * gnulib-tool: Likewise.
84329         * lib/acl-internal.h: Likewise.
84330         * lib/acl.c: Likewise.
84331         * lib/acl.h: Likewise.
84332         * lib/acl_entries.c: Likewise.
84333         * lib/areadlink-with-size.c: Likewise.
84334         * lib/areadlink.c: Likewise.
84335         * lib/areadlink.h: Likewise.
84336         * lib/argmatch.c: Likewise.
84337         * lib/argmatch.h: Likewise.
84338         * lib/argp-ba.c: Likewise.
84339         * lib/argp-eexst.c: Likewise.
84340         * lib/argp-fmtstream.c: Likewise.
84341         * lib/argp-fmtstream.h: Likewise.
84342         * lib/argp-fs-xinl.c: Likewise.
84343         * lib/argp-help.c: Likewise.
84344         * lib/argp-namefrob.h: Likewise.
84345         * lib/argp-parse.c: Likewise.
84346         * lib/argp-pin.c: Likewise.
84347         * lib/argp-pv.c: Likewise.
84348         * lib/argp-pvh.c: Likewise.
84349         * lib/argp-xinl.c: Likewise.
84350         * lib/argp.h: Likewise.
84351         * lib/at-func.c: Likewise.
84352         * lib/atanl.c: Likewise.
84353         * lib/backupfile.c: Likewise.
84354         * lib/backupfile.h: Likewise.
84355         * lib/basename.c: Likewise.
84356         * lib/binary-io.h: Likewise.
84357         * lib/byteswap.in.h: Likewise.
84358         * lib/c-stack.c: Likewise.
84359         * lib/c-stack.h: Likewise.
84360         * lib/c-strcasestr.c: Likewise.
84361         * lib/c-strcasestr.h: Likewise.
84362         * lib/c-strstr.c: Likewise.
84363         * lib/c-strstr.h: Likewise.
84364         * lib/c-strtod.c: Likewise.
84365         * lib/calloc.c: Likewise.
84366         * lib/canon-host.c: Likewise.
84367         * lib/canon-host.h: Likewise.
84368         * lib/canonicalize-lgpl.c: Likewise.
84369         * lib/canonicalize.c: Likewise.
84370         * lib/canonicalize.h: Likewise.
84371         * lib/ceil.c: Likewise.
84372         * lib/ceilf.c: Likewise.
84373         * lib/ceill.c: Likewise.
84374         * lib/chdir-long.c: Likewise.
84375         * lib/chdir-long.h: Likewise.
84376         * lib/chdir-safer.c: Likewise.
84377         * lib/chdir-safer.h: Likewise.
84378         * lib/chown.c: Likewise.
84379         * lib/classpath.c: Likewise.
84380         * lib/classpath.h: Likewise.
84381         * lib/clean-temp.c: Likewise.
84382         * lib/clean-temp.h: Likewise.
84383         * lib/cloexec.c: Likewise.
84384         * lib/close-stream.c: Likewise.
84385         * lib/closein.c: Likewise.
84386         * lib/closein.h: Likewise.
84387         * lib/closeout.c: Likewise.
84388         * lib/closeout.h: Likewise.
84389         * lib/concat-filename.c: Likewise.
84390         * lib/copy-file.c: Likewise.
84391         * lib/copy-file.h: Likewise.
84392         * lib/count-one-bits.h: Likewise.
84393         * lib/crc.c: Likewise.
84394         * lib/crc.h: Likewise.
84395         * lib/creat-safer.c: Likewise.
84396         * lib/csharpcomp.c: Likewise.
84397         * lib/csharpcomp.h: Likewise.
84398         * lib/csharpexec.c: Likewise.
84399         * lib/csharpexec.h: Likewise.
84400         * lib/cycle-check.c: Likewise.
84401         * lib/cycle-check.h: Likewise.
84402         * lib/diacrit.c: Likewise.
84403         * lib/diacrit.h: Likewise.
84404         * lib/diffseq.h: Likewise.
84405         * lib/dirchownmod.c: Likewise.
84406         * lib/dirent.in.h: Likewise.
84407         * lib/dirfd.c: Likewise.
84408         * lib/dirfd.h: Likewise.
84409         * lib/dirname.c: Likewise.
84410         * lib/dirname.h: Likewise.
84411         * lib/dummy.c: Likewise.
84412         * lib/dup-safer.c: Likewise.
84413         * lib/dup2.c: Likewise.
84414         * lib/eealloc.h: Likewise.
84415         * lib/error.c: Likewise.
84416         * lib/error.h: Likewise.
84417         * lib/euidaccess.c: Likewise.
84418         * lib/exclude.c: Likewise.
84419         * lib/exclude.h: Likewise.
84420         * lib/execute.c: Likewise.
84421         * lib/execute.h: Likewise.
84422         * lib/exitfail.c: Likewise.
84423         * lib/exitfail.h: Likewise.
84424         * lib/expl.c: Likewise.
84425         * lib/fatal-signal.c: Likewise.
84426         * lib/fatal-signal.h: Likewise.
84427         * lib/fbufmode.c: Likewise.
84428         * lib/fbufmode.h: Likewise.
84429         * lib/fchdir.c: Likewise.
84430         * lib/fchmodat.c: Likewise.
84431         * lib/fchownat.c: Likewise.
84432         * lib/fcntl--.h: Likewise.
84433         * lib/fcntl-safer.h: Likewise.
84434         * lib/fcntl.in.h: Likewise.
84435         * lib/fd-safer.c: Likewise.
84436         * lib/fflush.c: Likewise.
84437         * lib/file-has-acl.c: Likewise.
84438         * lib/file-set.c: Likewise.
84439         * lib/file-type.c: Likewise.
84440         * lib/file-type.h: Likewise.
84441         * lib/fileblocks.c: Likewise.
84442         * lib/filemode.c: Likewise.
84443         * lib/filemode.h: Likewise.
84444         * lib/filename.h: Likewise.
84445         * lib/filenamecat.c: Likewise.
84446         * lib/filenamecat.h: Likewise.
84447         * lib/findprog.c: Likewise.
84448         * lib/findprog.h: Likewise.
84449         * lib/float.in.h: Likewise.
84450         * lib/floor.c: Likewise.
84451         * lib/floorf.c: Likewise.
84452         * lib/floorl.c: Likewise.
84453         * lib/fopen-safer.c: Likewise.
84454         * lib/fopen.c: Likewise.
84455         * lib/fpending.c: Likewise.
84456         * lib/fpending.h: Likewise.
84457         * lib/fprintf.c: Likewise.
84458         * lib/fprintftime.h: Likewise.
84459         * lib/fpucw.h: Likewise.
84460         * lib/fpurge.c: Likewise.
84461         * lib/fpurge.h: Likewise.
84462         * lib/freadable.c: Likewise.
84463         * lib/freadable.h: Likewise.
84464         * lib/freadahead.c: Likewise.
84465         * lib/freadahead.h: Likewise.
84466         * lib/freading.c: Likewise.
84467         * lib/freading.h: Likewise.
84468         * lib/free.c: Likewise.
84469         * lib/freopen.c: Likewise.
84470         * lib/frexp.c: Likewise.
84471         * lib/frexpl.c: Likewise.
84472         * lib/fseek.c: Likewise.
84473         * lib/fseterr.c: Likewise.
84474         * lib/fseterr.h: Likewise.
84475         * lib/fstatat.c: Likewise.
84476         * lib/fstrcmp.c: Likewise.
84477         * lib/fstrcmp.h: Likewise.
84478         * lib/fsusage.c: Likewise.
84479         * lib/fsusage.h: Likewise.
84480         * lib/ftell.c: Likewise.
84481         * lib/ftello.c: Likewise.
84482         * lib/fts-cycle.c: Likewise.
84483         * lib/fts.c: Likewise.
84484         * lib/fts_.h: Likewise.
84485         * lib/full-read.c: Likewise.
84486         * lib/full-read.h: Likewise.
84487         * lib/full-write.c: Likewise.
84488         * lib/full-write.h: Likewise.
84489         * lib/fwritable.c: Likewise.
84490         * lib/fwritable.h: Likewise.
84491         * lib/fwriteerror.c: Likewise.
84492         * lib/fwriteerror.h: Likewise.
84493         * lib/fwriting.c: Likewise.
84494         * lib/fwriting.h: Likewise.
84495         * lib/gcd.c: Likewise.
84496         * lib/gcd.h: Likewise.
84497         * lib/getcwd.c: Likewise.
84498         * lib/getdate.h: Likewise.
84499         * lib/getdate.y: Likewise.
84500         * lib/getdomainname.c: Likewise.
84501         * lib/getdomainname.h: Likewise.
84502         * lib/getgroups.c: Likewise.
84503         * lib/gethostname.c: Likewise.
84504         * lib/gethrxtime.c: Likewise.
84505         * lib/gethrxtime.h: Likewise.
84506         * lib/getloadavg.c: Likewise.
84507         * lib/getndelim2.c: Likewise.
84508         * lib/getndelim2.h: Likewise.
84509         * lib/getnline.c: Likewise.
84510         * lib/getnline.h: Likewise.
84511         * lib/getopt.c: Likewise.
84512         * lib/getopt.in.h: Likewise.
84513         * lib/getopt1.c: Likewise.
84514         * lib/getopt_int.h: Likewise.
84515         * lib/getpagesize.h: Likewise.
84516         * lib/getsubopt.c: Likewise.
84517         * lib/gettime.c: Likewise.
84518         * lib/getugroups.c: Likewise.
84519         * lib/getugroups.h: Likewise.
84520         * lib/getusershell.c: Likewise.
84521         * lib/gl_anyavltree_list1.h: Likewise.
84522         * lib/gl_anyavltree_list2.h: Likewise.
84523         * lib/gl_anyhash_list1.h: Likewise.
84524         * lib/gl_anyhash_list2.h: Likewise.
84525         * lib/gl_anylinked_list1.h: Likewise.
84526         * lib/gl_anylinked_list2.h: Likewise.
84527         * lib/gl_anyrbtree_list1.h: Likewise.
84528         * lib/gl_anyrbtree_list2.h: Likewise.
84529         * lib/gl_anytree_list1.h: Likewise.
84530         * lib/gl_anytree_list2.h: Likewise.
84531         * lib/gl_anytree_oset.h: Likewise.
84532         * lib/gl_anytreehash_list1.h: Likewise.
84533         * lib/gl_anytreehash_list2.h: Likewise.
84534         * lib/gl_array_list.c: Likewise.
84535         * lib/gl_array_list.h: Likewise.
84536         * lib/gl_array_oset.c: Likewise.
84537         * lib/gl_array_oset.h: Likewise.
84538         * lib/gl_avltree_list.c: Likewise.
84539         * lib/gl_avltree_list.h: Likewise.
84540         * lib/gl_avltree_oset.c: Likewise.
84541         * lib/gl_avltree_oset.h: Likewise.
84542         * lib/gl_avltreehash_list.c: Likewise.
84543         * lib/gl_avltreehash_list.h: Likewise.
84544         * lib/gl_carray_list.c: Likewise.
84545         * lib/gl_carray_list.h: Likewise.
84546         * lib/gl_linked_list.c: Likewise.
84547         * lib/gl_linked_list.h: Likewise.
84548         * lib/gl_linkedhash_list.c: Likewise.
84549         * lib/gl_linkedhash_list.h: Likewise.
84550         * lib/gl_list.c: Likewise.
84551         * lib/gl_list.h: Likewise.
84552         * lib/gl_oset.c: Likewise.
84553         * lib/gl_oset.h: Likewise.
84554         * lib/gl_rbtree_list.c: Likewise.
84555         * lib/gl_rbtree_list.h: Likewise.
84556         * lib/gl_rbtree_oset.c: Likewise.
84557         * lib/gl_rbtree_oset.h: Likewise.
84558         * lib/gl_rbtreehash_list.c: Likewise.
84559         * lib/gl_rbtreehash_list.h: Likewise.
84560         * lib/gl_sublist.c: Likewise.
84561         * lib/gl_sublist.h: Likewise.
84562         * lib/group-member.c: Likewise.
84563         * lib/group-member.h: Likewise.
84564         * lib/hard-locale.c: Likewise.
84565         * lib/hard-locale.h: Likewise.
84566         * lib/hash-pjw.c: Likewise.
84567         * lib/hash-pjw.h: Likewise.
84568         * lib/hash-triple.c: Likewise.
84569         * lib/hash.c: Likewise.
84570         * lib/hash.h: Likewise.
84571         * lib/human.c: Likewise.
84572         * lib/human.h: Likewise.
84573         * lib/i-ring.c: Likewise.
84574         * lib/i-ring.h: Likewise.
84575         * lib/idcache.c: Likewise.
84576         * lib/imaxabs.c: Likewise.
84577         * lib/imaxdiv.c: Likewise.
84578         * lib/inet_pton.c: Likewise.
84579         * lib/inet_pton.h: Likewise.
84580         * lib/intprops.h: Likewise.
84581         * lib/inttostr.c: Likewise.
84582         * lib/inttostr.h: Likewise.
84583         * lib/inttypes.in.h: Likewise.
84584         * lib/isapipe.c: Likewise.
84585         * lib/isdir.c: Likewise.
84586         * lib/isnan.c: Likewise.
84587         * lib/isnan.h: Likewise.
84588         * lib/isnanf.c: Likewise.
84589         * lib/isnanf.h: Likewise.
84590         * lib/isnanl-nolibm.h: Likewise.
84591         * lib/isnanl.c: Likewise.
84592         * lib/isnanl.h: Likewise.
84593         * lib/javacomp.c: Likewise.
84594         * lib/javacomp.h: Likewise.
84595         * lib/javaexec.c: Likewise.
84596         * lib/javaexec.h: Likewise.
84597         * lib/javaversion.c: Likewise.
84598         * lib/javaversion.h: Likewise.
84599         * lib/javaversion.java: Likewise.
84600         * lib/lbrkprop.h: Likewise.
84601         * lib/lchmod.h: Likewise.
84602         * lib/lchown.c: Likewise.
84603         * lib/ldexpl.c: Likewise.
84604         * lib/linebreak.c: Likewise.
84605         * lib/linebreak.h: Likewise.
84606         * lib/linebuffer.c: Likewise.
84607         * lib/linebuffer.h: Likewise.
84608         * lib/locale.in.h: Likewise.
84609         * lib/logl.c: Likewise.
84610         * lib/long-options.c: Likewise.
84611         * lib/long-options.h: Likewise.
84612         * lib/lstat.c: Likewise.
84613         * lib/lstat.h: Likewise.
84614         * lib/math.in.h: Likewise.
84615         * lib/mbchar.c: Likewise.
84616         * lib/mbchar.h: Likewise.
84617         * lib/mbfile.h: Likewise.
84618         * lib/mbiter.h: Likewise.
84619         * lib/mbscasecmp.c: Likewise.
84620         * lib/mbscasestr.c: Likewise.
84621         * lib/mbschr.c: Likewise.
84622         * lib/mbscspn.c: Likewise.
84623         * lib/mbslen.c: Likewise.
84624         * lib/mbsncasecmp.c: Likewise.
84625         * lib/mbsnlen.c: Likewise.
84626         * lib/mbspbrk.c: Likewise.
84627         * lib/mbspcasecmp.c: Likewise.
84628         * lib/mbsrchr.c: Likewise.
84629         * lib/mbssep.c: Likewise.
84630         * lib/mbsspn.c: Likewise.
84631         * lib/mbsstr.c: Likewise.
84632         * lib/mbstok_r.c: Likewise.
84633         * lib/mbswidth.c: Likewise.
84634         * lib/mbswidth.h: Likewise.
84635         * lib/mbuiter.h: Likewise.
84636         * lib/memcasecmp.c: Likewise.
84637         * lib/memcasecmp.h: Likewise.
84638         * lib/memchr.c: Likewise.
84639         * lib/memcmp.c: Likewise.
84640         * lib/memcoll.c: Likewise.
84641         * lib/memcoll.h: Likewise.
84642         * lib/memcpy.c: Likewise.
84643         * lib/memrchr.c: Likewise.
84644         * lib/mkancesdirs.c: Likewise.
84645         * lib/mkdir-p.c: Likewise.
84646         * lib/mkdir-p.h: Likewise.
84647         * lib/mkdir.c: Likewise.
84648         * lib/mkdirat.c: Likewise.
84649         * lib/mkdtemp.c: Likewise.
84650         * lib/mkstemp-safer.c: Likewise.
84651         * lib/mkstemp.c: Likewise.
84652         * lib/modechange.c: Likewise.
84653         * lib/modechange.h: Likewise.
84654         * lib/mountlist.c: Likewise.
84655         * lib/mountlist.h: Likewise.
84656         * lib/mpsort.c: Likewise.
84657         * lib/nanosleep.c: Likewise.
84658         * lib/obstack.c: Likewise.
84659         * lib/obstack.h: Likewise.
84660         * lib/open-safer.c: Likewise.
84661         * lib/open.c: Likewise.
84662         * lib/openat-die.c: Likewise.
84663         * lib/openat-priv.h: Likewise.
84664         * lib/openat-proc.c: Likewise.
84665         * lib/openat.c: Likewise.
84666         * lib/openat.h: Likewise.
84667         * lib/pagealign_alloc.c: Likewise.
84668         * lib/pagealign_alloc.h: Likewise.
84669         * lib/physmem.c: Likewise.
84670         * lib/physmem.h: Likewise.
84671         * lib/pipe-safer.c: Likewise.
84672         * lib/pipe.c: Likewise.
84673         * lib/pipe.h: Likewise.
84674         * lib/posixtm.c: Likewise.
84675         * lib/posixtm.h: Likewise.
84676         * lib/posixver.c: Likewise.
84677         * lib/printf-frexp.c: Likewise.
84678         * lib/printf-frexp.h: Likewise.
84679         * lib/printf-frexpl.c: Likewise.
84680         * lib/printf-frexpl.h: Likewise.
84681         * lib/printf.c: Likewise.
84682         * lib/progname.c: Likewise.
84683         * lib/progname.h: Likewise.
84684         * lib/progreloc.c: Likewise.
84685         * lib/putenv.c: Likewise.
84686         * lib/quote.c: Likewise.
84687         * lib/quote.h: Likewise.
84688         * lib/quotearg.c: Likewise.
84689         * lib/quotearg.h: Likewise.
84690         * lib/raise.c: Likewise.
84691         * lib/readline.c: Likewise.
84692         * lib/readline.h: Likewise.
84693         * lib/readlink.c: Likewise.
84694         * lib/readtokens.c: Likewise.
84695         * lib/readtokens.h: Likewise.
84696         * lib/readtokens0.c: Likewise.
84697         * lib/readtokens0.h: Likewise.
84698         * lib/readutmp.c: Likewise.
84699         * lib/readutmp.h: Likewise.
84700         * lib/realloc.c: Likewise.
84701         * lib/relocwrapper.c: Likewise.
84702         * lib/rename-dest-slash.c: Likewise.
84703         * lib/rename.c: Likewise.
84704         * lib/rmdir.c: Likewise.
84705         * lib/rpmatch.c: Likewise.
84706         * lib/safe-read.c: Likewise.
84707         * lib/safe-read.h: Likewise.
84708         * lib/safe-write.c: Likewise.
84709         * lib/safe-write.h: Likewise.
84710         * lib/same-inode.h: Likewise.
84711         * lib/same.c: Likewise.
84712         * lib/same.h: Likewise.
84713         * lib/save-cwd.c: Likewise.
84714         * lib/save-cwd.h: Likewise.
84715         * lib/savedir.c: Likewise.
84716         * lib/savedir.h: Likewise.
84717         * lib/savewd.c: Likewise.
84718         * lib/savewd.h: Likewise.
84719         * lib/search.in.h: Likewise.
84720         * lib/setenv.c: Likewise.
84721         * lib/setenv.h: Likewise.
84722         * lib/settime.c: Likewise.
84723         * lib/sh-quote.c: Likewise.
84724         * lib/sh-quote.h: Likewise.
84725         * lib/sig2str.c: Likewise.
84726         * lib/sig2str.h: Likewise.
84727         * lib/signal.in.h: Likewise.
84728         * lib/signbitd.c: Likewise.
84729         * lib/signbitf.c: Likewise.
84730         * lib/signbitl.c: Likewise.
84731         * lib/sigprocmask.c: Likewise.
84732         * lib/sincosl.c: Likewise.
84733         * lib/sleep.c: Likewise.
84734         * lib/sprintf.c: Likewise.
84735         * lib/sqrtl.c: Likewise.
84736         * lib/stat-time.h: Likewise.
84737         * lib/stdio--.h: Likewise.
84738         * lib/stdio-safer.h: Likewise.
84739         * lib/stdlib--.h: Likewise.
84740         * lib/stdlib-safer.h: Likewise.
84741         * lib/stdlib.in.h: Likewise.
84742         * lib/stpcpy.c: Likewise.
84743         * lib/stpncpy.c: Likewise.
84744         * lib/strchrnul.c: Likewise.
84745         * lib/strcspn.c: Likewise.
84746         * lib/strerror.c: Likewise.
84747         * lib/strftime.c: Likewise.
84748         * lib/strftime.h: Likewise.
84749         * lib/striconveh.c: Likewise.
84750         * lib/striconveh.h: Likewise.
84751         * lib/striconveha.c: Likewise.
84752         * lib/striconveha.h: Likewise.
84753         * lib/stripslash.c: Likewise.
84754         * lib/strnlen1.c: Likewise.
84755         * lib/strnlen1.h: Likewise.
84756         * lib/strtod.c: Likewise.
84757         * lib/strtoimax.c: Likewise.
84758         * lib/strtok_r.c: Likewise.
84759         * lib/strtol.c: Likewise.
84760         * lib/strtoll.c: Likewise.
84761         * lib/strtoul.c: Likewise.
84762         * lib/strtoull.c: Likewise.
84763         * lib/sysexits.in.h: Likewise.
84764         * lib/tempname.c: Likewise.
84765         * lib/tempname.h: Likewise.
84766         * lib/timespec.h: Likewise.
84767         * lib/tls.c: Likewise.
84768         * lib/tls.h: Likewise.
84769         * lib/tmpdir.c: Likewise.
84770         * lib/tmpdir.h: Likewise.
84771         * lib/tmpfile-safer.c: Likewise.
84772         * lib/tmpfile.c: Likewise.
84773         * lib/trigl.c: Likewise.
84774         * lib/trigl.h: Likewise.
84775         * lib/trim.c: Likewise.
84776         * lib/trim.h: Likewise.
84777         * lib/trunc.c: Likewise.
84778         * lib/truncf.c: Likewise.
84779         * lib/truncl.c: Likewise.
84780         * lib/tsearch.c: Likewise.
84781         * lib/unicodeio.c: Likewise.
84782         * lib/unicodeio.h: Likewise.
84783         * lib/unistd--.h: Likewise.
84784         * lib/unistd-safer.h: Likewise.
84785         * lib/unistdio/ulc-fprintf.c: Likewise.
84786         * lib/unistdio/ulc-vfprintf.c: Likewise.
84787         * lib/unlinkdir.c: Likewise.
84788         * lib/unlinkdir.h: Likewise.
84789         * lib/unlocked-io.h: Likewise.
84790         * lib/unsetenv.c: Likewise.
84791         * lib/userspec.c: Likewise.
84792         * lib/utime.c: Likewise.
84793         * lib/utimecmp.c: Likewise.
84794         * lib/utimecmp.h: Likewise.
84795         * lib/utimens.c: Likewise.
84796         * lib/verify.h: Likewise.
84797         * lib/verror.c: Likewise.
84798         * lib/verror.h: Likewise.
84799         * lib/version-etc-fsf.c: Likewise.
84800         * lib/version-etc.c: Likewise.
84801         * lib/version-etc.h: Likewise.
84802         * lib/vfprintf.c: Likewise.
84803         * lib/vprintf.c: Likewise.
84804         * lib/vsprintf.c: Likewise.
84805         * lib/w32spawn.h: Likewise.
84806         * lib/wait-process.c: Likewise.
84807         * lib/wait-process.h: Likewise.
84808         * lib/wcwidth.c: Likewise.
84809         * lib/write-any-file.c: Likewise.
84810         * lib/xalloc-die.c: Likewise.
84811         * lib/xalloc.h: Likewise.
84812         * lib/xasprintf.c: Likewise.
84813         * lib/xgetcwd.c: Likewise.
84814         * lib/xgetcwd.h: Likewise.
84815         * lib/xgetdomainname.c: Likewise.
84816         * lib/xgetdomainname.h: Likewise.
84817         * lib/xgethostname.c: Likewise.
84818         * lib/xmalloc.c: Likewise.
84819         * lib/xmalloca.c: Likewise.
84820         * lib/xmalloca.h: Likewise.
84821         * lib/xmemcoll.c: Likewise.
84822         * lib/xnanosleep.c: Likewise.
84823         * lib/xreadlink.c: Likewise.
84824         * lib/xreadlink.h: Likewise.
84825         * lib/xsetenv.c: Likewise.
84826         * lib/xsetenv.h: Likewise.
84827         * lib/xstriconv.c: Likewise.
84828         * lib/xstriconv.h: Likewise.
84829         * lib/xstrndup.c: Likewise.
84830         * lib/xstrndup.h: Likewise.
84831         * lib/xstrtod.c: Likewise.
84832         * lib/xstrtod.h: Likewise.
84833         * lib/xstrtol-error.c: Likewise.
84834         * lib/xstrtol.c: Likewise.
84835         * lib/xstrtol.h: Likewise.
84836         * lib/xtime.h: Likewise.
84837         * lib/xvasprintf.c: Likewise.
84838         * lib/xvasprintf.h: Likewise.
84839         * lib/yesno.c: Likewise.
84840         * lib/yesno.h: Likewise.
84841         * posix-modules: Likewise.
84842         * tests/test-alloca-opt.c: Likewise.
84843         * tests/test-arcfour.c: Likewise.
84844         * tests/test-arctwo.c: Likewise.
84845         * tests/test-argmatch.c: Likewise.
84846         * tests/test-argp-2.sh: Likewise.
84847         * tests/test-argp.c: Likewise.
84848         * tests/test-arpa_inet.c: Likewise.
84849         * tests/test-array_list.c: Likewise.
84850         * tests/test-array_oset.c: Likewise.
84851         * tests/test-atexit.c: Likewise.
84852         * tests/test-avltree_list.c: Likewise.
84853         * tests/test-avltree_oset.c: Likewise.
84854         * tests/test-avltreehash_list.c: Likewise.
84855         * tests/test-base64.c: Likewise.
84856         * tests/test-binary-io.c: Likewise.
84857         * tests/test-byteswap.c: Likewise.
84858         * tests/test-c-ctype.c: Likewise.
84859         * tests/test-c-strcasecmp.c: Likewise.
84860         * tests/test-c-strcasestr.c: Likewise.
84861         * tests/test-c-strncasecmp.c: Likewise.
84862         * tests/test-c-strstr.c: Likewise.
84863         * tests/test-canonicalize-lgpl.c: Likewise.
84864         * tests/test-canonicalize.c: Likewise.
84865         * tests/test-carray_list.c: Likewise.
84866         * tests/test-ceilf.c: Likewise.
84867         * tests/test-ceill.c: Likewise.
84868         * tests/test-count-one-bits.c: Likewise.
84869         * tests/test-crc.c: Likewise.
84870         * tests/test-dirname.c: Likewise.
84871         * tests/test-fbufmode.c: Likewise.
84872         * tests/test-fcntl.c: Likewise.
84873         * tests/test-fflush.c: Likewise.
84874         * tests/test-floorf.c: Likewise.
84875         * tests/test-floorl.c: Likewise.
84876         * tests/test-fopen.c: Likewise.
84877         * tests/test-fprintf-posix.c: Likewise.
84878         * tests/test-fprintf-posix.h: Likewise.
84879         * tests/test-fpurge.c: Likewise.
84880         * tests/test-freadable.c: Likewise.
84881         * tests/test-freadahead.c: Likewise.
84882         * tests/test-freading.c: Likewise.
84883         * tests/test-freopen.c: Likewise.
84884         * tests/test-frexp.c: Likewise.
84885         * tests/test-frexpl.c: Likewise.
84886         * tests/test-fseek.c: Likewise.
84887         * tests/test-fseeko.c: Likewise.
84888         * tests/test-fseterr.c: Likewise.
84889         * tests/test-fstrcmp.c: Likewise.
84890         * tests/test-ftell.c: Likewise.
84891         * tests/test-ftello.c: Likewise.
84892         * tests/test-fwritable.c: Likewise.
84893         * tests/test-fwriting.c: Likewise.
84894         * tests/test-getaddrinfo.c: Likewise.
84895         * tests/test-getpass.c: Likewise.
84896         * tests/test-gettimeofday.c: Likewise.
84897         * tests/test-hmac-md5.c: Likewise.
84898         * tests/test-hmac-sha1.c: Likewise.
84899         * tests/test-iconv.c: Likewise.
84900         * tests/test-iconvme.c: Likewise.
84901         * tests/test-inttypes.c: Likewise.
84902         * tests/test-isnan.c: Likewise.
84903         * tests/test-isnanf.c: Likewise.
84904         * tests/test-isnanl-nolibm.c: Likewise.
84905         * tests/test-isnanl.c: Likewise.
84906         * tests/test-isnanl.h: Likewise.
84907         * tests/test-ldexpl.c: Likewise.
84908         * tests/test-linked_list.c: Likewise.
84909         * tests/test-linkedhash_list.c: Likewise.
84910         * tests/test-locale.c: Likewise.
84911         * tests/test-localename.c: Likewise.
84912         * tests/test-lock.c: Likewise.
84913         * tests/test-lseek.c: Likewise.
84914         * tests/test-malloca.c: Likewise.
84915         * tests/test-math.c: Likewise.
84916         * tests/test-mbscasecmp.c: Likewise.
84917         * tests/test-mbscasestr1.c: Likewise.
84918         * tests/test-mbscasestr2.c: Likewise.
84919         * tests/test-mbscasestr3.c: Likewise.
84920         * tests/test-mbscasestr4.c: Likewise.
84921         * tests/test-mbschr.c: Likewise.
84922         * tests/test-mbscspn.c: Likewise.
84923         * tests/test-mbsncasecmp.c: Likewise.
84924         * tests/test-mbspbrk.c: Likewise.
84925         * tests/test-mbspcasecmp.c: Likewise.
84926         * tests/test-mbsrchr.c: Likewise.
84927         * tests/test-mbsspn.c: Likewise.
84928         * tests/test-mbsstr1.c: Likewise.
84929         * tests/test-mbsstr2.c: Likewise.
84930         * tests/test-mbsstr3.c: Likewise.
84931         * tests/test-md5.c: Likewise.
84932         * tests/test-memmem.c: Likewise.
84933         * tests/test-netinet_in.c: Likewise.
84934         * tests/test-open.c: Likewise.
84935         * tests/test-printf-frexp.c: Likewise.
84936         * tests/test-printf-frexpl.c: Likewise.
84937         * tests/test-printf-posix.c: Likewise.
84938         * tests/test-printf-posix.h: Likewise.
84939         * tests/test-rbtree_list.c: Likewise.
84940         * tests/test-rbtree_oset.c: Likewise.
84941         * tests/test-rbtreehash_list.c: Likewise.
84942         * tests/test-read-file.c: Likewise.
84943         * tests/test-rijndael.c: Likewise.
84944         * tests/test-search.c: Likewise.
84945         * tests/test-signbit.c: Likewise.
84946         * tests/test-sleep.c: Likewise.
84947         * tests/test-snprintf-posix.c: Likewise.
84948         * tests/test-snprintf-posix.h: Likewise.
84949         * tests/test-snprintf.c: Likewise.
84950         * tests/test-sprintf-posix.c: Likewise.
84951         * tests/test-sprintf-posix.h: Likewise.
84952         * tests/test-stat-time.c: Likewise.
84953         * tests/test-stdbool.c: Likewise.
84954         * tests/test-stdint.c: Likewise.
84955         * tests/test-stdio.c: Likewise.
84956         * tests/test-stdlib.c: Likewise.
84957         * tests/test-stpncpy.c: Likewise.
84958         * tests/test-strcasestr.c: Likewise.
84959         * tests/test-striconv.c: Likewise.
84960         * tests/test-striconveh.c: Likewise.
84961         * tests/test-striconveha.c: Likewise.
84962         * tests/test-string.c: Likewise.
84963         * tests/test-sys_select.c: Likewise.
84964         * tests/test-sys_socket.c: Likewise.
84965         * tests/test-sys_stat.c: Likewise.
84966         * tests/test-sys_time.c: Likewise.
84967         * tests/test-sysexits.c: Likewise.
84968         * tests/test-time.c: Likewise.
84969         * tests/test-tls.c: Likewise.
84970         * tests/test-trunc.c: Likewise.
84971         * tests/test-truncf.c: Likewise.
84972         * tests/test-truncl.c: Likewise.
84973         * tests/test-unistd.c: Likewise.
84974         * tests/test-vasnprintf-posix.c: Likewise.
84975         * tests/test-vasnprintf-posix2.c: Likewise.
84976         * tests/test-vasnprintf.c: Likewise.
84977         * tests/test-vasprintf-posix.c: Likewise.
84978         * tests/test-vasprintf.c: Likewise.
84979         * tests/test-verify.c: Likewise.
84980         * tests/test-vfprintf-posix.c: Likewise.
84981         * tests/test-vprintf-posix.c: Likewise.
84982         * tests/test-vsnprintf-posix.c: Likewise.
84983         * tests/test-vsnprintf.c: Likewise.
84984         * tests/test-vsprintf-posix.c: Likewise.
84985         * tests/test-wchar.c: Likewise.
84986         * tests/test-wctype.c: Likewise.
84987         * tests/test-wcwidth.c: Likewise.
84988         * tests/test-xstrtol.c: Likewise.
84989         * tests/test-xvasprintf.c: Likewise.
84990         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
84991         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
84992         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
84993         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
84994         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
84995         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
84996         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
84997         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
84998         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
84999         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
85000         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85001         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85002         * tests/uniname/test-uninames.c: Likewise.
85003         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
85004         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
85005         * tests/unistdio/test-u16-printf1.h: Likewise.
85006         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
85007         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
85008         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
85009         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
85010         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
85011         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
85012         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
85013         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
85014         * tests/unistdio/test-u32-printf1.h: Likewise.
85015         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
85016         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
85017         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
85018         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
85019         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
85020         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
85021         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
85022         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
85023         * tests/unistdio/test-u8-printf1.h: Likewise.
85024         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
85025         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
85026         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
85027         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
85028         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
85029         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
85030         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
85031         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
85032         * tests/unistdio/test-ulc-printf1.h: Likewise.
85033         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
85034         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
85035         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
85036         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
85037         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
85038         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
85039         * tests/uniwidth/test-u16-strwidth.c: Likewise.
85040         * tests/uniwidth/test-u16-width.c: Likewise.
85041         * tests/uniwidth/test-u32-strwidth.c: Likewise.
85042         * tests/uniwidth/test-u32-width.c: Likewise.
85043         * tests/uniwidth/test-u8-strwidth.c: Likewise.
85044         * tests/uniwidth/test-u8-width.c: Likewise.
85045         * tests/uniwidth/test-uc_width.c: Likewise.
85046         * config/srclist-update: Likewise.
85047         (fixlicense): Update to GPLv3+.
85049         Change copyright notice from LGPLv2.1+ to LGPLv3+.
85050         * tests/test-tsearch.c: Change copyright notice.
85052         Change copyright notice from LGPLv2.0+ to LGPLv3+.
85053         * lib/c-strcaseeq.h: Change copyright notice.
85054         * lib/streq.h: Likewise.
85055         * lib/uniconv.h: Likewise.
85056         * lib/uniconv/u-conv-from-enc.h: Likewise.
85057         * lib/uniconv/u-conv-to-enc.h: Likewise.
85058         * lib/uniconv/u-strconv-from-enc.h: Likewise.
85059         * lib/uniconv/u-strconv-to-enc.h: Likewise.
85060         * lib/uniconv/u16-conv-from-enc.c: Likewise.
85061         * lib/uniconv/u16-conv-to-enc.c: Likewise.
85062         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
85063         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
85064         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
85065         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
85066         * lib/uniconv/u32-conv-from-enc.c: Likewise.
85067         * lib/uniconv/u32-conv-to-enc.c: Likewise.
85068         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
85069         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
85070         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
85071         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
85072         * lib/uniconv/u8-conv-from-enc.c: Likewise.
85073         * lib/uniconv/u8-conv-to-enc.c: Likewise.
85074         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
85075         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
85076         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
85077         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
85078         * lib/uniname.h: Likewise.
85079         * lib/uniname/uniname.c: Likewise.
85080         * lib/unistdio.h: Likewise.
85081         * lib/unistdio/u-asnprintf.h: Likewise.
85082         * lib/unistdio/u-asprintf.h: Likewise.
85083         * lib/unistdio/u-printf-args.c: Likewise.
85084         * lib/unistdio/u-printf-args.h: Likewise.
85085         * lib/unistdio/u-printf-parse.h: Likewise.
85086         * lib/unistdio/u-snprintf.h: Likewise.
85087         * lib/unistdio/u-sprintf.h: Likewise.
85088         * lib/unistdio/u-vasprintf.h: Likewise.
85089         * lib/unistdio/u-vsnprintf.h: Likewise.
85090         * lib/unistdio/u-vsprintf.h: Likewise.
85091         * lib/unistdio/u16-asnprintf.c: Likewise.
85092         * lib/unistdio/u16-asprintf.c: Likewise.
85093         * lib/unistdio/u16-printf-parse.c: Likewise.
85094         * lib/unistdio/u16-snprintf.c: Likewise.
85095         * lib/unistdio/u16-sprintf.c: Likewise.
85096         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
85097         * lib/unistdio/u16-u16-asprintf.c: Likewise.
85098         * lib/unistdio/u16-u16-snprintf.c: Likewise.
85099         * lib/unistdio/u16-u16-sprintf.c: Likewise.
85100         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
85101         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
85102         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
85103         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
85104         * lib/unistdio/u16-vasnprintf.c: Likewise.
85105         * lib/unistdio/u16-vasprintf.c: Likewise.
85106         * lib/unistdio/u16-vsnprintf.c: Likewise.
85107         * lib/unistdio/u16-vsprintf.c: Likewise.
85108         * lib/unistdio/u32-asnprintf.c: Likewise.
85109         * lib/unistdio/u32-asprintf.c: Likewise.
85110         * lib/unistdio/u32-printf-parse.c: Likewise.
85111         * lib/unistdio/u32-snprintf.c: Likewise.
85112         * lib/unistdio/u32-sprintf.c: Likewise.
85113         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
85114         * lib/unistdio/u32-u32-asprintf.c: Likewise.
85115         * lib/unistdio/u32-u32-snprintf.c: Likewise.
85116         * lib/unistdio/u32-u32-sprintf.c: Likewise.
85117         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
85118         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
85119         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
85120         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
85121         * lib/unistdio/u32-vasnprintf.c: Likewise.
85122         * lib/unistdio/u32-vasprintf.c: Likewise.
85123         * lib/unistdio/u32-vsnprintf.c: Likewise.
85124         * lib/unistdio/u32-vsprintf.c: Likewise.
85125         * lib/unistdio/u8-asnprintf.c: Likewise.
85126         * lib/unistdio/u8-asprintf.c: Likewise.
85127         * lib/unistdio/u8-printf-parse.c: Likewise.
85128         * lib/unistdio/u8-snprintf.c: Likewise.
85129         * lib/unistdio/u8-sprintf.c: Likewise.
85130         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
85131         * lib/unistdio/u8-u8-asprintf.c: Likewise.
85132         * lib/unistdio/u8-u8-snprintf.c: Likewise.
85133         * lib/unistdio/u8-u8-sprintf.c: Likewise.
85134         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
85135         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
85136         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
85137         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
85138         * lib/unistdio/u8-vasnprintf.c: Likewise.
85139         * lib/unistdio/u8-vasprintf.c: Likewise.
85140         * lib/unistdio/u8-vsnprintf.c: Likewise.
85141         * lib/unistdio/u8-vsprintf.c: Likewise.
85142         * lib/unistdio/ulc-asnprintf.c: Likewise.
85143         * lib/unistdio/ulc-asprintf.c: Likewise.
85144         * lib/unistdio/ulc-printf-parse.c: Likewise.
85145         * lib/unistdio/ulc-snprintf.c: Likewise.
85146         * lib/unistdio/ulc-sprintf.c: Likewise.
85147         * lib/unistdio/ulc-vasnprintf.c: Likewise.
85148         * lib/unistdio/ulc-vasprintf.c: Likewise.
85149         * lib/unistdio/ulc-vsnprintf.c: Likewise.
85150         * lib/unistdio/ulc-vsprintf.c: Likewise.
85151         * lib/unistr.h: Likewise.
85152         * lib/unistr/u-cpy-alloc.h: Likewise.
85153         * lib/unistr/u-cpy.h: Likewise.
85154         * lib/unistr/u-endswith.h: Likewise.
85155         * lib/unistr/u-move.h: Likewise.
85156         * lib/unistr/u-set.h: Likewise.
85157         * lib/unistr/u-startswith.h: Likewise.
85158         * lib/unistr/u-stpcpy.h: Likewise.
85159         * lib/unistr/u-stpncpy.h: Likewise.
85160         * lib/unistr/u-strcat.h: Likewise.
85161         * lib/unistr/u-strcpy.h: Likewise.
85162         * lib/unistr/u-strcspn.h: Likewise.
85163         * lib/unistr/u-strdup.h: Likewise.
85164         * lib/unistr/u-strlen.h: Likewise.
85165         * lib/unistr/u-strncat.h: Likewise.
85166         * lib/unistr/u-strncpy.h: Likewise.
85167         * lib/unistr/u-strnlen.h: Likewise.
85168         * lib/unistr/u-strpbrk.h: Likewise.
85169         * lib/unistr/u-strspn.h: Likewise.
85170         * lib/unistr/u-strstr.h: Likewise.
85171         * lib/unistr/u-strtok.h: Likewise.
85172         * lib/unistr/u16-check.c: Likewise.
85173         * lib/unistr/u16-chr.c: Likewise.
85174         * lib/unistr/u16-cmp.c: Likewise.
85175         * lib/unistr/u16-cpy-alloc.c: Likewise.
85176         * lib/unistr/u16-cpy.c: Likewise.
85177         * lib/unistr/u16-endswith.c: Likewise.
85178         * lib/unistr/u16-mblen.c: Likewise.
85179         * lib/unistr/u16-mbsnlen.c: Likewise.
85180         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85181         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85182         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85183         * lib/unistr/u16-mbtouc.c: Likewise.
85184         * lib/unistr/u16-mbtoucr.c: Likewise.
85185         * lib/unistr/u16-move.c: Likewise.
85186         * lib/unistr/u16-next.c: Likewise.
85187         * lib/unistr/u16-prev.c: Likewise.
85188         * lib/unistr/u16-set.c: Likewise.
85189         * lib/unistr/u16-startswith.c: Likewise.
85190         * lib/unistr/u16-stpcpy.c: Likewise.
85191         * lib/unistr/u16-stpncpy.c: Likewise.
85192         * lib/unistr/u16-strcat.c: Likewise.
85193         * lib/unistr/u16-strchr.c: Likewise.
85194         * lib/unistr/u16-strcmp.c: Likewise.
85195         * lib/unistr/u16-strcpy.c: Likewise.
85196         * lib/unistr/u16-strcspn.c: Likewise.
85197         * lib/unistr/u16-strdup.c: Likewise.
85198         * lib/unistr/u16-strlen.c: Likewise.
85199         * lib/unistr/u16-strmblen.c: Likewise.
85200         * lib/unistr/u16-strmbtouc.c: Likewise.
85201         * lib/unistr/u16-strncat.c: Likewise.
85202         * lib/unistr/u16-strncmp.c: Likewise.
85203         * lib/unistr/u16-strncpy.c: Likewise.
85204         * lib/unistr/u16-strnlen.c: Likewise.
85205         * lib/unistr/u16-strpbrk.c: Likewise.
85206         * lib/unistr/u16-strrchr.c: Likewise.
85207         * lib/unistr/u16-strspn.c: Likewise.
85208         * lib/unistr/u16-strstr.c: Likewise.
85209         * lib/unistr/u16-strtok.c: Likewise.
85210         * lib/unistr/u16-to-u32.c: Likewise.
85211         * lib/unistr/u16-to-u8.c: Likewise.
85212         * lib/unistr/u16-uctomb-aux.c: Likewise.
85213         * lib/unistr/u16-uctomb.c: Likewise.
85214         * lib/unistr/u32-check.c: Likewise.
85215         * lib/unistr/u32-chr.c: Likewise.
85216         * lib/unistr/u32-cmp.c: Likewise.
85217         * lib/unistr/u32-cpy-alloc.c: Likewise.
85218         * lib/unistr/u32-cpy.c: Likewise.
85219         * lib/unistr/u32-endswith.c: Likewise.
85220         * lib/unistr/u32-mblen.c: Likewise.
85221         * lib/unistr/u32-mbsnlen.c: Likewise.
85222         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85223         * lib/unistr/u32-mbtouc.c: Likewise.
85224         * lib/unistr/u32-mbtoucr.c: Likewise.
85225         * lib/unistr/u32-move.c: Likewise.
85226         * lib/unistr/u32-next.c: Likewise.
85227         * lib/unistr/u32-prev.c: Likewise.
85228         * lib/unistr/u32-set.c: Likewise.
85229         * lib/unistr/u32-startswith.c: Likewise.
85230         * lib/unistr/u32-stpcpy.c: Likewise.
85231         * lib/unistr/u32-stpncpy.c: Likewise.
85232         * lib/unistr/u32-strcat.c: Likewise.
85233         * lib/unistr/u32-strchr.c: Likewise.
85234         * lib/unistr/u32-strcmp.c: Likewise.
85235         * lib/unistr/u32-strcpy.c: Likewise.
85236         * lib/unistr/u32-strcspn.c: Likewise.
85237         * lib/unistr/u32-strdup.c: Likewise.
85238         * lib/unistr/u32-strlen.c: Likewise.
85239         * lib/unistr/u32-strmblen.c: Likewise.
85240         * lib/unistr/u32-strmbtouc.c: Likewise.
85241         * lib/unistr/u32-strncat.c: Likewise.
85242         * lib/unistr/u32-strncmp.c: Likewise.
85243         * lib/unistr/u32-strncpy.c: Likewise.
85244         * lib/unistr/u32-strnlen.c: Likewise.
85245         * lib/unistr/u32-strpbrk.c: Likewise.
85246         * lib/unistr/u32-strrchr.c: Likewise.
85247         * lib/unistr/u32-strspn.c: Likewise.
85248         * lib/unistr/u32-strstr.c: Likewise.
85249         * lib/unistr/u32-strtok.c: Likewise.
85250         * lib/unistr/u32-to-u16.c: Likewise.
85251         * lib/unistr/u32-to-u8.c: Likewise.
85252         * lib/unistr/u32-uctomb.c: Likewise.
85253         * lib/unistr/u8-check.c: Likewise.
85254         * lib/unistr/u8-chr.c: Likewise.
85255         * lib/unistr/u8-cmp.c: Likewise.
85256         * lib/unistr/u8-cpy-alloc.c: Likewise.
85257         * lib/unistr/u8-cpy.c: Likewise.
85258         * lib/unistr/u8-endswith.c: Likewise.
85259         * lib/unistr/u8-mblen.c: Likewise.
85260         * lib/unistr/u8-mbsnlen.c: Likewise.
85261         * lib/unistr/u8-mbtouc-aux.c: Likewise.
85262         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85263         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85264         * lib/unistr/u8-mbtouc.c: Likewise.
85265         * lib/unistr/u8-mbtoucr.c: Likewise.
85266         * lib/unistr/u8-move.c: Likewise.
85267         * lib/unistr/u8-next.c: Likewise.
85268         * lib/unistr/u8-prev.c: Likewise.
85269         * lib/unistr/u8-set.c: Likewise.
85270         * lib/unistr/u8-startswith.c: Likewise.
85271         * lib/unistr/u8-stpcpy.c: Likewise.
85272         * lib/unistr/u8-stpncpy.c: Likewise.
85273         * lib/unistr/u8-strcat.c: Likewise.
85274         * lib/unistr/u8-strchr.c: Likewise.
85275         * lib/unistr/u8-strcmp.c: Likewise.
85276         * lib/unistr/u8-strcpy.c: Likewise.
85277         * lib/unistr/u8-strcspn.c: Likewise.
85278         * lib/unistr/u8-strdup.c: Likewise.
85279         * lib/unistr/u8-strlen.c: Likewise.
85280         * lib/unistr/u8-strmblen.c: Likewise.
85281         * lib/unistr/u8-strmbtouc.c: Likewise.
85282         * lib/unistr/u8-strncat.c: Likewise.
85283         * lib/unistr/u8-strncmp.c: Likewise.
85284         * lib/unistr/u8-strncpy.c: Likewise.
85285         * lib/unistr/u8-strnlen.c: Likewise.
85286         * lib/unistr/u8-strpbrk.c: Likewise.
85287         * lib/unistr/u8-strrchr.c: Likewise.
85288         * lib/unistr/u8-strspn.c: Likewise.
85289         * lib/unistr/u8-strstr.c: Likewise.
85290         * lib/unistr/u8-strtok.c: Likewise.
85291         * lib/unistr/u8-to-u16.c: Likewise.
85292         * lib/unistr/u8-to-u32.c: Likewise.
85293         * lib/unistr/u8-uctomb-aux.c: Likewise.
85294         * lib/unistr/u8-uctomb.c: Likewise.
85295         * lib/unitypes.h: Likewise.
85296         * lib/uniwidth.h: Likewise.
85297         * lib/uniwidth/cjk.h: Likewise.
85298         * lib/uniwidth/u16-strwidth.c: Likewise.
85299         * lib/uniwidth/u16-width.c: Likewise.
85300         * lib/uniwidth/u32-strwidth.c: Likewise.
85301         * lib/uniwidth/u32-width.c: Likewise.
85302         * lib/uniwidth/u8-strwidth.c: Likewise.
85303         * lib/uniwidth/u8-width.c: Likewise.
85304         * lib/uniwidth/width.c: Likewise.
85306 2007-10-07  Bruno Haible  <bruno@clisp.org>
85308         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85309         The file is still under LGPL (see modules/inttypes).
85311 2007-10-06  Bruno Haible  <bruno@clisp.org>
85313         * modules/trunc (Dependencies): Add 'extensions'.
85314         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85315         Reported by Ben Pfaff <blp@gnu.org>.
85317 2007-10-06  Bruno Haible  <bruno@clisp.org>
85319         * modules/freopen-tests: New file.
85320         * tests/test-freopen.c: New file.
85322         * modules/fopen-tests: New file.
85323         * tests/test-fopen.c: New file.
85325         * modules/fopen: New file.
85326         * lib/fopen.c: New file.
85327         * m4/fopen.m4: New file.
85328         * modules/freopen: New file.
85329         * lib/freopen.c: New file.
85330         * m4/freopen.m4: New file.
85331         * lib/stdio.in.h (fopen, freopen): New declarations.
85332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85333         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85334         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85335         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85336         * doc/functions/fopen.texi: Mention the 'fopen' module.
85337         * doc/functions/freopen.texi: Mention the 'freopen' module.
85339 2007-10-06  Bruno Haible  <bruno@clisp.org>
85341         * modules/open-tests: New file.
85342         * tests/test-open.c: New file.
85344         * modules/open: New file.
85345         * lib/open.c: New file.
85346         * m4/open.m4: New file.
85347         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85348         lib/open.c does.
85349         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85350         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85351         macros.
85352         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85353         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85354         REPLACE_OPEN.
85355         * doc/functions/open.texi: Mention the 'open' module.
85357 2007-10-04  Bruno Haible  <bruno@clisp.org>
85359         * modules/ceill-tests: New file.
85360         * tests/test-ceill.c: New file.
85362         * modules/ceill: New file.
85363         * lib/ceill.c: Replace entire file.
85364         * m4/ceill.m4: New file.
85365         * lib/math.in.h (ceill): Replace declaration.
85366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85367         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85368         * doc/functions/ceill.texi: Mention the 'ceill' module.
85369         * modules/mathl (Files): Remove lib/ceill.c.
85370         (Depends-on): Add ceill.
85372 2007-10-04  Bruno Haible  <bruno@clisp.org>
85374         * modules/ceilf-tests: New file.
85375         * tests/test-ceilf.c: New file.
85377         * modules/ceilf: New file.
85378         * lib/ceil.c: New file.
85379         * lib/ceilf.c: New file.
85380         * m4/ceilf.m4: New file.
85381         * lib/math.in.h (ceilf): New declaration.
85382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85383         HAVE_DECL_CEILF.
85384         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85385         HAVE_DECL_CEILF.
85386         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85388 2007-10-04  Bruno Haible  <bruno@clisp.org>
85390         * modules/floorl-tests: New file.
85391         * tests/test-floorl.c: New file.
85393         * modules/floorl: New file.
85394         * lib/floorl.c: Replace entire file.
85395         * m4/floorl.m4: New file.
85396         * lib/math.in.h (floorl): Replace declaration.
85397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85398         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85399         * doc/functions/floorl.texi: Mention the 'floorl' module.
85400         * modules/mathl (Files): Remove lib/floorl.c.
85401         (Depends-on): Add floorl.
85403 2007-10-04  Bruno Haible  <bruno@clisp.org>
85405         * modules/floorf-tests: New file.
85406         * tests/test-floorf.c: New file.
85408         * modules/floorf: New file.
85409         * lib/floor.c: New file.
85410         * lib/floorf.c: New file.
85411         * m4/floorf.m4: New file.
85412         * lib/math.in.h (floorf): New declaration.
85413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85414         HAVE_DECL_FLOORF.
85415         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85416         HAVE_DECL_FLOORF.
85417         * doc/functions/floorf.texi: Mention the 'floorf' module.
85419 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85420             Bruno Haible  <bruno@clisp.org>
85422         Advertise for the Git server instead of the CVS server.
85423         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85424         repository instead of the CVS one.
85425         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85426         about all VCS systems generically.
85427         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85429 2007-10-04  Bruno Haible  <bruno@clisp.org>
85431         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85432         means.
85433         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85435 2007-10-04  Bruno Haible  <bruno@clisp.org>
85437         * modules/truncl-tests: New file.
85438         * tests/test-truncl.c: New file.
85440         * modules/truncl: New file.
85441         * lib/truncl.c: New file.
85442         * m4/truncl.m4: New file.
85443         * lib/math.in.h (truncl): New declaration.
85444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85445         HAVE_DECL_TRUNCL.
85446         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85447         HAVE_DECL_TRUNCL.
85448         * doc/functions/truncl.texi: Mention the 'truncl' module.
85450 2007-10-04  Bruno Haible  <bruno@clisp.org>
85452         * modules/truncf-tests: New file.
85453         * tests/test-truncf.c: New file.
85455         * modules/truncf: New file.
85456         * lib/trunc.c: Make paramerizable through USE_* macros.
85457         * lib/truncf.c: New file.
85458         * m4/truncf.m4: New file.
85459         * lib/math.in.h (truncf): New declaration.
85460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85461         HAVE_DECL_TRUNCF.
85462         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85463         HAVE_DECL_TRUNCF.
85464         * doc/functions/truncf.texi: Mention the 'truncf' module.
85466 2007-10-03  Bruno Haible  <bruno@clisp.org>
85468         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85469         augmentation also for tests modules.
85470         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85471         * modules/atexit-tests (Makefile.am): Likewise.
85472         * modules/binary-io-tests (Makefile.am): Likewise.
85473         * modules/c-strcase-tests (Makefile.am): Likewise.
85474         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85475         * modules/canonicalize-tests (Makefile.am): Likewise.
85476         * modules/closein-tests (Makefile.am): Likewise.
85477         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85478         * modules/freadahead-tests (Makefile.am): Likewise.
85479         * modules/fseek-tests (Makefile.am): Likewise.
85480         * modules/fseeko-tests (Makefile.am): Likewise.
85481         * modules/ftell-tests (Makefile.am): Likewise.
85482         * modules/ftello-tests (Makefile.am): Likewise.
85483         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85484         * modules/isnanl-tests (Makefile.am): Likewise.
85485         * modules/lseek-tests (Makefile.am): Likewise.
85486         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85487         * modules/mbscasestr-tests (Makefile.am): Likewise.
85488         * modules/mbschr-tests (Makefile.am): Likewise.
85489         * modules/mbscspn-tests (Makefile.am): Likewise.
85490         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85491         * modules/mbspbrk-tests (Makefile.am): Likewise.
85492         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85493         * modules/mbsrchr-tests (Makefile.am): Likewise.
85494         * modules/mbsspn-tests (Makefile.am): Likewise.
85495         * modules/mbsstr-tests (Makefile.am): Likewise.
85496         * modules/printf-posix-tests (Makefile.am): Likewise.
85497         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85498         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85499         * modules/tsearch-tests (Makefile.am): Likewise.
85500         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85501         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85502         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85503         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85504         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85505         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85506         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85507         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85508         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85509         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85510         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85511         * modules/xstrtol-tests (Makefile.am): Likewise.
85512         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85513         * modules/yesno-tests (Makefile.am): Likewise.
85515 2007-10-03  Bruno Haible  <bruno@clisp.org>
85517         * modules/trunc-tests: New file.
85518         * tests/test-trunc.c: New file.
85520         * modules/trunc: New file.
85521         * lib/trunc.c: New file.
85522         * m4/trunc.m4: New file.
85523         * lib/math.in.h (trunc): New declaration.
85524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85525         HAVE_DECL_TRUNC.
85526         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85527         HAVE_DECL_TRUNC.
85528         * doc/functions/trunc.texi: Mention the 'trunc' module.
85530 2007-10-03  Bruno Haible  <bruno@clisp.org>
85532         * tests/test-fpending.c: New file, mostly copied
85533         from coreutils/lib/t-fpending.c.
85534         * modules/fpending-tests: New file.
85536 2007-10-03  Bruno Haible  <bruno@clisp.org>
85538         Port the stdio extensions to QNX (untested).
85539         * lib/fseterr.c (fseterr): Add support for QNX.
85540         * lib/fbufmode.c (fbufmode): Likewise.
85541         * lib/freadable.c (freadable): Likewise.
85542         * lib/fwritable.c (fwritable): Likewise.
85543         * lib/freading.c (freading): Likewise.
85544         * lib/fwriting.c (fwriting): Likewise.
85545         * lib/freadahead.c (freadahed): Likewise.
85546         * lib/fpurge.c (fpurge): Likewise.
85547         * lib/fseeko.c (rpl_fseeko): Likewise.
85549 2007-10-03  Bruno Haible  <bruno@clisp.org>
85550             Jim Meyering  <jim@meyering.net>
85551             Eric Blake  <ebb9@byu.net>
85553         * doc/relocatable.texi: Use @command instead of @program.
85555 2007-10-02  Jim Meyering  <jim@meyering.net>
85557         Perform one more "_.h" -> ".in.h" substitution.
85558         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
85559         instead of unistd_.h here, too.
85561 2007-10-01  Bruno Haible  <bruno@clisp.org>
85563         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
85564         Needed for the alloca-opt module.
85566 2007-09-30  Bruno Haible  <bruno@clisp.org>
85568         * lib/alloca.in.h: Renamed from lib/alloca_.h.
85569         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
85570         alloca_.h.
85571         * lib/argz.in.h: Renamed from lib/argz_.h.
85572         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
85573         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
85574         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
85575         byteswap_.h.
85576         * lib/dirent.in.h: Renamed from lib/dirent_.h.
85577         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
85578         dirent_.h.
85579         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
85580         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
85581         fcntl_.h.
85582         * lib/float.in.h: Renamed from lib/float_.h.
85583         * modules/float (Files, Makefile.am): Use float.in.h instead of
85584         float_.h.
85585         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
85586         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
85587         fnmatch_.h.
85588         * lib/getopt.in.h: Renamed from lib/getopt_.h.
85589         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
85590         getopt_.h.
85591         * lib/glob.in.h: Renamed from lib/glob_.h.
85592         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
85593         * lib/iconv.in.h: Renamed from lib/iconv_.h.
85594         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
85595         iconv_.h.
85596         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
85597         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
85598         inttypes_.h.
85599         * lib/locale.in.h: Renamed from lib/locale_.h.
85600         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
85601         locale_.h.
85602         * lib/math.in.h: Renamed from lib/math_.h.
85603         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
85604         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
85605         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
85606         of netinet_in_.h. Add dependency.
85607         * lib/poll.in.h: Renamed from lib/poll_.h.
85608         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
85609         * lib/search.in.h: Renamed from lib/search_.h.
85610         * modules/search (Files, Makefile.am): Use search.in.h instead of
85611         search_.h.
85612         * lib/signal.in.h: Renamed from lib/signal_.h.
85613         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
85614         _signal.h.
85615         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
85616         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
85617         stdbool_.h.
85618         * lib/stdint.in.h: Renamed from lib/stdint_.h.
85619         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
85620         stdint_.h.
85621         * lib/stdio.in.h: Renamed from lib/stdio_.h.
85622         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
85623         stdio_.h.
85624         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
85625         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
85626         stdlib_.h.
85627         * lib/string.in.h: Renamed from lib/string_.h.
85628         * modules/string (Files, Makefile.am): Use string.in.h instead of
85629         string_.h.
85630         * doc/gnulib-tool.texi (Initial import): Update.
85631         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
85632         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
85633         of sys_select_.h. Add dependency.
85634         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
85635         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
85636         of sys_socket_.h.
85637         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
85638         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
85639         sys_stat_.h.
85640         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
85641         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
85642         sys_time_.h.
85643         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
85644         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
85645         sysexits_.h.
85646         * lib/time.in.h: Renamed from lib/time_.h.
85647         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
85648         * lib/unistd.in.h: Renamed from lib/unistd_.h.
85649         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
85650         unistd_.h.
85651         * lib/wchar.in.h: Renamed from lib/wchar_.h.
85652         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
85653         wchar_.h.
85654         * lib/wctype.in.h: Renamed from lib/wctype_.h.
85655         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
85656         wctype_.h.
85657         * build-aux/bootstrap (slurp): Update.
85658         * lib/.cppi-disable: Update.
85660 2007-09-30  Bruno Haible  <bruno@clisp.org>
85662         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
85663         Needed on BeOS.
85665 2007-09-30  Bruno Haible  <bruno@clisp.org>
85667         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
85669 2007-09-29  Bruno Haible  <bruno@clisp.org>
85671         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
85673 2007-09-29  Bruno Haible  <bruno@clisp.org>
85675         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
85676         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
85677         * build-aux/install-reloc: Compile also areadlink.c.
85678         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
85680 2007-09-29  Bruno Haible  <bruno@clisp.org>
85682         * gnulib-tool (func_emit_initmacro_done): Indentation.
85684 2007-09-29  Bruno Haible  <bruno@clisp.org>
85686         * README: Add CVS checkout update instructions.
85687         Info from Bob Proulx <bob@proulx.com>.
85689 2007-09-28  Eric Blake  <ebb9@byu.net>
85691         Provide move-if-change.
85692         * build-aux/move-if-change: New file, based on best practice
85693         rather than any canonical upstream location.
85695 2007-09-28  Jim Meyering  <jim@meyering.net>
85697         Fix canonicalize loop-detection corner case.
85698         Do not attempt to stat the symlink values stored via seen_triple.
85699         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
85700         on linux-2.6.18, (but not 2.6.22).
85701         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
85702         triple_compare.  The former compares dev,ino,filename, while the latter
85703         would actually stat dirname(filename) when dev and ino were equal.
85704         * lib/hash-triple.c: Install <string.h>.
85705         (STREQ): Define.
85706         (triple_compare_ino_str): New function.
85707         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
85709 2007-09-28  Eric Blake  <ebb9@byu.net>
85711         Enforce that AC_REPLACE_FUNCS files exist.
85712         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
85713         override check for typos.
85715         Fix test-closein on Solaris 10.
85716         * tests/test-closein.c (main): Don't assume stdin can be inherited
85717         closed on all systems.
85718         * tests/test-closein.sh: Likewise.
85719         Reported by Piotr Tarnowski.
85721 2007-09-28  Jim Meyering  <jim@meyering.net>
85723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
85725 2007-09-27  Jim Meyering  <jim@meyering.net>
85727         canonicalize: Avoid a false-positive cycle failure.
85728         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
85729         Sort.  Remove cycle-check.
85730         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
85731         not cycle-check.h.
85732         (seen_triple): New function.
85733         (canonicalize_filename_mode): Use it instead of cycle-check.
85734         * tests/test-canonicalize.c: Add a test for this bug.
85735         * tests/test-canonicalize.sh: Set up and run the test.
85737         New module, file-set, from coreutils.
85738         * modules/file-set: Define it.
85739         * lib/file-set.c, lib/file-set.h: Implement.
85741         New module, hash-triple, from coreutils.
85742         * modules/hash-triple: Define it.
85743         * lib/hash-triple.c, lib/hash-triple.h: Implement.
85745 2007-09-25  Eric Blake  <ebb9@byu.net>
85747         Fix strerror on Interix.
85748         * lib/string_.h (strerror): Declare replacement.
85749         * doc/functions/strerror.texi (strerror): Document the Interix
85750         shortcoming.
85751         * modules/string (Makefile.am): Support new hooks.
85752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
85753         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
85754         gl_FUNC_STRERROR_SEPARATE.
85755         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
85756         * lib/strerror.c (rpl_strerror): Provide replacement.
85757         * modules/strerror (Depends-on): Add string.
85758         (configure.ac): Detect use of module.
85759         * tests/test-strerror.c: New file.
85760         * modules/strerror-tests: New test module.
85761         * modules/argp (Depends-on): Add strerror.
85762         * modules/error (Depends-on): Likewise.
85763         Reported by Martin Koeppe.
85765 2007-09-24  Bruno Haible  <bruno@clisp.org>
85767         * README: Update git instructions.
85769 2007-09-24  Eric Blake  <ebb9@byu.net>
85771         Revert fpending breakage from 2007-09-08.
85772         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
85773         __fpending.c.
85775 2007-09-24  Jim Meyering  <jim@meyering.net>
85777         filenamecat.c: Add a test.
85778         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
85779         showing how the function works when DIR is the empty string.
85781 2007-09-21  Simon Josefsson  <simon@josefsson.org>
85783         * tests/test-canonicalize.sh: Turn on executable bit.
85785 2007-09-19  Eric Blake  <ebb9@byu.net>
85787         * README: Update CVS instructions.
85789 2007-09-18  Bruno Haible  <bruno@clisp.org>
85791         * modules/areadlink: New file.
85792         * lib/areadlink.h (areadlink): New declaration.
85793         * lib/areadlink.c: New file, based on lib/xreadlink.c.
85795 2007-09-17  Jim Meyering  <jim@meyering.net>
85797         * lib/savewd.c (ESTALE) [!defined]: Define.
85798         Reported to be required on Interix by Martin Koeppe.
85800 2007-09-17  Bruno Haible  <bruno@clisp.org>
85802         * gnulib-tool (func_version): Use $version.
85804 2007-09-16  Bruno Haible  <bruno@clisp.org>
85806         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
85807         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
85808         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
85809         Reported by Greg Schafer <gschafer@zip.com.au>.
85811 2007-09-15  Bruno Haible  <bruno@clisp.org>
85813         * gnulib-tool (sed): Try a little harder to make bash understand the
85814         alias.
85815         Reported by Bruce Korb <bruce.korb@gmail.com>.
85817 2007-09-13  Eric Blake  <ebb9@byu.net>
85819         * ChangeLog: Remove conflict markers.
85821 2007-09-13  Simon Josefsson  <simon@josefsson.org>
85823         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
85824         Reported by Bruno Haible <bruno@clisp.org>.
85826 2007-09-12  Bruno Haible  <bruno@clisp.org>
85828         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
85829         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
85830         is not defined.
85832 2007-09-12  Eric Blake  <ebb9@byu.net>
85834         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
85835         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
85836         Autoconf definition.
85837         * modules/euidaccess (Depends-on): Add extensions, for
85838         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
85839         * modules/fnmatch (Depends-on): Likewise.
85840         * modules/getaddrinfo (Depends-on): Likewise.
85841         * modules/getdelim (Depends-on): Likewise.
85842         * modules/getline (Depends-on): Likewise.
85843         * modules/getsubopt (Depends-on): Likewise.
85844         * modules/gettext (Depends-on): Likewise.
85845         * modules/group-member (Depends-on): Likewise.
85846         * modules/mbchar (Depends-on): Likewise.
85847         * modules/memmem (Depends-on): Likewise.
85848         * modules/mempcpy (Depends-on): Likewise.
85849         * modules/memrchr (Depends-on): Likewise.
85850         * modules/pagealign_alloc (Depends-on): Likewise.
85851         * modules/readutmp (Depends-on): Likewise.
85852         * modules/stpcpy (Depends-on): Likewise.
85853         * modules/stpncpy (Depends-on): Likewise.
85854         * modules/strchrnul (Depends-on): Likewise.
85855         * modules/strndup (Depends-on): Likewise.
85856         * modules/strsep (Depends-on): Likewise.
85857         * modules/strverscmp (Depends-on): Likewise.
85858         * modules/vasprintf (Depends-on): Likewise.
85859         * modules/wcwidth (Depends-on): Likewise.
85860         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
85861         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
85862         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
85863         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
85864         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
85865         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
85866         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
85867         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
85868         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
85869         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
85870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85871         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
85872         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
85873         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
85874         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
85875         * m4/readutmp.m4 (gl_READUTMP): Likewise.
85876         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85877         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
85878         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85879         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
85880         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
85881         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
85882         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
85883         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
85884         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
85885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
85886         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
85887         so that lock.m4 can be used in gettext without extensions module.
85889 2007-09-11  Bruno Haible  <bruno@clisp.org>
85891         * m4/isc-posix.m4: Remove file.
85892         Suggested by Eric Blake.
85894 2007-09-11  Eric Blake  <ebb9@byu.net>
85896         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
85898 2007-09-10  Bruno Haible  <bruno@clisp.org>
85900         * posix-modules: Fix typo in error message.
85901         Reported by Matt <mkraai@beckman.com>.
85903 2007-09-09  Bruno Haible  <bruno@clisp.org>
85905         * doc/functions/getdelim.texi: Update list of platforms lacking the
85906         function.
85907         * doc/functions/getline.texi: Likewise.
85909 2007-09-09  Jim Meyering  <jim@meyering.net>
85911         * lib/hash.c (hash_initialize): Detect calloc failure.
85912         Reported by Bruno Haible.
85914 2007-09-09  Bruno Haible  <bruno@clisp.org>
85916         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
85917         malloc or realloc fails.
85919 2007-09-09  Bruno Haible  <bruno@clisp.org>
85921         * modules/getcwd (Depends-on): Add malloc-posix.
85922         * modules/glob (Depends-on): Likewise.
85923         * modules/putenv (Depends-on): Likewise.
85924         * modules/strdup (Depends-on): Likewise.
85925         * modules/getdelim (Depends-on): Add realloc-posix.
85926         * modules/read-file (Depends-on): Likewise.
85928 2007-09-09  Bruno Haible  <bruno@clisp.org>
85930         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
85931         (gl_FUNC_MALLOC_POSIX): Require it.
85932         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
85933         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
85934         * modules/realloc (Files): Add m4/malloc.m4.
85935         * modules/calloc (Files): Likewise.
85937 2007-09-09  Bruno Haible  <bruno@clisp.org>
85939         * modules/malloc-posix: New file.
85940         * modules/malloc (Depends-on): Add malloc-posix.
85941         * lib/malloc.c: Include errno.h.
85942         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
85943         and a POSIX-compatible malloc into a single function. Set ENOMEM
85944         when returning NULL.
85945         * m4/malloc.m4: New file.
85946         * doc/functions/malloc.texi: Mention the malloc-posix module.
85947         * lib/stdlib_.h (malloc): New declaration.
85948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85949         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
85950         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
85951         and HAVE_MALLOC_POSIX.
85953 2007-09-09  Bruno Haible  <bruno@clisp.org>
85955         * modules/realloc-posix: New file.
85956         * modules/realloc (Depends-on): Add realloc-posix.
85957         * lib/realloc.c: Include errno.h.
85958         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
85959         and a POSIX-compatible realloc into a single function. Set ENOMEM
85960         when returning NULL.
85961         * m4/realloc.m4: New file.
85962         * doc/functions/realloc.texi: Mention the realloc-posix module.
85963         * lib/stdlib_.h (realloc): New declaration.
85964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85965         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
85966         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
85967         and HAVE_REALLOC_POSIX.
85969 2007-09-09  Bruno Haible  <bruno@clisp.org>
85971         * modules/calloc-posix: New file.
85972         * modules/calloc (Depends-on): Add calloc-posix.
85973         * lib/calloc.c: Include errno.h.
85974         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
85975         and a POSIX-compatible calloc into a single function. Set ENOMEM
85976         when returning NULL.
85977         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
85978         * doc/functions/calloc.texi: Mention the calloc-posix module.
85979         * lib/stdlib_.h (calloc): New declaration.
85980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85981         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
85982         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
85983         and HAVE_CALLOC_POSIX.
85985 2007-09-09  Bruno Haible  <bruno@clisp.org>
85987         Allow for modules to show an arbitrary notice.
85988         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
85989         * gnulib-tool: New option --extract-notice.
85990         (func_usage): Document it.
85991         (sed_extract_prog): Update.
85992         (func_get_notice): New function.
85993         (func_modules_notice): New function.
85994         (func_import, func_create_testdir): Invoke it.
85995         Suggested by Jim Meyering.
85997 2007-09-09  Bruno Haible  <bruno@clisp.org>
85999         * gnulib-tool: New options --verbose, --quiet.
86000         (func_usage): Document them.
86001         (verbose): New variable.
86002         (func_execute_command): New function.
86003         (func_import): Don't show the module list and the file list if
86004         $verbose < 0.
86005         (func_create_testdir): Likewise. Use func_execute_command.
86006         (func_create_megatestdir): Use func_execute_command.
86008 2007-09-08  Bruno Haible  <bruno@clisp.org>
86010         * gnulib-tool (func_import): Prefer rsync over wget when available,
86011         for fetching the PO files.
86013 2007-09-08  Bruno Haible  <bruno@clisp.org>
86015         * posix-modules: New file. Portions copied from gnulib-tool.
86016         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
86018 2007-09-08  Jim Meyering  <jim@meyering.net>
86020         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
86021         * lib/fpending.h: Rename from __fpending.h.
86022         * lib/fpending.c: Rename from __fpending.c.
86023         Include "fpending.h", not "__fpending.h".
86024         * lib/__fpending.h, lib/__fpending.c: Remove files.
86025         * modules/fpending (Files): Reflect new file names.
86026         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
86028 2007-09-08  Bruno Haible  <bruno@clisp.org>
86030         * m4/inttypes-h.m4: Remove stub file.
86032 2007-09-07  Simon Josefsson  <simon@josefsson.org>
86034         * doc/headers/stdint.texi: Discuss #include_next issue.
86036 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86038         * build-aux/bootstrap: Remove obsolete comment about wget --help.
86040 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86042         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
86043         in variable name.
86045 2007-09-03  Jim Meyering  <jim@meyering.net>
86047         New module: git-version-gen.
86048         * modules/git-version-gen: New file.
86050         Import changes from coreutils for bootstrap script.
86052         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
86054         bootstrap: uses rsync to download the .po files
86055         * build-aux/bootstrap (po_download_command_format): New global.
86056         (download_po_files): Use rsync.
86057         (update_po_files): Don't remove .po files after download,
86058         so future rsync runs can take advantage of the copies.
86060         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
86062         Solve the unnecessary-.po-file-regeneration problem once and for all.
86063         * build-aux/bootstrap (download_po_files): New function, renamed from
86064         get_translations.  Now, downloads, but doesn't update LINGUAS.
86065         (update_po_files): New function.
86067         bootstrap: Ignore more.
86068         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
86069         uniwidth to e.g., lib/.gitignore.
86070         (slurp): Handle the sys_stat_.h -> sys mapping, too.
86072         * build-aux/bootstrap: New setting: vc_ignore.
86073         (insert_sorted_if_absent): Create $file if absent.
86074         Adapt to new, possibly empty, list: $vc_ignore.
86076         bootstrap: generate more ignorable names
86077         * build-aux/bootstrap (slurp): When generating ignorable names,
86078         also map .sin to .sed, .gperf to .c, and .y to .c.
86080 2007-09-03  Jim Meyering  <jim@meyering.net>
86082         * build-aux/git-version-gen: New file, from coreutils.  For details, see
86083         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
86085 2007-09-02  Bruno Haible  <bruno@clisp.org>
86087         Fix mis-recognition of 'mcs' on QNX 6.
86088         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
86089         output contains the string "Mono".
86090         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
86091         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
86093 2007-09-01  Bruno Haible  <bruno@clisp.org>
86095         Fix collision between uniwidth/* and linebreak modules.
86096         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
86097         u32_width): Remove declarations.
86098         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
86099         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
86100         streq3, streq2, streq1, streq0): Remove functions.
86101         (STREQ): Remove macro.
86102         (is_cjk_encoding): Remove function.
86103         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
86104         (uc_width, u8_width, u16_width, u32_width): Remove functions.
86105         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
86106         * NEWS: Document the change.
86108 2007-09-01  Bruno Haible  <bruno@clisp.org>
86110         * lib/streq.h: Add double-inclusion guard.
86112 2007-09-01  Karl Berry  <karl@gnu.org>
86114         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
86116 2007-08-28  Jim Meyering  <jim@meyering.net>
86118         Rename mreadlink_with_size to areadlink_with_size.
86119         * NEWS: Document the change.
86120         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
86121         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
86122         * lib/mreadlink.h: Rename this to...
86123         * lib/areadlink.h: ...this.
86124         * modules/mreadlink-with-size: Rename this to...
86125         * modules/areadlink-with-size: ...this.
86126         * lib/canonicalize.c: Reflect the renaming.
86127         * modules/canonicalize: Likewise.
86129 2007-08-26  Bruno Haible  <bruno@clisp.org>
86131         * gnulib-tool (func_import): When deciding which files to remove,
86132         consider also dangling symbolic links.
86133         Reported by Eric Blake.
86135 2007-08-26  Bruno Haible  <bruno@clisp.org>
86137         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
86139 2007-08-23  Simon Josefsson  <simon@josefsson.org>
86141         * lib/readline.c: Don't include getline.h, the prototype is now
86142         found in stdio.h.
86144 2007-08-23  Jim Meyering  <jim@meyering.net>
86146         Getdelim touchup.
86147         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
86148         around the funlockfile call, since funlockfile never sets errno.
86149         Don't set errno upon failed realloc.
86151 2007-08-22  Eric Blake  <ebb9@byu.net>
86153         Getline touchups.
86154         * lib/getdelim.c (getdelim): Revert regression that required *n to
86155         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
86156         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
86157         getdelim, rather than whether implementation is missing.
86158         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
86159         * lib/stdio_.h (getline): Also declare if replacement is
86160         required.
86161         * doc/functions/getdelim.texi: New file.
86162         * doc/functions/getline.texi: Likewise.
86163         * doc/gnulib.texi (Function Substitutes): Add new files.
86164         Reported by Bruno Haible.
86166 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
86168         * users.txt: Add Guile.
86170 2007-08-22  Eric Blake  <ebb9@byu.net>
86172         * tests/test-getdelim.c (main): Use remove, not unlink.
86173         * tests/test-getline.c (main): Likewise.
86175         Move getline and getdelim into stdio.h, per POSIX 200x.
86176         * modules/getline (Files): Remove getline.h.
86177         (Depends-on): Add stdio.
86178         (configure.ac): Add module indicator.
86179         * modules/getdelim (Files): Remove getdelim.h.
86180         (Depends-on): Add stdio.
86181         (configure.ac): Add module indicator.
86182         * modules/stdio (Makefile.am): Work with new indicators.
86183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
86184         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
86185         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86186         * lib/getdelim.h: Delete.
86187         * lib/getline.h: Delete.
86188         * lib/stdio_.h (getdelim, getline): Declare.
86189         * modules/getdelim-tests: New module.
86190         * modules/getline-tests: Likewise.
86191         * tests/test-getdelim.c: New file.
86192         * tests/test-getline.c: Likewise.
86193         * NEWS: Document the change.
86194         * lib/getline.c: Update choice of header.
86195         * lib/csharpcomp.c: Likewise.
86196         * lib/getpass.c: Likewise.
86197         * lib/javacomp.c: Likewise.
86198         * lib/javaversion.c: Likewise.
86199         * lib/yesno.c: Likewise.
86200         * lib/getdelim.c: Likewise.
86201         (getdelim): Set errno on failure, and avoid memory leak.
86203 2007-08-19  Bruno Haible  <bruno@clisp.org>
86205         * modules/closein (Depends-on): Add freadahead.
86206         * lib/closein.c: Include freadahead.h.
86207         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
86208         is zero.
86210 2007-08-19  Bruno Haible  <bruno@clisp.org>
86212         * modules/freadahead-tests: New file.
86213         * tests/test-freadahead.sh: New file.
86214         * tests/test-freadahead.c: New file.
86216         * modules/freadahead: New file.
86217         * lib/freadahead.h: New file.
86218         * lib/freadahead.c: New file.
86219         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
86220         fbufmode, fpurge, freadable, fwritable.
86222 2007-08-19  Eric Blake  <ebb9@byu.net>
86224         Test yesno in combination with closein.
86225         * lib/yesno.c (yesno): Document use of stdin.
86226         * modules/yesno-tests (Files): New module.
86227         * tests/test-yesno.c (main): New file.
86228         * tests/test-yesno.sh: Likewise.
86230 2007-08-19  Bruno Haible  <bruno@clisp.org>
86232         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
86233         * lib/fseeko.c (rpl_fseeko): Likewise.
86234         * lib/fseterr.c (fseterr): Likewise.
86236 2007-08-19  Bruno Haible  <bruno@clisp.org>
86238         * tests/test-lseek.c (main): Disable a test for BeOS.
86239         * doc/functions/lseek.texi: Document the BeOS bug.
86241 2007-08-19  Bruno Haible  <bruno@clisp.org>
86242             Eric Blake  <ebb9@byu.net>
86244         * lib/lseek.c: Include <sys/stat.h>.
86245         (rpl_lseek): Add workaround code also for Unix platforms.
86246         Needed for BeOS.
86247         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
86248         * doc/functions/lseek.texi: Document BeOS definiency.
86250 2007-08-18  Bruno Haible  <bruno@clisp.org>
86252         * modules/fstrcmp-tests: New file.
86253         * tests/test-fstrcmp.c: New file.
86255 2007-08-18  Bruno Haible  <bruno@clisp.org>
86257         * modules/fstrcmp: New file, from GNU gettext with modifications.
86258         * lib/fstrcmp.h: New file, from GNU gettext.
86259         * lib/fstrcmp.c: New file, from GNU gettext.
86260         * MODULES.html.sh (String handling): Add fstrcmp.
86262 2007-08-18  Bruno Haible  <bruno@clisp.org>
86264         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
86265         'bool'.
86266         (diag, compareseq): Remove const from the ctxt argument.
86267         (USE_HEURISTIC): Undefine at the end.
86269 2007-08-18  Jim Meyering  <jim@meyering.net>
86271         New file: lib/idcache.h
86272         * NEWS: Mention the addition.
86273         * modules/idcache (Files): Add lib/idcache.h
86274         * lib/idcache.c: Include "idcache.h".
86275         Don't include <sys/types.h>.
86276         Add a FIXME comment.
86277         Move file-scoped "static" declarations to the top.
86278         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
86280 2007-08-17  Bruno Haible  <bruno@clisp.org>
86281         and Paul Eggert  <eggert@cs.ucla.edu>
86283         * MODULES.html.sh: Add diffseq.
86284         * modules/diffseq: New file.
86285         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
86286         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86288 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86290         Import changes from coreutils for bootstrap script.
86292         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86294         * build-aux/bootstrap (slurp): Work even in environments where
86295         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86296         current code does not slurp files whose names start with ".", and
86297         this looks like it might be a troublesome area.
86299         2007-07-11  Jim Meyering  <jim@meyering.net>
86301         If there's a GPL vN copyright comment, require that N == 3.
86303         2007-07-08  Jim Meyering  <jim@meyering.net>
86305         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86306         * build-aux/bootstrap (mam_template): Move definition out of loop.
86308         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86310         * build-aux/bootstrap (symlink_to_dir): Rename function from
86311         symlink_to_gnulib.  Add a directory parameter.  Update all
86312         callers.
86313         (cp_mark_as_generated): Also check for -- and link to -- files in
86314         gl/.
86316         2007-07-08  Jim Meyering  <jim@meyering.net>
86318         Adapt to deeper hierarchy in gnulib.
86319         * build-aux/bootstrap (symlink_to_dir): If the destination
86320         directory doesn't exist, create it. This is required at least for
86321         "lib/uniwidth/cjk.h".
86323         2007-05-15  Jim Meyering  <jim@meyering.net>
86325         * build-aux/bootstrap: Now that generated Makefile.am files
86326         are no longer under version control, they must be created at
86327         bootstrap time.
86329 2007-08-14  Ben Pfaff  <blp@gnu.org>
86331         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86333 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86335         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86336         given the changes below.
86337         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86338         even on hosts that have padding bits beyond the supported 64.
86340 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86342         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86343         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86344         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86345         depends on it.
86346         (xstrtol_error): Remove.
86347         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86348         but with a different signature.
86349         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86350         * lib/xstrtol-error.c: Include exitfail.h.
86351         (xstrtol_fatal): New function, with a different signature from the
86352         old xstrtol_error, so that the caller need not worry about passing
86353         in an exit status, or about storage management of the option argument.
86354         (xstrtol_error): Now a static function.  Redo signature to
86355         implement xstrtol_fatal.  Output the correct number of hyphens in
86356         front of the option so that the caller need not worry about
86357         storage management.
86358         (N_): New macro.
86359         (_): Remove; not used now.
86360         * modules/xstrtol: Depend on getopt.
86361         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86362         of old STRTOL_FATAL_ERROR macro.
86363         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86364         of test program.
86365         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86366         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86368 2007-08-08  Eric Blake  <ebb9@byu.net>
86370         * lib/xstrtol-error.c: Add missing include.
86372         Move xstrtol messages into gnulib domain, when --pobase is used.
86373         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86374         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86375         * modules/xstrtol (Files): Distribute new file.
86376         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86377         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86378         * tests/test-xstrtol.c: ...into new file.
86379         * tests/test-xstrtoul.c: Also test xstrtoul.
86380         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86381         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86382         * tests/test-xstrtol.sh: Drive the tests.
86383         * tests/test-xstrtoimax.sh: Likewise.
86384         * tests/test-xstrtoumax.sh: Likewise.
86385         * modules/xstrtol-tests: New module.
86386         * modules/xstrtoimax-tests: Likewise.
86387         * modules/xstrtoumax-tests: Likewise.
86389 2007-08-08  Jim Meyering  <jim@meyering.net>
86391         New function: mfile_name_concat.
86392         * lib/filenamecat.c (mfile_name_concat): New function, just like
86393         file_name_concat, but return NULL upon failure rather than exiting
86394         with a diagnostic.
86395         * lib/filenamecat.h: Declare it.
86397 2007-08-07  Bruno Haible  <bruno@clisp.org>
86399         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86400         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86401         warning from gcc.
86402         Reported by Eric Blake.
86404 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86406         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86407         * modules/crypto/arcfour (License): Likewise.
86408         * modules/crypto/des-tests (License): Likewise.
86409         * modules/crypto/gc-arctwo-tests (License): Likewise.
86410         * modules/crypto/gc-des-tests (License): Likewise.
86411         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86412         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86413         * modules/crypto/gc-md2-tests (License): Likewise.
86414         * modules/crypto/gc-md4-tests (License): Likewise.
86415         * modules/crypto/gc-md5-tests (License): Likewise.
86416         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86417         * modules/crypto/gc-rijndael-tests (License): Likewise.
86418         * modules/crypto/gc-sha1-tests (License): Likewise.
86419         * modules/crypto/gc-tests (License): Likewise.
86420         * modules/crypto/hmac-md5 (License): Likewise.
86421         * modules/crypto/hmac-sha1 (License): Likewise.
86422         * modules/crypto/md2-tests (License): Likewise.
86423         * modules/crypto/md4-tests (License): Likewise.
86424         * modules/crypto/md5 (License): Likewise.
86425         * modules/crypto/rijndael (License): Likewise.
86426         * modules/crypto/sha1 (License): Likewise.
86427         * modules/memxor (License): Likewise.
86429 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86430         and Bruno Haible  <bruno@clisp.org>
86432         * NEWS: Describe interface changes to human, xstrtol.
86433         * lib/human.h: Include <xstrtol.h>.
86434         (human_options): Return enum strtol_error, not int.  Remove
86435         bool arg; take int * instead.
86436         * lib/human.c: Don't include "gettext.h".
86437         (_): Remove; no longer used.
86438         Don't include <xstrtol.h>, since human.h does it.
86439         (human_options): Adjust to abovementioned interface changes.
86440         Do not report error to stderr; that's now the caller's
86441         responsibility.
86442         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86443         interface change.
86444         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86445         Str, Argument_type_string.  All uses changed.  Put " argument"
86446         in diagnostics to make them clearer.  Change wording of suffix
86447         message for clarity.
86448         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86449         Argument_type_string.
86450         (STRTOL_FATAL_WARN): Remove; no longer used.
86451         * modules/human (Depends-on): Remove gettext-h.
86453 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86455         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86457 2007-07-31  Bruno Haible  <bruno@clisp.org>
86459         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86460         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86461         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86463 2007-07-31  Bruno Haible  <bruno@clisp.org>
86465         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86466         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86468 2007-07-30  Bruno Haible  <bruno@clisp.org>
86470         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86471         * modules/c-ctype (License): Likewise.
86472         * modules/c-strcase (License): Likewise.
86473         * modules/check-version (License): Likewise.
86474         * modules/iconv (License): Likewise.
86475         * modules/iconv_open (License): Likewise.
86476         * modules/read-file (License): Likewise.
86477         * modules/striconv (License): Likewise.
86478         * modules/strverscmp (License): Likewise.
86479         * modules/vasprintf (License): Likewise.
86480         * modules/crypto/des (License): Likewise.
86481         * modules/crypto/gc (License): Likewise.
86482         * modules/crypto/gc-arcfour (License): Likewise.
86483         * modules/crypto/gc-arctwo (License): Likewise.
86484         * modules/crypto/gc-des (License): Likewise.
86485         * modules/crypto/gc-hmac-md5 (License): Likewise.
86486         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86487         * modules/crypto/gc-md2 (License): Likewise.
86488         * modules/crypto/gc-md4 (License): Likewise.
86489         * modules/crypto/gc-md5 (License): Likewise.
86490         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86491         * modules/crypto/gc-random (License): Likewise.
86492         * modules/crypto/gc-rijndael (License): Likewise.
86493         * modules/crypto/gc-sha1 (License): Likewise.
86494         * modules/crypto/md2 (License): Likewise.
86495         * modules/crypto/md4 (License): Likewise.
86497 2007-07-30  Jim Meyering  <jim@meyering.net>
86499         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86500         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86501         it has valid stat data.  This bug would cause du not to count the
86502         sizes of inaccessible directories.
86503         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86504         in <http://bugzilla.redhat.com/250077>.
86506 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86507             Bruno Haible  <bruno@clisp.org>
86509         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86510         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86511         #include_next, gives a diagnostic about it, but reports no error in
86512         the exit code.
86513         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86515 2007-07-24  Ben Pfaff  <blp@gnu.org>
86517         Improve name: "count-one-bits" is better than "popcount".
86518         * MODULES.html.sh: Update name.
86519         * lib/popcount.h: Renamed lib/count-one-bits.h.
86520         (popcount): Renamed count_one_bits.
86521         (popcountl): Renamed count_one_bits_l.
86522         (popcountll): Renamed count_one_bits_ll.
86523         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86524         * modules/popcount: Renamed module/count-one-bits.
86525         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86526         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86528 2007-07-23  Ben Pfaff  <blp@gnu.org>
86530         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86531         better code generation, and add U to large constants to avoid
86532         warnings, in non-GCC case.
86533         Suggested by Bruno Haible.
86535 2007-07-23  Ben Pfaff  <blp@gnu.org>
86537         * lib/popcount.h: Use verify_true instead of if...abort.
86538         * modules/popcount: Depend on verify module.
86539         Suggested by Jim Meyering.
86541 2007-07-23  Bruno Haible  <bruno@clisp.org>
86543         * gnulib-tool (func_import): Create a .cvsignore file also when the
86544         directory is not yet in CVS but the toplevel directory is. When
86545         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
86546         Reported by Karl Berry.
86548 2007-07-22  Ben Pfaff  <blp@gnu.org>
86550         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
86551         case.
86552         Suggested by Eric Blake.
86554 2007-07-22  Ben Pfaff  <blp@gnu.org>
86556         New module: popcount.
86557         * MODULES.html.sh: Add popcount.
86558         * modules/popcount: New file.
86559         * modules/popcount-tests: New file.
86560         * tests/test-popcount.c: New file.
86561         * lib/popcount.h: New file.
86562         * m4/popcount.m4: New file.
86564 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
86566         * build-aux/announce-gen: Update to GPLv3.
86568         * build-aux/config.guess: Update from config.
86570 2007-07-21  Bruno Haible  <bruno@clisp.org>
86572         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
86573         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
86575 2007-07-20  Jim Meyering  <jim@meyering.net>
86577         * check-module: Diagnose a self-dependency.
86579 2007-07-19  Bruno Haible  <bruno@clisp.org>
86581         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
86582         empty.
86583         Reported by Eric Blake.
86585 2007-07-18  Bruno Haible  <bruno@clisp.org>
86587         * gnulib-tool: New options --po-base, --po-domain.
86588         (func_usage): Document them.
86589         (pobase, po_domain): New variables.
86590         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
86591         DEFAULT_TEXT_DOMAIN.
86592         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
86593         (func_import): Consider pobase and po_domain. Create a po/ directory.
86594         (func_create_testdir): Set pobase and po_domain to empty.
86595         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
86596         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
86598 2007-07-18  Bruno Haible  <bruno@clisp.org>
86600         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86601         EXTRA_DIST augmentation for files in build-aux/.
86603 2007-07-16  Bruno Haible  <bruno@clisp.org>
86605         * modules/lseek (License): Use the synonymous term "LGPLv2+".
86606         * modules/getdelim (License): Likewise.
86608 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86610         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
86611         * modules/d-type (License): Likewise.
86612         * modules/extensions (License): Likewise.
86613         * modules/fnmatch (License): Likewise.
86614         * modules/fseeko (License): Likewise.
86615         * modules/getaddrinfo (License): Likewise.
86616         * modules/getline (License): Likewise.
86617         * modules/getlogin_r (License): Likewise.
86618         * modules/getpass (License): Likewise.
86619         * modules/gettimeofday (License): Likewise.
86620         * modules/glob (License): Likewise.
86621         * modules/inet_ntop (License): Likewise.
86622         * modules/malloc (License): Likewise.
86623         * modules/malloca (License): Likewise.
86624         * modules/memmem (License): Likewise.
86625         * modules/mempcpy (License): Likewise.
86626         * modules/memset (License): Likewise.
86627         * modules/minmax (License): Likewise.
86628         * modules/mktime (License): Likewise.
86629         * modules/netinet_in (License): Likewise.
86630         * modules/pathmax (License): Likewise.
86631         * modules/poll (License): Likewise.
86632         * modules/regex (License): Likewise.
86633         * modules/snprintf (License): Likewise.
86634         * modules/stdbool (License): Likewise.
86635         * modules/stdint (License): Likewise.
86636         * modules/stdio (License): Likewise.
86637         * modules/strcase (License): Likewise.
86638         * modules/strcasestr (License): Likewise.
86639         * modules/strdup (License): Likewise.
86640         * modules/string (License): Likewise.
86641         * modules/strndup (License): Likewise.
86642         * modules/strnlen (License): Likewise.
86643         * modules/strpbrk (License): Likewise.
86644         * modules/strptime (License): Likewise.
86645         * modules/strsep (License): Likewise.
86646         * modules/sys_select (License): Likewise.
86647         * modules/sys_socket (License): Likewise.
86648         * modules/sys_stat (License): Likewise.
86649         * modules/sys_time (License): Likewise.
86650         * modules/time (License): Likewise.
86651         * modules/time_r (License): Likewise.
86652         * modules/timegm (License): Likewise.
86653         * modules/unistd (License): Likewise.
86654         * modules/vsnprintf (License): Likewise.
86655         * modules/wctype (License): Likewise.
86657 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86659         * modules/argz (License): LGPLv2+.
86661 2007-07-15  Karl Berry  <karl@gnu.org>
86663         * doc/gnulib.texi: revise node structure per new fdl.texi.
86665 2007-07-14  Bruno Haible  <bruno@clisp.org>
86667         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
86668         the output file.
86669         * lib/uniname/uninames.h: Regenerated.
86671 2007-07-14  Karl Berry  <karl@gnu.org>
86673         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
86674         omitting sectioning and index commands.
86676 2007-07-13  Bruno Haible  <bruno@clisp.org>
86678         New gnulib-tool option --more-symlinks.
86679         * gnulib-tool (func_usage): Document --more-symlinks.
86680         (do_copyrights): New variable.
86681         Recognize option --more-symlinks.
86682         (func_import): Don't add a copyright notice transform to
86683         sed_transform_lib_file if do_copyrights is empty.
86685 2007-07-13  Bruno Haible  <bruno@clisp.org>
86687         * lib/vasnprintf.c (decimal_point_char): Define also if
86688         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
86689         && !NEED_PRINTF_DIRECTIVE_A.
86690         Reported by Clemens Koller <clemens.koller@anagramm.de> via
86691         Gary V. Vaughan <gary@gnu.org>.
86693 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
86695         * lib/inttypes_.h: Undo previous change, since it was fixed
86696         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
86698 2007-07-13  Bruno Haible  <bruno@clisp.org>
86700         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
86701         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
86703 2007-07-13  Jim Meyering  <jim@meyering.net>
86705         df: Don't fail for Tru64's "file-on-file mount".
86706         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
86707         so we fall through and use statfs instead.  Details here:
86708         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
86709         Reported by Albert Chin.
86711 2007-07-13  Bruno Haible  <bruno@clisp.org>
86713         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
86714         * modules/configmake (License): Likewise.
86715         * modules/gettext (License): Likewise.
86716         * modules/gettext-h (License): Likewise.
86717         * modules/include_next (License): Likewise.
86718         * modules/link-warning (License): Likewise.
86719         * modules/localcharset (License): Likewise.
86720         * modules/localename (License): Likewise.
86721         * modules/lock (License): Likewise.
86722         * modules/relocatable-lib-lgpl (License): Likewise.
86723         * modules/size_max (License): Likewise.
86724         * modules/vasnprintf (License): Likewise.
86725         * modules/wchar (License): Likewise.
86726         * modules/xsize (License): Likewise.
86728 2007-07-13  Bruno Haible  <bruno@clisp.org>
86730         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
86731         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
86733 2007-07-12  Bruno Haible  <bruno@clisp.org>
86735         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
86736         in the modules files.
86738 2007-07-11  Karl Berry  <karl@gnu.org>
86740         * MODULES.html.sh (func_module): use
86741          sed -e '\|^'"${includefile}"'$|d'
86742          instead of /.../d, to avoid errors on $includefile's containing /.
86744 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
86746         * gnulib-tool (func_import): Avoid duplication of --avoid
86747         statements
86748         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
86749         names to `_' in variable names.
86751 2007-07-10  Eric Blake  <ebb9@byu.net>
86753         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
86754         * NEWS: Document this change.
86756 2007-07-08  Bruno Haible  <bruno@clisp.org>
86758         Update to Unicode 5.0.
86759         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
86760         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
86761         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
86762         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
86763         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
86764         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
86765         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
86766         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
86767         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
86768         U+10A3F, U+1D242..U+1D244.
86769         (nonspacing_table_ind): Update.
86770         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
86771         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
86773 2007-07-08  Bruno Haible  <bruno@clisp.org>
86775         Update to Unicode 5.0.
86776         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
86777         code transform. Extend the name index field of unicode_name_to_code and
86778         unicode_code_to_name from 16 to 24 bits.
86779         * lib/uniname/uniname.c (unicode_character_name,
86780         unicode_name_character): Add the range 0x12xxx to the code transform.
86781         * lib/uniname/uninames.h: Regenerated.
86782         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
86784 2007-07-07  Bruno Haible  <bruno@clisp.org>
86786         * modules/wcwidth-tests: New file.
86787         * tests/test-wcwidth.c: New file.
86789         Work around MacOS X wcwidth() bug.
86790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
86791         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
86792         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
86793         original wcwidth in non-UTF-8 locales.
86794         * modules/wcwidth (Depends-on): Add localcharset, streq,
86795         uniwidth/width.
86796         * doc/functions/wcwidth.texi: Update.
86798 2007-07-07  Bruno Haible  <bruno@clisp.org>
86800         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
86801         (wcwidth): New declaration.
86802         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
86803         macros.
86804         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
86805         here. Prepare for creating <wchar.h> unconditionally.
86806         * modules/wchar (Depends-on): Add link-warning.
86807         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
86808         REPLACE_WCWIDTH, and GL_LINK_WARNING.
86809         * lib/wcwidth.h: Remove file.
86810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
86811         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
86812         * modules/wcwidth (Files): Remove lib/wcwidth.h.
86813         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
86814         (Include): Replace wcwidth.h with <wchar.h>.
86815         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
86816         * lib/mbchar.h: Don't include wcwidth.h.
86817         * lib/mbswidth.c: Likewise.
86818         * NEWS: Mention the change.
86820 2007-07-07  Bruno Haible  <bruno@clisp.org>
86822         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
86823         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
86824         definition with an external declaration.
86825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
86826         defined as a function. Remove AC_C_INLINE requirement.
86827         * modules/wcwidth (Files): Add lib/wcwidth.c.
86828         (Makefile.am): Remove redundant statement.
86830 2007-07-07  Bruno Haible  <bruno@clisp.org>
86832         * MODULES.html.sh (Unicode string functions): Add the new modules.
86834         * tests/uniwidth/test-u32-strwidth.c: New file.
86835         * modules/uniwidth/u32-strwidth-tests: New file.
86837         * lib/uniwidth/u32-strwidth.c: New file.
86838         * modules/uniwidth/u32-strwidth: New file.
86840         * tests/uniwidth/test-u16-strwidth.c: New file.
86841         * modules/uniwidth/u16-strwidth-tests: New file.
86843         * lib/uniwidth/u16-strwidth.c: New file.
86844         * modules/uniwidth/u16-strwidth: New file.
86846         * tests/uniwidth/test-u8-strwidth.c: New file.
86847         * modules/uniwidth/u8-strwidth-tests: New file.
86849         * lib/uniwidth/u8-strwidth.c: New file.
86850         * modules/uniwidth/u8-strwidth: New file.
86852         * tests/uniwidth/test-u32-width.c: New file.
86853         * modules/uniwidth/u32-width-tests: New file.
86855         * lib/uniwidth/u32-width.c: New file.
86856         * modules/uniwidth/u32-width: New file.
86858         * tests/uniwidth/test-u16-width.c: New file.
86859         * modules/uniwidth/u16-width-tests: New file.
86861         * lib/uniwidth/u16-width.c: New file.
86862         * modules/uniwidth/u16-width: New file.
86864         * tests/uniwidth/test-u8-width.c: New file.
86865         * modules/uniwidth/u8-width-tests: New file.
86867         * lib/uniwidth/u8-width.c: New file.
86868         * modules/uniwidth/u8-width: New file.
86870         * tests/uniwidth/test-uc_width.c: New file.
86871         * modules/uniwidth/width-tests: New file.
86873         * lib/uniwidth/width.c: New file, from GNU libiconv.
86874         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
86875         * modules/uniwidth/width: New file.
86877         * lib/uniwidth.h: New file, from GNU libiconv.
86878         * modules/uniwidth/base: New file.
86880 2007-07-07  Bruno Haible  <bruno@clisp.org>
86882         * lib/uniname.h: New file, from GNU gettext.
86883         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
86884         * lib/uniname/uninames.h: New file, from GNU gettext.
86885         * lib/uniname/uniname.c: New file, from GNU gettext.
86886         * tests/uniname/test-uninames.sh: New file.
86887         * tests/uniname/test-uninames.c: New file, from GNU gettext.
86888         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
86889         * modules/uniname/base: New file.
86890         * modules/uniname/uniname: New file.
86891         * modules/uniname/uniname-tests: New file.
86892         * MODULES.html.sh (Unicode string functions): Add the new modules.
86894 2007-07-06  Bruno Haible  <bruno@clisp.org>
86896         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
86898 2007-07-06  Bruno Haible  <bruno@clisp.org>
86900         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
86901         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
86902         includes <cygwin/sys_time.h> which includes <sys/select.h> which
86903         include <sys/time.h>.
86904         Reported by Eric Blake.
86906 2007-07-06  Eric Blake  <ebb9@byu.net>
86908         Fix testing canonicalize on cygwin.
86909         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
86910         Revert patch from 2007-06-19.
86911         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
86912         canonicalize module is also in use.
86913         * tests/test-canonicalize.c: New file.
86914         * tests/test-canonicalize.sh: Likewise.
86915         * modules/canonicalize-tests: Likewise.
86917 2007-07-06  Jim Meyering  <jim@meyering.net>
86919         * lib/getugroups.c (getugroups): Detect getgrent failure.
86920         Adjust comment to reflect reality: this function may return -1.
86922 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
86924         * build-aux/bootstrap (TP_URL,get_translations): Update to use
86925         the new TP address.
86926         (usage): Fix typo
86927         (gnulib_mk): New variable.
86929 2007-07-05  Jim Meyering  <jim@meyering.net>
86931         Don't let endgrent clobber errno, no matter how improbable.
86932         * lib/getugroups.c (getugroups): Save and restore errno around
86933         endgrent call.
86935         Close the group DB even when failing with 2^31 or more members.
86936         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
86938 2007-07-04  Jim Meyering  <jim@meyering.net>
86940         * lib/getugroups.h: New file.
86941         * lib/getugroups.c: Include "getugroups.h".
86942         Remove uses of "register" keyword.
86943         Move local variable, "cp", down into scope where used.
86944         Give "username" parameter the "const" attribute.
86945         * modules/getugroups (Files): Add lib/getugroups.h
86947 2007-07-04  Karl Berry  <karl@gnu.org>
86949         * MODULES.html.sh (func_all_modules): Complete rename of
86950         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
86952 2007-07-02  Bruno Haible  <bruno@clisp.org>
86954         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
86955         mode, when inttypes.h comes from gnulib.
86956         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
86958 2007-07-02  Simon Josefsson  <simon@josefsson.org>
86960         * NEWS: Mention lgpl module name change.
86962         * modules/lgpl-2.1: Renamed from lgpl.
86964         * NEWS: Mention gpl module name change.
86966         * modules/gpl-3.0: New file, based on gpl-2.0.
86968         * modules/gpl-2.0: Renamed from gpl.
86970         * modules/gpl: Fix filename, doc/gpl.texi is now found at
86971         doc/gpl-2.0.texi.
86973 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
86975         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
86976         #define __STDC_LIMIT_MACROS temporarily while including
86977         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
86978         Problem reported by Joel E. Denny in
86979         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
86981 2007-07-01  Bruno Haible  <bruno@clisp.org>
86983         * lib/unistdio.h: New file.
86984         * lib/unistdio/u-asnprintf.h: New file.
86985         * lib/unistdio/u-asprintf.h: New file.
86986         * lib/unistdio/u-printf-args.c: New file.
86987         * lib/unistdio/u-printf-args.h: New file.
86988         * lib/unistdio/u-printf-parse.h: New file.
86989         * lib/unistdio/u-snprintf.h: New file.
86990         * lib/unistdio/u-sprintf.h: New file.
86991         * lib/unistdio/u-vasprintf.h: New file.
86992         * lib/unistdio/u-vsnprintf.h: New file.
86993         * lib/unistdio/u-vsprintf.h: New file.
86994         * lib/unistdio/ulc-asnprintf.c: New file.
86995         * lib/unistdio/ulc-asprintf.c: New file.
86996         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
86997         * lib/unistdio/ulc-printf-parse.c: New file.
86998         * lib/unistdio/ulc-snprintf.c: New file.
86999         * lib/unistdio/ulc-sprintf.c: New file.
87000         * lib/unistdio/ulc-vasnprintf.c: New file.
87001         * lib/unistdio/ulc-vasprintf.c: New file.
87002         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
87003         * lib/unistdio/ulc-vsnprintf.c: New file.
87004         * lib/unistdio/ulc-vsprintf.c: New file.
87005         * lib/unistdio/u8-asnprintf.c: New file.
87006         * lib/unistdio/u8-asprintf.c: New file.
87007         * lib/unistdio/u8-printf-parse.c: New file.
87008         * lib/unistdio/u8-snprintf.c: New file.
87009         * lib/unistdio/u8-sprintf.c: New file.
87010         * lib/unistdio/u8-vasnprintf.c: New file.
87011         * lib/unistdio/u8-vasprintf.c: New file.
87012         * lib/unistdio/u8-vsnprintf.c: New file.
87013         * lib/unistdio/u8-vsprintf.c: New file.
87014         * lib/unistdio/u8-u8-asnprintf.c: New file.
87015         * lib/unistdio/u8-u8-asprintf.c: New file.
87016         * lib/unistdio/u8-u8-snprintf.c: New file.
87017         * lib/unistdio/u8-u8-sprintf.c: New file.
87018         * lib/unistdio/u8-u8-vasnprintf.c: New file.
87019         * lib/unistdio/u8-u8-vasprintf.c: New file.
87020         * lib/unistdio/u8-u8-vsnprintf.c: New file.
87021         * lib/unistdio/u8-u8-vsprintf.c: New file.
87022         * lib/unistdio/u16-asnprintf.c: New file.
87023         * lib/unistdio/u16-asprintf.c: New file.
87024         * lib/unistdio/u16-printf-parse.c: New file.
87025         * lib/unistdio/u16-snprintf.c: New file.
87026         * lib/unistdio/u16-sprintf.c: New file.
87027         * lib/unistdio/u16-vasnprintf.c: New file.
87028         * lib/unistdio/u16-vasprintf.c: New file.
87029         * lib/unistdio/u16-vsnprintf.c: New file.
87030         * lib/unistdio/u16-vsprintf.c: New file.
87031         * lib/unistdio/u16-u16-asnprintf.c: New file.
87032         * lib/unistdio/u16-u16-asprintf.c: New file.
87033         * lib/unistdio/u16-u16-snprintf.c: New file.
87034         * lib/unistdio/u16-u16-sprintf.c: New file.
87035         * lib/unistdio/u16-u16-vasnprintf.c: New file.
87036         * lib/unistdio/u16-u16-vasprintf.c: New file.
87037         * lib/unistdio/u16-u16-vsnprintf.c: New file.
87038         * lib/unistdio/u16-u16-vsprintf.c: New file.
87039         * lib/unistdio/u32-asnprintf.c: New file.
87040         * lib/unistdio/u32-asprintf.c: New file.
87041         * lib/unistdio/u32-printf-parse.c: New file.
87042         * lib/unistdio/u32-snprintf.c: New file.
87043         * lib/unistdio/u32-sprintf.c: New file.
87044         * lib/unistdio/u32-vasnprintf.c: New file.
87045         * lib/unistdio/u32-vasprintf.c: New file.
87046         * lib/unistdio/u32-vsnprintf.c: New file.
87047         * lib/unistdio/u32-vsprintf.c: New file.
87048         * lib/unistdio/u32-u32-asnprintf.c: New file.
87049         * lib/unistdio/u32-u32-asprintf.c: New file.
87050         * lib/unistdio/u32-u32-snprintf.c: New file.
87051         * lib/unistdio/u32-u32-sprintf.c: New file.
87052         * lib/unistdio/u32-u32-vasnprintf.c: New file.
87053         * lib/unistdio/u32-u32-vasprintf.c: New file.
87054         * lib/unistdio/u32-u32-vsnprintf.c: New file.
87055         * lib/unistdio/u32-u32-vsprintf.c: New file.
87056         * tests/unistdio/test-ulc-asnprintf1.c: New file.
87057         * tests/unistdio/test-ulc-asnprintf1.h: New file.
87058         * tests/unistdio/test-ulc-printf1.h: New file.
87059         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
87060         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
87061         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
87062         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
87063         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
87064         * tests/unistdio/test-ulc-vasprintf1.c: New file.
87065         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
87066         * tests/unistdio/test-ulc-vsprintf1.c: New file.
87067         * tests/unistdio/test-u8-asnprintf1.c: New file.
87068         * tests/unistdio/test-u8-asnprintf1.h: New file.
87069         * tests/unistdio/test-u8-printf1.h: New file.
87070         * tests/unistdio/test-u8-vasnprintf1.c: New file.
87071         * tests/unistdio/test-u8-vasnprintf2.c: New file.
87072         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
87073         * tests/unistdio/test-u8-vasnprintf3.c: New file.
87074         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
87075         * tests/unistdio/test-u8-vasprintf1.c: New file.
87076         * tests/unistdio/test-u8-vsnprintf1.c: New file.
87077         * tests/unistdio/test-u8-vsprintf1.c: New file.
87078         * tests/unistdio/test-u16-asnprintf1.c: New file.
87079         * tests/unistdio/test-u16-asnprintf1.h: New file.
87080         * tests/unistdio/test-u16-printf1.h: New file.
87081         * tests/unistdio/test-u16-vasnprintf1.c: New file.
87082         * tests/unistdio/test-u16-vasnprintf2.c: New file.
87083         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
87084         * tests/unistdio/test-u16-vasnprintf3.c: New file.
87085         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
87086         * tests/unistdio/test-u16-vasprintf1.c: New file.
87087         * tests/unistdio/test-u16-vsnprintf1.c: New file.
87088         * tests/unistdio/test-u16-vsprintf1.c: New file.
87089         * tests/unistdio/test-u32-asnprintf1.c: New file.
87090         * tests/unistdio/test-u32-asnprintf1.h: New file.
87091         * tests/unistdio/test-u32-printf1.h: New file.
87092         * tests/unistdio/test-u32-vasnprintf1.c: New file.
87093         * tests/unistdio/test-u32-vasnprintf2.c: New file.
87094         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
87095         * tests/unistdio/test-u32-vasnprintf3.c: New file.
87096         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
87097         * tests/unistdio/test-u32-vasprintf1.c: New file.
87098         * tests/unistdio/test-u32-vsnprintf1.c: New file.
87099         * tests/unistdio/test-u32-vsprintf1.c: New file.
87100         * modules/unistdio/base: New file.
87101         * modules/unistdio/u-printf-args: New file.
87102         * modules/unistdio/ulc-asnprintf: New file.
87103         * modules/unistdio/ulc-asprintf: New file.
87104         * modules/unistdio/ulc-fprintf: New file.
87105         * modules/unistdio/ulc-printf-parse: New file.
87106         * modules/unistdio/ulc-snprintf: New file.
87107         * modules/unistdio/ulc-sprintf: New file.
87108         * modules/unistdio/ulc-vasnprintf: New file.
87109         * modules/unistdio/ulc-vasprintf: New file.
87110         * modules/unistdio/ulc-vfprintf: New file.
87111         * modules/unistdio/ulc-vsnprintf: New file.
87112         * modules/unistdio/ulc-vsprintf: New file.
87113         * modules/unistdio/u8-asnprintf: New file.
87114         * modules/unistdio/u8-asprintf: New file.
87115         * modules/unistdio/u8-printf-parse: New file.
87116         * modules/unistdio/u8-snprintf: New file.
87117         * modules/unistdio/u8-sprintf: New file.
87118         * modules/unistdio/u8-vasnprintf: New file.
87119         * modules/unistdio/u8-vasprintf: New file.
87120         * modules/unistdio/u8-vsnprintf: New file.
87121         * modules/unistdio/u8-vsprintf: New file.
87122         * modules/unistdio/u8-u8-asnprintf: New file.
87123         * modules/unistdio/u8-u8-asprintf: New file.
87124         * modules/unistdio/u8-u8-snprintf: New file.
87125         * modules/unistdio/u8-u8-sprintf: New file.
87126         * modules/unistdio/u8-u8-vasnprintf: New file.
87127         * modules/unistdio/u8-u8-vasprintf: New file.
87128         * modules/unistdio/u8-u8-vsnprintf: New file.
87129         * modules/unistdio/u8-u8-vsprintf: New file.
87130         * modules/unistdio/u16-asnprintf: New file.
87131         * modules/unistdio/u16-asprintf: New file.
87132         * modules/unistdio/u16-printf-parse: New file.
87133         * modules/unistdio/u16-snprintf: New file.
87134         * modules/unistdio/u16-sprintf: New file.
87135         * modules/unistdio/u16-vasnprintf: New file.
87136         * modules/unistdio/u16-vasprintf: New file.
87137         * modules/unistdio/u16-vsnprintf: New file.
87138         * modules/unistdio/u16-vsprintf: New file.
87139         * modules/unistdio/u16-u16-asnprintf: New file.
87140         * modules/unistdio/u16-u16-asprintf: New file.
87141         * modules/unistdio/u16-u16-snprintf: New file.
87142         * modules/unistdio/u16-u16-sprintf: New file.
87143         * modules/unistdio/u16-u16-vasnprintf: New file.
87144         * modules/unistdio/u16-u16-vasprintf: New file.
87145         * modules/unistdio/u16-u16-vsnprintf: New file.
87146         * modules/unistdio/u16-u16-vsprintf: New file.
87147         * modules/unistdio/u32-asnprintf: New file.
87148         * modules/unistdio/u32-asprintf: New file.
87149         * modules/unistdio/u32-printf-parse: New file.
87150         * modules/unistdio/u32-snprintf: New file.
87151         * modules/unistdio/u32-sprintf: New file.
87152         * modules/unistdio/u32-vasnprintf: New file.
87153         * modules/unistdio/u32-vasprintf: New file.
87154         * modules/unistdio/u32-vsnprintf: New file.
87155         * modules/unistdio/u32-vsprintf: New file.
87156         * modules/unistdio/u32-u32-asnprintf: New file.
87157         * modules/unistdio/u32-u32-asprintf: New file.
87158         * modules/unistdio/u32-u32-snprintf: New file.
87159         * modules/unistdio/u32-u32-sprintf: New file.
87160         * modules/unistdio/u32-u32-vasnprintf: New file.
87161         * modules/unistdio/u32-u32-vasprintf: New file.
87162         * modules/unistdio/u32-u32-vsnprintf: New file.
87163         * modules/unistdio/u32-u32-vsprintf: New file.
87164         * modules/unistdio/ulc-asnprintf-tests: New file.
87165         * modules/unistdio/ulc-vasnprintf-tests: New file.
87166         * modules/unistdio/ulc-vasprintf-tests: New file.
87167         * modules/unistdio/ulc-vsnprintf-tests: New file.
87168         * modules/unistdio/ulc-vsprintf-tests: New file.
87169         * modules/unistdio/u8-asnprintf-tests: New file.
87170         * modules/unistdio/u8-vasnprintf-tests: New file.
87171         * modules/unistdio/u8-vasprintf-tests: New file.
87172         * modules/unistdio/u8-vsnprintf-tests: New file.
87173         * modules/unistdio/u8-vsprintf-tests: New file.
87174         * modules/unistdio/u16-asnprintf-tests: New file.
87175         * modules/unistdio/u16-vasnprintf-tests: New file.
87176         * modules/unistdio/u16-vasprintf-tests: New file.
87177         * modules/unistdio/u16-vsnprintf-tests: New file.
87178         * modules/unistdio/u16-vsprintf-tests: New file.
87179         * modules/unistdio/u32-asnprintf-tests: New file.
87180         * modules/unistdio/u32-vasnprintf-tests: New file.
87181         * modules/unistdio/u32-vasprintf-tests: New file.
87182         * modules/unistdio/u32-vsnprintf-tests: New file.
87183         * modules/unistdio/u32-vsprintf-tests: New file.
87184         * MODULES.html.sh (Unicode string functions): Add the new modules.
87186 2007-07-01  Bruno Haible  <bruno@clisp.org>
87188         * lib/sprintf.c (sprintf): Limit the available length estimation,
87189         to avoid address wraparound.
87190         * lib/vsprintf.c (vsprintf): Likewise.
87191         * modules/sprintf-posix (Dependencies): Add stdint.
87192         * modules/vsprintf-posix (Dependencies): Likewise.
87194 2007-07-01  Bruno Haible  <bruno@clisp.org>
87196         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
87197         Windows PATH as well. Conservative double-quoting. Comments.
87199 2007-07-01  Bruno Haible  <bruno@clisp.org>
87200             Eric Blake  <ebb9@byu.net>
87201             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87203         * gnulib-tool (self_abspathname): Fix algorithm to cope with
87204         empty components in $PATH, denoting '.'.
87206 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87208         * gnulib-tool: Fix indentation.
87209         (func_create_megatestdir): Likewise.
87210         Report by Bruno Haible.
87212 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87214         Sync from Automake.
87215         * build-aux/gnupload: Fix shell portability issues with for loops.
87216         Report by Karl Berry.
87218 2007-06-29  Simon Josefsson  <simon@josefsson.org>
87220         * build-aux/maint.mk (POURL): Use translationproject.org.
87222 2007-06-27  Simon Josefsson  <simon@josefsson.org>
87223             Bruno Haible  <bruno@clisp.org>
87225         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
87226         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
87227         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
87228         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
87229         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
87231 2007-06-27  Bruno Haible  <bruno@clisp.org>
87233         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
87234         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
87236 2007-06-26  Karl Berry  <karl@gnu.org>
87238         * MODULES.html.sh: remove xreadlink-with-size.
87240 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87242         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
87243         method that I hope also handles the double-include problem noted
87244         by Bruno Haible in
87245         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
87247 2007-06-23  Bruno Haible  <bruno@clisp.org>
87249         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87250         Don't let the 'mostlyclean' target fail if the last subdirectory could
87251         not be removed.
87252         Reported by Karl Berry.
87254 2007-06-23  Bruno Haible  <bruno@clisp.org>
87256         * gnulib-tool (echo): Add a speedier workaround for ksh.
87257         * tests/test-echo.sh: Likewise.
87259 2007-06-23  Bruno Haible  <bruno@clisp.org>
87261         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
87262         * tests/test-echo.sh: Likewise.
87264 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87266         * gnulib-tool (IFS): Initialize early, so we don't set it to
87267         empty later.
87268         (self_abspathname): Rewrite algorithm to set it, reindent.
87269         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
87270         (func_create_megatestdir): Merge some sed scripts.
87272 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87274         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
87275         exposed by Sun Studio 11 cc on Solaris 8.
87277 2007-06-22  Bruno Haible  <bruno@clisp.org>
87279         * gnulib-tool (echo): Ensure the echo primitive does not interpret
87280         backslashes.
87281         * tests/test-echo.sh: New file.
87283 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87285         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
87286         simplify `sed_replace_build_aux' scripts, they are portable but
87287         echoing them with `echo' is not.
87288         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
87290 2007-06-21  Karl Berry  <karl@gnu.org>
87292         * config/srclist.txt: guess we can't handle the licenses via
87293         srclist at the moment.
87295 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87297         * MODULES.html.sh: Add include_next.
87298         * modules/include_next: New file.
87300 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87302         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87303         INCLUDE_NEXT.
87304         (gl_CHECK_NEXT_HEADERS): New macro.
87305         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87306         the obsolescent gl_ABSOLUTE_HEADER.
87307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87308         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87309         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87310         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87311         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87312         * m4/math_h.m4 (gl_MATH_H): Likewise.
87313         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87314         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87315         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87316         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87317         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87318         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87319         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87320         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87323         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87324         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87325         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87326         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87327         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87328         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87329         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87330         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87331         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87332         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87333         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87334         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87335         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87336         * lib/float_.h: Likewise.
87337         * lib/inttypes_.h: Likewise.
87338         * lib/math_.h: Likewise.
87339         * lib/search_.h: Likewise.
87340         * lib/signal_.h: Likewise.
87341         * lib/stdint_.h: Likewise.
87342         * lib/stdio_.h: Likewise.
87343         * lib/stdlib_.h: Likewise.
87344         * lib/string_.h: Likewise.
87345         * lib/sys_stat_.h: Likewise.
87346         * lib/sys_time_.h: Likewise.
87347         * lib/time_.h: Likewise.
87348         * lib/unistd_.h: Likewise.
87349         * lib/wchar_.h: Likewise.
87350         * lib/wctype_.h: Likewise.
87351         * lib/dirent_.h: Likewise.
87352         * lib/iconv_.h: Likewise.
87353         * lib/locale_.h: Likewise.
87354         * lib/netinet_in_.h: Likewise.
87355         * lib/sys_select_.h: Likewise.
87356         * lib/sys_socket_.h: Likewise.
87357         * lib/sysexits_.h: Likewise.
87358         * modules/fcntl (Depends-on): Depend on include_next, not
87359         absolute_header.
87360         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87361         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87362         * modules/fchdir: Likewise.
87363         * modules/float: Likewise.
87364         * modules/iconv_open: Likewise.
87365         * modules/inttypes: Likewise.
87366         * modules/locale: Likewise.
87367         * modules/math: Likewise.
87368         * modules/netinet_in: Likewise.
87369         * modules/search: Likewise.
87370         * modules/signal: Likewise.
87371         * modules/stdint: Likewise.
87372         * modules/stdio: Likewise.
87373         * modules/stdlib: Likewise.
87374         * modules/string: Likewise.
87375         * modules/sys_select: Likewise.
87376         * modules/sys_socket: Likewise.
87377         * modules/sys_stat: Likewise.
87378         * modules/sys_time: Likewise.
87379         * modules/sysexits: Likewise.
87380         * modules/time: Likewise.
87381         * modules/unistd: Likewise.
87382         * modules/wchar: Likewise.
87383         * modules/wctype: Likewise.
87384         * modules/sys_stat: Change maintainer to "all".
87385         * modules/unistd: Likewise.
87387 2007-06-20  Karl Berry  <karl@gnu.org>
87389         * config/srclist.txt: track www changes in license files.
87391 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87393         * build-aux/bootstrap: Remove stray dot.
87394         Make sure build_aux settings are honored when linking
87395         gnulib_extra_files.
87397 2007-06-19  Eric Blake  <ebb9@byu.net>
87399         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87400         Allow compilation on cygwin.
87402 2007-06-19  Jim Meyering  <jim@meyering.net>
87404         xreadlink-with-size: Remove module.  No longer used.
87405         Ex-callers now use xreadlink or mreadlink-with-size.
87406         * modules/xreadlink-with-size: Remove module.
87407         * lib/xreadlink-with-size.c: Remove file.
87408         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87409         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87410         just before the function definition *is* accurate.
87412         Eliminate one way canonicalize_filename_mode could exit.
87413         * lib/canonicalize.c (canonicalize_filename_mode):
87414         Use mreadlink_with_size, not xreadlink_with_size.
87416 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87418         Detect porting problems to FreeBSD/arm, which has time_t wider than
87419         long int.  Original problem reported for GNU diff by Xin Li in
87420         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87421         * modules/getdate (Depends-on): Add intprops, verify.
87422         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87423         is an integer type no wider than long int.
87425 2007-06-18  Jim Meyering  <jim@meyering.net>
87427         New module: mreadlink-with-size.
87428         * MODULES.html.sh: Add mreadlink-with-size.
87429         * modules/mreadlink-with-size: New module
87430         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87431         not xreadlink-with-size.
87432         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87434 2007-06-16  Bruno Haible  <bruno@clisp.org>
87436         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87437         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87438         Reported by Gary V. Vaughan <gary@gnu.org>.
87440 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87442         Revamp lchown so that it lives in unistd.h where it belongs.
87443         * lib/lchown.h: Remove.
87444         * lib/dirchownmod.c: Don't include lib/lchown.h.
87445         * lib/fchownat.c: Likewise.
87446         * lib/openat.c: Likewise.
87447         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87448         does not follow symlinks.
87449         (EOPNOTSUPP): Define if not defined.
87450         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87451         is defined to 0.
87452         (lchown): New decl.
87453         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87454         Do not check for lchown decl.
87455         Set REPLACE_LCHOWN.
87456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87457         REPLACE_LCHOWN.
87458         * modules/chown: Make it clear it follows symlinks.
87459         * modules/lchown: Make it clear it doesn't follow symlinks.
87460         (Files): Remove lib/lchown.h
87461         (Depends-on): Add unistd.
87462         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87463         (Include): Include <unistd.h>, not "lchown.h".
87464         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87465         REPLACE_LCHOWN.
87467 2007-06-15  Jim Meyering  <jim@meyering.net>
87469         Change license (GPL to LGPL) of fsusage and dependents.
87470         * modules/fsusage (License): Change to LGPL.
87471         * modules/full-read (License): Likewise.
87472         * modules/full-write (License): Likewise.
87473         * modules/safe-read (License): Likewise.
87474         * modules/safe-write (License): Likewise.
87476 2007-06-14  Ben Pfaff  <blp@gnu.org>
87478         Missing part of allocsa -> malloca transition.
87479         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87480         gl_MALLOCA.
87482 2007-06-12  Bruno Haible  <bruno@clisp.org>
87484         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87485         to ia64, x86_64, i386.
87486         Reported by Eric Blake.
87488 2007-06-12  Bruno Haible  <bruno@clisp.org>
87490         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87491         cross-compiling to x86_64.
87493 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87495         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87496         glitch reported by Ralf Wildenhues in
87497         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87499         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87500         Vin Shelton.
87502 2007-06-11  Bruno Haible  <bruno@clisp.org>
87504         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87505         replacement string.
87506         Reported by Eric Blake.
87508 2007-06-10  Bruno Haible  <bruno@clisp.org>
87510         Prepare vasnprintf code for use with Unicode strings.
87511         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87512         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87513         TYPE_U32_STRING.
87514         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87515         a_u32_string variants.
87516         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87517         * lib/printf-args.c: Don't include config.h and the specification
87518         header if PRINTF_FETCHARGS is already defined.
87519         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87520         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87521         TYPE_U16_STRING, TYPE_U32_STRING.
87522         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87523         u16_directive, u16_directives, u32_directive, u32_directives): New
87524         types.
87525         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87526         New declarations.
87527         * lib/printf-parse.c: Don't include config.h and the specification
87528         header if PRINTF_PARSE is already defined. Eliminate the set of
87529         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87530         them now. Include c-ctype.h.
87531         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87532         directive and CHAR_T_ONLY_ASCII.
87533         * lib/vasnprintf.c: Don't include config.h and the specification header
87534         if VASNPRINTF is already defined.
87535         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87536         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87537         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87538         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87539         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87540         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87541         code accordingly.
87542         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87543         pad_ourselves also in this case, with the 'c' and 's' directives, and
87544         with a different notion of "width".
87545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
87547 2007-06-10  Bruno Haible  <bruno@clisp.org>
87549         * modules/unistr/u32-mbsnlen: New file.
87550         * lib/unistr/u32-mbsnlen.c: New file.
87552         * modules/unistr/u16-mbsnlen: New file.
87553         * lib/unistr/u16-mbsnlen.c: New file.
87555         * modules/unistr/u8-mbsnlen: New file.
87556         * lib/unistr/u8-mbsnlen.c: New file.
87558         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
87559         declarations.
87561 2007-06-10  Bruno Haible  <bruno@clisp.org>
87563         * lib/string_.h (mbsnlen): New declaration.
87564         * lib/mbsnlen.c: New file.
87565         * m4/mbsnlen.m4: New file.
87566         * modules/mbsnlen: New file.
87567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
87568         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
87569         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
87571 2007-06-10  Bruno Haible  <bruno@clisp.org>
87573         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
87575 2007-06-10  Bruno Haible  <bruno@clisp.org>
87577         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
87578         * lib/mbuiter.h: Likewise.
87580 2007-06-10  Bruno Haible  <bruno@clisp.org>
87582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
87583         declaration.
87585 2007-06-10  Karl Berry  <karl@gnu.org>
87587         * config/srclist.txt: remove gettext entries, Bruno prefers
87588         to update individually.
87590 2007-06-10  Bruno Haible  <bruno@clisp.org>
87592         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
87593         'maxlen'. Ensure only length + width bytes are allocated, not
87594         length + 1 + width.
87596 2007-06-09  Bruno Haible  <bruno@clisp.org>
87598         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
87599         (CHAR_T): Remove macro.
87600         (VASNPRINTF): Update.
87602 2007-06-09  Bruno Haible  <bruno@clisp.org>
87604         * MODULES.html.sh (Unicode string functions): Add the new modules.
87606         * modules/uniconv/u32-conv-to-enc: New file.
87607         * lib/uniconv/u32-conv-to-enc.c: New file.
87608         * modules/uniconv/u32-conv-to-enc-tests: New file.
87609         * tests/uniconv/test-u32-conv-to-enc.c: New file.
87611         * modules/uniconv/u16-conv-to-enc: New file.
87612         * lib/uniconv/u16-conv-to-enc.c: New file.
87613         * lib/uniconv/u-conv-to-enc.h: New file.
87614         * modules/uniconv/u16-conv-to-enc-tests: New file.
87615         * tests/uniconv/test-u16-conv-to-enc.c: New file.
87617         * modules/uniconv/u8-conv-to-enc: New file.
87618         * lib/uniconv/u8-conv-to-enc.c: New file.
87619         * modules/uniconv/u8-conv-to-enc-tests: New file.
87620         * tests/uniconv/test-u8-conv-to-enc.c: New file.
87622         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
87623         u32_conv_to_encoding): New declarations.
87625 2007-06-09  Bruno Haible  <bruno@clisp.org>
87627         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
87629 2007-06-09  Bruno Haible  <bruno@clisp.org>
87631         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
87632         * modules/malloca: Renamed from modules/allocsa, updated.
87633         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
87634         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
87635         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
87636         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
87637         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
87638         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
87639         * modules/xmalloca: Renamed from modules/xallocsa, updated.
87640         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
87641         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
87642         * modules/c-strcasestr (Depends-on): Update.
87643         * lib/c-strcasestr.c: Update.
87644         * modules/c-strstr (Depends-on): Update.
87645         * lib/c-strstr.c: Update.
87646         * modules/canonicalize-lgpl (Depends-on): Update.
87647         * lib/canonicalize-lgpl.c: Update.
87648         * modules/clean-temp (Depends-on): Update.
87649         * lib/clean-temp.c: Update.
87650         * modules/csharpcomp (Depends-on): Update.
87651         * lib/csharpcomp.c: Update.
87652         * modules/csharpexec (Depends-on): Update.
87653         * lib/csharpexec.c: Update.
87654         * modules/javacomp (Depends-on): Update.
87655         * lib/javacomp.c: Update.
87656         * modules/javaexec (Depends-on): Update.
87657         * lib/javaexec.c: Update.
87658         * modules/mbscasestr (Depends-on): Update.
87659         * lib/mbscasestr.c: Update.
87660         * modules/mbsstr (Depends-on): Update.
87661         * lib/mbsstr.c: Update.
87662         * modules/setenv (Depends-on): Update.
87663         * lib/setenv.c: Update.
87664         * modules/strcasestr (Depends-on): Update.
87665         * lib/strcasestr.c: Update.
87666         * modules/striconveha (Depends-on): Update.
87667         * lib/striconveha.c: Update.
87668         * modules/relocatable-prog-wrapper (Files): Update.
87669         * lib/relocwrapper.c: Update.
87670         * build-aux/install-reloc: Update.
87671         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
87673 2007-06-08  Bruno Haible  <bruno@clisp.org>
87675         Port to uClibc.
87676         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
87677         * lib/fpurge.c (fpurge): Likewise.
87678         * lib/freading.c (freading): Likewise.
87679         * lib/fseeko.c (rpl_fseeko): Likewise.
87680         * lib/fseterr.c (fseterr): Likewise.
87681         * lib/fwriting.c (fwriting): Likewise.
87682         * tests/test-fflush.c (main): Avoid a failure on uClibc.
87684 2007-06-08  Bruno Haible  <bruno@clisp.org>
87686         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
87687         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
87688         * modules/gettext (Files): Add m4/intlmacosx.m4.
87690 2007-06-07  Bruno Haible  <bruno@clisp.org>
87692         * modules/localename-tests: New file.
87693         * tests/test-localename.c: New file.
87695         New module 'localename'.
87696         * lib/localename.h: New file.
87697         * lib/localename.c: New file, from GNU gettext.
87698         * m4/localename.m4: New file.
87699         * modules/localename: New file.
87701 2007-06-07  Bruno Haible  <bruno@clisp.org>
87703         Work around the lack of <wchar.h> on some builds of uClibc.
87704         * doc/headers/wchar.texi: Update.
87705         * lib/wchar_.h: Include <wchar.h> only if it exists.
87706         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
87707         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
87708         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
87709         doesn't exist.
87710         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
87711         * modules/mbfile (Depends-on): Add wchar.
87712         * modules/mbiter (Depends-on): Likewise.
87713         * modules/mbuiter (Depends-on): Likewise.
87714         Reported by Simon Josefsson.
87716 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87718         Work around problem reported by Steven M. Schweda in
87719         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
87720         Tru64 5.1B with the Compaq compiler environment installed declares
87721         an 'isblank' function but does not define it in the C library.
87722         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
87723         * lib/regex_internal.h (isblank): Likewise.
87724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
87725         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87727 2007-06-05  Bruno Haible  <bruno@clisp.org>
87729         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
87730         ia64.
87731         * modules/printf-safe: New file.
87732         * modules/fprintf-posix (Depends-on): Add printf-safe.
87733         * modules/printf-posix (Depends-on): Likewise.
87734         * modules/snprintf-posix (Depends-on): Likewise.
87735         * modules/sprintf-posix (Depends-on): Likewise.
87736         * modules/vasnprintf-posix (Depends-on): Likewise.
87737         * modules/vasprintf-posix (Depends-on): Likewise.
87738         * modules/vfprintf-posix (Depends-on): Likewise.
87739         * modules/vprintf-posix (Depends-on): Likewise.
87740         * modules/vsnprintf-posix (Depends-on): Likewise.
87741         * modules/vsprintf-posix (Depends-on): Likewise.
87742         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
87743         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
87744         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
87745         "no" on i386, x86_64, ia64.
87746         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
87747         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87748         on i386, x86_64, ia64.
87749         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
87750         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87751         on i386, x86_64, ia64.
87752         * tests/test-vasnprintf-posix.c: Include float.h.
87753         (LDBL80_WORDS): New macro.
87754         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87755         on i386, x86_64, ia64.
87756         * tests/test-vasprintf-posix.c: Include float.h.
87757         (LDBL80_WORDS): New macro.
87758         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87759         on i386, x86_64, ia64.
87760         * tests/test-snprintf-posix.c: Include float.h.
87761         * tests/test-sprintf-posix.c: Likewise.
87762         * tests/test-vsnprintf-posix.c: Likewise.
87763         * tests/test-vsprintf-posix.c: Likewise.
87765 2007-06-05  Bruno Haible  <bruno@clisp.org>
87767         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
87768         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
87769         non-IEEE numbers on i386, x86_64, ia64.
87770         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
87771         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
87772         * tests/test-isnanl.h: Include float.h.
87773         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
87775 2007-06-05  Bruno Haible  <bruno@clisp.org>
87777         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
87778         also the %a / %A. Handle the %a / %A code before this extra handling.
87780 2007-06-05  Bruno Haible  <bruno@clisp.org>
87782         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
87783         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
87785 2007-06-05  Bruno Haible  <bruno@clisp.org>
87787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
87788         typo in variable name.
87790 2007-06-05  Eric Blake  <ebb9@byu.net>
87792         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
87793         Reported by Simon Josefsson.
87795 2007-06-04  Bruno Haible  <bruno@clisp.org>
87797         Avoid test failures on some PowerPC platforms.
87798         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
87799         Define differently for PowerPC.
87800         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
87801         Reported by Gary V. Vaughan <gary@gnu.org>.
87803 2007-06-02  Bruno Haible  <bruno@clisp.org>
87805         Fix test-stdint failure on FreeBSD/ia64.
87806         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
87807         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
87808         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
87809         * doc/headers/stdint.texi: Update.
87811 2007-06-01  Bruno Haible  <bruno@clisp.org>
87813         * tests/test-binary-io.c (main): Pass a third argument to open().
87814         Reported by Gary V. Vaughan <gary@gnu.org>.
87816 2007-06-01  Bruno Haible  <bruno@clisp.org>
87818         * doc/functions/frexpl.texi: Update for mingw.
87820 2007-06-01  Bruno Haible  <bruno@clisp.org>
87822         * tests/test-lseek.c (main): Disable test of errno for invalid third
87823         argument.
87824         * doc/functions/lseek.texi: Update.
87825         Reported by Gary V. Vaughan <gary@gnu.org>.
87827 2007-05-28  Bruno Haible  <bruno@clisp.org>
87829         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
87831 2007-05-31  Eric Blake  <ebb9@byu.net>
87833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
87834         cross compiling.
87836 2007-05-30  Eric Blake  <ebb9@byu.net>
87837         and Bruno Haible  <bruno@clisp.org>
87839         Work around mingw test failures exposed by m4-1.4.9b.
87840         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
87841         * tests/test-unistd.c: Disable uid_t and git_t tests for the
87842         moment.
87844 2007-05-30  Bruno Haible  <bruno@clisp.org>
87846         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
87847         assuming that they are closed. Needed on HP-UX 11.
87849 2007-05-29  Bruno Haible  <bruno@clisp.org>
87851         Fix a problem with #include_next.
87852         * lib/dirent_.h: Split the double-inclusion guard.
87853         * lib/fcntl_.h: Likewise.
87854         * lib/float_.h: Likewise.
87855         * lib/iconv_.h: Likewise.
87856         * lib/inttypes_.h: Likewise.
87857         * lib/locale_.h: Likewise.
87858         * lib/math_.h: Likewise.
87859         * lib/netinet_in_.h: Likewise.
87860         * lib/search_.h: Likewise.
87861         * lib/signal_.h: Likewise.
87862         * lib/stdint_.h: Likewise.
87863         * lib/stdio_.h: Likewise.
87864         * lib/stdlib_.h: Likewise.
87865         * lib/string_.h: Likewise.
87866         * lib/sys_select_.h: Likewise.
87867         * lib/sys_socket_.h: Likewise.
87868         * lib/sys_stat_.h: Likewise.
87869         * lib/sys_time_.h: Likewise.
87870         * lib/sysexits_.h: Likewise.
87871         * lib/time_.h: Likewise.
87872         * lib/unistd_.h: Likewise.
87873         * lib/wchar_.h: Likewise.
87874         * lib/wctype_.h: Likewise.
87876 2007-05-29  Bruno Haible  <bruno@clisp.org>
87878         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
87879         for the moment.
87881 2007-05-29  Bruno Haible  <bruno@clisp.org>
87883         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
87884         invocation.
87885         Reported by Eric Blake.
87887 2007-05-29  Bruno Haible  <bruno@clisp.org>
87889         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
87890         compiling case.
87892 2007-05-29  Eric Blake  <ebb9@byu.net>
87893             Bruno Haible  <bruno@clisp.org>
87895         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
87896         cross compiles.
87898 2007-05-28  Eric Blake  <ebb9@byu.net>
87900         * modules/closein-tests (test_closein_LDADD): Support test on
87901         cygwin with libtool.
87903 2007-05-28  Bruno Haible  <bruno@clisp.org>
87905         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
87906         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
87907         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
87908         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
87909         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
87910         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
87911         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
87912         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
87913         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
87915 2007-05-28  Eric Blake  <ebb9@byu.net>
87917         Unconditionally include <config.h> in unit tests.
87918         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
87919         * tests/test-allocsa.c, tests/test-arcfour.c,
87920         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
87921         tests/test-array_list.c, tests/test-array_oset.c,
87922         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
87923         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
87924         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
87925         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
87926         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
87927         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
87928         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
87929         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
87930         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
87931         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
87932         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
87933         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
87934         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
87935         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
87936         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
87937         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
87938         test-md5.c, test-memmem.c, test-printf-posix.c,
87939         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
87940         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
87941         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
87942         test-strcasestr.c, test-striconv.c, test-striconveh.c,
87943         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
87944         test-vasnprintf-posix2.c, test-vasnprintf.c,
87945         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
87946         test-vfprintf-posix.c, test-vprintf-posix.c,
87947         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
87948         test-xvasprintf.c: Likewise.
87950 2007-05-28  Bruno Haible  <bruno@clisp.org>
87952         * gnulib-tool (func_import): Remember the --with-tests command-line
87953         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
87954         Reported by Eric Blake.
87956 2007-05-28  Bruno Haible  <bruno@clisp.org>
87958         * modules/ftell-tests: New file.
87959         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
87960         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
87962         * lib/ftell.c: New file.
87963         * modules/ftell: New file.
87964         * m4/ftell.m4: New file.
87965         * doc/functions/ftell.texi: Update.
87966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
87967         REPLACE_FTELL.
87968         * lib/stdio_.h (rpl_ftell): New declaration.
87969         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
87970         REPLACE_FTELL.
87972 2007-05-28  Eric Blake  <ebb9@byu.net>
87974         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
87976 2007-05-28  Bruno Haible  <bruno@clisp.org>
87978         * modules/fseek-tests: New file.
87979         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
87980         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
87982         * lib/fseek.c: New file.
87983         * modules/fseek: New file.
87984         * m4/fseek.m4: New file.
87985         * doc/functions/fseek.texi: Update.
87986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
87987         REPLACE_FSEEK.
87988         * lib/stdio_.h (rpl_fseek): New declaration.
87989         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
87990         REPLACE_FSEEK.
87992 2007-05-28  Bruno Haible  <bruno@clisp.org>
87994         * lib/stdio_.h (fflush): More comments.
87996 2007-05-28  Bruno Haible  <bruno@clisp.org>
87998         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
87999         runtime test.
88001 2007-05-28  Eric Blake  <ebb9@byu.net>
88003         Improve lseek module.
88004         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
88005         * lib/unistd_.h (lseek): Scale back link warning message.
88006         * tests/test-lseek.c: Beef up test.
88007         * tests/test-lseek.sh: Exercise more facets of lseek.
88008         Reported by Bruno Haible.
88010 2007-05-28  Bruno Haible  <bruno@clisp.org>
88012         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
88013         to define.
88015 2007-05-27  Bruno Haible  <bruno@clisp.org>
88017         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
88019 2007-05-27  Bruno Haible  <bruno@clisp.org>
88021         * modules/openmp: New file.
88022         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
88023         Noah Misch.
88025 2007-05-26  Bruno Haible  <bruno@clisp.org>
88027         * modules/chdir-long (Depends-on): Add fchdir.
88028         * modules/chdir-safer (Depends-on): Likewise.
88029         * modules/fts (Depends-on): Likewise.
88030         * modules/fts-lgpl (Depends-on): Likewise.
88031         * modules/openat (Depends-on): Likewise.
88032         * modules/savewd (Depends-on): Likewise.
88034 2007-05-24  Eric Blake  <ebb9@byu.net>
88036         Fix lseek on mingw.
88037         * modules/lseek: New module.
88038         * m4/lseek.m4: New file.
88039         * lib/lseek.c: New file.
88040         * modules/lseek-tests: New file.
88041         * tests/test-lseek.c: New file.
88042         * tests/test-lseek.sh: New file.
88043         * MODULES.html.sh: Document lseek module.
88044         * modules/fflush (Depends-on): Add lseek, fseeko.
88045         * modules/fseeko (Depends-on): Likewise.
88046         * modules/ftello (Depends-on): Likewise.
88047         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
88048         broken.
88049         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
88050         broken.
88051         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
88052         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
88053         * lib/ftello.c (rpl_ftello): Likewise.
88054         * tests/test-fseeko.c (main): Test this.
88055         * tests/test-fseeko.sh: Likewise.
88056         * tests/test-ftello.c (main): Likewise.
88057         * tests/test-ftello.sh: Likewise.
88058         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
88059         implies replacing fseek.
88060         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
88061         HAVE_FTELLO.
88062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
88063         * modules/unistd (Makefile.am): Likewise.
88064         * lib/unistd_.h (lseek): Declare a replacement.
88065         * doc/functions/lseek.texi (lseek): Document this fix.
88066         * doc/functions/fseek.texi (fseek): Likewise.
88067         * doc/functions/ftell.texi (ftell): Likewise.
88069 2007-05-24  Bruno Haible  <bruno@clisp.org>
88071         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
88072         in the printed representation of a NaN.
88073         * tests/test-vasprintf-posix.c (test_function): Likewise.
88074         * tests/test-snprintf-posix.h (test_function): Likewise.
88075         * tests/test-sprintf-posix.h (test_function): Likewise.
88076         Reported by Eric Blake.
88078 2007-05-23  Eric Blake  <ebb9@byu.net>
88080         Fix fseeko/ftello on cygwin 1.5.24.
88081         * doc/functions/fseeko.texi (fseeko): Document the fix.
88082         * doc/functions/ftello.texi (ftello): Document the fix.
88083         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
88084         * doc/functions/stdout.text (stdout): New file.
88085         * doc/functions/stderr.text (stderr): New file.
88086         * doc/gnulib.texi (Function Substitutes): Use new files.
88087         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
88088         prior to 1.7.0.
88089         * tests/test-ftello.c (main): Likewise for ftello.
88090         * tests/test-fseeko.sh: New file.
88091         * tests/test-ftello.sh: New file.
88092         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
88093         with seekable stdin.
88094         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
88095         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
88096         (gl_REPLACE_FSEEKO): New macro.
88097         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
88098         * modules/fseeko (Files): Distribute fseeko.c.
88099         * modules/ftello (Files): Distribute ftello.c.
88100         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
88101         mode.
88102         * lib/ftello.c (rpl_ftello): New file.
88103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
88104         fseeko, ftello.
88105         (gl_STDIN_LARGE_OFFSET): New macro.
88106         * modules/stdio (Makefile.am): Perform the replacement.
88107         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
88109 2007-05-23  Bruno Haible  <bruno@clisp.org>
88111         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
88112         GNULIB_POSIXCHECK is defined.
88114 2007-05-21  Bruno Haible  <bruno@clisp.org>
88116         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
88117         Check also the output for NaN arguments. When cross-compiling, guess
88118         no on IRIX.
88119         * lib/vasnprintf.c: Update comments.
88120         * tests/test-vasnprintf-posix.c (strisnan): New function.
88121         (test_function): Use it.
88122         * tests/test-vasprintf-posix.c (strisnan): New function.
88123         (test_function): Use it.
88124         * tests/test-snprintf-posix.h (strisnan): New function.
88125         (test_function): Use it.
88126         * tests/test-sprintf-posix.h (strisnan): New function.
88127         (test_function): Use it.
88128         Reported by Eric Blake.
88130 2007-05-20  Bruno Haible  <bruno@clisp.org>
88132         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
88133         numbers that fails on BeOS.
88134         * doc/functions/frexpl.texi: Update.
88136 2007-05-20  Jim Meyering  <jim@meyering.net>
88138         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
88139         forced upon us by glibc-2.6.
88141 2007-05-20  Bruno Haible  <bruno@clisp.org>
88143         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
88144         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
88145         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
88146         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
88147         NEED_PRINTF_INFINITE.
88148         (is_infinitel): New function.
88149         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
88150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
88151         gl_PREREQ_VASNPRINTF_INFINITE.
88152         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
88153         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88154         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
88155         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
88156         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
88157         gl_PREREQ_VASNPRINTF_INFINITE.
88158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88159         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88162         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88165         * doc/functions/fprintf.texi: Update.
88166         * doc/functions/printf.texi: Update.
88167         * doc/functions/snprintf.texi: Update.
88168         * doc/functions/sprintf.texi: Update.
88169         * doc/functions/vfprintf.texi: Update.
88170         * doc/functions/vprintf.texi: Update.
88171         * doc/functions/vsnprintf.texi: Update.
88172         * doc/functions/vsprintf.texi: Update.
88174 2007-05-20  Bruno Haible  <bruno@clisp.org>
88176         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
88177         was not found in libc.
88178         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
88180 2007-05-20  Bruno Haible  <bruno@clisp.org>
88182         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88183         printed as "-nan" instead of "nan".
88184         * tests/test-vasprintf-posix.c (test_function): Likewise.
88185         * tests/test-snprintf-posix.h (test_function): Likewise.
88186         * tests/test-sprintf-posix.h (test_function): Likewise.
88187         Needed for HP-UX 11.
88189 2007-05-20  Jim Meyering  <jim@meyering.net>
88191         Fix buggy test for the fchownat-deref bug.
88192         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
88193         symlink required for the run-test.  Without it, this test would
88194         always declare that fchownat doesn't work, and client code would
88195         unnecessarily use the replacement function with fixed libc.
88196         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
88197         Reported by Greg Schafer.
88199 2007-05-19  Bruno Haible  <bruno@clisp.org>
88201         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
88202         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
88203         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
88204         Needed for IRIX 6.5 and Solaris 2.5.1.
88206 2007-05-19  Bruno Haible  <bruno@clisp.org>
88208         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
88209         (test_function): Skip tests involving -0.0 on platforms where
88210         -0.0 = 0.0.
88211         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
88212         (test_function): Skip tests involving -0.0 on platforms where
88213         -0.0 = 0.0.
88214         * tests/test-snprintf-posix.h (have_minus_zero): New function.
88215         (test_function): Skip tests involving -0.0 on platforms where
88216         -0.0 = 0.0.
88217         * tests/test-sprintf-posix.h (have_minus_zero): New function.
88218         (test_function): Skip tests involving -0.0 on platforms where
88219         -0.0 = 0.0.
88220         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
88221         tests.
88222         * tests/test-printf-posix.h (test_function): Likewise.
88223         * tests/test-printf-posix.output: Remove all -0.0 related results.
88224         Needed for IRIX 6.5.
88226 2007-05-19  Bruno Haible  <bruno@clisp.org>
88228         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88229         printed as "nan0x7fffffff" instead of "nan".
88230         * tests/test-vasprintf-posix.c (test_function): Likewise.
88231         * tests/test-snprintf-posix.h (test_function): Likewise.
88232         * tests/test-sprintf-posix.h (test_function): Likewise.
88233         * tests/test-fprintf-posix.h (NaN): Remove macro.
88234         (test_function): Remove all NaN related tests.
88235         * tests/test-printf-posix.h (NaN): Remove macro.
88236         (test_function): Remove all NaN related tests.
88237         * tests/test-printf-posix.output: Remove all NaN related results.
88238         Needed for IRIX 6.5.
88240 2007-05-19  Bruno Haible  <bruno@clisp.org>
88242         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
88243         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
88245 2007-05-19  Bruno Haible  <bruno@clisp.org>
88247         * lib/float_.h: New file.
88248         * m4/float_h.m4: New file.
88249         * modules/float: New file.
88250         * modules/isnanl (Dependencies): Add float.
88251         * modules/isnanl-nolibm (Dependencies): Likewise.
88252         * modules/mathl (Dependencies): Likewise.
88253         * modules/printf-frexpl (Dependencies): Likewise.
88254         * modules/signbit (Dependencies): Likewise.
88255         * modules/vasnprintf (Dependencies): Likewise.
88256         * doc/headers/float.texi: Update.
88258 2007-05-19  Jim Meyering  <jim@meyering.net>
88260         * lib/utimens.c (gl_futimens): Rename from futimens,
88261         now that glibc-2.6 declares futimens.
88262         * lib/utimens.h: Likewise.
88264 2007-05-19  Bruno Haible  <bruno@clisp.org>
88266         Avoid test failures on mingw.
88267         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
88268         * tests/test-printf-posix.sh: Likewise.
88269         * tests/test-vfprintf-posix.sh: Likewise.
88270         * tests/test-vprintf-posix.sh: Likewise.
88272 2007-05-19  Bruno Haible  <bruno@clisp.org>
88274         Fix *printf result for NaN, Inf, -0.0 on mingw.
88275         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
88276         * lib/vasnprintf.c: Include math.h and isnan.h.
88277         (is_infinite_or_zero): New function.
88278         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
88279         values in the %f, %F, %e, %E, %g, %G directives.
88280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
88281         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88282         gl_PRINTF_INFINITE and test its result. Invoke
88283         gl_PREREQ_VASNPRINTF_INFINITE.
88284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88288         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88290         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88291         * doc/functions/fprintf.texi: Update.
88292         * doc/functions/printf.texi: Update.
88293         * doc/functions/snprintf.texi: Update.
88294         * doc/functions/sprintf.texi: Update.
88295         * doc/functions/vfprintf.texi: Update.
88296         * doc/functions/vprintf.texi: Update.
88297         * doc/functions/vsnprintf.texi: Update.
88298         * doc/functions/vsprintf.texi: Update.
88300 2007-05-19  Bruno Haible  <bruno@clisp.org>
88302         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88303         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88304         Instead of multiplying with 10^k, set extra_zeroes to k.
88305         (scale10_round_long_double): Remove function.
88307 2007-05-18  Bruno Haible  <bruno@clisp.org>
88309         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88310         introduced on 2007-05-06.
88312 2007-05-18  Bruno Haible  <bruno@clisp.org>
88314         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88315         %g directives.
88316         * tests/test-vasprintf-posix.c (test_function): Likewise.
88317         * tests/test-snprintf-posix.h (test_function): Likewise.
88318         * tests/test-sprintf-posix.h (test_function): Likewise.
88320 2007-05-18  Bruno Haible  <bruno@clisp.org>
88322         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88323         (strmatch): New function.
88324         (test_function): Test the %f directive on numbers of various exponents.
88325         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88326         (strmatch): New function.
88327         (test_function): Test the %f directive on numbers of various exponents.
88328         * tests/test-snprintf-posix.h (strmatch): New function.
88329         (test_function): Test the %f directive on numbers of various exponents.
88330         * tests/test-sprintf-posix.h (strmatch): New function.
88331         (test_function): Test the %f directive on numbers of various exponents.
88332         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88333         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88334         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88335         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88337 2007-05-18  Bruno Haible  <bruno@clisp.org>
88339         Add support for 'long double' number output.
88340         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88341         * lib/vasnprintf.c: Include math.h and float+.h.
88342         (mp_limb_t): New type.
88343         (GMP_LIMB_BITS): New macro.
88344         (mp_twolimb_t): New type.
88345         (GMP_TWOLIMB_BITS): New macro.
88346         (mpn_t): New type.
88347         (multiply, divide, convert_to_decimal, decode_long_double,
88348         scale10_round_long_double, scale10_round_decimal_long_double,
88349         floorlog10l): New functions.
88350         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88351         for the %f, %F, %e, %E, %g, %G directives.
88352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88353         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88354         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88355         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88361         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88362         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88363         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88364         * modules/snprintf-posix (Depends-on): Likewise.
88365         * modules/sprintf-posix (Depends-on): Likewise.
88366         * modules/vasnprintf-posix (Depends-on): Likewise.
88367         * modules/vasprintf-posix (Depends-on): Likewise.
88368         * modules/vfprintf-posix (Depends-on): Likewise.
88369         * modules/vsnprintf-posix (Depends-on): Likewise.
88370         * modules/vsprintf-posix (Depends-on): Likewise.
88371         * modules/vasnprintf (Files): Add lib/float+.h.
88372         * doc/functions/fprintf.texi: Update.
88373         * doc/functions/printf.texi: Update.
88374         * doc/functions/snprintf.texi: Update.
88375         * doc/functions/sprintf.texi: Update.
88376         * doc/functions/vfprintf.texi: Update.
88377         * doc/functions/vprintf.texi: Update.
88378         * doc/functions/vsnprintf.texi: Update.
88379         * doc/functions/vsprintf.texi: Update.
88381 2007-05-18  Bruno Haible  <bruno@clisp.org>
88383         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88385 2007-05-18  Bruno Haible  <bruno@clisp.org>
88387         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88388         for printing 64-bit integers. Needed for mingw.
88390 2007-05-18  Bruno Haible  <bruno@clisp.org>
88392         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88393         gl_FUNC_FREXPL_WORKS.
88394         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88396 2007-05-18  Bruno Haible  <bruno@clisp.org>
88398         * modules/frexpl-nolibm-tests: New file.
88400         * modules/frexpl-nolibm: New file.
88401         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88403 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88405         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88406         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88407         GCC 4.2, which otherwise issues a lot of warnings.
88408         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88409         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88410         Likewise.
88411         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88412         * modules/iconv_open (iconv.h): Likewise.
88413         * modules/locale (locale.h): Likewise.
88414         * modules/netinet_in (netinet/in.h): Likewise.
88415         * modules/sys_select (sys_select.h): Likewise.
88416         * modules/sys_socket (sys/socket.h): Likewise.
88417         * modules/sys_stat (sys/stat.h): Likewise.
88418         * modules/sysexits (sysexits.h): Likewise.
88419         * modules/unistd (unistd.h): Likewise.
88421 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88423         * modules/closein-tests (Makefile.am): Distribute
88424         `test-closein.sh'.
88426 2007-05-17  Bruno Haible  <bruno@clisp.org>
88428         * tests/test-printf-posix.output: Renamed from
88429         tests/test-fprintf-posix.out.
88430         * modules/fprintf-posix-tests: Update.
88431         * modules/printf-posix-tests: Update.
88432         * modules/vfprintf-posix-tests: Update.
88433         * modules/vprintf-posix-tests: Update.
88434         * tests/test-fprintf-posix.sh: Update.
88435         * tests/test-printf-posix.sh: Update.
88436         * tests/test-vfprintf-posix.sh: Update.
88437         * tests/test-vprintf-posix.sh: Update.
88438         Reported by Ralf Wildenhues.
88440 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88442         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88443         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88444         GCC 4.2, which otherwise issues a lot of warnings.
88445         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88446         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88447         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88448         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88449         it should no longer be needed.
88450         * lib/string_.h: Likewise.
88451         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88452         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88453         * modules/inttypes (inttypes.h): Likewise.
88454         * modules/math (math.h): Likewise.
88455         * modules/search (search.h): Likewise.
88456         * modules/signal (signal.h): Likewise.
88457         * modules/stdint (stdint.h): Likewise.
88458         * modules/stdio (stdio.h): Likewise.
88459         * modules/stdlib (stdlib.h): Likewise.
88460         * modules/string (string.h): Likewise.
88461         * modules/sys_time (sys/time.h): Likewise.
88462         * modules/time (time.h): Likewise.
88463         * modules/wchar (wchar.h): Likewise.
88464         * modules/wctype (wtype.h): Likewise.
88466 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88468         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88470 2007-05-13  Bruno Haible  <bruno@clisp.org>
88472         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88473         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88474         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88475         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88476         (gl_PREREQ_STRTOK_R): Don't require it here.
88478 2007-05-13  Bruno Haible  <bruno@clisp.org>
88480         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88481         when used in C++ mode.
88483 2007-05-12  Bruno Haible  <bruno@clisp.org>
88485         * lib/linebuffer.h: Tweak doc.
88486         * lib/linebuffer.c: Likewise.
88488 2007-05-12  James Youngman  <jay@gnu.org>
88490         * lib/linebuffer.c (readlinebuffer_delim): New function,
88491         like readlinebuffer, but use a caller-specified delimiter.
88492         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88493         as the delimiter.
88494         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88496 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88498         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88499         * modules/openat (Files): Remove openat-die.c.
88500         (Depends-on): Add openat-die.
88501         * modules/openat-die: New module.
88503 2007-05-06  Bruno Haible  <bruno@clisp.org>
88505         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88506         Update with info about Cygwin.
88507         * doc/functions/fprintf.texi: Update.
88508         * doc/functions/printf.texi: Update.
88509         * doc/functions/snprintf.texi: Update.
88510         * doc/functions/sprintf.texi: Update.
88511         * doc/functions/vfprintf.texi: Update.
88512         * doc/functions/vprintf.texi: Update.
88513         * doc/functions/vsnprintf.texi: Update.
88514         * doc/functions/vsprintf.texi: Update.
88515         Reported by Eric Blake.
88517 2007-05-06  Bruno Haible  <bruno@clisp.org>
88519         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88520         padding ourselves for the floating-point directives.
88521         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88523         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88524         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88525         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88526         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88527         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88528         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88529         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88530         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88531         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88532         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88533         * tests/test-snprintf-posix.h (test_function): Also check the width
88534         and some flags in the %f directive.
88535         * tests/test-sprintf-posix.h (test_function): Likewise.
88536         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88537         * tests/test-vasprintf-posix.c (test_function): Likewise.
88538         * doc/functions/fprintf.texi: Update.
88539         * doc/functions/printf.texi: Update.
88540         * doc/functions/snprintf.texi: Update.
88541         * doc/functions/sprintf.texi: Update.
88542         * doc/functions/vfprintf.texi: Update.
88543         * doc/functions/vprintf.texi: Update.
88544         * doc/functions/vsnprintf.texi: Update.
88545         * doc/functions/vsprintf.texi: Update.
88547 2007-05-06  Bruno Haible  <bruno@clisp.org>
88549         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
88550         pass the ' flag character to sprintf or snprintf.
88551         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
88552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88553         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88554         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
88555         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
88556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88557         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88558         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88559         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88560         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88561         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88563         * tests/test-snprintf-posix.h (test_function): Also check the grouping
88564         flag.
88565         * tests/test-sprintf-posix.h (test_function): Likewise.
88566         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88567         * tests/test-vasprintf-posix.c (test_function): Likewise.
88568         * doc/functions/fprintf.texi: Update.
88569         * doc/functions/printf.texi: Update.
88570         * doc/functions/snprintf.texi: Update.
88571         * doc/functions/sprintf.texi: Update.
88572         * doc/functions/vfprintf.texi: Update.
88573         * doc/functions/vprintf.texi: Update.
88574         * doc/functions/vsnprintf.texi: Update.
88575         * doc/functions/vsprintf.texi: Update.
88577 2007-05-01  Bruno Haible  <bruno@clisp.org>
88579         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
88581 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
88583         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
88584         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
88586 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
88588         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
88589         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
88590         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
88592 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
88594         * lib/argp-help.c (struct hol_entry): New member `ord'.
88595         (HOL_ENTRY_PTRCMP): Use ord for comparison
88596         (hol_sort): Initialize ord.
88598 2007-05-01  Bruno Haible  <bruno@clisp.org>
88600         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
88601         Reported by Eric Blake.
88602         * doc/gnulib.texi (Function Substitutes): Update.
88604 2007-05-01  Bruno Haible  <bruno@clisp.org>
88606         * doc/functions.texi: Remove file, now redundant through
88607         doc/functions/*.texi.
88609 2007-05-01  Bruno Haible  <bruno@clisp.org>
88611         * modules/argp (Depends-on): Add sleep.
88613 2007-05-01  Bruno Haible  <bruno@clisp.org>
88615         * modules/sleep-tests: New file.
88616         * tests/test-sleep.c: New file.
88618         * modules/sleep: New file.
88619         * lib/sleep.c: New file.
88620         * m4/sleep.m4: New file.
88621         * lib/unistd_.h (sleep): New declaration.
88622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
88623         HAVE_SLEEP.
88624         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
88625         * doc/functions/sleep.texi: Document the sleep module.
88627 2007-05-01  Bruno Haible  <bruno@clisp.org>
88629         * lib/sigprocmask.h: Remove file.
88630         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
88631         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
88632         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
88633         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
88634         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
88635         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
88636         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
88637         HAVE_SIGSET_T as a shell variable.
88638         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
88639         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
88640         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
88641         (Depends-on): Add signal. Remove verify.
88642         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
88643         (Include): Mention <signal.h> instead of sigprocmask.h.
88644         * NEWS: Mention the change.
88645         * lib/fatal-signal.c: Don't include sigprocmask.h.
88647 2007-05-01  Bruno Haible  <bruno@clisp.org>
88649         * modules/signal: New file.
88650         * lib/signal_.h: New file.
88651         * m4/signal_h.m4: New file.
88653 2007-05-01  Bruno Haible  <bruno@clisp.org>
88655         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
88656         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
88657         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
88658         HAVE_WCTYPE_CTMP_BUG into wctype.h.
88660 2007-05-01  Bruno Haible  <bruno@clisp.org>
88662         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
88663         configure time.
88664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
88665         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
88666         * modules/sys_stat (Makefile.am): Substitute their values into
88667         sys/stat.h.
88669 2007-05-01  Bruno Haible  <bruno@clisp.org>
88671         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
88672         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
88673         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
88675 2007-05-01  Bruno Haible  <bruno@clisp.org>
88677         * doc/header/assert.texi: Undo last change: don't mention the gnulib
88678         'assert' module here.
88680 2007-05-01  Bruno Haible  <bruno@clisp.org>
88682         * doc/functions/*.texi: New files.
88683         * doc/functions/google-ranking.txt: New file.
88684         * doc/gnulib.texi (Function Substitutes): New chapter.
88685         (ctime, inet_ntoa): Remove sections.
88686         * doc/ctime.texi: Remove file.
88687         * doc/inet_ntoa.texi: Remove file.
88688         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
88689         dependencies.
88690         (%.info): New rule, specifying a --reference-limit.
88692 2007-05-01  Bruno Haible  <bruno@clisp.org>
88694         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
88696 2007-05-01  Bruno Haible  <bruno@clisp.org>
88698         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
88699         the portability of 'mkdir' to mingw systems.
88701 2007-05-01  Bruno Haible  <bruno@clisp.org>
88703         * doc/headers/google-ranking.txt: New file.
88705 2007-04-30  Eric Blake  <ebb9@byu.net>
88707         Prefer fseeko to fseek.
88708         * modules/getpass (Depends-on): Add fseeko.
88709         * lib/getpass.c (getpass): Use fseeko, not fseek.
88711 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
88713         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
88714         assumes the sorting is stable, while most qsort implementations
88715         are not.  Use argument addresses to ensure they never compare as
88716         equal.
88718         * tests/test-argp-2.sh (usage-indent test): Fix output
88719         (func_compare): Restore diff options
88720         * tests/test-argp.c: Restore #include "progname.h"
88722 2007-04-29  Bruno Haible  <bruno@clisp.org>
88724         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
88725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88726         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
88727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88728         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
88729         (configure.ac): Define CHECK_SNPRINTF_POSIX.
88730         (TESTS, check_PROGRAMS): Add test-snprintf.
88731         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
88732         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
88733         (TESTS, check_PROGRAMS): Add test-vsnprintf.
88734         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
88735         assertions that fail on HP-UX, OSF/1, or IRIX.
88736         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
88738 2007-04-29  Bruno Haible  <bruno@clisp.org>
88740         * MODULES.html.sh (posix_functions): Remove 'contents'.
88742 2007-04-29  Karl Berry  <karl@gnu.org>
88744         * config/srclist.txt (gendocs_template_min): new entry.
88746 2007-04-29  Bruno Haible  <bruno@clisp.org>
88748         Work around fpurge bug on BSD systems.
88749         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
88750         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
88751         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
88752         fpurge to rpl_fpurge if the system already has this function.
88753         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
88754         the case where the system already has this function. Correct invariants
88755         on BSD systems.
88756         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
88757         BSD systems.
88759 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88761         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
88762         proposed by Sven Verdoolaege.
88764         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
88765         options.
88766         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
88767         (usage and help tests): Update
88769 2007-04-29  Bruno Haible  <bruno@clisp.org>
88771         * tests/test-fflush.c (main): Use a file of size 17, not 10.
88772         Print more information in case of failure. Disable a test on BeOS.
88774 2007-04-29  Bruno Haible  <bruno@clisp.org>
88776         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
88777         This helps debugging on systems on which no gdb is available.
88779 2007-04-29  Bruno Haible  <bruno@clisp.org>
88781         * lib/freading.h: Improve comments.
88782         * lib/fwriting.h: Likewise.
88783         * tests/test-freading.c (main): Don't check freading immediately after
88784         repositioning. Needed for glibc.
88786 2007-04-29  Bruno Haible  <bruno@clisp.org>
88788         * lib/freading.c (freading): Trivial simplification.
88790 2007-04-28  Bruno Haible  <bruno@clisp.org>
88792         * tests/test-fwriting.c (main): Also test the interaction between
88793         fflush and fwriting.
88794         * modules/fwriting-tests (Depends-on): Add fflush.
88796         * tests/test-freading.c (main): Also test the interaction between
88797         fflush and freading.
88798         * modules/freading-tests (Depends-on): Add fflush.
88800 2007-04-28  Bruno Haible  <bruno@clisp.org>
88802         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
88803         fseeko and ftello.
88804         Suggested by Eric Blake.
88806 2007-04-28  Jim Meyering  <jim@meyering.net>
88808         Avoid false-negative in gl_STDINT_H's C99 conformance test.
88809         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
88810         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
88812 2007-04-27  Eric Blake  <ebb9@byu.net>
88814         * doc/headers/assert.texi (assert.h): Document assert module use.
88816 2007-04-27  Bruno Haible  <bruno@clisp.org>
88818         * doc/headers/*.texi: New files.
88819         * doc/gnulib.texi (Header File Substitutes): New chapter.
88820         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
88821         dependencies.
88822         (standards.info ,standards.html, standards.dvi): Update dependencies.
88823         (mostlyclean, clean): New targets.
88825 2007-04-27  Bruno Haible  <bruno@clisp.org>
88827         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
88828         * modules/sysexits (Files, Makefile.am): Update.
88830         * lib/sys_socket_.h: Renamed from lib/socket_.h.
88831         * modules/sys_socket (Files, Makefile.am): Update.
88833         * lib/sys_stat_.h: Renamed from lib/stat_.h.
88834         * modules/sys_stat (Files, Makefile.am): Update.
88836 2007-04-27  Eric Blake  <ebb9@byu.net>
88838         * lib/freading.h: Improve comments.
88839         * lib/fwriting.h: Likewise.
88840         * lib/fflush.c: Likewise.
88842         Fix closein for mingw.
88843         * modules/closein-tests: Add tests for closein.
88844         * tests/test-closein.c: New file.
88845         * tests/test-closein.sh: Likewise.
88846         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
88847         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
88849 2007-04-27  Bruno Haible  <bruno@clisp.org>
88851         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
88852         version is < 6.
88853         * lib/math_.h [__DECC]: Likewise.
88854         * lib/stdio_.h [__DECC]: Likewise.
88855         * lib/stdlib_.h [__DECC]: Likewise.
88856         * lib/string_.h [__DECC]: Likewise.
88857         * lib/time_.h [__DECC]: Likewise.
88858         * lib/wchar_.h [__DECC]: Likewise.
88859         * lib/wctype_.h [__DECC]: Likewise.
88861 2007-04-27  Bruno Haible  <bruno@clisp.org>
88863         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
88865 2007-04-27  Bruno Haible  <bruno@clisp.org>
88867         * lib/fflush.c: Add comments.
88868         * modules/fpurge-tests (Depends-on): Add fflush.
88869         * modules/freadable-tests (Depends-on): Likewise.
88870         * modules/fwritable-tests (Depends-on): Likewise.
88872 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
88874         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
88875         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
88876         Report by Bruno Haible <bruno@clisp.org>.
88878 2007-04-26  Eric Blake  <ebb9@byu.net>
88880         Fix fflush on mingw.
88881         * modules/fflush (Depends-on): Add freading.
88882         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
88883         but unread data.
88885 2007-04-26  Eric Blake  <ebb9@byu.net>
88886         and Bruno Haible  <bruno@clisp.org>
88888         Implement freading and fwriting.
88889         * lib/freading.c: New file.
88890         * lib/freading.h: Likewise.
88891         * m4/freading.m4: Likewise.
88892         * modules/freading: Likewise.
88893         * modules/freading-tests: Likewise.
88894         * tests/test-freading.c: Likewise.
88895         * lib/fwriting.c: New file.
88896         * lib/fwriting.h: Likewise.
88897         * m4/fwriting.m4: Likewise.
88898         * modules/fwriting: Likewise.
88899         * modules/fwriting-tests: Likewise.
88900         * tests/test-fwriting.c: Likewise.
88901         * MODULES.html.sh (File stream based Input/Output): Mention them.
88903 2007-04-26  Bruno Haible  <bruno@clisp.org>
88905         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
88906         'long' when we assume it.
88907         Suggested by Eric Blake.
88909 2007-04-26  Bruno Haible  <bruno@clisp.org>
88911         Ensure fseeko, ftello are declared on glibc systems.
88912         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
88913         * modules/fseeko (configure.ac-early): Likewise.
88914         * modules/ftello (configure.ac-early): Likewise.
88915         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
88916         AC_FUNC_FSEEKO for this.
88917         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
88918         (gl_CHECK_FSEEKO): Remove macro.
88920 2007-04-26  Bruno Haible  <bruno@clisp.org>
88922         * tests/test-fflush.c (main): Also check the ftell result after
88923         fflush and fseek/fseeko.
88924         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
88925         file descriptor position cache in the stream.
88926         * lib/fseeko.c (rpl_fseeko): Likewise.
88928 2007-04-26  Bruno Haible  <bruno@clisp.org>
88930         * modules/fflush-tests (Depends-on): Add fseeko.
88932 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
88933             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88935         * lib/argz_.h: ensure error_t definition is obtained in same
88936         mechanism system argz.h would have.
88937         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
88938         argz facilities are known bad.  Err on the side of caution if
88939         cross-compiling.
88941 2007-04-25  Eric Blake  <ebb9@byu.net>
88943         * lib/fpurge.c (includes): Use stdlib.h for free.
88944         * tests/test-fflush.c (main): Also test fflush-fseeko.
88946 2007-04-25  Bruno Haible  <bruno@clisp.org>
88948         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
88949         * lib/fseeko.c: New file.
88950         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
88951         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
88952         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
88953         gl_FUNC_FSEEKO.
88954         (gl_FUNC_FSEEKO): Invoke it.
88955         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
88956         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
88957         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
88959 2007-04-25  Bruno Haible  <bruno@clisp.org>
88961         * modules/fflush (Depends-on): Add ftello.
88963 2007-04-25  Bruno Haible  <bruno@clisp.org>
88965         * modules/ftello-tests: New file.
88966         * tests/test-ftello.c: New file.
88968         * modules/ftello: New file.
88969         * m4/ftello.m4: New file.
88970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
88971         HAVE_FTELLO.
88972         * lib/stdio_.h (ftello): New declaration.
88973         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
88974         HAVE_FTELLO.
88976 2007-04-25  Bruno Haible  <bruno@clisp.org>
88978         * modules/fseeko-tests: New file.
88979         * tests/test-fseeko.c: New file.
88981         * modules/fseeko: New file.
88982         * m4/fseeko.m4: New file.
88983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
88984         HAVE_FSEEKO.
88985         * lib/stdio_.h (fseeko): New declaration.
88986         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
88987         HAVE_FSEEKO.
88989 2007-04-25  Bruno Haible  <bruno@clisp.org>
88991         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
88993 2007-04-25  Bruno Haible  <bruno@clisp.org>
88995         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
88996         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
88997         * tests/test-unistd.c: Likewise.
88998         * tests/test-fcntl.c: Likewise.
89000 2007-04-23  Eric Blake  <ebb9@byu.net>
89002         * lib/fflush.c: Fix missing include.
89003         Reported by Bruno Haible.
89005 2007-04-23  Bruno Haible  <bruno@clisp.org>
89007         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
89008         Reported by Eric Blake.
89010 2007-04-23  Bruno Haible  <bruno@clisp.org>
89012         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
89014 2007-04-23  Bruno Haible  <bruno@clisp.org>
89016         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
89018 2007-04-23  Bruno Haible  <bruno@clisp.org>
89020         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
89021         Needed on HP-UX 11.
89023 2007-04-16  Eric Blake  <ebb9@byu.net>
89025         Make fflush rely on fpurge.
89026         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
89027         open coding all variants.
89028         * modules/fflush (Depends-on): Add fpurge and unistd.
89029         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
89030         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
89032         Fix --with-tests compilation on cygwin.
89033         * modules/argmatch-tests (Makefile.am): List gnulib library first
89034         in LDADD.
89035         * modules/argp-tests (Makefile.am): Likewise.
89036         * modules/array-list-tests (Makefile.am): Likewise.
89037         * modules/array-oset-tests (Makefile.am): Likewise.
89038         * modules/avltree-list-tests (Makefile.am): Likewise.
89039         * modules/avltree-oset-tests (Makefile.am): Likewise.
89040         * modules/avltreehash-list-tests (Makefile.am): Likewise.
89041         * modules/carray-list-tests (Makefile.am): Likewise.
89042         * modules/dirname-tests (Makefile.am): Likewise.
89043         * modules/frexp-tests (Makefile.am): Likewise.
89044         * modules/isnanl-tests (Makefile.am): Likewise.
89045         * modules/linked-list-tests (Makefile.am): Likewise.
89046         * modules/linkedhash-list-tests (Makefile.am): Likewise.
89047         * modules/lock-tests (Makefile.am): Likewise.
89048         * modules/rbtree-list-tests (Makefile.am): Likewise.
89049         * modules/rbtree-oset-tests (Makefile.am): Likewise.
89050         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
89051         * modules/tls-tests (Makefile.am): Likewise.
89052         * modules/tsearch-tests (Makefile.am): Likewise.
89053         * modules/xvasprintf-tests (Makefile.am): Likewise.
89055         Fix fpurge for cygwin.
89056         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
89057         value.
89058         * modules/fpurge-tests (Depends-on): Clean up trash.
89060 2007-04-16  Simon Josefsson  <simon@josefsson.org>
89062         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
89064         * m4/autobuild.m4: Re-indent.
89066 2007-04-13  Bruno Haible  <bruno@clisp.org>
89068         * modules/fpurge-tests: New file.
89069         * tests/test-fpurge.c: New file.
89071         * modules/fpurge: New file.
89072         * lib/fpurge.h: New file.
89073         * lib/fpurge.c: New file.
89074         * m4/fpurge.m4: New file.
89076 2007-04-13  Bruno Haible  <bruno@clisp.org>
89078         * modules/fbufmode-tests: New file.
89079         * tests/test-fbufmode.c: New file.
89081         * modules/fbufmode: New file.
89082         * lib/fbufmode.h: New file.
89083         * lib/fbufmode.c: New file.
89084         * m4/fbufmode.m4: New file.
89086 2007-04-13  Bruno Haible  <bruno@clisp.org>
89088         * modules/fwritable-tests: New file.
89089         * tests/test-fwritable.c: New file.
89091         * modules/fwritable: New file.
89092         * lib/fwritable.h: New file.
89093         * lib/fwritable.c: New file.
89094         * m4/fwritable.m4: New file.
89096 2007-04-13  Bruno Haible  <bruno@clisp.org>
89098         * modules/freadable-tests: New file.
89099         * tests/test-freadable.c: New file.
89101         * modules/freadable: New file.
89102         * lib/freadable.h: New file.
89103         * lib/freadable.c: New file.
89104         * m4/freadable.m4: New file.
89106 2007-04-13  Bruno Haible  <bruno@clisp.org>
89108         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
89109         MOSTLYCLEANFILES.
89111 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
89113         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
89114         gzip bootstrap.conf to avoid dragging in i18n machinery.
89115         (gnulib_tool_option): Use it.
89117 2007-04-13  Bruno Haible  <bruno@clisp.org>
89119         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
89120         %F directives.
89121         * tests/test-vasprintf-posix.c (test_function): Likewise.
89122         * tests/test-snprintf-posix.h (test_function): Likewise.
89123         * tests/test-sprintf-posix.h (test_function): Likewise.
89124         * tests/test-fprintf-posix.h (test_function): Likewise.
89125         * tests/test-printf-posix.h (test_function): Likewise.
89126         * tests/test-fprintf-posix.out: Likewise.
89128 2007-04-13  Bruno Haible  <bruno@clisp.org>
89130         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
89131         * modules/tls-tests (configure.ac): Likewise.
89132         Reported by Arto C. Nirkko <anirkko@insel.ch>.
89134 2007-04-13  Bruno Haible  <bruno@clisp.org>
89136         * lib/tls.c (glthread_tls_get): Fix return type.
89137         Patch by Arto C. Nirkko <anirkko@insel.ch>.
89139 2007-04-12  Eric Blake  <ebb9@byu.net>
89141         * modules/gettime (Depends-on): Remove gettime.
89142         Reported by Dmitry V. Levin.
89144 2007-04-12  Bruno Haible  <bruno@clisp.org>
89146         * modules/fflush (Include): Mention <stdio.h>.
89147         * modules/strtoimax (Include): Mention <inttypes.h>.
89148         * modules/strtoumax (Include): Likewise.
89150 2007-04-12  Eric Blake  <ebb9@byu.net>
89152         * .cvsignore: New file.
89153         * .gitignore: Likewise.
89155 2007-04-12  Bruno Haible  <bruno@clisp.org>
89157         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
89158         not before, since $(LDADD) often contains libgnu.a.
89159         * modules/striconv-tests (test_striconv_LDADD): Likewise.
89160         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
89161         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
89162         Needed on Cygwin.
89164 2007-04-12  Eric Blake  <ebb9@byu.net>
89166         Work around glibc's failure to flush stdin on fclose.
89167         * lib/closein.c (close_stdin): Flush stdin before closing.
89169         Work around glibc's failure to reset seekable stdin on exit.
89170         * modules/closein: New module.
89171         * lib/closein.c: New file.
89172         * lib/closein.h: Likewise.
89173         * m4/closein.m4: Likewise.
89174         * MODULES.html.sh (File stream based Input/Output): Document it.
89176 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89178         * gnulib-tool: Rename generated 'autobuild' script to
89179         'do-autobuild' in --create-megatestdir output.
89181         * doc/gnulib.texi (Build robot for gnulib): Fix.
89183 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89185         * modules/sysexits (Depends-on): Add absolute-header.
89187 2007-04-12  Eric Blake  <ebb9@byu.net>
89189         No need to preserve errno on success.
89190         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
89191         Reported by Bruno Haible.
89193 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89195         * MODULES.html.sh (Support for maintaining and releasing
89196         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
89198 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89200         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
89202 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89204         * modules/autobuild: New module.
89206         * m4/autobuild.m4: New file.
89208 2007-04-11  Bruno Haible  <bruno@clisp.org>
89210         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
89211         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
89212         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
89213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
89214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89215         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89216         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89218         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89219         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
89221         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89222         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
89224         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89225         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89226         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
89227         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89228         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89229         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
89230         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89231         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
89233         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89234         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89235         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
89236         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89237         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89238         Reported by Eric Blake.
89240 2007-04-11  Bruno Haible  <bruno@clisp.org>
89242         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
89244 2007-04-10  Bruno Haible  <bruno@clisp.org>
89246         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
89247         for NaN and Infinity. Needed on FreeBSD 6.1.
89248         * tests/test-vasnprintf-posix.c (test_function): Undo last change
89249         regarding results for "%010a" of Infinity and NaN.
89250         * tests/test-vasprintf-posix.c (test_function): Likewise.
89251         * tests/test-snprintf-posix.h (test_function): Likewise.
89252         * tests/test-sprintf-posix.h (test_function): Likewise.
89253         * tests/test-fprintf-posix.h (test_function): Likewise.
89254         * tests/test-printf-posix.h (test_function): Likewise.
89255         * tests/test-fprintf-posix.out: Likewise.
89257 2007-04-10  Bruno Haible  <bruno@clisp.org>
89259         * modules/locale-tests: New file.
89260         * tests/test-locale.c: New file.
89262         * modules/locale: New file.
89263         * lib/locale_.h: New file.
89264         * m4/locale_h.m4: New file.
89266 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
89267             Bruno Haible  <bruno@clisp.org>
89269         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
89270         be determined, test for availability of the copysignf, copysign,
89271         copysignl functions.
89272         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
89273         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
89274         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
89276 2007-04-09  Eric Blake  <ebb9@byu.net>
89278         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
89279         * modules/stdio (Makefile.am): Support fflush.
89280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89281         * modules/fflush: New file.
89282         * lib/fflush.c: Likewise.
89283         * m4/fflush.m4: Likewise.
89284         * modules/fflush-tests: New test.
89285         * tests/test-fflush.c: Likewise.
89286         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
89288 2007-04-06  Bruno Haible  <bruno@clisp.org>
89290         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
89291         (VASNPRINTF): Use signbit for faster determination whether to print a
89292         minus sign.
89293         * modules/vasnprintf (Files): Remove lib/float+.h.
89294         * modules/fprintf-posix (Depends-on): Add signbit.
89295         * modules/snprintf-posix (Depends-on): Likewise.
89296         * modules/sprintf-posix (Depends-on): Likewise.
89297         * modules/vasnprintf-posix (Depends-on): Likewise.
89298         * modules/vasprintf-posix (Depends-on): Likewise.
89299         * modules/vfprintf-posix (Depends-on): Likewise.
89300         * modules/vsnprintf-posix (Depends-on): Likewise.
89301         * modules/vsprintf-posix (Depends-on): Likewise.
89303 2007-04-06  Bruno Haible  <bruno@clisp.org>
89305         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89306         * tests/test-frexpl.c (main): Likewise.
89307         * tests/test-ldexpl.c (main): Likewise.
89308         * modules/frexp-tests (Depends-on): Add signbit.
89309         * modules/frexpl-tests (Depdends-on): Likewise.
89310         * modules/ldexpl-tests (Depdends-on): Likewise.
89312 2007-04-06  Bruno Haible  <bruno@clisp.org>
89314         * modules/signbit-tests: New file.
89315         * tests/test-signbit.c: New file.
89317         * modules/signbit: New file.
89318         * lib/signbitf.c: New file.
89319         * lib/signbitd.c: New file.
89320         * lib/signbitl.c: New file.
89321         * m4/signbit.m4: New file.
89322         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89323         (signbit): New macro.
89324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89325         REPLACE_SIGNBIT.
89326         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89327         REPLACE_FREXPL into math.h.
89329 2007-04-06  Bruno Haible  <bruno@clisp.org>
89331         * modules/isnanf-nolibm-tests: New file.
89332         * tests/test-isnanf.c: New file.
89334         * modules/isnanf-nolibm: New file.
89335         * lib/isnanf.h: New file.
89336         * lib/isnanf.c: New file.
89337         * lib/isnan.c: Consider the USE_FLOAT macro.
89338         * m4/isnanf.m4: New file.
89340 2007-04-06  Bruno Haible  <bruno@clisp.org>
89342         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89343         (Link): New section.
89345         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89347 2007-04-06  Bruno Haible  <bruno@clisp.org>
89349         Assume the 'long double' type.
89350         * m4/longdouble.m4: Remove file.
89351         * config/srclist.txt: Don't mention longdouble.m4.
89352         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89353         * lib/float+.h: Likewise.
89354         * lib/frexp.c: Likewise.
89355         * lib/printf-args.h: Likewise.
89356         * lib/printf-args.c: Likewise.
89357         * lib/printf-frexp.c: Likewise.
89358         * lib/printf-parse.c: Likewise.
89359         * lib/vasnprintf.c: Likewise.
89360         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89361         * m4/intl.m4: Likewise.
89362         * m4/isnanl.m4: Likewise.
89363         * m4/printf.m4: Likewise.
89364         * m4/printf-frexpl.m4: Likewise.
89365         * m4/vasnprintf.m4: Likewise.
89366         * modules/allocsa (Files): Remove m4/longdouble.m4.
89367         * modules/gettext (Files): Likewise.
89368         * modules/relocatable-prog-wrapper (Files): Likewise.
89369         * modules/vasnprintf (Files): Likewise.
89370         * modules/isnanl (Files): Likewise.
89371         (Include): Simplify.
89372         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89373         (Include): Simplify.
89374         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89375         (Include): Simplify.
89376         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89377         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89378         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89379         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89380         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89381         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89382         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89383         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89384         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89385         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89386         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89387         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89388         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89389         * tests/test-isnanl.c: Likewise.
89390         * tests/test-snprintf-posix.h: Likewise.
89391         * tests/test-sprintf-posix.h: Likewise.
89392         * tests/test-vasnprintf-posix.c: Likewise.
89393         * tests/test-vasnprintf-posix2.c: Likewise.
89394         * tests/test-vasprintf-posix.c: Likewise.
89396 2007-04-06  Bruno Haible  <bruno@clisp.org>
89398         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89399         * lib/math_.h [__DECC]: Include the overridden include file through
89400         #include_next, outside the double-inclusion guard.
89401         * lib/stdio_.h [__DECC]: Likewise.
89402         * lib/stdlib_.h [__DECC]: Likewise.
89403         * lib/string_.h [__DECC]: Likewise.
89404         * lib/time_.h [__DECC]: Likewise.
89405         * lib/wchar_.h [__DECC]: Likewise.
89406         * lib/wctype_.h [__DECC]: Likewise.
89407         * lib/inttypes_.h [__DECC]: Likewise.
89408         Reported by Albert Chin <china@thewrittenword.com> in
89409         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89411 2007-04-04  Eric Blake  <ebb9@byu.net>
89413         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89414         1.5.x.
89416 2007-04-04  Bruno Haible  <bruno@clisp.org>
89418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89419         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89421 2007-04-04  Bruno Haible  <bruno@clisp.org>
89423         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89424         results for "%010a" of Infinity and NaN.
89425         * tests/test-vasprintf-posix.c (test_function): Likewise.
89426         * tests/test-snprintf-posix.h (test_function): Likewise.
89427         * tests/test-sprintf-posix.h (test_function): Likewise.
89428         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89429         * tests/test-printf-posix.h (test_function): Likewise.
89430         * tests/test-fprintf-posix.out: Update.
89431         Needed for FreeBSD 6.1.
89433 2007-04-04  Bruno Haible  <bruno@clisp.org>
89435         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89436         directly used by the gnulib modules nor by gnulib-tool.
89438 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89440         * DEPENDENCIES: Give overall description of version dependency
89441         desirability.  Use more-typical names for apps.
89442         Add shell, coreutils, diffutils, grep, tar, gzip.
89444 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89446         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89448 2007-04-04  Karl Berry  <karl@gnu.org>
89450         * MODULES.html.sh (func_module): missing '.
89452 2007-04-03  Bruno Haible  <bruno@clisp.org>
89454         * modules/argmatch-tests (Makefile.am): New variable
89455         test_argmatch_LDADD.
89456         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89457         * modules/array-list-tests (Makefile.am): New variable
89458         test_array_list_LDADD.
89459         * modules/array-oset-tests (Makefile.am): New variable
89460         test_array_oset_LDADD.
89461         * modules/avltree-list-tests (Makefile.am): New variable
89462         test_avltree_list_LDADD.
89463         * modules/avltree-oset-tests (Makefile.am): New variable
89464         test_avltree_oset_LDADD.
89465         * modules/avltreehash-list-tests (Makefile.am): New variable
89466         test_avltreehash_list_LDADD.
89467         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89468         test_canonicalize_lgpl_LDADD.
89469         * modules/carray-list-tests (Makefile.am): New variable
89470         test_carray_list_LDADD.
89471         * modules/dirname-tests (Makefile.am): New variable
89472         test_dirname_LDADD.
89473         * modules/linked-list-tests (Makefile.am): New variable
89474         test_linked_list_LDADD.
89475         * modules/linkedhash-list-tests (Makefile.am): New variable
89476         test_linkedhash_list_LDADD.
89477         * modules/rbtree-list-tests (Makefile.am): New variable
89478         test_rbtree_list_LDADD.
89479         * modules/rbtree-oset-tests (Makefile.am): New variable
89480         test_rbtree_oset_LDADD.
89481         * modules/rbtreehash-list-tests (Makefile.am): New variable
89482         test_rbtreehash_list_LDADD.
89483         * modules/xvasprintf-tests (Makefile.am): New variable
89484         test_xvasprintf_LDADD.
89485         Reported by Eric Blake.
89487 2007-04-03  Eric Blake  <ebb9@byu.net>
89489         * DEPENDENCIES: Weaken m4 requirements.
89491 2007-04-03  Bruno Haible  <bruno@clisp.org>
89493         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89494         * modules/isnanl-tests (configure.ac): Likewise.
89496 2007-04-03  Ben Pfaff  <blp@gnu.org>
89498         * modules/iconv_open: Add $(srcdir)/ to source directory
89499         references in Makefile fragments that call gperf, to fix VPATH
89500         builds.
89502 2007-04-03  Bruno Haible  <bruno@clisp.org>
89504         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89505         * lib/ldexpl.c: Undo last change.
89507 2007-04-03  Bruno Haible  <bruno@clisp.org>
89509         * modules/printf-frexpl (Depends-on): Undo last change.
89510         (Files): Add m4/ldexpl.m4.
89512 2007-04-03  Bruno Haible  <bruno@clisp.org>
89514         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89515         * modules/isnanl (Link): New section.
89517         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89518         * modules/frexp (Link): New section.
89520         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89521         * modules/frexpl (Link): New section.
89523         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89524         * modules/ldexpl (Link): New section.
89526 2007-04-03  Bruno Haible  <bruno@clisp.org>
89528         * modules/TEMPLATE-EXTENDED: New file.
89529         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89531 2007-04-03  Bruno Haible  <bruno@clisp.org>
89533         * DEPENDENCIES: New file.
89534         Suggested by Simon Josefsson.
89536 2007-04-03  Bruno Haible  <bruno@clisp.org>
89538         * doc/gnulib.texi: Escape @.
89540 2007-04-03  James Youngman  <jay@gnu.org>
89541         and Paul Eggert  <eggert@cs.ucla.edu>
89543         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
89544         birthtime on all systems that have birthtime, not just those which
89545         use st_birthtimensec rather than st_birthtim.  Putting zero in
89546         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
89547         that the birth time is not available for files on an NFS mount.
89549 2007-04-03  Simon Josefsson  <simon@josefsson.org>
89551         * modules/memxor: Move back from crypto/, suggested by Bruno.
89552         * modules/crypto/hmac-sha1: Fix memxor dependency.
89554         * modules/crypto/gc: Moved from ../.
89556 2007-04-02  Eric Blake  <ebb9@byu.net>
89558         * lib/ldexpl.c (includes): Avoid libm.
89560         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
89562 2007-04-02  Bruno Haible  <bruno@clisp.org>
89564         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
89565         on IRIX.
89567 2007-04-02  Bruno Haible  <bruno@clisp.org>
89569         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
89570         x86 or x86_64 platforms running MacOS X.
89571         Reported by Ryan Schmidt <@ryandesign.com>.
89573 2007-04-02  Bruno Haible  <bruno@clisp.org>
89575         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
89576         i386.
89578 2007-04-01  Simon Josefsson  <simon@josefsson.org>
89580         * modules/crypto/arcfour: Moved from ../.
89581         * modules/crypto/arcfour-tests: Moved from ../.
89582         * modules/crypto/arctwo: Moved from ../.
89583         * modules/crypto/arctwo-tests: Moved from ../.
89584         * modules/crypto/des: Moved from ../.
89585         * modules/crypto/des-tests: Moved from ../.
89586         * modules/crypto/gc-arcfour: Moved from ../.
89587         * modules/crypto/gc-arcfour-tests: Moved from ../.
89588         * modules/crypto/gc-arctwo: Moved from ../.
89589         * modules/crypto/gc-arctwo-tests: Moved from ../.
89590         * modules/crypto/gc-des: Moved from ../.
89591         * modules/crypto/gc-des-tests: Moved from ../.
89592         * modules/crypto/gc-hmac-md5: Moved from ../.
89593         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
89594         * modules/crypto/gc-hmac-sha1: Moved from ../.
89595         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
89596         * modules/crypto/gc-md2: Moved from ../.
89597         * modules/crypto/gc-md2-tests: Moved from ../.
89598         * modules/crypto/gc-md4: Moved from ../.
89599         * modules/crypto/gc-md4-tests: Moved from ../.
89600         * modules/crypto/gc-md5: Moved from ../.
89601         * modules/crypto/gc-md5-tests: Moved from ../.
89602         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
89603         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
89604         * modules/crypto/gc-random: Moved from ../.
89605         * modules/crypto/gc-rijndael: Moved from ../.
89606         * modules/crypto/gc-rijndael-tests: Moved from ../.
89607         * modules/crypto/gc-sha1: Moved from ../.
89608         * modules/crypto/gc-sha1-tests: Moved from ../.
89609         * modules/crypto/gc-tests: Moved from ../.
89610         * modules/crypto/hmac-md5: Moved from ../.
89611         * modules/crypto/hmac-md5-tests: Moved from ../.
89612         * modules/crypto/hmac-sha1: Moved from ../.
89613         * modules/crypto/hmac-sha1-tests: Moved from ../.
89614         * modules/crypto/md2: Moved from ../.
89615         * modules/crypto/md2-tests: Moved from ../.
89616         * modules/crypto/md4: Moved from ../.
89617         * modules/crypto/md4-tests: Moved from ../.
89618         * modules/crypto/md5: Moved from ../.
89619         * modules/crypto/md5-tests: Moved from ../.
89620         * modules/crypto/memxor: Moved from ../.
89621         * modules/crypto/rijndael: Moved from ../.
89622         * modules/crypto/rijndael-tests: Moved from ../.
89623         * modules/crypto/sha1: Moved from ../.
89625 2007-03-30  James Youngman  <jay@gnu.org>
89627         * tests/test-stat-time.c (prepare_test): use chmod() rather than
89628         rename() to change the ctime of a file (because ctime is unaffected
89629         by rename on jfs2 on AIX 5.1).
89630         (main): Start by doing cleanup, in case a previous run failed leaving
89631         test files behind.
89633 2007-03-31  Bruno Haible  <bruno@clisp.org>
89635         Support old proprietary implementations of iconv.
89636         * modules/iconv_open: New file.
89637         * lib/iconv_.h: New file.
89638         * m4/iconv_h.m4: New file.
89639         * lib/iconv_open.c: New file.
89640         * lib/iconv_open-aix.gperf: New file.
89641         * lib/iconv_open-hpux.gperf: New file.
89642         * lib/iconv_open-irix.gperf: New file.
89643         * lib/iconv_open-osf.gperf: New file.
89644         * m4/iconv_open.m4: New file.
89645         * modules/linebreak (Depends-on): Add iconv_open.
89646         * modules/striconv (Depends-on): Likewise.
89647         * modules/striconveh (Depends-on): Likewise.
89648         * modules/unicodeio (Depends-on): Likewise.
89649         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
89650         (iconv_t)(-1).
89651         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
89652         conversion if cd is (iconv_t)(-1).
89653         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
89654         is not possible.
89656 2007-03-31  Bruno Haible  <bruno@clisp.org>
89658         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89659         work on Solaris either. Protect also second use of "autodetect_jp".
89661 2007-03-31  Bruno Haible  <bruno@clisp.org>
89663         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
89664         the function is not present.
89666 2007-03-31  Bruno Haible  <bruno@clisp.org>
89668         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
89669         the function is not present.
89671 2007-03-31  Bruno Haible  <bruno@clisp.org>
89673         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
89674         a bug in HP-UX iconv_open().
89676 2007-03-31  Bruno Haible  <bruno@clisp.org>
89678         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
89679         (Mathematics <math.h>): New section, add fpieee.
89680         (Input/output <stdio.h>): Add fseterr.
89681         (Mathematics <math.h>): New section, add printf-frexp.
89682         (Container data structures): Add sublist.
89683         (Core language properties): Add fpucw, inline.
89684         (Functions for greatest-width integer types <inttypes.h>): Add
89685         imaxabs, imaxdiv, inttypes.
89686         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
89687         isnanl-nolibm, ldexp.
89688         (Mathematics <math.h>): New section, add printf-frexpl.
89689         (Support for systems lacking POSIX:2001): Add fprintf-posix,
89690         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
89691         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
89692         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
89693         (Unicode string functions): Add unistr/u*-mbtoucr.
89694         (Java): Add javacomp-script, javaexec-script.
89695         (C#): Add csharpcomp-script, csharpexec-script.
89696         (Support for building libraries and executables): Add havelib,
89697         relocatable-*.
89698         (Support for maintaining and releasing projects): Renamed from
89699         'Support for maintaining and release projects'. Add announce-gen.
89701 2007-03-31  Bruno Haible  <bruno@clisp.org>
89703         * README: Talk primarily about git.
89704         (git and CVS): Renamed from CVS.
89705         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
89706         gnulib is available through git.
89707         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
89709 2007-03-30  Bruno Haible  <bruno@clisp.org>
89711         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
89712         * lib/poll_.h: Likewise.
89713         * lib/stat_.h: Likewise.
89714         * lib/sys_time_.h: Likewise.
89715         * lib/sysexit_.h: Likewise.
89716         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
89717         * lib/stdbool_.h: Likewise.
89718         * lib/byteswap_.h: Add double-inclusion guard.
89720 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
89722         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
89724 2007-03-30  Karl Berry  <karl@gnu.org>
89726         * config/srclist-update: double space after USA in the license
89727         substitution, since that's how it's usually (?) written.
89729 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
89731         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
89732         reported by Bruno Haible.
89734 2007-03-29  Bruno Haible  <bruno@clisp.org>
89736         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
89737         a bug in AIX iconv().
89739 2007-03-29  Bruno Haible  <bruno@clisp.org>
89741         * modules/ldexpl-tests: New file.
89742         * tests/test-ldexpl.c: New file.
89744 2007-03-29  Bruno Haible  <bruno@clisp.org>
89746         * lib/ldexpl.c: Include fpucw.h.
89747         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
89748         multiplication.
89749         * modules/ldexpl (Depends-on): Add fpucw.
89751 2007-03-29  Bruno Haible  <bruno@clisp.org>
89753         * modules/ldexpl: New file.
89754         * m4/ldexpl.m4: New file.
89755         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
89756         set.
89757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
89758         REPLACE_LDEXPL.
89759         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
89760         REPLACE_LDEXPL.
89761         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
89762         gl_FUNC_LDEXPL_WORKS.
89763         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
89764         * modules/mathl (Files): Remove lib/ldexpl.c.
89765         (Depends-on): Add ldexpl.
89767 2007-03-29  Bruno Haible  <bruno@clisp.org>
89769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
89771 2007-03-29  Bruno Haible  <bruno@clisp.org>
89773         * tests/test-striconveh.c (main): Don't assume that a direct conversion
89774         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
89775         and possibly also HP-UX.
89776         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89777         work on AIX, IRIX, HP-UX, OSF/1.
89778         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
89779         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
89780         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
89781         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
89782         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
89783         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
89785 2007-03-29  Bruno Haible  <bruno@clisp.org>
89787         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
89789 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89791         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
89792         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
89794 2007-03-29  Eric Blake  <ebb9@byu.net>
89796         * lib/acl-internal.h: Remove redundant include.
89797         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
89798         Cygwin when a file is locked.
89800 2007-03-29  Bruno Haible  <bruno@clisp.org>
89802         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
89803         file.
89804         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
89806 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89808         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
89809         try to remove a parent directory if the child couldn't be removed
89810         (except for the first rmdir, which could fail because the child
89811         doesn't exist).  Problem reported by Jeff Blaine in
89812         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
89814 2007-03-28  Bruno Haible  <bruno@clisp.org>
89816         * lib/striconveh.c (utf8conv_carefully): New function.
89817         (mem_cd_iconveh_internal): Invoke it.
89819 2007-03-28  Bruno Haible  <bruno@clisp.org>
89821         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
89822         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
89823         input.
89824         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
89825         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
89826         unistr/u8-uctomb.
89828 2007-03-28  Bruno Haible  <bruno@clisp.org>
89830         * modules/unistr/u8-mbtoucr: New file.
89831         * lib/unistr/u8-mbtoucr.c: New file.
89832         * modules/unistr/u16-mbtoucr: New file.
89833         * lib/unistr/u16-mbtoucr.c: New file.
89834         * modules/unistr/u16-mbtoucr: New file.
89835         * lib/unistr/u16-mbtoucr.c: New file.
89836         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
89838 2007-03-27  Simon Josefsson  <simon@josefsson.org>
89839             Bruno Haible  <bruno@clisp.org>
89841         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
89842         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
89843         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
89845         * m4/stdio_h.m4: Add stubs for vasprintf too.
89847         * modules/stdio: Support vasprintf in sed command.
89849         * modules/vasprintf: Depend on stdio for prototypes.  Remove
89850         vasprintf.h.  Add stdio module indicator.
89852         * lib/stdio_.h: Declare asprintf and vasprintf, based on
89853         vasprintf.h.
89855         * lib/vasprintf.h: File removed.
89857         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
89858         * lib/vasprintf.c: Ditto.
89859         * lib/xvasprintf.c: Ditto.
89860         * tests/test-vasprintf-posix.c: Ditto.
89861         * tests/test-vasprintf.c: Ditto.
89863 2007-03-27  Bruno Haible  <bruno@clisp.org>
89865         Make vasnprintf multithread-safe.
89866         * lib/vasnprintf.c (decimal_point_char): New function.
89867         (VASNPRINTF): Use it.
89868         Suggested by Simon Josefsson.
89870 2007-03-27  Eric Blake  <ebb9@byu.net>
89872         Support sub-second birthtime on cygwin.
89873         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
89874         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
89875         (get_stat_birthtime): Also work with st_birthtim.
89877 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
89879         * lib/stat-time.h (USE_BIRTHTIME): Remove.
89880         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
89881         (get_stat_birthtime_ns): Do not try to use "spare" fields.
89882         (get_stat_birthtime_ns): Simplify compile-time tests.
89883         (get_stat_birthtime): Change the API to look like
89884         get_stat_mtime etc., except return a negative tv_nsec on error.
89885         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
89886         Don't check for "spare" fields.
89887         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
89888         or for struct stat.st_birthtime, as these tests aren't used.
89889         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
89891 2007-03-27  Bruno Haible  <bruno@clisp.org>
89893         * lib/stat-time.h: Include <sys/stat.h>.
89895 2007-03-27  James Youngman  <jay@gnu.org>
89897         * lib/stat-time.h (get_stat_birthtime): New function for
89898           retrieving st_birthtime as provided by UFS2 (hence *BSD).
89899         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
89900           and its variants.
89901         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
89902         * modules/stat-time-test: New file.
89903         * tests/test-stat-time.c: New test, devised by Bruno Haible.
89905 2007-03-26  Bruno Haible  <bruno@clisp.org>
89907         Better support of signalling NaNs.
89908         * lib/atanl.c: Include isnanl.h.
89909         (atanl): Perform test for NaN at the beginning of the function and
89910         through a call to isnanl.
89911         * lib/cosl.c: Include isnanl.h.
89912         (cosl): Perform test for NaN at the beginning of the function and
89913         through a call to isnanl.
89914         * lib/ldexpl.c: Include isnanl.h.
89915         (ldexpl): Perform test for NaN through a call to isnanl.
89916         * lib/logl.c: Include isnanl.h.
89917         (logl): Perform test for NaN at the beginning of the function and
89918         through a call to isnanl.
89919         * lib/sinl.c: Include isnanl.h.
89920         (sinl): Perform test for NaN at the beginning of the function and
89921         through a call to isnanl.
89922         * lib/sqrtl.c: Include isnanl.h.
89923         (sqrtl): Perform test for NaN at the beginning of the function and
89924         through a call to isnanl.
89925         * lib/tanl.c: Include isnanl.h.
89926         (tanl): Perform test for NaN at the beginning of the function and
89927         through a call to isnanl.
89928         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
89929         * modules/mathl (Depends-on): Add isnanl.
89931 2007-03-26  Eric Blake  <ebb9@byu.net>
89933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
89934         regression in logic sense of previous patch.
89936 2007-03-26  Bruno Haible  <bruno@clisp.org>
89938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
89939         unportable shell command "if ! ...".
89940         Reported by Ralf Wildenhues.
89942 2007-03-25  Bruno Haible  <bruno@clisp.org>
89944         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
89945         <sysexits.h> file, and only add EX_CONFIG.
89946         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
89947         absolute file name and whether it is sufficient. Substitute also
89948         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
89949         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
89950         ABSOLUTE_SYSEXITS_H into sysexits.h.
89952 2007-03-25  Bruno Haible  <bruno@clisp.org>
89954         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
89955         hints is NULL.
89957 2007-03-25  Bruno Haible  <bruno@clisp.org>
89959         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
89960         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
89962 2007-03-25  Bruno Haible  <bruno@clisp.org>
89964         * lib/vasnprintf.c: Include langinfo.h.
89965         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
89966         multithread-safe.
89967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
89968         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
89969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
89970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
89975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89976         Reported by Simon Josefsson.
89978 2007-03-25  Bruno Haible  <bruno@clisp.org>
89980         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
89981         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
89982         * modules/vasnprintf (Depends-on): Add stdint.
89984 2007-03-25  Bruno Haible  <bruno@clisp.org>
89986         * modules/fpieee: New file.
89987         * m4/fpieee.m4: New file.
89988         * modules/isnan-nolibm (Depends-on): Add fpieee.
89989         * modules/isnanl-nolibm (Depends-on): Add fpieee.
89990         * modules/isnanl (Depends-on): Add fpieee.
89992 2007-03-25  Bruno Haible  <bruno@clisp.org>
89994         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
89996 2007-03-25  Bruno Haible  <bruno@clisp.org>
89998         Avoid test failures on IRIX 6.5.
89999         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
90000         (main): Use it.
90001         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
90002         macros.
90003         (main): Use them.
90005 2007-03-25  Bruno Haible  <bruno@clisp.org>
90007         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
90008         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
90009         exists but doesn't work.
90010         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
90011         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
90012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
90013         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
90014         math.h.
90016 2007-03-25  Bruno Haible  <bruno@clisp.org>
90018         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
90019         returns inf. Needed on IRIX 6.5.
90021 2007-03-25  Bruno Haible  <bruno@clisp.org>
90023         * tests/test-frexpl.c: Include isnanl-nolibm.h.
90024         (main): Use isnanl instead of x != x idiom.
90025         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
90027         * tests/test-frexp.c: Include isnan.h.
90028         (main): Use isnan instead of x != x idiom.
90029         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
90031 2007-03-25  Bruno Haible  <bruno@clisp.org>
90033         * tests/test-frexp.c (NaN): New function/macro.
90034         (main): Use it instead of 0.0 / 0.0.
90035         * tests/test-isnan.c (NaN): New function/macro.
90036         (main): Use it instead of 0.0 / 0.0.
90037         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
90038         (test_function): Use it instead of 0.0 / 0.0.
90039         * tests/test-vasprintf-posix.c (NaN): New function/macro.
90040         (test_function): Use it instead of 0.0 / 0.0.
90041         * tests/test-snprintf-posix.h (NaN): New function/macro.
90042         (test_function): Use it instead of 0.0 / 0.0.
90043         * tests/test-sprintf-posix.h (NaN): New function/macro.
90044         (test_function): Use it instead of 0.0 / 0.0.
90045         * tests/test-fprintf-posix.h (NaN): New function/macro.
90046         (test_function): Use it instead of 0.0 / 0.0.
90047         * tests/test-printf-posix.h (NaN): New function/macro.
90048         (test_function): Use it instead of 0.0 / 0.0.
90050         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
90052 2007-03-25  Bruno Haible  <bruno@clisp.org>
90054         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
90056 2007-03-25  Bruno Haible  <bruno@clisp.org>
90058         * lib/regexec.c (merge_state_with_log): Make static.
90060 2007-03-25  Bruno Haible  <bruno@clisp.org>
90062         * lib/trigl.c (kernel_rem_pio2): Make static.
90064 2007-03-25  Bruno Haible  <bruno@clisp.org>
90066         * lib/sincosl.c (sincosl_table): Make static.
90068 2007-03-25  Bruno Haible  <bruno@clisp.org>
90070         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
90071         if the compiler does not support C99.
90073 2007-03-25  Bruno Haible  <bruno@clisp.org>
90075         * modules/time (Makefile.am): Ensure all rule action lines start with a
90076         tab.
90078 2007-03-24  Bruno Haible  <bruno@clisp.org>
90080         * modules/tsearch-tests: New file.
90081         * tests/test-tsearch.sh: New file.
90082         * tests/test-tsearch.c: New file, mostly copied from glibc.
90084         * modules/search-tests: New file.
90085         * tests/test-search.c: New file.
90087         * modules/search: New file.
90088         * lib/search_.h: New file, incorporating lib/tsearch.h.
90089         * m4/search_h.m4: New file.
90090         * lib/tsearch.h: Remove file.
90091         * lib/tsearch.c: Include search.h instead of tsearch.h.
90092         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
90093         HAVE_TSEARCH.
90094         * modules/tsearch (Files): Remove lib/tsearch.h.
90095         (Depends-on): Add search.
90096         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
90097         (Include): Change tsearch.h into search.h.
90099 2007-03-24  Bruno Haible  <bruno@clisp.org>
90101         * modules/fpucw: New file.
90102         * lib/fpucw.h: New file.
90103         * lib/frexp.c: Include fpucw.h.
90104         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90105         (FUNC): Use them.
90106         * lib/printf-frexp.c: Include fpucw.h.
90107         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90108         (FUNC): Use them.
90109         * lib/vasnprintf.c: Include fpucw.h.
90110         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
90111         'long double' calculations.
90112         * tests/test-frexpl.c: Include fpucw.h.
90113         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90114         * tests/test-printf-frexpl.c: Include fpucw.h.
90115         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90116         * modules/frexpl (Depends-on): Add fpucw.
90117         * modules/printf-frexpl (Depends-on): Likewise.
90118         * modules/fprintf-posix (Depends-on): Likewise.
90119         * modules/snprintf-posix (Depends-on): Likewise.
90120         * modules/sprintf-posix (Depends-on): Likewise.
90121         * modules/vasnprintf-posix (Depends-on): Likewise.
90122         * modules/vasprintf-posix (Depends-on): Likewise.
90123         * modules/vfprintf-posix (Depends-on): Likewise.
90124         * modules/vsnprintf-posix (Depends-on): Likewise.
90125         * modules/vsprintf-posix (Depends-on): Likewise.
90126         * modules/frexpl-tests (Depends-on): Likewise.
90127         * modules/printf-frexpl-tests (Depends-on): Likewise.
90129 2007-03-24  Bruno Haible  <bruno@clisp.org>
90131         * lib/float+.h: New file.
90132         * lib/isnan.c: Include float+.h.
90133         (SIZE): New macro.
90134         (FUNC): Compare only SIZE bytes of the value.
90135         * lib/vasnprintf.c: Include float+.h.
90136         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
90137         SIZEOF_LDBL or SIZEOF_DBL bytes.
90138         * modules/isnan-nolibm (Files): Add lib/float+.h.
90139         * modules/isnanl-nolibm (Files): Add lib/float+.h.
90140         * modules/isnanl (Files): Add lib/float+.h.
90141         * modules/vasnprintf (Files): Add lib/float+.h.
90143 2007-03-24  Bruno Haible  <bruno@clisp.org>
90145         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
90146         include isnanl-nolibm.h.
90148 2007-03-24  Bruno Haible  <bruno@clisp.org>
90150         * tests/test-read-file.c (main): Don't produce spurious output for
90151         expected situations. Make the test fail if it encountered unexpected
90152         results.
90154 2007-03-24  Bruno Haible  <bruno@clisp.org>
90156         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
90157         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
90159 2007-03-24  Bruno Haible  <bruno@clisp.org>
90161         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
90163 2007-03-24  Bruno Haible  <bruno@clisp.org>
90165         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
90166         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
90168         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
90169         * modules/utf8-ucs4: Turn into a symbolic link to module
90170         unistr/u8-mbtouc.
90172         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
90173         utf8-ucs4-unsafe.
90174         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
90175         unistr/u8-mbtouc-unsafe.
90177         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
90178         * modules/utf16-ucs4: Turn into a symbolic link to module
90179         unistr/u16-mbtouc.
90181         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
90182         utf16-ucs4-unsafe.
90183         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
90184         unistr/u16-mbtouc-unsafe.
90186         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
90187         * modules/ucs4-utf8: Turn into a symbolic link to module
90188         unistr/u8-ubtomb.
90190         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
90191         * modules/ucs4-utf16: Turn into a symbolic link to module
90192         unistr/u16-ubtomb.
90194 2007-03-24  Bruno Haible  <bruno@clisp.org>
90196         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
90197         Enable the function only if HAVE_INLINE.
90198         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
90199         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90200         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
90201         Enable the function only if HAVE_INLINE.
90202         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
90203         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90204         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
90205         Enable the function only if HAVE_INLINE.
90206         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
90207         Enable the function only if HAVE_INLINE.
90208         * modules/utf8-ucs4: Update.
90209         * modules/utf8-ucs4-unsafe: Update.
90210         * modules/utf16-ucs4: Update.
90211         * modules/utf16-ucs4-unsafe: Update.
90212         * modules/ucs4-utf8: Update.
90213         * modules/ucs4-utf16: Update.
90215 2007-03-24  Bruno Haible  <bruno@clisp.org>
90217         * lib/utf8-ucs4.h: Remove file.
90218         * lib/utf8-ucs4-unsafe.h: Remove file.
90219         * lib/utf16-ucs4.h: Remove file.
90220         * lib/utf16-ucs4-unsafe.h: Remove file.
90221         * lib/ucs4-utf8.h: Remove file.
90222         * lib/ucs4-utf16.h: Remove file.
90223         * lib/unistr.h: Include their previous contents.
90224         * m4/utf-ucs4.m4: Remove file.
90225         * m4/ucs4-utf.m4: Remove file.
90226         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
90227         (Depends-on): Add unistr/base.
90228         (configure.ac): Remove gl_UTF_UCS4.
90229         (Makefile.am): Update.
90230         (Include): Change to unistr.h.
90231         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
90232         (Depends-on): Add unistr/base.
90233         (configure.ac): Remove gl_UTF_UCS4.
90234         (Makefile.am): Update.
90235         (Include): Change to unistr.h.
90236         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
90237         (Depends-on): Add unistr/base.
90238         (configure.ac): Remove gl_UTF_UCS4.
90239         (Makefile.am): Update.
90240         (Include): Change to unistr.h.
90241         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
90242         (Depends-on): Add unistr/base.
90243         (configure.ac): Remove gl_UTF_UCS4.
90244         (Makefile.am): Update.
90245         (Include): Change to unistr.h.
90246         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
90247         (Depends-on): Add unistr/base.
90248         (configure.ac): Remove gl_UCS4_UTF.
90249         (Makefile.am): Update.
90250         (Include): Change to unistr.h.
90251         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
90252         (Depends-on): Add unistr/base.
90253         (configure.ac): Remove gl_UCS4_UTF.
90254         (Makefile.am): Update.
90255         (Include): Change to unistr.h.
90256         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
90257         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
90258         utf8-ucs4-unsafe.h.
90259         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
90260         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
90261         utf16-ucs4-unsafe.h.
90262         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
90263         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
90264         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
90265         * lib/unistr/u8-strchr.c: Likewise.
90266         * lib/unistr/u8-strrchr.c: Likewise.
90267         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
90268         * lib/unistr/u16-strchr.c: Likewise.
90269         * lib/unistr/u16-strrchr.c: Likewise.
90270         * lib/striconveh.c: Update.
90271         * lib/linebreak.c: Update.
90273 2007-03-24  Bruno Haible  <bruno@clisp.org>
90275         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
90276         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
90278 2007-03-22  Bruno Haible  <bruno@clisp.org>
90280         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
90282 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
90284         * MODULES.html.sh (File system functions): New module write-any-file.
90285         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
90286         * m4/write-any-file.m4: New files.
90288 2007-03-23  Eric Blake  <ebb9@byu.net>
90290         * gnulib-tool: Rearrange space-tab sequences, since some editors
90291         like to eat them.
90293 2007-03-23  Eric Blake  <ebb9@byu.net>
90295         * lib/version-etc.c (version_etc_va): Update license wording to
90296         be more concise.  Recommended by Richard Stallman.
90298 2007-03-22  Bruno Haible  <bruno@clisp.org>
90300         * lib/poll.c (MSG_PEEK): New fallback definition.
90302 2007-03-22  Bruno Haible  <bruno@clisp.org>
90304         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90305         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90306         (main): Update.
90307         Fixes a compilation error on BeOS.
90309 2007-03-22  Bruno Haible  <bruno@clisp.org>
90311         * modules/frexpl-tests: New file.
90312         * tests/test-frexpl.c: New file.
90314         * modules/frexpl: New file.
90315         * m4/frexpl.m4: New file.
90316         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90317         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90319         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90320         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90321         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90323 2007-03-22  Bruno Haible  <bruno@clisp.org>
90325         * lib/frexpl.c: Share code with lib/frexp.c.
90326         * modules/mathl (Files): Add lib/frexp.c.
90327         (Depends-on): Add isnanl-nolibm.
90329 2007-03-22  Bruno Haible  <bruno@clisp.org>
90331         * modules/printf-frexp (Files): Add m4/frexp.m4.
90332         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90333         only if the found frexp function actually works.
90335 2007-03-22  Bruno Haible  <bruno@clisp.org>
90337         * lib/frexp.c: Remove older implementation that uses divisions.
90339 2007-03-21  Bruno Haible  <bruno@clisp.org>
90341         * modules/frexp-tests: New file.
90342         * tests/test-frexp.c: New file.
90344         * modules/frexp: New file.
90345         * lib/frexp.c: New file.
90346         * m4/frexp.m4: New file.
90347         * lib/math_.h (frexp): New declaration.
90348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90349         REPLACE_FREXP.
90350         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90352 2007-03-21  Bruno Haible  <bruno@clisp.org>
90354         * modules/isnanl-tests: New file.
90355         * tests/test-isnanl.c: New file.
90357         * modules/isnanl: New file.
90358         * lib/isnanl.h: New file.
90359         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90360         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90361         gl_FUNC_ISNANL_WORKS.
90362         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90363         New macros.
90365 2007-03-21  Bruno Haible  <bruno@clisp.org>
90367         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90368         lib/isnanl.h.
90369         (Include): Update.
90370         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90371         * lib/vasnprintf.c: Update.
90372         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90373         tests/test-isnanl.h, remove tests/test-isnanl.c.
90374         (Makefile.am): Update.
90375         * tests/test-isnanl-nolibm.c: New file.
90376         * tests/test-isnanl.h: New file.
90377         * tests/test-isnanl.c: Remove file.
90379 2007-03-21  Jim Meyering  <jim@meyering.net>
90381         When trying to open ".", treat ESTALE like EACCES.
90382         * lib/savewd.c (savewd_save): Resort to forking not just upon
90383         failure with EACCES, but also when errno is ESTALE.
90385 2007-03-20  Bruno Haible  <bruno@clisp.org>
90387         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90388         Needed on AIX 5.1. Reported by Matthew Woehlke.
90390 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90392         Suggestions by Bruno Haible:
90393         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90394         our own.
90395         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90396         * modules/acl (Depends-on): Add gettext.
90398 2007-03-19  Bruno Haible  <bruno@clisp.org>
90400         * modules/iconvme: Remove file.
90401         * lib/iconvme.h: Remove file.
90402         * lib/iconvme.c: Remove file.
90403         * m4/iconvme.m4: Remove file.
90405 2007-03-19  Bruno Haible  <bruno@clisp.org>
90407         * doc/relocatable-maint.texi: Break long shell script line.
90408         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90410 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90412         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90413         handle file_has_acl.
90414         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90415         * lib/acl.c: Move header inclusions and related macro defns into
90416         lib/acl-internal.h.
90417         (S_ISLNK): Remove defn, since that's now done for us.
90418         (file_has_acl): Move to lib/file-has-acl.c.
90419         Call acl_trivial if available.  This is the crucial part of the fix.
90420         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90421         shared within the library.  Rewrite a bit, partly to make it compatible
90422         with the GNU coding style.
90423         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90424         Remove unnecessary double-quotes.
90425         Don't test for acl_to_text; the build will catch that.
90426         Replace acl_entries if it doesn't exist and it is needed.
90427         Check for -lsec and acl_trivial (as used on Solaris 10).
90428         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90429         lib/file-has-acl.c.
90430         (Depends-on): Add sys_stat, for S_ISLNK.
90432 2007-03-19  Ben Pfaff  <blp@gnu.org>
90434         * doc/gnulib.texi: Fix typos.
90435         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90437 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90439         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90440         If size is zero here, buf must be zero.
90442 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90444         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90445         <bruno@clisp.org>.
90447 2007-03-18  Bruno Haible  <bruno@clisp.org>
90449         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90450         Suggested by Eric Blake.
90452 2007-03-18  Ben Pfaff  <blp@gnu.org>
90454         * doc/relocatable.texi: Recommend using as prefix a directory
90455         that does not exist and will never be created.  Based on
90456         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90457         and others.
90459 2007-03-17  Bruno Haible  <bruno@clisp.org>
90461         * lib/fchownat.c: Include lchown.h.
90463 2007-03-17  Bruno Haible  <bruno@clisp.org>
90465         Fix endless loop when the given allocated size was > INT_MAX.
90466         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90467         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90468         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90469         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90470         * lib/sprintf.c (sprintf): Likewise.
90472 2007-03-17  Bruno Haible  <bruno@clisp.org>
90474         * tests/test-argp-2.sh (func_compare): Output a context diff.
90476 2007-03-17  Bruno Haible  <bruno@clisp.org>
90478         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90479         locale's decimal-point character.
90481 2007-03-17  Bruno Haible  <bruno@clisp.org>
90483         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90484         before comparing it. Needed because on some platforms (e.g. x86) a
90485         'long double' occupies less bytes than sizeof (long double).
90487 2007-03-17  Bruno Haible  <bruno@clisp.org>
90489         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90490         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90491         * tests/test-getaddrinfo.c (simple): Likewise.
90492         * tests/test-read-file.c (main): Likewise.
90494 2007-03-17  Bruno Haible  <bruno@clisp.org>
90496         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90498 2007-03-17  Bruno Haible  <bruno@clisp.org>
90500         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90501         unused variable.
90503 2007-03-17  Bruno Haible  <bruno@clisp.org>
90505         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90506         * tests/test-c-strncasecmp.c: Likewise.
90508 2007-03-17  Bruno Haible  <bruno@clisp.org>
90510         * modules/stdlib (Depends-on): Add unistd.
90511         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90512         Needed for MacOS X 10.3.
90514 2007-03-17  Bruno Haible  <bruno@clisp.org>
90516         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90518 2007-03-17  Bruno Haible  <bruno@clisp.org>
90520         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90522 2007-03-17  Bruno Haible  <bruno@clisp.org>
90524         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90525         to reflect files copied from gnulib (with or without modifications).
90526         Suggested by Jim Meyering.
90528 2007-03-17  Eric Blake  <ebb9@byu.net>
90530         * NEWS: Document stdlib change from 2007-02-18.
90532 2007-03-17  Jim Meyering  <jim@meyering.net>
90534         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90535         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90536         someone uses a name containing shell meta-characters.
90537         Reported by Alfred M. Szmidt.
90539         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90541 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90543         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
90544         and copy gettext configuration files only if configure.ac contains
90545         a use of AM_GNU_GETTEXT_VERSION.
90547 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90549         * build-aux/bootstrap (gnulib_name): New variable.
90550         (gnulib_tool_options): Use it.
90552 2007-03-13  Simon Josefsson  <simon@josefsson.org>
90554         * tests/test-des.c: Use new namespace.
90556 2007-03-15  Bruno Haible  <bruno@clisp.org>
90558         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
90559         Reported by James Youngman <jay@gnu.org>.
90561 2007-03-15  Bruno Haible  <bruno@clisp.org>
90563         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
90564         declared prototype. Needed with cc on OSF/1 5.1.
90566 2007-03-15  Bruno Haible  <bruno@clisp.org>
90568         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
90569         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
90570         (struct gl_list_implementation): Add dispose_fn argument to the
90571         'create_empty', 'create' methods.
90572         (struct gl_list_impl_base): Add field 'dispose_fn'.
90573         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
90574         argument.
90575         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
90576         dispose_fn argument.
90577         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
90578         dispose_fn on the dropped values.
90579         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
90580         dispose_fn argument.
90581         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
90582         dropped values.
90583         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
90584         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90585         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
90586         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90587         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
90588         argument.
90589         (gl_tree_list_free): Call dispose_fn on the dropped values.
90590         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
90591         the dropped values.
90592         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90593         Add dispose_fn argument.
90594         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
90595         Call dispose_fn on the dropped values.
90596         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
90597         Add dispose_fn argument.
90598         (gl_sublist_create): Initialize the 'dispose_fn' field.
90599         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
90600         * tests/test-array_list.c (main): Update.
90601         * tests/test-carray_list.c (main): Update.
90602         * tests/test-avltree_list.c (main): Update.
90603         * tests/test-rbtree_list.c (main): Update.
90604         * tests/test-avltreehash_list.c (main): Update.
90605         * tests/test-rbtreehash_list.c (main): Update.
90606         * tests/test-linked_list.c (main): Update.
90607         * tests/test-linkedhash_list.c (main): Update.
90608         * tests/test-array_oset.c (main): Update.
90610 2007-03-15  Bruno Haible  <bruno@clisp.org>
90612         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
90613         (gl_oset_create_empty): Add dispose_fn argument.
90614         (struct gl_oset_implementation): Add dispose_fn argument to
90615         'create_empty' method.
90616         (struct gl_oset_impl_base): Add dispose_fn field.
90617         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
90618         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
90619         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
90620         values.
90621         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
90622         (gl_tree_oset_free): Call dispose_fn on the dropped values.
90623         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90624         dropped value.
90625         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90626         dropped value.
90627         * tests/test-array_oset.c (main): Update.
90628         * tests/test-avltree_oset.c (main): Update.
90629         * tests/test-rbtree_oset.c (main): Update.
90630         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
90632 2007-03-13  Bruno Haible  <bruno@clisp.org>
90634         * tests/test-stdbool.c (i): Update after last patch.
90636 2007-03-12  Bruno Haible  <bruno@clisp.org>
90638         * lib/quotearg.c: Include <wctype.h> early, before the definition of
90639         the iswprint macro. Needed on Solaris 2.5.1.
90641 2007-03-12  Bruno Haible  <bruno@clisp.org>
90643         * tests/test-printf-frexp.c (main): Declare x as volatile.
90645 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90647         * doc/gnulib.texi (Build robot for gnulib): New section.
90649 2007-03-12  Jim Meyering  <jim@meyering.net>
90651         * build-aux/bootstrap: New file.
90652         * build-aux/bootstrap.conf: New file, from coreutils.
90654 2007-03-11  Bruno Haible  <bruno@clisp.org>
90656         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
90658 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90660         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
90661         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
90662         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
90664 2007-03-11  Bruno Haible  <bruno@clisp.org>
90666         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
90667         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
90669 2007-03-11  Bruno Haible  <bruno@clisp.org>
90671         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
90672         formula. Needed for SunPRO C 5.0.
90674 2007-03-11  Bruno Haible  <bruno@clisp.org>
90676         * modules/long-options (Depends-on): Add getopt.
90678 2007-03-11  Bruno Haible  <bruno@clisp.org>
90680         * modules/modechange (Depends-on): Add stdbool.
90682 2007-03-11  Bruno Haible  <bruno@clisp.org>
90684         * modules/i-ring (Depends-on): Add stdbool.
90686 2007-03-11  Bruno Haible  <bruno@clisp.org>
90688         * modules/gc-des (Depends-on): Add stdbool.
90690 2007-03-11  Bruno Haible  <bruno@clisp.org>
90692         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
90694 2007-03-11  Bruno Haible  <bruno@clisp.org>
90696         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
90698 2007-03-11  Bruno Haible  <bruno@clisp.org>
90700         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
90702 2007-03-11  Bruno Haible  <bruno@clisp.org>
90704         * lib/vasnprintf.c (sprintf): Undefine.
90706 2007-03-11  Bruno Haible  <bruno@clisp.org>
90708         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
90709         initializers in SunPRO C and Compaq C compilers.
90711 2007-03-11  Bruno Haible  <bruno@clisp.org>
90713         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
90714         decrementing code ANSI C compliant.
90716 2007-03-11  Bruno Haible  <bruno@clisp.org>
90718         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
90719         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
90721 2007-03-11  Bruno Haible  <bruno@clisp.org>
90723         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
90724         <stdbool.h> substitute doesn't pass.
90726 2007-03-11  Bruno Haible  <bruno@clisp.org>
90728         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
90730 2007-03-11  Bruno Haible  <bruno@clisp.org>
90732         * gnulib-tool (func_create_megatestdir): Create also an autobuild
90733         script, for submission to autobuild.josefsson.org.
90735 2007-03-10  Bruno Haible  <bruno@clisp.org>
90737         * modules/canonicalize-lgpl-tests: New file.
90738         * tests/test-canonicalize-lgpl.sh: New file.
90739         * tests/test-canonicalize-lgpl.c: New file.
90741         * modules/c-strcase-tests: New file.
90742         * tests/test-c-strcase.sh: New file.
90743         * tests/test-c-strcasecmp.c: New file.
90744         * tests/test-c-strncasecmp.c: New file.
90746         * modules/atexit-tests: New file.
90747         * tests/test-atexit.sh: New file.
90748         * tests/test-atexit.c: New file.
90750 2007-03-10  Bruno Haible  <bruno@clisp.org>
90752         * tests/test-binary-io.sh: Use temporary filenames that are not so
90753         likely to clash with those of other tests (in a parallel make).
90754         * tests/test-binary-io.c: Likewise.
90756 2007-03-10  Bruno Haible  <bruno@clisp.org>
90758         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
90759         fallback; use #error instead.
90760         Suggested by Simon Josefsson.
90762 2007-03-10  Bruno Haible  <bruno@clisp.org>
90764         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
90765         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
90766         first and the last.
90768 2007-03-10  Bruno Haible  <bruno@clisp.org>
90770         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
90772 2007-03-10  Bruno Haible  <bruno@clisp.org>
90774         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
90775         "make distcheck".
90776         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
90777         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
90778         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
90780 2007-03-10  Bruno Haible  <bruno@clisp.org>
90782         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
90783         variable.
90784         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
90785         variable.
90787 2007-03-09  Eric Blake  <ebb9@byu.net>
90788         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
90790         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
90791         types are not being provided by gnulib.
90792         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
90793         types are supported.
90795 2007-03-10  Bruno Haible  <bruno@clisp.org>
90797         * lib/stdio_.h (__attribute__): New macro.
90798         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
90799         vsprintf): Specify __attribute__ __format__ for GCC.
90800         Suggested by Eric Blake.
90802 2007-03-09  Bruno Haible  <bruno@clisp.org>
90804         * modules/printf-posix-tests: New file.
90805         * tests/test-printf-posix.sh: New file.
90806         * tests/test-printf-posix.c: New file.
90808         * modules/printf-posix: New file.
90809         * lib/printf.c: New file.
90810         * m4/printf-posix-rpl.m4: New file.
90811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
90812         REPLACE_PRINTF.
90813         * lib/stdio_.h (printf): New declaration.
90814         (format, __format__, ____printf____, ____scanf____, ____strftime____,
90815         ____strfmon____): New macros.
90816         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
90817         REPLACE_PRINTF.
90819 2007-03-09  Bruno Haible  <bruno@clisp.org>
90821         * tests/test-vasnprintf-posix2.sh: New file.
90822         * tests/test-vasnprintf-posix2.c: New file.
90823         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
90824         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
90825         (Makefile.am): Activate test-vasnprintf-posix2.sh.
90827         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
90828         a locale dependent decimal point, rather than always '.'.
90830 2007-03-09  Eric Blake  <ebb9@byu.net>
90832         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
90833         spite of platforms like Tandem/NSK that define it to -1.
90835 2007-03-08  Bruno Haible  <bruno@clisp.org>
90837         * modules/vprintf-posix-tests: New file.
90838         * tests/test-vprintf-posix.sh: New file.
90839         * tests/test-vprintf-posix.c: New file.
90840         * tests/test-printf-posix.h: New file.
90842         * modules/vprintf-posix: New file.
90843         * lib/vprintf.c: New file.
90844         * m4/vprintf-posix.m4: New file.
90845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
90846         REPLACE_VPRINTF.
90847         * lib/stdio_.h (vprintf): New declaration.
90848         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
90849         REPLACE_VPRINTF.
90851 2007-03-08  Bruno Haible  <bruno@clisp.org>
90853         * modules/fprintf-posix-tests: New file.
90854         * tests/test-fprintf-posix.sh: New file.
90855         * tests/test-fprintf-posix.c: New file.
90857         * modules/fprintf-posix: New file.
90858         * lib/fprintf.c: New file.
90859         * m4/fprintf-posix.m4: New file.
90860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
90861         REPLACE_FPRINTF.
90862         * lib/stdio_.h (fprintf): New declaration.
90863         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
90864         REPLACE_FPRINTF.
90866 2007-03-08  Bruno Haible  <bruno@clisp.org>
90868         * modules/vfprintf-posix-tests: New file.
90869         * tests/test-vfprintf-posix.sh: New file.
90870         * tests/test-vfprintf-posix.c: New file.
90871         * tests/test-fprintf-posix.h: New file.
90872         * tests/test-fprintf-posix.out: New file.
90874         * modules/vfprintf-posix: New file.
90875         * lib/vfprintf.c: New file.
90876         * m4/vfprintf-posix.m4: New file.
90877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
90878         REPLACE_VFPRINTF.
90879         * lib/stdio_.h (vfprintf): New declaration.
90880         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
90881         REPLACE_VFPRINTF.
90883 2007-03-08  Bruno Haible  <bruno@clisp.org>
90885         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
90887 2007-03-08  Bruno Haible  <bruno@clisp.org>
90889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
90890         instead of 'expr' invocations.
90891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90895         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90896         Suggested by Paul Eggert.
90898 2007-03-08  Bruno Haible  <bruno@clisp.org>
90900         * modules/fseterr-tests: New file.
90901         * tests/test-fseterr.c: New file.
90903         * modules/fseterr: New file.
90904         * lib/fseterr.h: New file.
90905         * lib/fseterr.c: New file.
90907 2007-03-08  Bruno Haible  <bruno@clisp.org>
90909         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
90910         * lib/getopt_.h: Likewise.
90911         * lib/mbswidth.h: Likewise.
90912         * lib/setenv.h: Likewise.
90913         * lib/vasnprintf.h: Likewise.
90914         * lib/vasprintf.h: Likewise.
90915         * lib/verror.h: Likewise.
90916         * lib/xsetenv.h: Likewise.
90917         * lib/xvasprintf.h: Likewise.
90919 2007-03-08  Jim Meyering  <jim@meyering.net>
90921         * users.txt: Add parted.
90923         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
90925 2007-03-07  Bruno Haible  <bruno@clisp.org>
90927         * m4/printf.m4: Make the shell script snippets copy&pastable.
90929 2007-03-02  Bruno Haible  <bruno@clisp.org>
90931         * lib/netinet_in_.h: New file.
90932         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
90933         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
90934         * modules/netinet_in (Files): Add lib/netinet_in_.h.
90935         (Depends-on): Add absolute-header.
90936         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
90937         into netinet/in.h.
90939 2007-03-03  Bruno Haible  <bruno@clisp.org>
90941         * lib/sys_select_.h: New file.
90942         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
90943         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
90944         * modules/sys_select (Files): Add lib/sys_select_.h.
90945         (Depends-on): Add absolute-header.
90946         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
90947         into sys/select.h.
90949 2007-03-02  Bruno Haible  <bruno@clisp.org>
90951         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
90952         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
90953         values.
90954         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
90955         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
90956         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
90957         * modules/sys_socket (Depends-on): Add absolute-header.
90958         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
90959         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
90960         (Include): Remove requirement of inclusion of <sys/types.h>.
90962 2007-03-02  Bruno Haible  <bruno@clisp.org>
90964         * lib/byteswap_.h (bswap_32): Fix formula.
90966 2007-03-06  Bruno Haible  <bruno@clisp.org>
90968         * modules/sprintf-posix-tests: New file.
90969         * tests/test-sprintf-posix.c: New file.
90971         * modules/sprintf-posix: New file.
90972         * lib/sprintf.c: New file.
90973         * m4/sprintf-posix.m4: New file.
90974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
90975         REPLACE_SPRINTF.
90976         * lib/stdio_.h (sprintf): New declaration.
90977         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
90978         REPLACE_SPRINTF.
90980 2007-03-06  Bruno Haible  <bruno@clisp.org>
90982         * modules/vsprintf-posix-tests: New file.
90983         * tests/test-vsprintf-posix.c: New file.
90984         * tests/test-sprintf-posix.h: New file.
90986         * modules/vsprintf-posix: New file.
90987         * lib/vsprintf.c: New file.
90988         * m4/vsprintf-posix.m4: New file.
90989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
90990         REPLACE_VSPRINTF.
90991         * lib/stdio_.h (vsprintf): New declaration.
90992         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
90993         REPLACE_VSPRINTF.
90995 2007-03-06  Bruno Haible  <bruno@clisp.org>
90997         * modules/vsnprintf (Depend-on): Remove minmax.
90999 2007-03-06  Bruno Haible  <bruno@clisp.org>
91001         * modules/snprintf-posix-tests: New file.
91002         * tests/test-snprintf-posix.c: New file.
91004         * modules/snprintf-posix: New file.
91005         * m4/snprintf-posix.m4: New file.
91006         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
91007         gl_FUNC_SNPRINTF.
91008         (gl_FUNC_SNPRINTF): Invoke it.
91009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
91010         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
91011         is set.
91012         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
91014 2007-03-06  Bruno Haible  <bruno@clisp.org>
91016         * modules/vsnprintf-posix-tests: New file.
91017         * tests/test-vsnprintf-posix.c: New file.
91018         * tests/test-snprintf-posix.h: New file.
91020         * modules/vsnprintf-posix: New file.
91021         * m4/vsnprintf-posix.m4: New file.
91022         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
91023         gl_FUNC_VSNPRINTF.
91024         (gl_FUNC_VSNPRINTF): Invoke it.
91025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
91026         * lib/stdio_.h (vsnprintf): Define as a replacement if
91027         REPLACE_VSNPRINTF is set.
91028         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
91030 2007-03-06  Bruno Haible  <bruno@clisp.org>
91032         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
91033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
91035 2007-03-06  Bruno Haible  <bruno@clisp.org>
91037         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
91038         (asinl): Declare also if HAVE_DECL_ASINL is set.
91039         (atanl): Declare also if HAVE_DECL_ATANL is set.
91040         (ceill): Declare also if HAVE_DECL_CEILL is set.
91041         (cosl): Declare also if HAVE_DECL_COSL is set.
91042         (expl): Declare also if HAVE_DECL_EXPL is set.
91043         (floorl): Declare also if HAVE_DECL_FLOORL is set.
91044         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
91045         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
91046         (logl): Declare also if HAVE_DECL_LOGL is set.
91047         (sinl): Declare also if HAVE_DECL_SINL is set.
91048         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
91049         (tanl): Declare also if HAVE_DECL_TANL is set.
91050         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
91051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
91052         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
91053         declaration of frexpl, ldexpl.
91054         * modules/printf-frexpl (Depends-on): Add math.
91055         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
91057 2007-03-05  Bruno Haible  <bruno@clisp.org>
91059         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
91060         frexpl and ldexpl are declared.
91061         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
91063 2007-03-05  Bruno Haible  <bruno@clisp.org>
91065         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
91066         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
91068 2007-03-05  Bruno Haible  <bruno@clisp.org>
91070         * lib/stdio_.h: Include <stddef.h>.
91072 2007-03-05  Bruno Haible  <bruno@clisp.org>
91074         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
91076 2007-03-05  Bruno Haible  <bruno@clisp.org>
91078         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
91079         NetBSD 4, from Ralf Wildenhues.
91081 2007-03-04  Bruno Haible  <bruno@clisp.org>
91083         * lib/vasprintf.h: Update #if logic for the case when the functions
91084         exist but are overridden.
91086 2007-03-04  Bruno Haible  <bruno@clisp.org>
91088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
91089         implementations: glibc-2.4 and MacOS X 10.3.
91090         * tests/test-vasnprintf-posix.c (test_function): Test also the case
91091         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
91092         * tests/test-vasprintf-posix.c (test_function): Likewise.
91094 2007-03-04  Bruno Haible  <bruno@clisp.org>
91096         * modules/vasprintf-posix-tests: New file.
91097         * tests/test-vasprintf-posix.c: New file.
91099         * modules/vasprintf-posix: New file.
91100         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
91101         defined.
91102         * m4/vasprintf-posix.m4: New file.
91103         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
91104         gl_FUNC_VASPRINTF.
91105         (gl_FUNC_VASPRINTF): Invoke it.
91106         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
91107         here.
91108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
91110 2007-03-04  Bruno Haible  <bruno@clisp.org>
91112         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
91113         REPLACE_GETTIMEOFDAY.
91114         * modules/sys_time (Makefile.am): Likewise.
91115         * m4/sys_time_h.m4: Likewise.
91116         * m4/gettimeofday.m4: Likewise.
91118 2007-03-04  Bruno Haible  <bruno@clisp.org>
91120         * modules/vasnprintf-posix-tests: New file.
91121         * tests/test-vasnprintf-posix.c: New file.
91123         * modules/vasnprintf-posix: New file.
91124         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
91125         printf-frexpl.h.
91126         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
91127         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
91128         REPLACE_VASNPRINTF is defined.
91129         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
91130         gl_FUNC_VASNPRINTF.
91131         (gl_FUNC_VASNPRINTF): Invoke it.
91132         * m4/vasnprintf-posix.m4: New file.
91133         * m4/printf.m4: New file.
91135 2007-03-04  Bruno Haible  <bruno@clisp.org>
91137         Compile progreloc.c only if --enable-relocatable is specified.
91138         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
91139         if --enable-relocatable was specified.
91140         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
91141         lib_SOURCES.
91143 2007-03-04  Jim Meyering  <jim@meyering.net>
91145         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
91146         Use it consistently, rather than enumerating errno constants.
91148 2007-03-04  Bruno Haible  <bruno@clisp.org>
91150         * modules/xvasprintf-tests: New file.
91151         * tests/test-xvasprintf.c: New file.
91153         * modules/vasprintf-tests: New file.
91154         * tests/test-vasprintf.c: New file.
91156         * modules/vasnprintf-tests: New file.
91157         * tests/test-vasnprintf.c: New file.
91159         * modules/vsnprintf-tests: New file.
91160         * tests/test-vsnprintf.c: New file.
91162         * modules/snprintf-tests: New file.
91163         * tests/test-snprintf.c: New file.
91165 2007-03-04  Bruno Haible  <bruno@clisp.org>
91167         Compile relocatable.c only if --enable-relocatable is specified.
91168         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
91169         gl_RELOCATABLE_LIBRARY.
91170         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
91171         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
91172         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
91173         gl_RELOCATABLE_LIBRARY.
91174         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
91175         (Makefile.am): Remove lib_SOURCES.
91176         * modules/relocatable-lib-lgpl (configure.ac): Invoke
91177         gl_RELOCATABLE_LIBRARY.
91178         (Makefile.am): Remove lib_SOURCES.
91179         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
91180         always.
91181         * modules/relocatable-prog-wrapper (configure.ac): Invoke
91182         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
91184 2007-03-04  Bruno Haible  <bruno@clisp.org>
91186         * modules/argmatch-tests: New file.
91187         * tests/test-argmatch.c: New file.
91189         * tests/test-allocsa.c (main): Halve the number of loop runs.
91191         * modules/alloca-opt-tests: New file.
91192         * tests/test-alloca-opt.c: New file.
91194 2007-03-04  Jim Meyering  <jim@meyering.net>
91196         Work around difference between Linux ACLs and Solaris 10 ZFS.
91197         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
91198         for EINVAL.
91200 2007-03-03  Bruno Haible  <bruno@clisp.org>
91202         * modules/relocatable-prog (Depends-on): Add back progreloc's
91203         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
91205 2007-03-03  Bruno Haible  <bruno@clisp.org>
91207         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
91208         * modules/relocatable-lib: New file.
91210 2007-03-03  Bruno Haible  <bruno@clisp.org>
91212         * modules/relocatable-prog: Renamed from modules/relocatable.
91213         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
91215 2007-03-03  Bruno Haible  <bruno@clisp.org>
91217         * modules/relocatable-script (Files): Add doc/relocatable.texi,
91218         m4/relocatable-lib.m4.
91219         (Depends-on): Remove 'relocatable'.
91220         (configure.ac): Add gl_RELOCATABLE_NOP.
91222 2007-03-03  Bruno Haible  <bruno@clisp.org>
91224         * modules/relocatable-prog-wrapper: New file.
91225         * modules/relocatable (Depends-on): Add it. Remove all other
91226         dependencies except progname.
91227         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
91229         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
91230         (gl_FUNC_STRERROR): Nop.
91231         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
91233         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
91234         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
91236         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
91237         (gl_FUNC_READLINK): Update.
91239         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
91241 2007-03-03  Bruno Haible  <bruno@clisp.org>
91243         * lib/xreadlink.c: Include <unistd.h> unconditionally.
91244         * modules/xreadlink (Depends-on): Add unistd.
91245         * modules/xreadlink-with-size (Depends-on): Likewise.
91247 2007-03-03  Bruno Haible  <bruno@clisp.org>
91249         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
91250         extracted from gt_FUNC_SETENV.
91251         (gt_FUNC_SETENV): Remove macro.
91252         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
91253         remove gt_FUNC_SETENV.
91255 2007-03-03  Bruno Haible  <bruno@clisp.org>
91257         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
91258         ENABLE_RELOCATABLE here.
91259         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
91261 2007-03-03  Bruno Haible  <bruno@clisp.org>
91263         * modules/rbtreehash-list-tests (Depends-on): Add progname.
91264         * tests/test-rbtreehash_list.c: Include progname.h.
91265         (main): Call set_program_name.
91267         * modules/rbtree-oset-tests (Depends-on): Add progname.
91268         * tests/test-rbtree_oset.c: Include progname.h.
91269         (main): Call set_program_name.
91271         * modules/rbtree-list-tests (Depends-on): Add progname.
91272         * tests/test-rbtree_list.c: Include progname.h.
91273         (main): Call set_program_name.
91275         * modules/linked-list-tests (Depends-on): Add progname.
91276         * tests/test-linked_list.c: Include progname.h.
91277         (main): Call set_program_name.
91279 2007-03-03  Bruno Haible  <bruno@clisp.org>
91281         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
91282         All uses of __restrict changed to _Restrict_.
91283         * lib/glob_.h (__restrict): Remove macro.
91285 2007-03-02  Bruno Haible  <bruno@clisp.org>
91287         * modules/gettext (configure.ac): Require gettext infrastructure
91288         from version 0.16.1.
91290 2007-03-02  Bruno Haible  <bruno@clisp.org>
91292         * modules/linkedhash-list-tests (Depends-on): Add progname.
91293         * tests/test-linkedhash_list.c: Include progname.h.
91294         (main): Call set_program_name.
91296         * modules/carray-list-tests (Depends-on): Add progname.
91297         * tests/test-carray_list.c: Include progname.h.
91298         (main): Call set_program_name.
91300         * modules/avltreehash-list-tests (Depends-on): Add progname.
91301         * tests/test-avltreehash_list.c: Include progname.h.
91302         (main): Call set_program_name.
91304         * modules/avltree-oset-tests (Depends-on): Add progname.
91305         * tests/test-avltree_oset.c: Include progname.h.
91306         (main): Call set_program_name.
91308         * modules/avltree-list-tests (Depends-on): Add progname.
91309         * tests/test-avltree_list.c: Include progname.h.
91310         (main): Call set_program_name.
91312         * modules/array-oset-tests (Depends-on): Add progname.
91313         * tests/test-array_oset.c: Include progname.h.
91314         (main): Call set_program_name.
91316         * modules/array-list-tests (Depends-on): Add progname.
91317         * tests/test-array_list.c: Include progname.h.
91318         (main): Call set_program_name.
91320         * modules/argp-tests (Depends-on): Add progname.
91321         * tests/test-argp.c: Include argp.h first. Include progname.h.
91322         (main): Call set_program_name.
91324 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91326         * doc/gnulib-tool.texi (Initial import): Reword description of
91327         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91328         limited effect even if defined after the first system include.
91330 2007-03-01  Bruno Haible  <bruno@clisp.org>
91332         * build-aux/config.libpath: Update to libtool-1.5.22.
91333         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91335 2007-03-01  Bruno Haible  <bruno@clisp.org>
91337         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91338         foo_CFLAGS.
91339         Reported by Ralf Wildenhues.
91341 2007-03-01  Bruno Haible  <bruno@clisp.org>
91343         * build-aux/install-reloc: Remove object files left over by some
91344         compilers.
91345         Reported by Ralf Wildenhues.
91347 2007-03-01  Bruno Haible  <bruno@clisp.org>
91349         * build-aux/install-reloc: Break long lines.
91351 2007-03-01  Bruno Haible  <bruno@clisp.org>
91353         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91354         Reported by Ralf Wildenhues.
91356 2007-03-01  Bruno Haible  <bruno@clisp.org>
91358         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91359         include ordering constraints.
91361 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91363         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91364         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91365         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91366         as another example.
91367         * lib/time_.h: Fix misspelling.
91368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91369         Require gl_HEADER_TIME_H_DEFAULTS.
91370         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91371         * m4/time_r.m4 (gl_TIME_R): Likewise.
91372         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91374 2007-03-01  Bruno Haible  <bruno@clisp.org>
91376         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91377         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91379 2007-03-01  Jim Meyering  <jim@meyering.net>
91381         * modules/xreadlink (Maintainer): Add my name.
91382         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91384 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91385             Bruno Haible  <bruno@clisp.org>
91387         * build-aux/install-reloc: Compile also c-ctype.c.
91388         * build-aux/relocatable.sh.in: New file.
91389         * doc/relocatable.texi: New file.
91390         * doc/relocatable-maint.texi: New file.
91391         * doc/gnulib.texi: Include relocatable-maint.texi.
91392         * lib/progreloc.c: Include unistd.h unconditionally.
91393         * lib/relocwrapper.c: Include unistd.h unconditionally.
91394         Include c-ctype.h.
91395         (add_dotbin): Use c_tolower.
91396         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91397         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91398         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91399         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91400         to m4/relocatable-lib.m4.
91401         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91402         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91403         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91404         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91405         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91406         * modules/relocatable: New file.
91407         * modules/relocatable-lib: New file.
91408         * modules/relocatable-script: New file.
91410 2007-02-28  Bruno Haible  <bruno@clisp.org>
91412         Import --enable-relocatable infrastructure.
91413         * build-aux/config.libpath: New file, from GNU gettext.
91414         * build-aux/install-reloc: New file, from GNU gettext.
91415         * build-aux/reloc-ldflags: New file, from GNU gettext.
91416         * lib/relocatable.h: New file, from GNU gettext.
91417         * lib/relocatable.c: New file, from GNU gettext.
91418         * lib/relocwrapper.c: New file, from GNU gettext.
91419         * m4/relocatable.m4: New file, from GNU gettext.
91421 2007-02-28  Bruno Haible  <bruno@clisp.org>
91423         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91425         * modules/xreadlink: New file, from GNU gettext with modifications.
91426         * lib/xreadlink.c: New file, from GNU gettext.
91427         * lib/xreadlink.h: Add comments.
91428         (xreadlink): New declaration.
91430         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91431         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91432         lib/xreadlink-with-size.c.
91433         (configure.ac): Remove gl_XREADLINK invocation.
91434         (Makefile.am): Augment lib_SOURCES.
91435         * m4/xreadlink.m4: Remove file.
91436         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91437         (xreadlink_with_size): Renamed from xreadink.
91438         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91439         * modules/canonicalize (Depends-on): Replace xreadlink with
91440         xreadlink-with-size.
91441         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91443 2007-02-25  Jim Meyering  <jim@meyering.net>
91445         * build-aux/announce-gen: When complaining about excess arguments,
91446         list them.
91448 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91450         * README: Document signed integer overflow situation more
91451         accurately.
91453 2007-02-25  Bruno Haible  <bruno@clisp.org>
91455         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91456         'a' or 'A' conversion.
91458 2007-02-25  Bruno Haible  <bruno@clisp.org>
91460         * modules/filename: Renamed from modules/pathname.
91461         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91462         lib/concatpath.c with lib/concat-filename.c.
91463         (Makefile.am): Update.
91464         (Include): Replace pathname.h with filename.h.
91465         * lib/filename.h: Renamed from lib/pathname.h.
91466         (concatenated_filename): Renamed from concatenated_pathname.
91467         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91468         (concatenated_filename): Renamed from concatenated_pathname.
91469         * lib/findprog.c: Include filename.h instead of pathname.h.
91470         (find_in_path): Update.
91471         * lib/javacomp.c: Include filename.h instead of pathname.h.
91472         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91473         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91474         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91475         is_oldgcj_14_13_usable, is_javac_usable): Update.
91476         * lib/javaexec.c: Include filename.h instead of pathname.h.
91477         (execute_java_class): Update.
91478         * modules/findprog: Update.
91479         * modules/javacomp: Update.
91480         * modules/javaexec: Update.
91481         * MODULES.html.sh (File system functions): Add 'filename', remove
91482         'pathname'.
91484 2007-02-25  Bruno Haible  <bruno@clisp.org>
91486         * modules/printf-frexpl-tests: New file.
91487         * tests/test-printf-frexpl.c: New file.
91489         * modules/printf-frexpl: New file.
91490         * lib/printf-frexpl.h: New file.
91491         * lib/printf-frexpl.c: New file.
91492         * m4/printf-frexpl.m4: New file.
91494 2007-02-25  Bruno Haible  <bruno@clisp.org>
91496         * modules/printf-frexp-tests: New file.
91497         * tests/test-printf-frexp.c: New file.
91499         * modules/printf-frexp: New file.
91500         * lib/printf-frexp.h: New file.
91501         * lib/printf-frexp.c: New file.
91502         * m4/printf-frexp.m4: New file.
91504 2007-02-25  Bruno Haible  <bruno@clisp.org>
91506         Assume automake >= 1.10 for the tests.
91507         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91508         * modules/arctwo-tests: Likewise.
91509         * modules/argp-tests: Likewise.
91510         * modules/avltree-list-tests: Likewise.
91511         * modules/avltree-oset-tests: Likewise.
91512         * modules/avltreehash-list-tests: Likewise.
91513         * modules/carray-list-tests: Likewise.
91514         * modules/crc-tests: Likewise.
91515         * modules/des-tests: Likewise.
91516         * modules/gc-arcfour-tests: Likewise.
91517         * modules/gc-arctwo-tests: Likewise.
91518         * modules/gc-des-tests: Likewise.
91519         * modules/gc-hmac-md5-tests: Likewise.
91520         * modules/gc-hmac-sha1-tests: Likewise.
91521         * modules/gc-md2-tests: Likewise.
91522         * modules/gc-md4-tests: Likewise.
91523         * modules/gc-md5-tests: Likewise.
91524         * modules/gc-pbkdf2-sha1-tests: Likewise.
91525         * modules/gc-rijndael-tests: Likewise.
91526         * modules/gc-sha1-tests: Likewise.
91527         * modules/gc-tests: Likewise.
91528         * modules/getaddrinfo-tests: Likewise.
91529         * modules/hmac-md5-tests: Likewise.
91530         * modules/hmac-sha1-tests: Likewise.
91531         * modules/linked-list-tests: Likewise.
91532         * modules/linkedhash-list-tests: Likewise.
91533         * modules/lock-tests: Likewise.
91534         * modules/md2-tests: Likewise.
91535         * modules/md4-tests: Likewise.
91536         * modules/md5-tests: Likewise.
91537         * modules/rbtree-list-tests: Likewise.
91538         * modules/rbtree-oset-tests: Likewise.
91539         * modules/rbtreehash-list-tests: Likewise.
91540         * modules/read-file-tests: Likewise.
91541         * modules/rijndael-tests: Likewise.
91542         * modules/stdint-tests: Likewise.
91543         * modules/tls-tests: Likewise.
91545 2007-02-24  Bruno Haible  <bruno@clisp.org>
91547         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
91548         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
91549         function; instead check whether isnan with a double argument links.
91550         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
91551         function; instead check whether isnan with a 'long double' argument
91552         links.
91553         Reported by Eric Blake <ebb9@byu.net>.
91555 2007-02-24  Bruno Haible  <bruno@clisp.org>
91557         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
91558         defined.
91559         * lib/isnanl.c: Remove all code. Just include isnan.c.
91560         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
91562 2007-02-25  Jim Meyering  <jim@meyering.net>
91564         Avoid conflicting types for 'unsetenv' on FreeBSD.
91565         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
91566         conflicting with FreeBSD's (5.0 and 6.1) function declaration
91567         in stdlib.h.
91569 2007-02-24  Bruno Haible  <bruno@clisp.org>
91571         * modules/isnanl-nolibm-tests: New file.
91572         * tests/test-isnanl.c: New file.
91574         * modules/isnanl-nolibm: New file.
91575         * lib/isnanl.h: New file.
91576         * lib/isnanl.c: New file.
91577         * m4/isnanl.m4: New file.
91579 2007-02-24  Bruno Haible  <bruno@clisp.org>
91581         * modules/isnan-nolibm-tests: New file.
91582         * tests/test-isnan.c: New file.
91584         * modules/isnan-nolibm: New file.
91585         * lib/isnan.h: New file.
91586         * lib/isnan.c: New file.
91587         * m4/isnan.m4: New file.
91589 2007-02-24  Bruno Haible  <bruno@clisp.org>
91591         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
91592         assume that an exponent fits in 20 bits.
91594 2007-02-24  Jim Meyering  <jim@meyering.net>
91596         * m4/regex.m4: Update the description of the configure-time option,
91597         --without-included-regex, to state accurately what the defaults are,
91598         and perhaps to give people an idea why using this option is risky.
91600 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
91602         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
91603         loops on small arguments.  This attempts to avoid the problem
91604         Bruno Haible reported for AIX 4.3.2 in
91605         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
91607 2007-02-23  Bruno Haible  <bruno@clisp.org>
91609         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
91610         Needed for help2man.
91612 2007-02-23  Karl Berry  <karl@gnu.org>
91614         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
91615         exists, foo.h should be cvs-ignored, not committed.
91617 2007-02-23  Eric Blake  <ebb9@byu.net>
91619         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
91620         * lib/stat-time.h (includes): Likewise.
91621         * lib/utimecmp.c (includes): Likewise.
91622         * lib/utimens.h (includes): Likewise.
91623         * lib/getdate.y (includes): Also include "timespec.h" for use
91624         internal to the module.
91625         * modules/utimens (Depends-on): Revert yesterday's patch.
91626         * modules/nanosleep (Depends-on): Add missing dependency.
91628 2007-02-22  Bruno Haible  <bruno@clisp.org>
91630         * lib/glob.c: Don't include getlogin_r.h.
91632 2007-02-22  Jim Meyering  <jim@meyering.net>
91634         * modules/utimens (Depends-on): Add timespec, required for
91635         utimens.h's inclusion of timespec.h.
91637 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
91639         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
91640         long unreadable paths in GNU/Linux.  Problem reported by Andreas
91641         Schwab in
91642         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
91643         I'll try to think of a better way to fix the Solaris problem.
91645         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
91646         like glibc; on Solaris 10, it fails with errno == EINVAL.
91647         POSIX says the behavior is unspecified if the first argument is NULL,
91648         so play it safe and never pass NULL to the system getcwd.
91650 2007-02-21  Jim Meyering  <jim@meyering.net>
91652         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
91653         of gettimeofday.  It would conflict with the one now always
91654         provided via sys_time_.h.  Reported by Matthew Woehlke, as
91655         an IRIX 6.5 build failure.
91657 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
91659         Minor fixups to port to Solaris 10 with Sun C 5.8.
91660         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
91661         * modules/getcwd (Depends-on): Add dirfd.
91662         * lib/putenv.c (putenv): #undef it.
91663         (rpl_putenv): New decl.
91664         (malloc, free): Include <stdlib.h> rather than prototyping separately.
91666 2007-02-20  Bruno Haible  <bruno@clisp.org>
91668         * modules/stdio-tests: New file.
91669         * tests/test-stdio.c: New file.
91671         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
91672         (Depends-on): Add stdio.
91673         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91674         (Include): Use <stdio.h> instead of vsnprintf.h.
91675         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91676         HAVE_DECL_VSNPRINTF.
91677         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
91679         * modules/snprintf (Files): Remove lib/snprintf.h.
91680         (Depends-on): Add stdio.
91681         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91682         (Include): Use <stdio.h> instead of snprintf.h.
91683         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91684         HAVE_DECL_SNPRINTF.
91685         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
91686         * lib/getaddrinfo.c: Likewise.
91688         * modules/stdio: New file.
91689         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
91690         * lib/snprintf.h: Remove file.
91691         * lib/vsnprintf.h: Remove file.
91692         * lib/.cppi-disable: Remove snprintf.h.
91693         * m4/stdio_h.m4: New file.
91694         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
91696 2007-02-20  Jim Meyering  <jim@meyering.net>
91698         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
91699         used by e.g., mingw.  From Bruno Haible.
91701 2007-02-19  Bruno Haible  <bruno@clisp.org>
91703         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
91704         warnings.
91705         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91707 2007-02-19  Bruno Haible  <bruno@clisp.org>
91709         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
91710         from mingw users.
91712 2007-02-19  Bruno Haible  <bruno@clisp.org>
91714         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
91715         warnings.
91716         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
91718 2007-02-19  Jim Meyering  <jim@meyering.net>
91720         Don't use FD after a successful "fdopendir (fd)".
91721         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
91722         Reset it by calling dirfd on the just-obtained DIR*.
91724         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
91725         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
91727 2007-02-18  Bruno Haible  <bruno@clisp.org>
91729         * lib/readlink.c: Include <unistd.h>.
91730         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
91731         HAVE_READLINK.
91732         * modules/readlink (Depends-on): Add unistd.
91733         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91734         (Include): Add <unistd.h>.
91736         * lib/getlogin_r.h: Remove file.
91737         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
91738         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
91739         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
91740         HAVE_DECL_GETLOGIN_R.
91741         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
91742         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91743         (Include): Use <unistd.h> instead of getlogin_r.h.
91745         * lib/getcwd.h: Remove file.
91746         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
91747         * lib/xgetcwd.c: Likewise.
91748         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
91749         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
91750         * modules/getcwd (Files): Remove lib/getcwd.h.
91751         (Depends-on): Add unistd.
91752         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91753         (Include): Use <unistd.h> instad of getcwd.h.
91755         * lib/ftruncate.c: Include <unistd.h> first.
91756         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
91757         Set HAVE_FTRUNCATE.
91758         * modules/ftruncate (Depends-on): Add unistd.
91759         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91761         * lib/fchdir.c: Include <unistd.h> first.
91762         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
91763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
91764         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
91765         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91766         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
91768         * lib/dup2.c: Include <unistd.h> first.
91769         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
91770         HAVE_DUP2.
91771         * modules/dup2 (Depends-on): Add unistd.
91772         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91774         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
91775         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
91776         REPLACE_CHOWN. Don't define chown as a macro here.
91777         * modules/chown (Depends-on): Add unistd.
91778         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91780         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
91781         Add definition for GL_LINK_WARNING.
91782         (chown, dup2): New declarations.
91783         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
91784         link warning.
91785         (ftruncate): New declaration.
91786         (getcwd): New declaration, taken from old getcwd.h.
91787         (getlogin_r): New declaration, taken from old getlogin_r.h.
91788         (readlink): New declaration.
91789         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
91790         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
91791         (gl_PREREQ_UNISTD): Remove macro.
91792         (gl_UNISTD_MODULE_INDICATOR): New macro.
91793         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
91794         many new variables. Don't set UNISTD_H.
91795         * modules/unistd (Description): Change.
91796         (Depends-on): Add link-warning.
91797         (configure.ac): Update.
91798         (Makefile.am): Create unistd.h always. Substitute many new variables
91799         into it.
91801 2007-02-18  Bruno Haible  <bruno@clisp.org>
91803         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
91804         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
91805         HAVE_GETSUBOPT.
91806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
91807         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
91808         * lib/getsubopt.h: Remove file.
91809         * modules/getsubopt (Files): Remove lib/getsubopt.h.
91810         (Depends-on): Add stdlib.
91811         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91812         (Includes): Use <stdlib.h> instead of getsubopt.h.
91813         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
91814         Set HAVE_GETSUBOPT.
91815         * lib/getsubopt.c: Don't include getsubopt.h.
91817 2007-02-18  Bruno Haible  <bruno@clisp.org>
91819         * modules/fchdir (Depends-on): Add dup2.
91821 2007-02-18  Bruno Haible  <bruno@clisp.org>
91823         * lib/stdlib_.h: Handle glibc's special invocation convention
91824         specially.
91826 2007-02-18  Bruno Haible  <bruno@clisp.org>
91828         * modules/stdlib-tests: New file.
91829         * tests/test-stdlib.c: New file.
91831         * modules/mkstemp (Files): Remove lib/mkstemp.h.
91832         (Depends-on): Add stdlib.
91833         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91834         (Includes): Use <stdlib.h> instead of mkstemp.h.
91835         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91836         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
91837         * lib/mkstemp.c: Don't include mkstemp.h.
91838         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
91839         * lib/stdlib--.h: Don't include mkstemp.h.
91841         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
91842         (Depends-on): Add stdlib.
91843         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91844         (Includes): Use <stdlib.h> instead of mkdtemp.h.
91845         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91846         HAVE_MKDTEMP.
91847         * lib/mkdtemp.c: Don't include mkdtemp.h.
91848         * lib/clean-temp.c: Don't include mkdtemp.h.
91850         * modules/exit (Files): Remove lib/exit.h.
91851         (Depends-on): Add stdlib.
91852         (Makefile.am): Remove lib_SOURCES.
91853         (Include): Use <stdlib.h> instead of exit.h.
91854         * lib/argmatch.c: Don't include exit.h.
91855         * lib/execute.c: Likewise.
91856         * lib/pagealign_alloc.c: Likewise.
91857         * lib/pipe.c: Likewise.
91858         * lib/wait-process.c: Likewise.
91859         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
91860         * lib/exitfail.c: Likewise.
91861         * lib/savewd.c: Likewise.
91862         * lib/xsetenv.c: Likewise.
91864         * modules/stdlib: New file.
91865         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
91866         and extra comments about mkstemp().
91867         * lib/exit.h: Remove file.
91868         * lib/mkdtemp.h: Remove file.
91869         * lib/mkstemp.h: Remove file.
91870         * m4/stdlib_h.m4: New file.
91871         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
91873 2007-02-18  Bruno Haible  <bruno@clisp.org>
91875         * modules/math-tests: New file.
91876         * tests/test-math.c: New file.
91878         * modules/math: New file.
91879         * modules/mathl (Files): Remove lib/mathl.h.
91880         (Depends-on): Add math.
91881         (Makefile.am): Don't mention mathl.h.
91882         (Include): Use <math.h> instead of mathl.h.
91883         * lib/math_.h: New file.
91884         * lib/mathl.h: Remove file.
91885         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
91886         mathl.h.
91887         * lib/asinl.c: Likewise.
91888         * lib/atanl.c: Likewise.
91889         * lib/ceill.c: Likewise.
91890         * lib/cosl.c: Likewise.
91891         * lib/expl.c: Likewise.
91892         * lib/floorl.c: Likewise.
91893         * lib/frexpl.c: Likewise.
91894         * lib/ldexpl.c: Likewise.
91895         * lib/logl.c: Likewise.
91896         * lib/sincosl.c: Likewise.
91897         * lib/sinl.c: Likewise.
91898         * lib/sqrtl.c: Likewise.
91899         * lib/tanl.c: Likewise.
91900         * lib/trigl.c: Likewise.
91901         * m4/math_h.m4: New file.
91902         * MODULES.html.sh (Mathematics): Add math.
91904 2007-02-17  Bruno Haible  <bruno@clisp.org>
91906         * modules/wctype-tests: New file.
91907         * tests/test-wctype.c: New file.
91909         * modules/wchar-tests: New file.
91910         * tests/test-wchar.c: New file.
91912         * modules/unistd-tests: New file.
91913         * tests/test-unistd.c: New file.
91915         * modules/time-tests: New file.
91916         * tests/test-time.c: New file.
91918         * modules/sysexits-tests: New file.
91919         * tests/test-sysexits.c: New file.
91921         * modules/sys_time-tests: New file.
91922         * tests/test-sys_time.c: New file.
91924         * modules/sys_stat-tests: New file.
91925         * tests/test-sys_stat.c: New file.
91927         * modules/sys_socket-tests: New file.
91928         * tests/test-sys_socket.c: New file.
91930         * modules/sys_select-tests: New file.
91931         * tests/test-sys_select.c: New file.
91933         * modules/string-tests: New file.
91934         * tests/test-string.c: New file.
91936         * modules/stdbool-tests: New file.
91937         * tests/test-stdbool.c: New file.
91939         * modules/netinet_in-tests: New file.
91940         * tests/test-netinet_in.c: New file.
91942         * modules/inttypes-tests: New file.
91943         * tests/test-inttypes.c: New file.
91945         * modules/fcntl-tests: New file.
91946         * tests/test-fcntl.c: New file.
91948         * modules/byteswap-tests: New file.
91949         * tests/test-byteswap.c: New file.
91951         * modules/arpa_inet-tests: New file.
91952         * tests/test-arpa_inet.c: New file.
91954 2007-02-17  Bruno Haible  <bruno@clisp.org>
91956         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
91957         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
91958         if the corresponding module is not enabled. Emit link warnings if
91959         the function is used nevertheless.
91960         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
91961         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
91962         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
91963         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
91964         * modules/inttypes (Depends-on): Add link-warning.
91965         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91966         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
91967         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
91968         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
91969         * modules/imaxdiv (configure.ac): Likewise.
91970         * modules/strtoimax (configure.ac): Likewise.
91971         * modules/strtoumax (configure.ac): Likewise.
91973 2007-02-17  Bruno Haible  <bruno@clisp.org>
91975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
91976         gl_STRING_MODULE_INDICATOR_DEFAULTS.
91977         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
91978         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
91980 2007-02-17  Bruno Haible  <bruno@clisp.org>
91982         * modules/link-warning: New file.
91983         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
91984         * lib/string_.h (GL_LINK_WARNING): Remove definition.
91985         * modules/string (Depends-on): Add link-warning.
91986         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91987         string.h.
91988         * MODULES.html.sh (Support for building libraries and executables): Add
91989         link-warning.
91991 2007-02-17  Bruno Haible  <bruno@clisp.org>
91993         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
91994         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
91995         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
91996         long lines.
91998 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
91999             Bruno Haible  <bruno@clisp.org>
92001         * modules/tmpfile: New file.
92002         * lib/tmpfile.c: New file.
92003         * m4/tmpfile.m4: New file.
92004         * MODULES.html.sh (func_all_modules): New section "Input/output".
92006 2007-02-15  Bruno Haible  <bruno@clisp.org>
92008         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
92009         (supports_delete_on_close): New function.
92010         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
92012 2007-02-14  Bruno Haible  <bruno@clisp.org>
92014         * modules/mbspcasecmp-tests: New file.
92015         * tests/test-mbspcasecmp.sh: New file.
92016         * tests/test-mbspcasecmp.c: New file.
92018         New module mbspcasecmp.
92019         * modules/mbspcasecmp: New file.
92020         * lib/mbspcasecmp.c: New file.
92021         * lib/string_.h (strncasecmp): Change warning message.
92022         (mbspcasecmp): New declaration.
92023         * m4/mbspcasecmp.m4: New file.
92024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92025         GNULIB_MBSPCASECMP.
92026         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
92027         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
92029 2007-02-14  Bruno Haible  <bruno@clisp.org>
92031         * modules/mbsncasecmp-tests: New file.
92032         * tests/test-mbsncasecmp.sh: New file.
92033         * tests/test-mbsncasecmp.c: New file.
92035         New module mbsncasecmp.
92036         * modules/mbsncasecmp: New file.
92037         * lib/mbsncasecmp.c: New file.
92038         * lib/string_.h (mbsncasecmp): New declaration.
92039         * m4/mbsncasecmp.m4: New file.
92040         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92041         GNULIB_MBSNCASECMP.
92042         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
92043         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
92045 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
92047         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
92048         Verify that it doesn't overlap with our flags.
92049         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
92050         do not have the desired effect in multibyte locales; instead, use
92051         mbscasecmp.
92052         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
92053         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
92054         we don't require GNU fnmatch ourselves (if our users require it, they
92055         should do so explicitly).
92057         Fix regex code so it doesn't rely on strcasecmp.
92058         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
92059         Otherwise, include gnulib's langinfo.h.
92060         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
92061         undesirable behavior in non-C locales.  Instead, rely on localecharset.
92062         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
92063         * modules/regex (FILES): Remove m4/codeset.m4.
92064         (Depends-on): Add localcharset.  Remove strcase.
92066 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92068         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
92069         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
92071 2007-02-13  Bruno Haible  <bruno@clisp.org>
92073         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
92074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92076 2007-02-12  Bruno Haible  <bruno@clisp.org>
92078         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92079         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
92080         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
92081         time warning rather than a link error.
92083 2007-02-12  Bruno Haible  <bruno@clisp.org>
92085         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
92086         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
92087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92089 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92091         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
92092         args, not 2.
92094 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92096         New module 'time', so that apps can include <time.h> as per
92097         POSIX and GNU instead of separate include files like time_r.h
92098         and timegm.h.  This implementation tries out a simpler approach
92099         for replacing decls in standard include files (as compared to
92100         the string module), somewhat as an experiment.
92102         * config/srclist.txt: Comment out mktime.c for now.
92103         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
92104         since it doesn't apply any more.  Use generic wording instead.
92105         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
92106         'time'.
92107         * lib/time_.h, m4/time_h.m4, modules/time: New files.
92108         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
92109         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
92110         Don't include <sys/types.h>; no longer needed since we assume C89.
92111         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
92112         * lib/strftime.c: Likewise.
92113         * lib/time_r.c: Likewise.
92114         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
92115         * lib/nanosleep.c: Include <time.h> first, to check interface.
92116         * lib/strptime.c: Likewise.
92117         * lib/time_r.c: Likewise.
92118         * lib/timegm.c: Likewise.
92119         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
92120         needed.
92121         * lib/timegm.c: Don't include timegm.h; no longer needed.
92122         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
92123         time.h now handles any problems in that area.
92124         (struct timespec, nanosleep): Remove; time.h now arranges for these.
92125         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
92126         that time.h defines struct timespec.
92127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
92128         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
92129         handles that.
92130         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
92131         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
92132         needed.  Set REPLACE_LOCALTIME.
92133         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
92134         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
92135         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
92136         nanosleep; time_h.m4 now does that.  Don't require
92137         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
92138         module handles this now.
92139         * modules/getdate (Depends-on): Remove timespec.  Add time.
92140         * modules/nanosleep (Depends-on): Likewise.
92141         * modules/stat-time (Depends-on): Likewise.
92142         * modules/nanosleep (Include): Include time.h, not timespec.h.
92143         * modules/strptime (Files): Remove lib/strptime.h.
92144         (Depends-on): Add extensions, time.
92145         (Include): Include time.h, not strptime.h.
92146         * modules/time_r (Files): Remove lib/time_r.h.
92147         (Depends-on): Add time.
92148         (Include): Include time.h, not time_r.h.
92149         * modules/timegm: Likewise.
92150         * modules/timespec (Description): Now does timespec-related decls
92151         of our own, instead of struct timespec itself.
92152         (Depends-on): Add time; remove extensions.
92153         (Maintainer): Add self.
92154         * modules/utimecmp (Depends-on): Add time; remove timespec.
92155         * modules/utimens (Depends-on): Likewise.
92156         * modules/xnanosleep (Depends-on): Likewise.
92158 2007-02-11  Bruno Haible  <bruno@clisp.org>
92160         * lib/c-strstr.c: Include allocsa.h.
92161         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92162         * lib/c-strcasestr.c: Include allocsa.h.
92163         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92164         * lib/strcasestr.c: Include allocsa.h.
92165         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92166         * lib/mbsstr.c: Include allocsa.h.
92167         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92168         allocsa/freesa instead of malloc/free.
92169         * lib/mbscasestr.c: Include allocsa.h.
92170         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92171         allocsa/freesa instead of malloc/free.
92172         * modules/c-strstr (Depends-on): Add allocsa.
92173         * modules/c-strcasestr (Depends-on): Likewise.
92174         * modules/strcasestr (Depends-on): Likewise.
92175         * modules/mbsstr (Depends-on): Likewise.
92176         * modules/mbscasestr (Depends-on): Likewise.
92178 2007-02-11  Bruno Haible  <bruno@clisp.org>
92180         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
92182         * modules/mbsspn-tests: New file.
92183         * tests/test-mbsspn.sh: New file.
92184         * tests/test-mbsspn.c: New file.
92186 2007-02-11  Bruno Haible  <bruno@clisp.org>
92188         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
92190         * modules/mbspbrk-tests: New file.
92191         * tests/test-mbspbrk.sh: New file.
92192         * tests/test-mbspbrk.c: New file.
92194 2007-02-11  Bruno Haible  <bruno@clisp.org>
92196         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
92197         unneeded cast.
92199         * modules/mbscspn-tests: New file.
92200         * tests/test-mbscspn.sh: New file.
92201         * tests/test-mbscspn.c: New file.
92203 2007-02-11  Bruno Haible  <bruno@clisp.org>
92205         * modules/mbscasecmp-tests: New file.
92206         * tests/test-mbscasecmp.sh: New file.
92207         * tests/test-mbscasecmp.c: New file.
92209 2007-02-11  Bruno Haible  <bruno@clisp.org>
92211         Ensure O(n) worst-case complexity of mbscasestr.
92212         * lib/mbscasestr.c: Include stdbool.h.
92213         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92214         functions.
92215         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
92216         the bookkeeping indicates that it's worth it.
92217         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
92219         * modules/mbscasestr-tests: New file.
92220         * tests/test-mbscasestr1.c: New file.
92221         * tests/test-mbscasestr2.sh: New file.
92222         * tests/test-mbscasestr2.c: New file.
92223         * tests/test-mbscasestr3.sh: New file.
92224         * tests/test-mbscasestr3.c: New file.
92225         * tests/test-mbscasestr4.sh: New file.
92226         * tests/test-mbscasestr4.c: New file.
92227         * m4/locale-tr.m4: New file.
92229 2007-02-11  Bruno Haible  <bruno@clisp.org>
92231         Ensure O(n) worst-case complexity of mbsstr.
92232         * lib/mbsstr.c: Include stdbool.h.
92233         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92234         functions.
92235         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
92236         bookkeeping indicates that it's worth it.
92237         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
92239         * modules/mbsstr-tests: New file.
92240         * tests/test-mbsstr1.c: New file.
92241         * tests/test-mbsstr2.sh: New file.
92242         * tests/test-mbsstr2.c: New file.
92243         * tests/test-mbsstr3.sh: New file.
92244         * tests/test-mbsstr3.c: New file.
92245         * m4/locale-fr.m4: New file.
92247 2007-02-11  Bruno Haible  <bruno@clisp.org>
92249         * lib/mbsrchr.c (mbsrchr): Fix bug.
92251         * modules/mbsrchr-tests: New file.
92252         * tests/test-mbsrchr.sh: New file.
92253         * tests/test-mbsrchr.c: New file.
92255 2007-02-11  Bruno Haible  <bruno@clisp.org>
92257         * lib/mbschr.c (mbschr): Fix bug.
92259         * modules/mbschr-tests: New file.
92260         * tests/test-mbschr.sh: New file.
92261         * tests/test-mbschr.c: New file.
92262         * m4/locale-zh.m4: New file.
92264 2007-02-11  Bruno Haible  <bruno@clisp.org>
92266         Support for copying multibyte string iterators.
92267         * lib/mbiter.h: Include <string.h>.
92268         (mbiter_multi_copy): New function.
92269         (mbi_copy): New macro.
92270         * lib/mbuiter.h: Include <string.h>.
92271         (mbuiter_multi_copy): New function.
92272         (mbui_copy): New macro.
92274 2007-02-11  Bruno Haible  <bruno@clisp.org>
92276         New module mbslen.
92277         * modules/mbslen: New file.
92278         * lib/mbslen.c: New file.
92279         * lib/string_.h (mbslen): New declaration.
92280         * m4/mbslen.m4: New file.
92281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92282         GNULIB_MBSLEN.
92283         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
92284         * MODULES.html.sh (Internationalization functions): Add mbslen.
92286 2007-02-11  Bruno Haible  <bruno@clisp.org>
92288         Ensure O(n) worst-case complexity of strcasestr substitute.
92289         * lib/strcasestr.c: Include stdbool.h.
92290         (knuth_morris_pratt): New function.
92291         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92292         bookkeeping indicates that it's worth it.
92293         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92295         * modules/strcasestr-tests: New file.
92296         * tests/test-strcasestr.c: New file.
92298 2007-02-11  Bruno Haible  <bruno@clisp.org>
92300         Ensure O(n) worst-case complexity of c_strcasestr.
92301         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92302         (knuth_morris_pratt): New function.
92303         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92304         the bookkeeping indicates that it's worth it.
92305         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92307         * modules/c-strcasestr-tests: New file.
92308         * tests/test-c-strcasestr.c: New file.
92310 2007-02-11  Bruno Haible  <bruno@clisp.org>
92312         Ensure O(n) worst-case complexity of c_strstr.
92313         * lib/c-strstr.c: Include stdbool.h, string.h.
92314         (knuth_morris_pratt): New function.
92315         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92316         bookkeeping indicates that it's worth it.
92317         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92319         * lib/c-strstr.c: Complete rewrite for maintainability.
92321         * modules/c-strstr-tests: New file.
92322         * tests/test-c-strstr.c: New file.
92324 2007-02-11  Bruno Haible  <bruno@clisp.org>
92326         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92327         5.2.1 and earlier, whereby \055 was treated just like the range
92328         delimiter '-'.
92329         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92331 2007-02-08  Bruno Haible  <bruno@clisp.org>
92333         * modules/regex (Depends-on): Add stdbool.
92334         Reported by Dalibor Topic <robilad@kaffe.org>.
92336 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92338         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92339         Prefer returning from main to exiting from it.
92340         Remove unnecessary parens after sizeof.
92342 2007-02-05  Bruno Haible  <bruno@clisp.org>
92344         New module mbssep.
92345         * modules/mbssep: New file.
92346         * lib/mbssep.c: New file.
92347         * lib/string_.h (strsep): Add a conditional link warning.
92348         (mbssep): New declaration.
92349         * m4/mbssep.m4: New file.
92350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92351         GNULIB_MBSSEP.
92352         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92353         * MODULES.html.sh (Internationalization functions): Add mbssep.
92355 2007-02-05  Bruno Haible  <bruno@clisp.org>
92357         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92358         Optimize search in case of 1 delimiter.
92360 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92362         * lib/acl.h: Include sys/types.h before sys/acl.h.
92364 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92366         Merge upstream fix for glibc bugzilla #3957:
92368         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92370         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92371         bit for RE_HAT_LISTS_NOT_NEWLINE.
92372         (build_charclass_op): Remove bogus comment.
92374 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92376         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92378 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92380         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92381         * lib/memmem.c [!defined _LIBC]: Include config.h.
92383 2007-02-04  Bruno Haible  <bruno@clisp.org>
92385         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92386         warning message.
92388 2007-02-04  Bruno Haible  <bruno@clisp.org>
92390         New module mbstok_r.
92391         * modules/mbstok_r: New file.
92392         * lib/mbstok_r.c: New file.
92393         * lib/string_.h (strtok_r): Change argument names to match the
92394         comments. Add a conditional link warning.
92395         (mbstok_r): New declaration.
92396         * m4/mbstok_r.m4: New file.
92397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92398         GNULIB_MBSTOK_R.
92399         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92400         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92402 2007-02-04  Bruno Haible  <bruno@clisp.org>
92404         New module mbsspn.
92405         * modules/mbsspn: New file.
92406         * lib/mbsspn.c: New file.
92407         * lib/string_.h (strspn): Add a conditional link warning.
92408         (mbsspn): New declaration.
92409         * m4/mbsspn.m4: New file.
92410         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92411         GNULIB_MBSSPN.
92412         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92413         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92415 2007-02-04  Bruno Haible  <bruno@clisp.org>
92417         New module mbspbrk.
92418         * modules/mbspbrk: New file.
92419         * lib/mbspbrk.c: New file.
92420         * lib/string_.h (strpbrk): Add a conditional link warning.
92421         (mbspbrk): New declaration.
92422         * m4/mbspbrk.m4: New file.
92423         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92424         GNULIB_MBSPBRK.
92425         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92426         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92428 2007-02-04  Bruno Haible  <bruno@clisp.org>
92430         New module mbscspn.
92431         * modules/mbscspn: New file.
92432         * lib/mbscspn.c: New file.
92433         * lib/string_.h (strcspn): Add a conditional link warning.
92434         (mbscspn): New declaration.
92435         * m4/mbscspn.m4: New file.
92436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92437         GNULIB_MBSCSPN.
92438         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92439         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92441 2007-02-04  Bruno Haible  <bruno@clisp.org>
92443         New module mbscasestr, reduced goal of strcasestr.
92444         * modules/mbscasestr: New file.
92445         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92446         (mbscasestr): Renamed from strcasestr.
92447         * lib/strcasestr.c: Don't include mbuiter.h.
92448         (strcasestr): Remove support for multibyte locales.
92449         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92450         Change the conditional link warning.
92451         (mbscasestr): New declaration.
92452         * m4/mbscasestr.m4: New file.
92453         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92454         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92455         REPLACE_STRCASESTR.
92456         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92458         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92459         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92460         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92461         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92462         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92463         (Depends-on): Remove mbuiter.
92464         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92466 2007-02-04  Bruno Haible  <bruno@clisp.org>
92468         Simplify handling of strncasecmp.
92469         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92470         the conditional link warning.
92471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92472         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92473         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92474         * modules/strcase (configure.ac): Don't invoke
92475         gl_STRING_MODULE_INDICATOR.
92476         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92478 2007-02-04  Bruno Haible  <bruno@clisp.org>
92480         New module mbscasecmp, reduced goal of strcasecmp.
92481         * modules/mbscasecmp: New file.
92482         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92483         (mbscasecmp): Renamed from strcasecmp.
92484         * lib/strcasecmp.c: Don't include mbuiter.h.
92485         (strcasecmp): Remove support for multibyte locales.
92486         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92487         Change the conditional link warning.
92488         (mbscasecmp): New declaration.
92489         * m4/mbscasecmp.m4: New file.
92490         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92491         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92492         REPLACE_STRCASECMP.
92493         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92495         GNULIB_MBSCASECMP.
92496         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92497         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92498         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92499         (Depends-on): Remove mbuiter.
92500         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92502 2007-02-04  Bruno Haible  <bruno@clisp.org>
92504         New module mbsstr. Remove module strstr.
92505         * modules/mbsstr: New file.
92506         * modules/strstr: Remove file.
92507         * lib/mbsstr.c: Renamed from lib/strstr.c.
92508         (mbsstr): Renamed from strstr.
92509         * lib/string_.h (strstr): Remove declaration. Change the conditional
92510         link warning.
92511         (mbsstr): New declaration.
92512         * m4/mbsstr.m4: New file.
92513         * m4/strstr.m4: Remove file.
92514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92515         REPLACE_STRSTR.
92516         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92517         Don't initialize GNULIB_STRSTR.
92518         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92519         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92520         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92521         (Support for systems lacking ANSI C 89): Remove strstr.
92523 2007-02-04  Bruno Haible  <bruno@clisp.org>
92525         New module mbsrchr.
92526         * modules/mbsrchr: New file.
92527         * lib/mbsrchr.c: New file.
92528         * lib/string_.h (strrchr): Add a conditional link warning.
92529         (mbsrchr): New declaration.
92530         * m4/mbsrchr.m4: New file.
92531         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92532         GNULIB_MBSRCHR.
92533         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92534         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92536 2007-02-04  Bruno Haible  <bruno@clisp.org>
92538         New module mbschr.
92539         * modules/mbschr: New file.
92540         * lib/mbschr.c: New file.
92541         * lib/string_.h (strchr): Add a conditional link warning.
92542         (mbschr): New declaration.
92543         * m4/mbschr.m4: New file.
92544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92545         GNULIB_MBSCHR.
92546         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
92547         * MODULES.html.sh (Internationalization functions): Add mbschr.
92549 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92551         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
92553         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
92555 2007-02-04  Bruno Haible  <bruno@clisp.org>
92557         New module description section 'configure.ac-early'.
92558         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
92559         (func_get_autoconf_early_snippet): New function.
92560         (func_import, func_create_testdir): Use it. Remove special cases for
92561         modules 'extensions' and 'lock'.
92562         * modules/extensions (configure.ac-early): Require
92563         gl_USE_SYSTEM_EXTENSIONS.
92564         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
92566 2007-02-04  Bruno Haible  <bruno@clisp.org>
92568         Make use of gcj-4.3's -fsource and -ftarget option.
92569         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
92570         and if so try the options -fsource and -ftarget.
92571         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
92572         source_version, ftarget_option, target_version arguments.
92573         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
92574         (is_envjavac_oldgcj_14_14_usable): Renamed from
92575         is_envjavac_gcj_14_14_usable.
92576         (is_envjavac_oldgcj_14_13_usable): Renamed from
92577         is_envjavac_gcj_14_13_usable.
92578         (is_gcj_present): Update.
92579         (is_gcj_43, is_gcj43_usable): New functions.
92580         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
92581         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
92582         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
92583         try the options -fsource and -ftarget.
92585 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
92587         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
92588         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
92589         larger value.
92591 2007-02-03  Jim Meyering  <jim@meyering.net>
92593         Give tools a better chance to allocate space for very large buffers.
92594         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
92596         Make pwd and readlink work also when run with an unreadable parent dir
92597         on systems with openat support.
92598         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
92599         provided getcwd function, even when we have openat support.
92600         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
92602 2007-02-02  Bruno Haible  <bruno@clisp.org>
92604         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92605         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
92606         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
92607         portability problems if one of these functions is only used on specific
92608         platforms.
92609         Reported by Paul Eggert.
92611 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
92613         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
92614         is causing more trouble than it's curing.
92615         * lib/regex_internal.h (__mempcpy): Remove.
92616         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
92617         (and make the code a tad smaller to boot).
92618         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
92620 2007-02-02  Jim Meyering  <jim@meyering.net>
92622         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
92623         section, not in the Makefile.am: one.
92625 2007-02-02  Eric Blake  <ebb9@byu.net>
92627         * lib/strchrnul.c: Always include config.h first.
92629         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
92630         gnulib strstr is not necessary here.
92632 2007-02-02  Simon Josefsson  <simon@josefsson.org>
92634         * m4/socklen.m4: Fix typo.
92636 2007-02-02  Eric Blake  <ebb9@byu.net>
92638         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
92639         * modules/netinet_in (Makefile.am): Likewise.
92641 2007-02-01  Bruno Haible  <bruno@clisp.org>
92643         * lib/string_.h (GL_LINK_WARNING): New macro.
92644         (strcasecmp, strstr, strcasestr): If provided by the system,
92645         conditionally define as a macro that leads to a warning instead of to
92646         an error.
92647         (strncasecmp): Conditionally define as a macro that leads to a warning.
92649 2007-02-01  Karl Berry  <karl@gnu.org>
92651         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
92653 2007-02-01  Bruno Haible  <bruno@clisp.org>
92655         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
92656         renamings.
92658 2007-02-01  Eric Blake  <ebb9@byu.net>
92660         * modules/regex (Depends-on): Revert dependence on mempcpy.
92661         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
92662         module's definition of mempcpy.
92663         Reported by Paul Eggert.
92665 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
92667         * lib/string_.h: If the gnulib module XYZ is not present, undefine
92668         the symbol XYZ before redefining it.  This fixes a problem with
92669         programs that don't use XYZ, when compiled on systems that define
92670         XYZ to something else.
92672 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
92674         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
92675         occurs when "mkdir -m foo" creates a setgid directory that is (1)
92676         writeable to group or other and (2) is intended to have a special
92677         mode bit that is set or cleared.  In such a case, the directory
92678         should be neither group- nor other-writeable until the special
92679         mode bits are right.
92681 2007-01-31  Eric Blake  <ebb9@byu.net>
92683         * modules/mountlist (Depends-on): Add strstr.
92685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
92686         bug.
92687         * modules/string (Makefile.am): Remove redundant replacement.
92688         * modules/regex (Depends-on): Add mempcpy.
92690 2007-01-31  Bruno Haible  <bruno@clisp.org>
92692         New module description field 'Link'.
92693         * gnulib-tool (func_usage): Document --extract-link-directive.
92694         (sed_extract_prog): Recognize 'Link' directive.
92695         (func_get_link_directive): New function.
92696         (func_import): Show summary of link directives.
92697         Handle --extract-link-directive option.
92698         * modules/acl (Link): New section.
92699         * modules/clock-time (Link): New section.
92700         * modules/euidaccess (Link): New section.
92701         * modules/gettext (Link): New section.
92702         * modules/iconv (Link): New section.
92703         * modules/lock (Link): New section.
92704         * modules/nanosleep (Link): New section.
92705         * modules/readline (Link): New section.
92707 2007-01-27  Bruno Haible  <bruno@clisp.org>
92709         Enforce the use of gnulib modules for unportable <string.h> functions.
92710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
92711         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
92712         (gl_HEADER_STRING_H_BODY): Require it.
92713         * lib/string_.h: If the gnulib module XYZ is not present, redefine
92714         the symbol XYZ to one that gives a link error.
92715         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
92716         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
92717         * modules/mempcpy (configure.ac): Likewise.
92718         * modules/memrchr (configure.ac): Likewise.
92719         * modules/stpcpy (configure.ac): Likewise.
92720         * modules/stpncpy (configure.ac): Likewise.
92721         * modules/strcase (configure.ac): Likewise.
92722         * modules/strcasestr (configure.ac): Likewise.
92723         * modules/strchrnul (configure.ac): Likewise.
92724         * modules/strdup (configure.ac): Likewise.
92725         * modules/strndup (configure.ac): Likewise.
92726         * modules/strnlen (configure.ac): Likewise.
92727         * modules/strpbrk (configure.ac): Likewise.
92728         * modules/strsep (configure.ac): Likewise.
92729         * modules/strstr (configure.ac): Likewise.
92730         * modules/strtok_r (configure.ac): Likewise.
92732 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
92734         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
92736 2007-01-30  Jim Meyering  <jim@meyering.net>
92738         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
92740 2007-01-29  Bruno Haible  <bruno@clisp.org>
92742         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
92743         * lib/execute.c: Likewise.
92744         * lib/pipe.c: Likewise.
92745         * lib/printf-args.h: Likewise.
92746         * lib/printf-args.c: Likewise.
92747         * lib/printf-parse.c: Likewise.
92748         * lib/vasnprintf.c: Likewise.
92750 2007-01-29  Eric Blake  <ebb9@byu.net>
92752         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
92753         declaration.
92755 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
92757         * lib/strptime.h (strptime): Use 'restrict' for args where
92758         POSIX requires this.
92759         * lib/strptime.c (strptime): Likewise.
92760         Change license notice from LGPL to GPL, since gnulib-tool will
92761         change this as needed.
92762         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
92763         defined.
92764         Include "strptime.h" first, to check interface.
92765         Do not #undef _LIBC and _NL_CURRENT.
92766         Do not include <stdlib.h>; no longer needed.
92767         Include "time_r.h" and declare ptime_locale_status
92768         only if _LIBC is not defined.
92769         (__P): Remove unused macro.
92770         (match_string): Bring back glibc version, but use it only if _LIBC
92771         is defined.
92772         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
92773         Remove unnecessary assertion and abort() call.
92774         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
92775         * m4/strptime.m4: Fix serial number comment.
92776         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
92777         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
92778         (Depends-on): Add time_r.
92780 2007-01-29  Bruno Haible  <bruno@clisp.org>
92782         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92783         strptime.
92784         * modules/strptime (Depends-on): Add stdbool.
92785         * lib/strptime.h: Include <time.h> always. Add comments.
92787 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
92789         * modules/strptime: New file.
92790         * lib/strptime.h: New file.
92791         * lib/strptime.c: New file.
92792         * m4/strptime.m4: New file.
92794 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
92796         * MODULES.html.sh: New module mpsort.
92797         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
92799         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
92800         a circularity problem with HP-UX ia64 reported by Bob Proulx in
92801         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
92802         All uses changed.
92803         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
92804         All uses changed.
92805         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
92806         to _Restrict_.
92807         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
92808         the parameter matches the prototype.
92810 2007-01-28  Jim Meyering  <jim@meyering.net>
92812         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
92813         sys/time.h here, reverting that part of the previous patch:
92814         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
92816 2007-01-28  Bruno Haible  <bruno@clisp.org>
92818         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
92819         value of $(SYS_TIME_H).
92820         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
92821         remove it conditionally, too. [added by Jim Meyering]
92822         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
92823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
92824         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
92825         GETTIMEOFDAY_REPLACEMENT to 1.
92827 2007-01-28  Bruno Haible  <bruno@clisp.org>
92829         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
92830         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
92831         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
92832         Set UNISTD_H instead of UNISTD_H2.
92833         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
92835 2007-01-28  Bruno Haible  <bruno@clisp.org>
92837         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
92838         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
92840 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92842         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
92843         (func_create_testdir): Ensure C locale for `grep' and `tr'
92844         character ranges.
92845         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
92846         ACLOCAL_AMFLAGS parsing state machine.
92848 2007-01-27  Bruno Haible  <bruno@clisp.org>
92850         * modules/unistr/base: Update.
92852 2007-01-27  Bruno Haible  <bruno@clisp.org>
92854         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
92855         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
92856         * modules/unistr/u32-mbtouc-unsafe: Renamed from
92857         modules/unistr/u32-mbtouc.
92858         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
92859         * lib/unistr.h: Update.
92860         * lib/linebreak.c: Update.
92861         * modules/unistr/u32-mbtouc: Renamed from
92862         modules/unistr/u32-mbtouc-safe.
92863         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
92864         * lib/unistr.h: Update.
92865         * lib/unistr/u32-to-u8.c: Update.
92866         * lib/unistr/u32-to-u16.c: Update.
92868 2007-01-27  Bruno Haible  <bruno@clisp.org>
92870         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
92871         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
92872         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
92873         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
92874         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
92875         * modules/unistr/u16-mbtouc-unsafe: Renamed from
92876         modules/unistr/u16-mbtouc.
92877         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
92878         * lib/unistr.h: Update.
92879         * lib/linebreak.c: Update.
92880         * modules/linebreak: Update.
92881         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
92882         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
92883         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
92884         * modules/unistr/u16-mbtouc: Renamed from
92885         modules/unistr/u16-mbtouc-safe.
92886         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
92887         * lib/unistr.h: Update.
92888         * lib/unistr/u16-to-u8.c: Update.
92889         * modules/unistr/u16-to-u8: Update.
92890         * lib/unistr/u16-to-u32.c: Update.
92891         * modules/unistr/u16-to-u32: Update.
92893 2007-01-27  Bruno Haible  <bruno@clisp.org>
92895         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
92896         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
92897         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
92898         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
92899         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
92900         * modules/unistr/u8-mbtouc-unsafe: Renamed from
92901         modules/unistr/u8-mbtouc.
92902         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
92903         * lib/unistr.h: Update.
92904         * lib/striconveh.c: Update.
92905         * modules/striconveh: Update.
92906         * lib/linebreak.c: Update.
92907         * modules/linebreak: Update.
92908         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
92909         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
92910         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
92911         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
92912         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
92913         * lib/unistr.h: Update.
92914         * lib/striconveh.c: Update.
92915         * modules/striconveh: Update.
92916         * lib/unistr/u8-to-u16.c: Update.
92917         * modules/unistr/u8-to-u16: Update.
92918         * lib/unistr/u8-to-u32.c: Update.
92919         * modules/unistr/u8-to-u32: Update.
92921 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92923         Sync from Libtool.
92924         * lib/argz.c: Do not include strings.h nor memory.h, include
92925         string.h unconditionally.  Patch by Simon Josefsson.
92927 2007-01-27  Bruno Haible  <bruno@clisp.org>
92929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
92930         from gl_HEADER_STRING_H_BODY.
92931         (gl_HEADER_STRING_H_BODY): Require it.
92932         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
92933         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
92934         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
92935         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
92936         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
92937         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
92938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92939         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
92940         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
92941         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
92942         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
92943         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
92944         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
92945         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92946         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
92948 2007-01-27  Bruno Haible  <bruno@clisp.org>
92950         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
92951         check_PROGRAMS into noinst_PROGRAMS.
92952         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
92953         check_PROGRAMS in this case.
92954         (func_import): Set for_test to false.
92955         (func_create_testdir): Set for_test to true.
92957 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92958             Bruno Haible  <bruno@clisp.org>
92960         * modules/strcasestr (Files): Remove lib/strcasestr.h.
92961         (Depends-on): Add string.
92962         (Includes): Use <string.h> instead of strcasestr.h.
92963         * modules/string (Makefile.am): Also substitute the value of
92964         REPLACE_STRCASESTR.
92965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
92966         assume strcasestr is declared in <string.h> not <strings.h>. Also
92967         set REPLACE_STRCASESTR.
92968         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
92969         REPLACE_STRCASESTR.
92970         * lib/strcasestr.h: Remove file.
92971         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
92972         * lib/string_.h (strcasestr): New declaration.
92974 2007-01-27  Bruno Haible  <bruno@clisp.org>
92976         * lib/string_.h: Use 'extern'.
92978 2007-01-27  Jim Meyering  <jim@meyering.net>
92980         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
92981         of set-but-not-used local, "q".
92983         * lib/mempcpy.c: Include <config.h> before <string.h>.
92984         This fixes a compilation error on HP-UX, due to the system's
92985         "restrict"-using mempcpy prototype.
92987 2007-01-26  Bruno Haible  <bruno@clisp.org>
92989         Small optimization.
92990         * lib/javacomp.c: Include c-strstr.h.
92991          (is_envjavac_gcj): Use c_strstr instead of strstr.
92992         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
92994 2007-01-26  Bruno Haible  <bruno@clisp.org>
92996         * MODULES.html.sh (Unicode string functions): Add the new modules.
92998         * modules/uniconv/u32-strconv-to-locale: New file.
92999         * lib/uniconv/u32-strconv-to-locale.c: New file.
93001         * modules/uniconv/u16-strconv-to-locale: New file.
93002         * lib/uniconv/u16-strconv-to-locale.c: New file.
93004         * modules/uniconv/u8-strconv-to-locale: New file.
93005         * lib/uniconv/u8-strconv-to-locale.c: New file.
93007         * modules/uniconv/u32-strconv-from-locale: New file.
93008         * lib/uniconv/u32-strconv-from-locale.c: New file.
93010         * modules/uniconv/u16-strconv-from-locale: New file.
93011         * lib/uniconv/u16-strconv-from-locale.c: New file.
93013         * modules/uniconv/u8-strconv-from-locale: New file.
93014         * lib/uniconv/u8-strconv-from-locale.c: New file.
93016         * modules/uniconv/u32-strconv-to-enc: New file.
93017         * lib/uniconv/u32-strconv-to-enc.c: New file.
93018         * modules/uniconv/u32-strconv-to-enc-tests: New file.
93019         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
93021         * modules/uniconv/u16-strconv-to-enc: New file.
93022         * lib/uniconv/u16-strconv-to-enc.c: New file.
93023         * lib/uniconv/u-strconv-to-enc.h: New file.
93024         * modules/uniconv/u16-strconv-to-enc-tests: New file.
93025         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
93027         * modules/uniconv/u8-strconv-to-enc: New file.
93028         * lib/uniconv/u8-strconv-to-enc.c: New file.
93029         * modules/uniconv/u8-strconv-to-enc-tests: New file.
93030         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
93032         * modules/uniconv/u32-strconv-from-enc: New file.
93033         * lib/uniconv/u32-strconv-from-enc.c: New file.
93034         * modules/uniconv/u32-strconv-from-enc-tests: New file.
93035         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
93037         * modules/uniconv/u16-strconv-from-enc: New file.
93038         * lib/uniconv/u16-strconv-from-enc.c: New file.
93039         * modules/uniconv/u16-strconv-from-enc-tests: New file.
93040         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
93042         * modules/uniconv/u8-strconv-from-enc: New file.
93043         * lib/uniconv/u8-strconv-from-enc.c: New file.
93044         * lib/uniconv/u-strconv-from-enc.h: New file.
93045         * modules/uniconv/u8-strconv-from-enc-tests: New file.
93046         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
93048         * modules/uniconv/u32-conv-from-enc: New file.
93049         * lib/uniconv/u32-conv-from-enc.c: New file.
93050         * modules/uniconv/u32-conv-from-enc-tests: New file.
93051         * tests/uniconv/test-u32-conv-from-enc.c: New file.
93053         * modules/uniconv/u16-conv-from-enc: New file.
93054         * lib/uniconv/u16-conv-from-enc.c: New file.
93055         * lib/uniconv/u-conv-from-enc.h: New file.
93056         * modules/uniconv/u16-conv-from-enc-tests: New file.
93057         * tests/uniconv/test-u16-conv-from-enc.c: New file.
93059         * modules/uniconv/u8-conv-from-enc: New file.
93060         * lib/uniconv/u8-conv-from-enc.c: New file.
93061         * modules/uniconv/u8-conv-from-enc-tests: New file.
93062         * tests/uniconv/test-u8-conv-from-enc.c: New file.
93064         * modules/uniconv/base: New file.
93065         * lib/uniconv.h: New file.
93067 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
93069         * doc/gnulib-tool.texi (Initial import): Update to match current
93070         behavior with strdup module.
93071         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
93072         * lib/memmem.h: Remove; all uses removed.  This is now done
93073         by <string.h>.
93074         * lib/mempcpy.h: Likewise.
93075         * lib/memrchr.h: Likewise.
93076         * lib/stpcpy.h: Likewise.
93077         * lib/stpncpy.h: Likewise.
93078         * lib/strcase.h: Likewise.
93079         * lib/strchrnul.h: Likewise.
93080         * lib/strdup.h: Likewise.
93081         * lib/strndup.h: Likewise.
93082         * lib/strnlen.h: Likewise.
93083         * lib/strpbrk.h: Likewise.
93084         * lib/strsep.h: Likewise.
93085         * lib/strstr.h: Likewise.
93086         * lib/strtok_r.h: Likewise.
93087         * lib/string_.h: New file.
93088         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
93089         Rely on <string.h> instead.
93090         * lib/canon-host.c: Likewise.
93091         * lib/chdir-long.c: Likewise.
93092         * lib/concatpath.c: Likewise.
93093         * lib/exclude.c: Likewise.
93094         * lib/fchdir.c: Likewise.
93095         * lib/getaddrinfo.c: Likewise.
93096         * lib/getcwd.c: Likewise.
93097         * lib/getsubopt.c: Likewise.
93098         * lib/glob.c: Likewise.
93099         * lib/hard-locale.c: Likewise.
93100         * lib/iconvme.c: Likewise.
93101         * lib/javacomp.c: Likewise.
93102         * lib/mempcpy.c: Likewise.
93103         * lib/memrchr.c: Likewise.
93104         * lib/regex_internal.h: Likewise.
93105         * lib/stpncpy.c: Likewise.
93106         * lib/strcasecmp.c: Likewise.
93107         * lib/strchrnul.c: Likewise.
93108         * lib/strdup.c: Likewise.
93109         * lib/striconv.c: Likewise.
93110         * lib/striconveh.c: Likewise.
93111         * lib/striconveha.c: Likewise.
93112         * lib/strncasecmp.c: Likewise.
93113         * lib/strndup.c: Likewise.
93114         * lib/strnlen.c: Likewise.
93115         * lib/strsep.c: Likewise.
93116         * lib/strstr.c: Likewise.
93117         * lib/strtok_r.c: Likewise.
93118         * lib/userspec.c: Likewise.
93119         * lib/w32spawn.h: Likewise.
93120         * lib/xstrndup.c: Likewise.
93121         * lib/mountlist.c (strstr): Remove decl.
93122         * m4/string_h.m4: New file.
93123         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
93124         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
93125         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
93126         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
93127         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
93128         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
93129         Set REPLACE_STRCASECMP if necessary.
93130         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
93131         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
93132         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
93133         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
93134         HAVE_DECL_STRDUP if necessary.
93135         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
93136         since gl_FUNC_STRNDUP does that now.
93137         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
93138         Check for decl here...
93139         (gl_PREREQ_STRNLEN): ... not here.
93140         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
93141         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
93142         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
93143         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
93144         necessary.
93145         * modules/string: New file.
93146         * modules/memmem (Files): Remove special-purpose include file.
93147         (Depends-on): Add string.
93148         (Include): Include <string.h>, not the removed file.
93149         * modules/mempcpy: Likewise.
93150         * modules/memrchr: Likewise.
93151         * modules/stpcpy: Likewise.
93152         * modules/stpncpy: Likewise.
93153         * modules/strcase: Likewise.
93154         * modules/strchrnul: Likewise.
93155         * modules/strdup: Likewise.
93156         * modules/strndup: Likewise.
93157         * modules/strnlen: Likewise.
93158         * modules/strpbrk: Likewise.
93159         * modules/strsep: Likewise.
93160         * modules/strstr: Likewise.
93161         * modules/strtok_r: Likewise.
93162         * tests/test-dirname.c: Don't include "strdup.h", since
93163         <string.h> now suffices.
93164         * tests/test-memmem.c: Don't include "memmem.h", since
93165         <string.h> now suffices.
93167 2007-01-25  Bruno Haible  <bruno@clisp.org>
93169         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
93170         *resultp is 0.
93172         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
93173         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
93174         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
93175         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
93177         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
93178         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
93179         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
93180         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
93181         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
93182         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
93184 2007-01-24  Bruno Haible  <bruno@clisp.org>
93186         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
93187         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
93188         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
93189         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
93190         gl_FUNC_FTS_CORE.
93191         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
93192         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
93193         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93194         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
93195         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
93196         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
93197         gl_FUNC_FCHOWNAT.
93198         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
93199         gl_FUNC_STRFTIME.
93200         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
93201         Reported by Ralf Wildenhues.
93203 2007-01-24  Bruno Haible  <bruno@clisp.org>
93205         Drop AC_REQUIRE calls that are redundant with the module dependencies.
93206         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
93207         gl_GETADDRINFO.
93208         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
93209         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
93210         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
93212 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
93214         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
93215         Don't use 'exit'; just return from 'main'.
93216         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
93218         * lib/fnmatch_.h: Readjust white space and comments to match
93219         glibc, to avoid spurious diffs.
93221 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93223         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
93224         2004-12-01 change by Jakub Jelinek, since this code won't compile
93225         if !LIBC.  Problem reported by Bob Proulx.
93227 2007-01-23  Bruno Haible  <bruno@clisp.org>
93229         * lib/striconveh.c: Include c-strcaseeq.h.
93230         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
93231         * modules/striconveh (Depends-on): Add c-strcaseeq.
93233 2007-01-23  Bruno Haible  <bruno@clisp.org>
93235         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
93237         * modules/c-strcaseeq: New file.
93238         * lib/c-strcaseeq.h: New file.
93240         * modules/streq: New file.
93241         * lib/streq.h: New file.
93243 2007-01-23  Bruno Haible  <bruno@clisp.org>
93245         * modules/striconveha-tests: New file.
93246         * tests/test-striconveha.c: New file.
93248         * lib/striconveha.h: Include <stdbool.h>.
93249         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
93250         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
93251         (mem_iconveha_notranslit): Renamed from mem_iconveha.
93252         (mem_iconveha): New function.
93253         (str_iconveha_notranslit): Renamed from str_iconveha.
93254         (str_iconveha): New function.
93255         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
93256         c-strcase.
93258 2007-01-23  Bruno Haible  <bruno@clisp.org>
93260         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
93261         encodings without forgiving before trying any encoding with handler.
93262         (str_iconveha): Try all encodings without forgiving before trying any
93263         encoding with handler.
93265 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93267         Import the following changes from libc.
93269         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93271         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
93273         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
93275         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
93276         normal_bracket label.
93278         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
93280         [BZ #361]
93281         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
93282         to normal_bracket after fetching the next character.
93284 2007-01-22  Bruno Haible  <bruno@clisp.org>
93286         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
93287         argument.
93288         * lib/striconveh.c (iconv_carefully_1): New function.
93289         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
93290         argument.
93291         (str_cd_iconveh): Update.
93292         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93293         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93294         * tests/test-striconveh.c (MAGIC): New macro.
93295         (new_offsets): New function.
93296         (main): Test call with and without offsets.
93298 2007-01-22  Bruno Haible  <bruno@clisp.org>
93300         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93301         * modules/sys_select (Makefile.am): Likewise.
93302         * modules/sys_socket (Makefile.am): Likewise.
93303         * modules/sys_time (Makefile.am): Likewise.
93305 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93307         * modules/gettimeofday (License): Change from GPL to LGPL, since
93308         gettimeofday is a library function.
93310 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93312         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93314 2007-01-21  Bruno Haible  <bruno@clisp.org>
93316         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93318 2007-01-21  Bruno Haible  <bruno@clisp.org>
93320         * modules/striconveha: New file.
93321         * lib/striconveha.h: New file.
93322         * lib/striconveha.c: New file.
93323         * MODULES.html.sh (Internationalization functions): Add striconveha.
93324         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93325         string.
93326         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93328 2007-01-21  Bruno Haible  <bruno@clisp.org>
93330         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93331         * lib/striconveh.c (str_iconveh): Likewise.
93333 2007-01-21  Bruno Haible  <bruno@clisp.org>
93335         * lib/striconveh.h (mem_iconveh): New declaration.
93336         * lib/striconveh.c (mem_iconveh): New function.
93337         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93339 2007-01-21  Bruno Haible  <bruno@clisp.org>
93341         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93343         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93344         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93345         original result buffer.
93346         (str_cd_iconveh): Update.
93347         * tests/test-striconveh.c (main): Update.
93349         * lib/striconv.h (mem_cd_iconv): Change specification.
93350         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93351         result buffer.
93352         (str_cd_iconv): Update.
93353         * tests/test-striconv.c (main): Update.
93355 2007-01-21  Bruno Haible  <bruno@clisp.org>
93357         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93359 2007-01-20  Jim Meyering  <jim@meyering.net>
93361         * lib/userspec.c (parse_with_separator): If a user or group string
93362         starts with "+", skip the corresponding name-to-ID look-up, since
93363         such a look-up must fail: user and group names may not include "+".
93365 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93367         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93368         since we now assume the sys_time module.
93369         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93370         check for sys/time.h; no longer needed.
93371         * modules/poll (Depends-on): Depend on sys_time.
93373 2007-01-18  Bruno Haible  <bruno@clisp.org>
93375         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93376         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93378         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93379         gettimeofday.
93381         * tests/test-gettimeofday.c: Include <time.h>.
93382         (dummy): Remove variable.
93384         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93385         gl_HEADER_SYS_TIME_H.
93386         (gl_HEADER_SYS_TIME_H): New macro.
93388         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93389         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93390         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93391         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93392         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93394         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93395         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93396         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93397         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93398         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93400         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93401         last change; it caused a compilation error when cross-compiling to
93402         Cygwin.
93404 2007-01-18  Jim Meyering  <jim@meyering.net>
93406         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93407         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93408         than the race-prone "test -d sys || mkdir sys".
93409         (configure.ac): Use AC_PROG_MKDIR_P.
93410         * modules/sys_select: Likewise.
93411         * modules/sys_socket: Likewise.
93412         * modules/sys_time: Likewise.
93414 2007-01-18  Eric Blake  <ebb9@byu.net>
93416         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93417         replace gettimeofday.
93418         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93419         name, to avoid infinite recursion.
93421 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93423         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93424         module sys_time.
93425         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93426         assume timespec.h defines struct timeval.
93427         * lib/settime.c: Likewise.
93428         * lib/utimens.c: Likewise.
93429         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93430         since we now assume the gettimeofday module.
93431         * lib/tempname.c (__gen_tempname): Likewise.
93432         * lib/gettimeofday.h: Remove.
93433         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93434         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93435         Include <time.h>, for 'time()'.
93436         (localtime_buffer_addr): Also use this workaround if
93437         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93438         to simplify the uses.  All uses changed.
93439         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93440         that #undef is inside {}, and 'const' follows type name consistently.
93441         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93442         (gettimeofday): Do not use the maximum possible value for
93443         tv->tv_usec, since that might break usages other than ls.c.
93444         Instead, we'll leave ls.c alone.  This undoes today's patch
93445         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93446         we've never observed the problem but might as well keep the
93447         canary.
93448         * lib/nanosleep.c: Include timespec.h first, for interface check.
93449         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93450         now assume the sys_time module.
93451         * lib/tempname.c: Likewise.
93452         * lib/timespec.h: Likewise.
93453         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93454         needed.
93455         * lib/strftime.c: Likewise.
93456         * lib/timespec.h: Likewise.
93457         * lib/posixtm.c: Include posixtm.h first, for interface check.
93458         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93459         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93460         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93461         * lib/sys_time_.h: New file.
93462         * lib/timespec.h (struct timespec): Use long int, not long.
93463         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93464         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93465         Remove obsolescent call to AC_HEADER_TIME.
93466         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93467         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93468         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93469         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93470         Likewise.
93471         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93472         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93473         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93474         into the sys_time module.  Check for gettimeofday just once.
93475         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93476         for gettimeofday signature to just check the signature.  Merely
93477         compile it, since linking doesn't test signature.  Improve test for
93478         whether gettimeofday.o is actually needed.
93479         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93480         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93481         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93482         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93483         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93484         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93485         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93486         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93487         than worrying about sys/time.h.
93488         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93489         Don't bother worrying about TIME_WITH_SYS_TIME.
93490         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93491         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93492         * m4/sys_time_h.m4: New file.
93493         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93494         Don't include sys/time.h.  Return from main rather than exiting.
93495         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93496         all uses changed.
93497         * modules/gethrxtime (Depends-on): Add sys_time.
93498         * modules/gettime (Depends-on): Likewise.
93499         * modules/gettimeofday (Depends-on): Likewise.
93500         * modules/nanosleep (Depends-on): Likewise.
93501         * modules/settime (Depends-on): Likewise.
93502         * modules/tempname (Depends-on): Likewise.
93503         * modules/utimens (Depends-on): Likewise.
93504         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93505         (Include): Change back to <sys/time.h>.
93506         (Maintainer): Add self.
93507         * modules/sys_time: New file.
93508         * modules/tempname (Depends-on): Add gettimeofday.
93509         * tests/test-gettimeofday.c: Include <sys/time.h>
93510         rather than gettimeofday.h.
93512 2007-01-17  Bruno Haible  <bruno@clisp.org>
93514         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93515         the license default to GPL.
93516         (func_create_testdir): Don't complain if a module is LGPL and its
93517         tests module depends on GPLed modules.
93519 2007-01-17  Bruno Haible  <bruno@clisp.org>
93521         * lib/gettimeofday.c (gettimeofday): Add code for the case
93522         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93523         maximum possible value for tv->tv_usec, rather than the minimum one.
93525 2005-10-08  Martin Lambers  <marlam@marlam.de>
93526 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93527 2007-01-16  Bruno Haible  <bruno@clisp.org>
93529         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93530         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93531         gl_FUNC_GETTIMEOFDAY.
93532         (Include): Add gettimeofday.h.
93533         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93534         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93535         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93536         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93537         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93538         * lib/gettimeofday.h: New file.
93539         * lib/gettimeofday.c: Include <sys/timeb.h>.
93540         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93541         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93542         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93543         fall back on time().
93545         * tests/test-gettimeofday.c: New file.
93546         * modules/gettimeofday-tests: New file.
93548 2007-01-16  Eric Blake  <ebb9@byu.net>
93550         * modules/fnmatch (Depends-on): Depend on wchar.
93551         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
93552         * m4/fnmatch.m4: Likewise.
93553         * modules/mbchar (Makefile.am): Assume <wchar.h>.
93554         * m4/mbchar.m4: Likewise.
93555         * modules/mbswidth (Depends-on): Depend on wchar.
93556         * lib/mbswidth.c: Assume <wchar.h>.
93557         * m4/mbswidth.m4: Likewise.
93558         * modules/quotearg (Depends-on): Depend on wchar.
93559         * lib/quotearg.c: Assume <wchar.h>.
93560         * m4/quotearg.m4: Likewise.
93561         * modules/regex (Depends-on): Depend on wchar.
93562         * lib/regex_internal.h: Assume <wchar.h>.
93563         * m4/regex.m4: Likewise.
93564         * modules/stdint (Depends-on): Depend on wchar.
93565         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
93566         * m4/stdint.m4: Likewise.
93567         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
93568         * modules/strftime (Depends-on): Depend on wchar.
93569         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
93570         * modules/strtol (Depends-on): Depend on wchar.
93571         * lib/strtol.c: Assume <wchar.h>.
93572         * modules/wcwidth (Depends-on): Depend on wchar.
93573         * lib/wcwidth.h: Assume <wchar.h>.
93574         * m4/wcwidth.m4: Likewise.
93576 2007-01-16  Bruno Haible  <bruno@clisp.org>
93578         * modules/csharpexec-script: New, created from...
93579         * modules/csharpexec: ... this.
93581 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93583         * modules/javaexec-script: New, created from...
93584         * modules/javaexec: ... this.
93586 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93588         * modules/poll (Dependencies): Add sys_select.
93590 2007-01-15  Jim Meyering  <jim@meyering.net>
93592         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
93593         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
93594         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
93595         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
93597 2007-01-15  Bruno Haible  <bruno@clisp.org>
93599         * modules/striconveh: New file.
93600         * lib/striconveh.h: New file.
93601         * lib/striconveh.c: New file.
93602         * MODULES.html.sh (Internationalization functions): Add striconveh.
93604         * modules/striconveh-tests: New file.
93605         * tests/test-striconveh.c: New file.
93607 2007-01-15  Bruno Haible  <bruno@clisp.org>
93609         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
93610         not from GNU libiconv or GNU libc.
93612 2007-01-15  Bruno Haible  <bruno@clisp.org>
93614         * doc/gnulib-intro.texi (Copyright): Explain the different license
93615         terms for module descriptions, autoconf macros, tests, documentation.
93617 2007-01-14  Bruno Haible  <bruno@clisp.org>
93619         * modules/striconv-tests: New file.
93620         * tests/test-striconv.c: New file.
93622 2007-01-14  Bruno Haible  <bruno@clisp.org>
93624         * modules/iconv-tests: New file.
93625         * tests/test-iconv.c: New file.
93627 2007-01-14  Bruno Haible  <bruno@clisp.org>
93629         * gnulib-tool (func_get_license): For test modules, use the license of
93630         the main module.
93632 2007-01-14  Bruno Haible  <bruno@clisp.org>
93634         * modules/iconv (Include): Clarify that <iconv.h> can only be included
93635         if iconv is found to exist.
93637 2007-01-14  Bruno Haible  <bruno@clisp.org>
93639         * modules/c-ctype-tests: New file.
93640         * tests/test-c-ctype.c: New file.
93642 2007-01-14  Bruno Haible  <bruno@clisp.org>
93644         * modules/binary-io-tests: New file.
93645         * tests/test-binary-io.sh: New file.
93646         * tests/test-binary-io.c: New file.
93648 2007-01-14  Bruno Haible  <bruno@clisp.org>
93650         * modules/array-oset-tests: New file.
93651         * tests/test-array_oset.c: New file.
93653 2007-01-14  Bruno Haible  <bruno@clisp.org>
93655         * modules/array-list-tests: New file.
93656         * tests/test-array_list.c: New file.
93658 2007-01-14  Bruno Haible  <bruno@clisp.org>
93660         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
93661         and make.
93662         Reported by Simon Josefsson in
93663         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
93665 2007-01-14  Bruno Haible  <bruno@clisp.org>
93667         * modules/allocsa-tests: New file.
93668         * tests/test-allocsa.c: New file.
93670 2007-01-14  Bruno Haible  <bruno@clisp.org>
93672         * modules/fchdir (Depends-on): Add absolute-header.
93673         * modules/unistd (Depends-on): Likewise.
93675 2006-12-30  Bruno Haible  <bruno@clisp.org>
93677         * modules/fchdir: New file.
93678         * modules/unistd (Files): Add lib/unistd_.h.
93679         (Makefile.am): Generate unistd.h from unistd_.h.
93680         * lib/fchdir.c: New file.
93681         * lib/dirent_.h: New file.
93682         * lib/unistd_.h: New file.
93683         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
93684         * m4/fchdir.m4: New file.
93685         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
93686         (gl_HEADER_UNISTD): Invoke it.
93687         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
93688         function.
93689         * lib/backupfile.c (opendir, closedir): Undefine.
93690         * lib/chown.c (open, close): Undefine.
93691         * lib/clean-temp.c (open, close): Undefine.
93692         * lib/copy-file.c (open, close): Undefine.
93693         * lib/execute.c (open, close): Undefine.
93694         * lib/fsusage.c (open, close): Undefine.
93695         * lib/gc-gnulib.c (open, close): Undefine.
93696         * lib/getcwd.c (opendir, closedir): Undefine.
93697         * lib/glob.c (opendir, closedir): Undefine.
93698         * lib/javacomp.c (open, close): Undefine.
93699         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
93700         * lib/openat-proc.c (open, close): Undefine.
93701         * lib/pagealign_alloc.c (open, close): Undefine.
93702         * lib/pipe.c (open, close): Undefine.
93703         * lib/progreloc.c (open, close): Undefine.
93704         * lib/savedir.c (opendir, closedir): Undefine.
93705         * lib/utime.c (open, close): Undefine.
93706         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
93708 2007-01-10  Bruno Haible  <bruno@clisp.org>
93710         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
93712 2007-01-12  Eric Blake  <ebb9@byu.net>
93714         Provide a robust <wchar.h>.  Further simplifications are now
93715         possible in other modules, but not included here.
93716         * modules/wchar: New module.
93717         * m4/wchar.m4: New file.
93718         * lib/wchar_.h: Likewise.
93719         * modules/mbchar (Depends-on): Depend on wchar, as the first use
93720         of the new module.
93721         * MODULES.html.sh (Extended multibyte and wide character utilities):
93722         New section.
93724 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
93726         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
93727         to a reasonable default for memory allocation.
93728         (xreadlink): Don't allocate a huge buffer, to work around a buggy
93729         file system that reports garbage st_size values for symlinks.
93730         Problem reported by Liyang Hu.
93732 2007-01-11  Simon Josefsson  <simon@josefsson.org>
93734         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
93735         Emacs .#* auto-save files).
93737 2007-01-11  Bruno Haible  <bruno@clisp.org>
93739         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
93740         directory.
93742 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93744         Use @...@ consistently in lib/wctype_.h.
93745         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
93746         on it being set to 1 or 0.
93747         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
93748         go back to AC_SUBSTing it.
93749         * modules/wctype (Makefile.am): Undo previous change.
93751 2007-01-10  Eric Blake  <ebb9@byu.net>
93753         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
93754         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
93755         * modules/wctype (Makefile.am): Likewise.
93756         Reported by Chris McGuire.
93758 2007-01-10  Jim Meyering  <jim@meyering.net>
93760         fts.c: a small readability/maintainability improvement
93761         * lib/fts.c (fts_read): Make this code slightly more readable and
93762         maintainable by hoisting the "sp->fts_cur = p" assignments to
93763         immediately follow the statements that set P.  Derived from
93764         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
93766 2007-01-10  Eric Blake  <ebb9@byu.net>
93768         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
93769         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
93770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93771         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
93772         Reported by Chris McGuire.
93774 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93776         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
93777         in sed script.
93779 2007-01-09  Bruno Haible  <bruno@clisp.org>
93781         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
93782         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
93783         variables.
93784         (func_module): Use them.
93786 2007-01-09  Bruno Haible  <bruno@clisp.org>
93788         * modules/unistr/base: New file.
93789         * lib/unistr.h: New file.
93791         * modules/unistr/u8-to-u16: New file.
93792         * lib/unistr/u8-to-u16.c: New file.
93794         * modules/unistr/u8-to-u32: New file.
93795         * lib/unistr/u8-to-u32.c: New file.
93797         * modules/unistr/u16-to-u8: New file.
93798         * lib/unistr/u16-to-u8.c: New file.
93800         * modules/unistr/u16-to-u32: New file.
93801         * lib/unistr/u16-to-u32.c: New file.
93803         * modules/unistr/u32-to-u8: New file.
93804         * lib/unistr/u32-to-u8.c: New file.
93806         * modules/unistr/u32-to-u16: New file.
93807         * lib/unistr/u32-to-u16.c: New file.
93809         * modules/unistr/u8-check: New file.
93810         * modules/unistr/u16-check: New file.
93811         * modules/unistr/u32-check: New file.
93812         * lib/unistr/u8-check.c: New file.
93813         * lib/unistr/u16-check.c: New file.
93814         * lib/unistr/u32-check.c: New file.
93816         * modules/unistr/u8-chr: New file.
93817         * modules/unistr/u16-chr: New file.
93818         * modules/unistr/u32-chr: New file.
93819         * lib/unistr/u8-chr.c: New file.
93820         * lib/unistr/u16-chr.c: New file.
93821         * lib/unistr/u32-chr.c: New file.
93823         * modules/unistr/u8-cmp: New file.
93824         * modules/unistr/u16-cmp: New file.
93825         * modules/unistr/u32-cmp: New file.
93826         * lib/unistr/u8-cmp.c: New file.
93827         * lib/unistr/u16-cmp.c: New file.
93828         * lib/unistr/u32-cmp.c: New file.
93830         * modules/unistr/u8-cpy: New file.
93831         * modules/unistr/u16-cpy: New file.
93832         * modules/unistr/u32-cpy: New file.
93833         * lib/unistr/u8-cpy.c: New file.
93834         * lib/unistr/u16-cpy.c: New file.
93835         * lib/unistr/u32-cpy.c: New file.
93836         * lib/unistr/u-cpy.h: New file.
93838         * modules/unistr/u8-cpy-alloc: New file.
93839         * modules/unistr/u16-cpy-alloc: New file.
93840         * modules/unistr/u32-cpy-alloc: New file.
93841         * lib/unistr/u8-cpy-alloc.c: New file.
93842         * lib/unistr/u16-cpy-alloc.c: New file.
93843         * lib/unistr/u32-cpy-alloc.c: New file.
93844         * lib/unistr/u-cpy-alloc.h: New file.
93846         * modules/unistr/u8-endswith: New file.
93847         * modules/unistr/u16-endswith: New file.
93848         * modules/unistr/u32-endswith: New file.
93849         * lib/unistr/u8-endswith.c: New file.
93850         * lib/unistr/u16-endswith.c: New file.
93851         * lib/unistr/u32-endswith.c: New file.
93852         * lib/unistr/u-endswith.h: New file.
93854         * modules/unistr/u8-mblen: New file.
93855         * modules/unistr/u16-mblen: New file.
93856         * modules/unistr/u32-mblen: New file.
93857         * lib/unistr/u8-mblen.c: New file.
93858         * lib/unistr/u16-mblen.c: New file.
93859         * lib/unistr/u32-mblen.c: New file.
93861         * modules/unistr/u8-mbtouc: New file.
93862         * modules/unistr/u16-mbtouc: New file.
93863         * modules/unistr/u32-mbtouc: New file.
93864         * lib/unistr/u8-mbtouc.c: New file.
93865         * lib/unistr/u16-mbtouc.c: New file.
93866         * lib/unistr/u32-mbtouc.c: New file.
93868         * modules/unistr/u8-mbtouc-safe: New file.
93869         * modules/unistr/u16-mbtouc-safe: New file.
93870         * modules/unistr/u32-mbtouc-safe: New file.
93871         * lib/unistr/u8-mbtouc-safe.c: New file.
93872         * lib/unistr/u16-mbtouc-safe.c: New file.
93873         * lib/unistr/u32-mbtouc-safe.c: New file.
93875         * modules/unistr/u8-move: New file.
93876         * modules/unistr/u16-move: New file.
93877         * modules/unistr/u32-move: New file.
93878         * lib/unistr/u8-move.c: New file.
93879         * lib/unistr/u16-move.c: New file.
93880         * lib/unistr/u32-move.c: New file.
93881         * lib/unistr/u-move.h: New file.
93883         * modules/unistr/u8-next: New file.
93884         * modules/unistr/u16-next: New file.
93885         * modules/unistr/u32-next: New file.
93886         * lib/unistr/u8-next.c: New file.
93887         * lib/unistr/u16-next.c: New file.
93888         * lib/unistr/u32-next.c: New file.
93890         * modules/unistr/u8-prev: New file.
93891         * modules/unistr/u16-prev: New file.
93892         * modules/unistr/u32-prev: New file.
93893         * lib/unistr/u8-prev.c: New file.
93894         * lib/unistr/u16-prev.c: New file.
93895         * lib/unistr/u32-prev.c: New file.
93897         * modules/unistr/u8-set: New file.
93898         * modules/unistr/u16-set: New file.
93899         * modules/unistr/u32-set: New file.
93900         * lib/unistr/u8-set.c: New file.
93901         * lib/unistr/u16-set.c: New file.
93902         * lib/unistr/u32-set.c: New file.
93903         * lib/unistr/u-set.h: New file.
93905         * modules/unistr/u8-startswith: New file.
93906         * modules/unistr/u16-startswith: New file.
93907         * modules/unistr/u32-startswith: New file.
93908         * lib/unistr/u8-startswith.c: New file.
93909         * lib/unistr/u16-startswith.c: New file.
93910         * lib/unistr/u32-startswith.c: New file.
93911         * lib/unistr/u-startswith.h: New file.
93913         * modules/unistr/u8-stpcpy: New file.
93914         * modules/unistr/u16-stpcpy: New file.
93915         * modules/unistr/u32-stpcpy: New file.
93916         * lib/unistr/u8-stpcpy.c: New file.
93917         * lib/unistr/u16-stpcpy.c: New file.
93918         * lib/unistr/u32-stpcpy.c: New file.
93919         * lib/unistr/u-stpcpy.h: New file.
93921         * modules/unistr/u8-stpncpy: New file.
93922         * modules/unistr/u16-stpncpy: New file.
93923         * modules/unistr/u32-stpncpy: New file.
93924         * lib/unistr/u8-stpncpy.c: New file.
93925         * lib/unistr/u16-stpncpy.c: New file.
93926         * lib/unistr/u32-stpncpy.c: New file.
93927         * lib/unistr/u-stpncpy.h: New file.
93929         * modules/unistr/u8-strcat: New file.
93930         * modules/unistr/u16-strcat: New file.
93931         * modules/unistr/u32-strcat: New file.
93932         * lib/unistr/u8-strcat.c: New file.
93933         * lib/unistr/u16-strcat.c: New file.
93934         * lib/unistr/u32-strcat.c: New file.
93935         * lib/unistr/u-strcat.h: New file.
93937         * modules/unistr/u8-strchr: New file.
93938         * modules/unistr/u16-strchr: New file.
93939         * modules/unistr/u32-strchr: New file.
93940         * lib/unistr/u8-strchr.c: New file.
93941         * lib/unistr/u16-strchr.c: New file.
93942         * lib/unistr/u32-strchr.c: New file.
93944         * modules/unistr/u8-strcmp: New file.
93945         * modules/unistr/u16-strcmp: New file.
93946         * modules/unistr/u32-strcmp: New file.
93947         * lib/unistr/u8-strcmp.c: New file.
93948         * lib/unistr/u16-strcmp.c: New file.
93949         * lib/unistr/u32-strcmp.c: New file.
93951         * modules/unistr/u8-strcpy: New file.
93952         * modules/unistr/u16-strcpy: New file.
93953         * modules/unistr/u32-strcpy: New file.
93954         * lib/unistr/u8-strcpy.c: New file.
93955         * lib/unistr/u16-strcpy.c: New file.
93956         * lib/unistr/u32-strcpy.c: New file.
93957         * lib/unistr/u-strcpy.h: New file.
93959         * modules/unistr/u8-strcspn: New file.
93960         * modules/unistr/u16-strcspn: New file.
93961         * modules/unistr/u32-strcspn: New file.
93962         * lib/unistr/u8-strcspn.c: New file.
93963         * lib/unistr/u16-strcspn.c: New file.
93964         * lib/unistr/u32-strcspn.c: New file.
93965         * lib/unistr/u-strcspn.h: New file.
93967         * modules/unistr/u8-strdup: New file.
93968         * modules/unistr/u16-strdup: New file.
93969         * modules/unistr/u32-strdup: New file.
93970         * lib/unistr/u8-strdup.c: New file.
93971         * lib/unistr/u16-strdup.c: New file.
93972         * lib/unistr/u32-strdup.c: New file.
93973         * lib/unistr/u-strdup.h: New file.
93975         * modules/unistr/u8-strlen: New file.
93976         * modules/unistr/u16-strlen: New file.
93977         * modules/unistr/u32-strlen: New file.
93978         * lib/unistr/u8-strlen.c: New file.
93979         * lib/unistr/u16-strlen.c: New file.
93980         * lib/unistr/u32-strlen.c: New file.
93981         * lib/unistr/u-strlen.h: New file.
93983         * modules/unistr/u8-strmblen: New file.
93984         * modules/unistr/u16-strmblen: New file.
93985         * modules/unistr/u32-strmblen: New file.
93986         * lib/unistr/u8-strmblen.c: New file.
93987         * lib/unistr/u16-strmblen.c: New file.
93988         * lib/unistr/u32-strmblen.c: New file.
93990         * modules/unistr/u8-strmbtouc: New file.
93991         * modules/unistr/u16-strmbtouc: New file.
93992         * modules/unistr/u32-strmbtouc: New file.
93993         * lib/unistr/u8-strmbtouc.c: New file.
93994         * lib/unistr/u16-strmbtouc.c: New file.
93995         * lib/unistr/u32-strmbtouc.c: New file.
93997         * modules/unistr/u8-strncat: New file.
93998         * modules/unistr/u16-strncat: New file.
93999         * modules/unistr/u32-strncat: New file.
94000         * lib/unistr/u8-strncat.c: New file.
94001         * lib/unistr/u16-strncat.c: New file.
94002         * lib/unistr/u32-strncat.c: New file.
94003         * lib/unistr/u-strncat.h: New file.
94005         * modules/unistr/u8-strncmp: New file.
94006         * modules/unistr/u16-strncmp: New file.
94007         * modules/unistr/u32-strncmp: New file.
94008         * lib/unistr/u8-strncmp.c: New file.
94009         * lib/unistr/u16-strncmp.c: New file.
94010         * lib/unistr/u32-strncmp.c: New file.
94012         * modules/unistr/u8-strncpy: New file.
94013         * modules/unistr/u16-strncpy: New file.
94014         * modules/unistr/u32-strncpy: New file.
94015         * lib/unistr/u8-strncpy.c: New file.
94016         * lib/unistr/u16-strncpy.c: New file.
94017         * lib/unistr/u32-strncpy.c: New file.
94018         * lib/unistr/u-strncpy.h: New file.
94020         * modules/unistr/u8-strnlen: New file.
94021         * modules/unistr/u16-strnlen: New file.
94022         * modules/unistr/u32-strnlen: New file.
94023         * lib/unistr/u8-strnlen.c: New file.
94024         * lib/unistr/u16-strnlen.c: New file.
94025         * lib/unistr/u32-strnlen.c: New file.
94026         * lib/unistr/u-strnlen.h: New file.
94028         * modules/unistr/u8-strpbrk: New file.
94029         * modules/unistr/u16-strpbrk: New file.
94030         * modules/unistr/u32-strpbrk: New file.
94031         * lib/unistr/u8-strpbrk.c: New file.
94032         * lib/unistr/u16-strpbrk.c: New file.
94033         * lib/unistr/u32-strpbrk.c: New file.
94034         * lib/unistr/u-strpbrk.h: New file.
94036         * modules/unistr/u8-strrchr: New file.
94037         * modules/unistr/u16-strrchr: New file.
94038         * modules/unistr/u32-strrchr: New file.
94039         * lib/unistr/u8-strrchr.c: New file.
94040         * lib/unistr/u16-strrchr.c: New file.
94041         * lib/unistr/u32-strrchr.c: New file.
94043         * modules/unistr/u8-strspn: New file.
94044         * modules/unistr/u16-strspn: New file.
94045         * modules/unistr/u32-strspn: New file.
94046         * lib/unistr/u8-strspn.c: New file.
94047         * lib/unistr/u16-strspn.c: New file.
94048         * lib/unistr/u32-strspn.c: New file.
94049         * lib/unistr/u-strspn.h: New file.
94051         * modules/unistr/u8-strstr: New file.
94052         * modules/unistr/u16-strstr: New file.
94053         * modules/unistr/u32-strstr: New file.
94054         * lib/unistr/u8-strstr.c: New file.
94055         * lib/unistr/u16-strstr.c: New file.
94056         * lib/unistr/u32-strstr.c: New file.
94057         * lib/unistr/u-strstr.h: New file.
94059         * modules/unistr/u8-strtok: New file.
94060         * modules/unistr/u16-strtok: New file.
94061         * modules/unistr/u32-strtok: New file.
94062         * lib/unistr/u8-strtok.c: New file.
94063         * lib/unistr/u16-strtok.c: New file.
94064         * lib/unistr/u32-strtok.c: New file.
94065         * lib/unistr/u-strtok.h: New file.
94067         * modules/unistr/u8-uctomb: New file.
94068         * modules/unistr/u16-uctomb: New file.
94069         * modules/unistr/u32-uctomb: New file.
94070         * lib/unistr/u8-uctomb.c: New file.
94071         * lib/unistr/u16-uctomb.c: New file.
94072         * lib/unistr/u32-uctomb.c: New file.
94074         * MODULES.html.sh (Unicode string functions): Add the new modules.
94076 2007-01-08  Bruno Haible  <bruno@clisp.org>
94078         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
94079         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
94080         subdirectories.
94082 2007-01-08  Karl Berry  <karl@gnu.org>
94084         * doc/error.texi: mention that main() fns must set program_name
94085         when progname is used.
94087 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
94089         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
94090         WCTYPE_H is empty, for the benefit of builds from non-distclean
94091         directories.  Problem reported by Eric Blake in
94092         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
94094 2007-01-08  Bruno Haible  <bruno@clisp.org>
94096         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
94097         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
94098         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
94099         PROVIDE_CANONICALIZE_FILENAME_MODE.
94100         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
94102 2007-01-08  Bruno Haible  <bruno@clisp.org>
94104         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
94105         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
94106         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
94107         * lib/fts.c: Likewise.
94108         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
94110 2006-12-25  Bruno Haible  <bruno@clisp.org>
94112         * modules/utf8-ucs4-safe: New file.
94113         * lib/utf8-ucs4-safe.h: New file.
94114         * lib/unistr/utf8-ucs4-safe.c: New file.
94116         * modules/utf16-ucs4-safe: New file.
94117         * lib/utf16-ucs4-safe.h: New file.
94118         * lib/unistr/utf16-ucs4-safe.c: New file.
94120         * MODULES.html.sh (Unicode string functions): Add the new modules.
94122 2007-01-08  Bruno Haible  <bruno@clisp.org>
94124         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
94125         (Depends-on): Add unitypes.
94126         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94127         (u8_mbtouc_aux): Move out to separate file.
94128         (u8_mbtouc): Use ucs4_t, uint8_t types.
94129         * lib/unistr/utf8-ucs4.c: New file.
94131         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
94132         (Depends-on): Add unitypes.
94133         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94134         (u16_mbtouc_aux): Move out to separate file.
94135         (u16_mbtouc): Use ucs4_t, uint16_t types.
94136         * lib/unistr/utf16-ucs4.c: New file.
94138         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
94139         (Depends-on): Add unitypes.
94140         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
94141         (u8_uctomb_aux): Move out to separate file.
94142         (u8_uctomb): Use ucs4_t, uint8_t types.
94143         * lib/unistr/ucs4-utf8.c: New file.
94145         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
94146         (Depends-on): Add unitypes.
94147         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
94148         (u16_uctomb_aux): Move out to separate file.
94149         (u16_uctomb): Use ucs4_t, uint16_t types.
94150         * lib/unistr/ucs4-utf16.c: New file.
94152 2006-12-25  Bruno Haible  <bruno@clisp.org>
94154         * modules/unitypes: New file.
94155         * lib/unitypes.h: New file.
94156         * MODULES.html.sh (func_all_modules): New section "Unicode string
94157         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
94158         this section. Add unitypes.
94160 2007-01-08  Bruno Haible  <bruno@clisp.org>
94162         Avoid variable names that conflict with those from libtool.
94163         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
94164         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
94165         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
94166         library_names_spec to acl_library_names_spec, hardcode_* to
94167         acl_hardcode_*.
94168         Reported by Ralf Wildenhues.
94170 2007-01-08  Bruno Haible  <bruno@clisp.org>
94172         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
94173         definition.
94174         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
94175         definition.
94176         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
94177         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
94178         definition.
94179         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
94180         definition.
94181         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
94182         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
94183         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
94184         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
94185         definition.
94186         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
94187         definition.
94188         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
94189         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
94190         GC_USE_<algorithm>.
94191         * lib/gc-libgcrypt.c: Likewise.
94192         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
94193         * modules/gc-arctwo (configure.ac): Likewise.
94194         * modules/gc-des (configure.ac): Likewise.
94195         * modules/gc-hmac-md5 (configure.ac): Likewise.
94196         * modules/gc-hmac-sha1 (configure.ac): Likewise.
94197         * modules/gc-md2 (configure.ac): Likewise.
94198         * modules/gc-md4 (configure.ac): Likewise.
94199         * modules/gc-md5 (configure.ac): Likewise.
94200         * modules/gc-random (configure.ac): Likewise.
94201         * modules/gc-rijndael (configure.ac): Likewise.
94202         * modules/gc-sha1 (configure.ac): Likewise.
94204 2007-01-08  Bruno Haible  <bruno@clisp.org>
94206         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
94207         macro definition.
94208         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
94209         definition.
94210         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
94211         definition.
94212         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
94213         * modules/fcntl-safer (configure.ac): Likewise.
94214         * modules/fopen-safer (configure.ac): Likewise.
94215         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
94216         GNULIB_FWRITEERROR macro definition.
94218 2007-01-08  Bruno Haible  <bruno@clisp.org>
94220         * m4/gnulib-common.m4: New file.
94221         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
94222         (func_get_filelist): Add m4/gnulib-common.m4.
94224 2007-01-08  Bruno Haible  <bruno@clisp.org>
94226         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
94227         command.
94229 2007-01-08  Jim Meyering  <jim@meyering.net>
94231         Use a more robust test for a "can't happen" condition.
94232         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
94233         narrowed the st_size value.  Presuming the "can't happen" condition
94234         is true, that narrowing could conceivably convert an invalid st_size
94235         value into a valid one.  Instead, use a change based on Matthew
94236         Woehlke's original patch.
94238         Slight readability improvement: use an assert-like macro
94239         in place of literal "abort ()" uses.
94240         * lib/fts.c (fts_assert): Define.
94241         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
94242         Use this macro instead of a bare 'abort'.
94244 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
94246         Don't worry about using IRIX 5.3's wctype.h broken definitions;
94247         simply work around them.
94248         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
94249         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
94250         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
94251         declaring.
94252         Don't bother to define as macros, since the standard doesn't require it.
94253         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
94254         longer worry about IRIX 5.3.
94255         (HAVE_WCTYPE_CTMP_BUG): Remove.
94257 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94259         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
94260         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
94261         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94262         Problems reported by Georg Schwarz for IRIX 5.3.
94264         * gnulib-tool (autoconf_minversion): Take the maximum version number
94265         found, not the minimum.  Problem reported by James Youngman.
94267 2007-01-03  Karl Berry  <karl@gnu.org>
94269         * doc/error.texi: new file, explaining interaction with progname.
94270         * doc/gnulib.texi: include it.  Update copyright.
94272 2007-01-03  Simon Josefsson  <simon@josefsson.org>
94274         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
94275         AC_CANONICAL_HOST, to improve autobuild outputs.
94277 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
94278             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
94280         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
94281         sockets, server sockets, and other file descriptors.  Count errors
94282         to compute the return value.  Reorder the code a bit to be easier
94283         to follow.  Don't set event bits that were not requested (except
94284         POLLERR and POLLHUP).
94286 2007-01-01  Bruno Haible  <bruno@clisp.org>
94288         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
94290 2007-01-03  Jim Meyering  <jim@meyering.net>
94292         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94294 2007-01-02  Bruno Haible  <bruno@clisp.org>
94296         * modules/settime (Include): Require timespec.h.
94297         * modules/nanosleep (Include): Likewise.
94299 2007-01-01  Bruno Haible  <bruno@clisp.org>
94301         * gnulib-tool (func_emit_copyright_notice): Bump year.
94302         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94304 2007-01-01  Bruno Haible  <bruno@clisp.org>
94306         Improve support for OpenBSD.
94307         * build-aux/config.rpath (libname_spec): Export.
94308         (library_names_spec): New variable. Export.
94309         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94310         library_names_spec from the config.rpath output. Locate shared library
94311         through the name pattern in library_names_spec.
94313 2007-01-01  Eric Blake  <ebb9@byu.net>
94315         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94317 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94319         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94320         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94321         assume the C locale, and avoid an "eval" that could cause trouble.
94322         Problem with SORT reported by Bob Proulx.
94324         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94325         Define.  Trivial patch from Henning Nielsen Lund, originally
94326         sent to bug-grep@gnu.org today.
94328 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94330         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94331         struct stat.  Problem reported by Henning Nielsen Lund.
94332         * lib/acl.c: Include acl.h first, to check interface.  Don't
94333         bother to include sys/types.h and sys/stat.h again.
94335 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94337         Import the following change from libc; problem reported by
94338         Sven Verdoolaege.
94340         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94342         [BZ #1373]
94343         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94345 2006-12-28  Jim Meyering  <jim@meyering.net>
94347         * build-aux/announce-gen: Do not assume that the package
94348         builds any of tar.gz, tar.bz2, and .xdelta files.
94349         Suggestion from Simon Josefsson.
94351 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94353         * modules/announce-gen: New file.
94355 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94357         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94358         handles its gotchas now.
94359         * lib/mbswidth.c: Likewise.
94360         * lib/wcwidth.h: Likewise.
94361         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94362         and iswcntrl; the wctype module does this stuff now.
94363         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94365         * modules/mbchar (Depends-on): Add wctype.
94366         * modules/mbswidth (Depends-on): Likewise.
94367         * modules/wcwidth (Depends-on): Likewise.
94369 2006-12-27  Eric Blake  <ebb9@byu.net>
94371         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94372         module uses more than what <wctype.h> is required to provide.
94374 2006-12-26  Eric Blake  <ebb9@byu.net>
94376         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94378 2006-12-26  Eric Blake  <ebb9@byu.net>
94380         * modules/absolute-header: New module.
94381         * modules/fcntl (Depends-on): Depend on it.
94382         * modules/inttypes (Depends-on): Likewise.
94383         * modules/stdint (Depends-on): Likewise.
94384         * modules/sys_stat (Depends-on): Likewise.
94385         * modules/wctype (Depends-on): Likewise.
94386         * MODULES.html.sh (Support for building libraries and
94387         executables): Document it.
94389 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94391         * gnulib-tool (SED): Remove, undoing previous change.
94392         The problem was that it broke coreutils on Solaris, because
94393         "sed --posix" leaked into a makefile.
94394         (sed): New alias, if 'alias' and GNU sed.
94396 2006-12-24  Jim Meyering  <jim@meyering.net>
94398         Work around an fchownat bug in glibc-2.4:
94399         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94400         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94401         in spite of the -P option.
94402         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94403         New macros.
94404         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94405         * modules/openat (Files): Add lib/fchownat.c.
94406         * lib/openat.c (fchownat): Don't define here.  Move to...
94407         * lib/fchownat.c: ...this new file.
94409 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94411         Fix bug reported by Bruno Haible in
94412         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94413         where quotearg.c didn't compile on Mac OS X 10.2 because it
94414         lacks <wchar.h> and wint_t.
94415         * lib/wctype_.h (__wctype_wint_t): New type.
94416         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94417         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94418         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94419         Arg is now of type __wctype_wint_t, not wint_t.
94420         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94421         substitute HAVE_WINT_T.
94422         * modules/wctype (Files): Add m4/wint_t.m4.
94423         (wctype.h): Substitute HAVE_WINT_T.
94425 2006-12-23  Bruno Haible  <bruno@clisp.org>
94427         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94429 2006-12-23  Bruno Haible  <bruno@clisp.org>
94431         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94432         S_ISLNK.
94433         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94434         mingw.
94436 2006-12-22  Bruno Haible  <bruno@clisp.org>
94438         * lib/copy-file.c: Include acl.h.
94439         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94440         Close the file descriptors only after being done with copy_acl.
94441         * modules/copy-file (Depends-on): Add acl.
94443 2006-12-22  Bruno Haible  <bruno@clisp.org>
94445         * gnulib-tool (SED): New variable.
94446         Use $SED instead of sed everywhere.
94448 2006-12-22  Bruno Haible  <bruno@clisp.org>
94450         * modules/no-c++: New file.
94451         * m4/no-c++.m4: New file.
94452         * MODULES.html.sh (Support for building libraries and executables):
94453         Add no-c++.
94455 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94457         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94458         Include <limits.h>, and use its INT_MAX to rewrite the
94459         j loop so that it does not overflow 'int'.  Problem reported by
94460         Ralf Wildenhues in
94461         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94462         Play it safe by shifting left by 1 rather than multiplying by 2,
94463         as GCC is less likely to optimize this away when the value
94464         is signed (when it assumes overflow leads to undefined behavior).
94465         Also, don't assume time_t uses two's complement.
94467 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94469         * MODULES.html.sh: New module wctype.
94470         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94471         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94472         <wctype.h>, since the new wctype module should fix this.
94473         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94474         the wctype module should arrange for it.
94475         * lib/regex_internal.h: Likewise.
94476         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94477         since the wctype module should handle this now.
94478         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94479         * modules/fnmatch (Depends-on): Add wctype.
94480         * modules/quotearg (Depends-on): Likewise.
94481         * modules/regex (Depends-on): Likewise.
94483 2006-12-19  Bruno Haible  <bruno@clisp.org>
94485         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94486         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94488 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94490         * modules/savewd (Depends-on): Fix dependency on fcntl.
94492 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94494         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94495         conforms to C99, rather than relying on the user's environment
94496         setting of STDINT_H.
94498 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94499         and Eric Blake  <ebb9@byu.net>
94501         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94502         This is more consistent with the other defines here.
94503         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94504         Port to z/OS.  Problem reported by Paul Gilmartin.
94505         Change local vars to use gl_ prefix rather than ac_.
94506         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94507         with other defines.
94508         * modules/double-slash-root: New module.
94509         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94510         (Depends-on): Add double-slash-root.
94511         * MODULES.html.sh (File system functions): Mention new module.
94513 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94515         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94516         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94517         This is for the benefit of gzip, which doesn't do i18n.
94519 2006-12-12  Jim Meyering  <jim@meyering.net>
94521         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94522         Reported by Andreas Schwab <schwab@suse.de>.
94524 2006-12-12  Bruno Haible  <bruno@clisp.org>
94526         Merge these changes.
94527         2006-09-05  Bruno Haible  <bruno@clisp.org>
94528         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94529         iconv_alloc succeeded.
94530         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94531         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94532         test for " && dest " at the end - dest is always != NULL there. Call
94533         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94534         with 2xNULL arguments, also to flush the state storage. Handle the
94535         IRIX iconv behaviour. Realloc the final result, to throw away unused
94536         memory.
94538 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94540         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94541         and fchmodat unconditionally, since glibc 2.4 has them.
94542         Problem reported by Arkadiusz Miskiewicz.
94544 2006-12-10  Bruno Haible  <bruno@clisp.org>
94546         * gnulib-tool (func_import): Show the include files only for those
94547         modules that are copied and specified.
94548         Reported by Karl Berry.
94550 2006-12-08  Jim Meyering  <jim@meyering.net>
94552         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
94553         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
94555         * build-aux/announce-gen: Add two new options, both optional:
94556         --bootstrap-tools=TOOL_LIST
94557               a comma-separated list of tools, e.g.,
94558               autoconf,automake,bison,gnulib
94559         --gnulib-snapshot-date=DATE
94560               if gnulib is in the bootstrap tool list,
94561               then report this as the snapshot date.
94562               If not specified, use the current date/time.
94563               If you specify a date here, be sure it's UTC.
94565 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94567         * tests/test-argp-2.sh: Fix test to match actual output.
94568         (func_compare): Fix sed script to be portable.
94570 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
94572         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
94573         workaround for this case.  It is not autoconfigured now; offhand
94574         it's hard to see how to autoconfigure it.
94576 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94578         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
94579         a directory that is about to be chowned.  Such a directory's
94580         initial file permissions should permit the owner only and this
94581         should not be changed until after the chown, since the group and
94582         other bits would be incorrect if they granted permission before
94583         the chown.
94585         Fix porting problem for iswctype reported by Georg Schwarz in:
94586         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
94587         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
94588         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
94589         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
94590         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94592 2006-12-03  Jim Meyering  <jim@meyering.net>
94594         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
94595         p->fts_statp may not yet be defined.
94596         (fts_read): Instead, set it in the caller, once p->fts_statp is
94597         sure to be defined, and corresponds to a top-level directory.
94598         This bug made du -x fail.  Here's the coreutils test case:
94599         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
94600         Reported by Mike Frysinger.
94602 2006-12-01  Jim Meyering  <jim@meyering.net>
94604         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
94605         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
94606         Reported by Simon Josefsson.
94608 2006-11-30  Jim Meyering  <jim@meyering.net>
94610         * m4/warning.m4: Use the all-permissive copyright notice
94611         recommended by RMS (rather than LGPL).
94612         * m4/vararrays.m4: Likewise.
94613         * m4/flexmember.m4: Likewise.
94615 2006-11-29  Bruno Haible  <bruno@clisp.org>
94617         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94618         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
94619         using +=.
94620         Reported by Simon Josefsson <simon@josefsson.org>.
94622 2006-11-28  James Youngman  <jay@gnu.org>
94624         * README: Advise users that they might find the bug-gnulib@gnu.org
94625         and autotools-announce@gnu.org mailing lists useful.
94627 2006-11-28  Bruno Haible  <bruno@clisp.org>
94629         * m4/ptrdiff_max.m4: Remove file.
94631 2006-11-21  Bruno Haible  <bruno@clisp.org>
94633         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
94634         _AC_COMPUTE_INT.
94635         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94636         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
94637         _AC_COMPUTE_INT.
94638         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94639         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
94640         _AC_COMPUTE_INT.
94641         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94643 2006-11-28  Jim Meyering  <jim@meyering.net>
94645         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
94646         warning from "gcc -Wshadow" about shadowing the builtin.
94648 2006-11-27  Bruno Haible  <bruno@clisp.org>
94650         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
94651         _AC_COMPUTE_INT.
94652         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94654 2006-11-27  Bruno Haible  <bruno@clisp.org>
94655             Paul Eggert  <eggert@cs.ucla.edu>
94657         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
94659 2006-11-26  Bruno Haible  <bruno@clisp.org>
94661         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94662         noinst_LTLIBRARIES.
94664 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
94665             Bruno Haible  <bruno@clisp.org>
94667         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
94668         if compiling with "gcc -ansi".
94670 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
94672         Fix some incompatibilities with gcc -ansi -pedantic.
94673         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
94674         if compiling pedantically with GCC, unless it's C99 or later.
94675         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
94676         it mishandles gcc -ansi -pedantic as well.
94677         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
94678         if gcc -pedantic.
94679         * lib/regexec.c (check_node_accept_bytes): Don't use auto
94680         initializers for struct if -pedantic, unless it's C99 or later.
94682 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
94684         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
94685         Don't close an fd more than once. Identical atimes indicate
94686         success, not failure.
94688 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
94690         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
94692 2006-11-23  Jim Meyering  <jim@meyering.net>
94694         * build-aux/announce-gen: New file.  From coreutils.
94696 2006-11-22  Jim Meyering  <jim@meyering.net>
94698         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
94699         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
94700         (fts_read): Use a temporary to narrow the overused st_size member
94701         before using it in a switch statement.  Reported by Matthew Woehlke.
94703         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
94704         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
94706 2006-11-20  Bruno Haible  <bruno@clisp.org>
94708         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
94709         changequote instead of pairs of brackets.
94710         Reported by Andreas Schwab <schwab@suse.de>.
94712 2006-11-21  Jim Meyering  <jim@meyering.net>
94714         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
94715         so as to remain compatible with older compilers.
94716         Patch from Michael Deutschmann.
94718 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94720         * MODULES.html.sh (File system functions): Add openat.
94722         * lib/openat.h (rpl_fstatat): New macro, if
94723         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
94724         (fstatat): Define to rpl_fstatat under the same conditions,
94725         unless COMPILING_FSTATAT.
94726         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
94727         seems to have the bug.
94728         * lib/fstatat.c: New file.
94729         * modules/openat (Files): Add it.
94731 2006-11-20  Bruno Haible  <bruno@clisp.org>
94733         * Makefile: New file.
94735 2006-11-20  Jim Meyering  <jim@meyering.net>
94737         The beginnings of syntax-related checks for gnulib.
94738         * lib/Makefile: New file.
94739         * lib/t-idcache: New script.  Ensure that the two halves of
94740         idcache.c stay in sync.
94742         * lib/idcache.c: Adjust comments in user- and group- portions to
94743         be more accurate, and to be consistent with one another.
94745 2006-11-20  Jim Meyering  <jim@meyering.net>
94747         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
94748         continue using the flexible array member (thus, this module performs
94749         half as many malloc calls), with the addition that...
94750         (getgroup, getuser): Consistently record a non-match via an empty
94751         "name" string, and map an empty string match to a NULL return value.
94752         * modules/idcache (Depends-on): Re-add flexmember.
94754         * lib/idcache.c (getuser): Remove all uses of the register keyword.
94755         (getuidbyname, getgroup, getgidbyname): Likewise.
94757         Use cleaner syntax: NULL rather than 0.
94758         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
94760 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94762         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
94763         It mishandled the case where the group was missing.
94764         Problem reported by Greg Schafer.
94765         * modules/idcache: Likewise.
94767 2006-11-18  Jim Meyering  <jim@meyering.net>
94769         * check-module (%exempt_header): Add exception for some
94770         conditionally-included headers.
94772         * modules/i-ring (Depends-on): Add verify.
94773         (License): Change to LGPL.
94775 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94777         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
94778         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
94779         and inttostr.h.  Use snprintf rather than uinttostr, so that
94780         LGPLed code doesn't depend on GPLed.
94782 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
94784         * modules/inline (License): Change from GPL to LGPL.
94786 2006-11-17  Jim Meyering  <jim@meyering.net>
94788         * modules/d-type (License): Switch to LGPL.
94790 2006-11-15  Bruno Haible  <bruno@clisp.org>
94792         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
94794 2006-11-15  Eric Blake  <ebb9@byu.net>
94796         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
94797         the module dependency.
94799 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94800             Bruno Haible  <bruno@clisp.org>
94802         * gnulib-tool (func_create_testdir): Add license consistency check.
94804 2006-11-15  Eric Blake  <ebb9@byu.net>
94806         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
94807         random "(cached)" in configure output.
94809 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94811         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
94812         test for conforming inttypes.h is both announced and cached.
94814         * MODULES.html.sh (seen_modules, seen_files): New variables.
94815         (func_module): Rewrite to use a few less gnulib-tool and sed
94816         invocations.  Avoid a couple of quadratic algorithms for ...
94817         (missed_modules, missed_files): ... these, with ...
94818         (func_append, func_tmpdir): ... these new functions, from
94819         gnulib-tool.  Analogously, install traps for cleanup.
94821         * tests/test-gc.c (main): Remove unused variables.
94822         * tests/test-read-file.c: Include stdlib.h, for 'free'.
94824 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
94826         * modules/inttostr (License): Change to LGPL.
94828 2006-11-14  Eric Blake  <ebb9@byu.net>
94830         * modules/tempname (License): Change to LGPL.
94832 2006-11-14  Eric Blake  <ebb9@byu.net>
94834         * doc/functions.texi (Function Portability): *printf functions on
94835         Cygwin now understand all POSIX size specifiers.
94837 2006-11-14  Bruno Haible  <bruno@clisp.org>
94839         * modules/c-ctype (License): Change to LGPL.
94841 2006-11-12  Bruno Haible  <bruno@clisp.org>
94843         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
94844         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
94845         for GNOME libraries, for which the include files are installed in
94846         subdirectories of $prefix/include.
94848 2006-11-12  Bruno Haible  <bruno@clisp.org>
94850         * m4/lib-link.m4: Require at least autoconf-2.54.
94851         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
94852         name to underscores for the --with option.
94854 2006-11-13  Bruno Haible  <bruno@clisp.org>
94856         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
94857         the tests directory.
94858         Reported by Ralf Wildenhues.
94860 2006-11-13  Bruno Haible  <bruno@clisp.org>
94862         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
94863         (func_emit_initmacro_end): Undo the override here.
94864         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
94865         Works around the famous automake error in coreutils.
94867 2006-11-13  Eric Blake  <ebb9@byu.net>
94869         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
94870         element, not its node.
94872 2006-11-12  Bruno Haible  <bruno@clisp.org>
94874         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
94875         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
94877 2006-11-12  Bruno Haible  <bruno@clisp.org>
94879         * gnulib-tool: New option --local-symlink.
94880         (func_usage): Document it.
94881         (lsymbolic): New variable.
94882         (func_import, func_create_testdir): If --symlink was not specified,
94883         test whether --local-symlink was specified and the file comes from
94884         the local_gnulib_dir.
94886 2006-11-12  Bruno Haible  <bruno@clisp.org>
94888         * gnulib-tool (func_ln): New function.
94889         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
94891 2006-11-12  Bruno Haible  <bruno@clisp.org>
94893         Finish support for source files in subdirectories.
94894         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
94895         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
94896         AUTOMAKE_OPTIONS.
94897         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
94899 2006-11-12  Bruno Haible  <bruno@clisp.org>
94901         * gnulib-tool (func_get_automake_snippet): Synthesize also an
94902         EXTRA_lib_SOURCES augmentation.
94903         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
94905 2006-11-12  Jim Meyering  <jim@meyering.net>
94907         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
94908         file descriptors.  This also averts a failure on systems with
94909         native openat support when a traversed directory lacks "x" access.
94910         * lib/fts_.h: Include "i-ring.h"
94911         (struct FTS) [fts_fd_ring]: New member.
94912         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
94913         (FCHDIR): Add parentheses.
94914         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
94915         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
94916         When descending, rather than simply closing the previous
94917         fts_cwd_fd value, push that file descriptor onto the ring.
94918         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
94919         (fts_open): Initialize the new fd_ring member.
94920         (fts_close): Clear the ring.
94921         (fts_safe_changedir): When possible, use our new fd_ring to skip
94922         the diropen and fstat and dev/ino comparison that would normally
94923         accompany a virtual `chdir ("..")'.
94925         * modules/fts (Depends-on): Add i-ring.
94926         * modules/i-ring: New module.
94927         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
94928         * m4/i-ring.m4: New file.
94930 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94932         * gnulib-tool (func_create_testdir): Fix replacement of
94933         `build-aux' in configure.ac.  Run autotools in gltests
94934         subdirectory.
94935         (func_create_testdir, func_create_megatestdir, test): There is
94936         no need for '--force' in most autotool invocations in a new
94937         tree.  Actually fail the whole test if any of the tools, or the
94938         configure or make stages fail.
94940         Sync from Automake.
94941         * build-aux/gnupload: Revert last change.  Add pointer to upload
94942         instructions of the GNU Maintenance Instructions.
94943         Suggestion by Karl Berry.
94945 2006-11-10  Jim Meyering  <jim@meyering.net>
94947         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
94949 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94951         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
94952         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
94953         (bind_textdomain_codeset) [! ENABLE_NLS]:
94954         Evaluate all the arguments.  That way, callers get compatible behavior
94955         if the arguments have side effects.  Also, it avoids some GCC
94956         diagnostics in some cases; Joel E. Denny reported problems when Bison
94957         was configured with --enable-gcc-warnigs.
94959 2006-11-10  Jim Meyering  <jim@meyering.net>
94961         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
94962         relevant options in CFLAGS (like -O, -fno-inline) are taken into
94963         account.
94965 2006-11-10  Jim Meyering  <jim@meyering.net>
94967         * modules/inline: New file/module.
94968         * modules/xalloc (Files): Remove m4/inline.m4.
94969         (Depends-on): Add inline, instead.
94970         * modules/oset: Likewise.
94971         * modules/list: Likewise.
94973 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94975         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
94976         Problem reported by Matthew Woehlke.
94978 2006-11-09  Bruno Haible  <bruno@clisp.org>
94980         * lib/tempname.c (gen_tempname): Remove variant that invokes
94981         __gen_tempname.
94982         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
94983         __gen_tempname.
94985 2006-11-08  Bruno Haible  <bruno@clisp.org>
94987         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
94988         to 'yes' instead of 'cross-compiling'.
94990 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
94992         * lib/quotearg.h (quotearg_free): New decl.
94993         * lib/quotearg.c (quotearg_free): New function.
94994         (slot0, nslots, slotvec0, slotvec):
94995         Now file-scope so that quotearg_free can get at them.
94997 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94999         Sync from Automake.
95000         * build-aux/gnupload: Add missing 'gnu' to example URL.
95001         Report by Karl Berry.
95003 2006-11-08  Bruno Haible  <bruno@clisp.org>
95005         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
95006         Suggested by Paul Eggert.
95008 2006-11-08  Jim Meyering  <jim@meyering.net>
95010         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
95011         It's already included if !_LIBC.
95012         (fts_safe_changedir): Add a comment.
95014 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95016         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
95017         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
95018         Matthew Woehlke.
95020         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
95021         definitions up, to avoid colliding with change below.
95022         (static_inline) [HAVE_INLINE]: New macro.
95023         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
95024         Provide extern decls when !HAVE_INLINE.  Do not define unless
95025         static_inline is defined, either by us or by xmalloc.c.  Use
95026         static_inline rather than static inline.
95027         (XCALLOC): Optimize sizeof(T) = 1 case.
95028         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
95030 2006-11-07  Bruno Haible  <bruno@clisp.org>
95032         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
95033         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
95034         AC_C_INLINE.
95035         * modules/xalloc (Files): Add m4/inline.m4.
95037 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95039         * README: Fix typo.
95040         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
95041         (Miscellanous Notes): ...from this.
95043 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95045         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
95046         Mention that offsetof should be used instead of sizeof.
95047         From Bruno Haible.
95049 2006-11-07  Bruno Haible  <bruno@clisp.org>
95051         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
95053 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95055         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95056         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
95057         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95058         (gl_tree_add_before, gl_tree_add_after):
95059         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
95060         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
95061         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
95062         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
95063         (gl_linked_add_after, gl_linked_add_at): Likewise.
95064         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
95065         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95066         (gl_tree_add_before, gl_tree_add_after): Likewise.
95067         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
95068         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
95069         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
95071 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95073         * lib/gl_oset.h: Use C comment style, not C++ comment style.
95075 2006-11-06  Bruno Haible  <bruno@clisp.org>
95077         * m4/inline.m4: New file.
95078         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
95079         * modules/list (Files): Add m4/inline.m4.
95080         * modules/oset (Files): Likewise.
95082 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95084         * lib/idcache.c: Include <stddef.h>, for offsetof.
95085         (struct userid.name): Change from char * to a flexible array member.
95086         All uses changed.
95087         * modules/idcache (Depends-on): Add flexmember.
95089         * MODULES.html.sh (Core language properties): New module flexmember.
95090         * modules/flexmember, m4/flexmember.m4: New files.
95092         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
95093         inline functions that are identical with the old xnmalloc_inline,
95094         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
95095         that we can avoid some unnecessary integer multiplications and
95096         divisions in the common case where the element size is known at
95097         compile time.
95098         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
95099         needed.
95100         (xnboundedmalloc): Remove.
95101         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
95102         arguments, for consistency with rest of this header.
95103         (xcharalloc): Rewrite using XNMALLOC.
95104         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
95105         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
95106         versions have been moved to lib/xalloc.h and renamed to be the
95107         non-*_inline versions.
95108         (xmalloc, xrealloc): Implement without reference to the xnmalloc
95109         and xnrealloc functions, since those functions are now inline and
95110         now call us.
95111         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
95112         renaming described above.
95113         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
95114         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
95115         captures the dependency in AC_C_INLINE.
95117         New module canonicalize-lgpl, proposed by Charles Wilson in
95118         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
95119         with a few small changes afterwards.
95120         * MODULES.html.sh (File system functions): New module
95121         canonicalize-lgpl.
95122         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
95123         and canonicalize_file_name.
95124         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
95125         * modules/canonicalize-lgpl: New files.
95127 2006-11-05  Bruno Haible  <bruno@clisp.org>
95129         * gnulib-tool (func_import, func_create_testdir): Create directories
95130         also for files in subdirectories of lib/.
95132 2006-11-05  Bruno Haible  <bruno@clisp.org>
95134         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
95135         ANSI C compliant.
95137 2006-11-03  Bruno Haible  <bruno@clisp.org>
95139         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95140         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
95141         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
95142         (xnboundedmalloc): New inline function.
95143         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
95144         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
95145         xmalloc.
95146         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
95147         xmalloc.
95148         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
95149         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
95150         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
95151         xmalloc.
95152         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95153         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
95154         xmalloc.
95155         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
95156         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95157         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
95158         xmalloc.
95159         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95160         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
95161         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95162         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
95163         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
95164         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
95165         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
95167 2006-11-03  Bruno Haible  <bruno@clisp.org>
95169         * lib/c-ctype.h [C++]: Define functions without name mangling.
95170         * lib/fwriteerror.h [C++]: Likewise.
95171         * lib/gcd.h [C++]: Likewise.
95172         * lib/linebreak.h [C++]: Likewise.
95174 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
95176         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
95177         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
95178         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
95179         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95180         Check for functions and headers just once.
95181         Check for declaration of canonicalize_file_name.
95182         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
95184 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95186         * gnulib-tool (func_import): Fix typo in actioncmd.
95188 2006-11-02  Bruno Haible  <bruno@clisp.org>
95190         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
95191         newline sequence in the Makefile.am snippet as a space, like "make"
95192         does.
95193         Reported by Roger Persson <perrog@gmail.com>.
95195 2006-11-01  Bruno Haible  <bruno@clisp.org>
95197         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
95198         already declared in <string.h>.
95199         * lib/strcase.h (strncasecmp): Don't declare it if yes.
95201 2006-11-01  Bruno Haible  <bruno@clisp.org>
95203         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
95204         * lib/strcase.h: Include <string.h>.
95205         (strcasecmp): Define to rpl_strcasecmp here.
95207 2006-11-01  Bruno Haible  <bruno@clisp.org>
95209         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
95211 2006-11-01  Eric Blake  <ebb9@byu.net>
95213         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
95215         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
95217 2006-10-29  Bruno Haible  <bruno@clisp.org>
95219         Make it compile in C++ mode.
95220         * lib/full-write.c (full_rw): Add a cast.
95222 2006-11-01  Bruno Haible  <bruno@clisp.org>
95224         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
95225         be POSIX compliant.
95226         Reported by Roger Persson <perrog@gmail.com>.
95228 2006-11-01  Eric Blake  <ebb9@byu.net>
95230         * lib/getopt_.h: Fix comments.
95232 2006-10-31  Eric Blake  <ebb9@byu.net>
95234         * modules/tmpdir (Depends-on): Add sys_stat.
95235         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
95236         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
95237         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
95238         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
95239         tempname.
95241 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
95243         Avoid some C++ diagnostics reported by Bruno Haible.
95244         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
95245         xmalloc.
95246         (quotearg_alloc): Use xcharalloc rather than xmalloc.
95247         (struct slotvec): Move to top level.
95248         (quotearg_n_options): Rewrite to avoid xmalloc.
95249         * lib/xalloc.h (xcharalloc): New function.
95250         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
95251         [defined __cplusplus]: Add function template that provides result
95252         type propagation.  This part of the change is from Bruno Haible.
95254 2006-10-29  Bruno Haible  <bruno@clisp.org>
95256         Make it compile in C++ mode.
95257         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
95258         * lib/strnlen1.c (strnlen1): Cast memchr result.
95259         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
95260         * lib/clean-temp.c (string_equals, string_hash): Add casts.
95261         (create_temp_dir): Rename local variable 'template'.
95262         (compile_csharp_using_sscli): Add cast.
95263         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
95264         * lib/findprog.c (find_in_path): Likewise.
95265         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
95266         * lib/wait-process.c (register_slave_subprocess): Likewise.
95268 2006-10-22  Bruno Haible  <bruno@clisp.org>
95270         * modules/tsearch: New file.
95271         * lib/tsearch.h: New file.
95272         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
95273         * m4/tsearch.m4: New file.
95274         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
95276 2006-10-29  Eric Blake  <ebb9@byu.net>
95278         * lib/arcfour.c: Assume config.h.
95279         * lib/arctwo.c: Likewise.
95280         * lib/base64.c: Likewise.
95281         * lib/check-version.c: Likewise.
95282         * lib/crc.c: Likewise.
95283         * lib/des.c: Likewise.
95284         * lib/gc-gnulib.c: Likewise.
95285         * lib/gc-libgcrypt.c: Likewise.
95286         * lib/gc-pbkdf2-sha1.c: Likewise.
95287         * lib/getaddrinfo.c: Likewise.
95288         * lib/getdelim.c: Likewise.
95289         * lib/getline.c: Likewise.
95290         * lib/hmac-md5.c: Likewise.
95291         * lib/hmac-sha1.c: Likewise.
95292         * lib/iconvme.c: Likewise.
95293         * lib/md2.c: Likewise.
95294         * lib/md4.c: Likewise.
95295         * lib/memxor.c: Likewise.
95296         * lib/read-file.c: Likewise.
95297         * lib/readline.c: Likewise.
95298         * lib/rijndael-alg-fst.c: Likewise.
95299         * lib/rijndael-api-fst.c: Likewise.
95300         * lib/xgetdomainname.c: Likewise.
95302 2006-10-28  Eric Blake  <ebb9@byu.net>
95304         * lib/xstrndup.c: Assume config.h.
95306 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95308         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95309         stat-macros.h is now for our own macros, whereas stat_h is for
95310         macros in the <sys/stat.h> name space.
95311         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95312         (STAT_MACROS_H): Remove.
95313         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95314         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95315         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95316         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95317         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95318         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95319         Move these macros to ...
95320         * lib/stat_.h: here.  Don't include stat-macros.h.
95321         * lib/canonicalize.c: Don't include stat-macros.h.
95322         * lib/chown.c: Likewise.
95323         * lib/euidaccess.c: Likewise.
95324         * lib/file-type.c: Likewise.
95325         * lib/filemode.c: Likewise.
95326         * lib/glob.c: Likewise.
95327         * lib/isapipe.c: Likewise.
95328         * lib/lchown.c: Likewise.
95329         * lib/lstat.c: Likewise.
95330         * lib/mkdir-p.c: Likewise.
95331         * lib/rmdir.c: Likewise.
95332         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95334         unless mkdir isn't declared, to speed up 'configure'.
95335         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95336         would define all the S_* symbols.
95337         * modules/canonicalize (Depends-on):
95338         Depend on sys_stat, not stat-macros.
95339         * modules/chown: Likewise.
95340         * modules/euidaccess: Likewise.
95341         * modules/filemode: Likewise.
95342         * modules/file-type: Likewise.
95343         * modules/glob: Likewise.
95344         * modules/isapipe: Likewise.
95345         * modules/lchown: Likewise.
95346         * modules/lstat: Likewise.
95347         * modules/mkancesdirs: Likewise.
95348         * modules/rmdir: Likewise.
95349         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95350         * modules/modechange: Likewise.
95351         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95352         (configure.ac): Remove gl_STAT_MACROS.
95353         * modules/sys_stat (Depends-on): Remove stat-macros.
95355 2006-10-27  Bruno Haible  <bruno@clisp.org>
95357         * m4/signed.m4: Remove file.
95358         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95359         invocation.
95360         * modules/vasnprintf (Files): Remove m4/signed.m4.
95362 2006-10-27  Bruno Haible  <bruno@clisp.org>
95364         Update to GNU gettext 0.16.
95365         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95366         m4/inttypes-h.m4, m4/signed.m4.
95367         * m4/gettext.m4: Update to GNU gettext 0.16.
95368         * m4/intl.m4: New file, from GNU gettext.
95369         * m4/intldir.m4: New file, from GNU gettext.
95370         * config/srclist.txt: Update
95372 2006-10-27  Eric Blake  <ebb9@byu.net>
95374         * MODULES.html.sh: Document tempname.
95375         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95376         dependencies.
95377         (Files): Move lib/tempname.c...
95378         * modules/tempname: ...to this new module.
95379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95380         (gl_PREREQ_TEMPNAME): Move...
95381         * m4/tempname.m4: ...to this new file.
95382         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95383         * modules/sys_stat (Depends-on): Add stat-macros.
95384         * lib/stat_.h (includes): Pick up stat macros.
95385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95386         if stat macros are broken.
95387         * lib/tempname.c (includes): No need to include "stat-macros.h".
95388         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95389         (direxists, __path_search) [!_LIBC]: Don't compile these in
95390         gnulib; the tmpdir module covers that.
95391         * lib/tempname.h: New file.
95393 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95395         * COPYING: Explain how gnulib-tool converts licence headers.
95396         Almost all wording by Eric Blake.
95398 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95400         * lib/mbchar.h (is_basic_table): Make read-only.
95401         * lib/mbchar.c (is_basic_table): Likewise.
95402         Reported by John Darrington.
95404 2006-10-25  Bruno Haible  <bruno@clisp.org>
95406         * lib/progname.h (set_program_name): Undefine before defining.
95408 2006-10-25  Bruno Haible  <bruno@clisp.org>
95410         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95411         false for non-gcc C++ compilers.
95412         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95414 2006-10-24  Bruno Haible  <bruno@clisp.org>
95416         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95417         iconv implementations like Irix iconv.
95419 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95421         * modules/vararrays: New file.
95422         * m4/vararrays.m4: New file, taken from diffutils.
95423         * MODULES.html.sh: New module vararrays.
95425 2006-10-24  Karl Berry  <karl@gnu.org>
95427         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95428         Don't call GNU Unix.
95430 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95432         * users.txt: Add Libtool.
95434         Sync from Libtool:
95436         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95438         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95439         to gnulib's policy of including config.h unconditionally.
95441 2006-10-24  Bruno Haible  <bruno@clisp.org>
95443         * modules/wcwidth (Files): Add m4/wint_t.m4.
95444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95445         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95447 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95449         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95450         to pacify GCC with some -W flags enabled.  Problem reported by
95451         Bruno Haible.
95453 2006-10-24  Jim Meyering  <jim@meyering.net>
95455         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95456         Reported by Karl Berry.
95458 2006-10-23  Bruno Haible  <bruno@clisp.org>
95460         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95462 2006-10-24  Bruno Haible  <bruno@clisp.org>
95464         * lib/gl_list.h: Use C comment style, not C++ comment style.
95466 2006-10-23  Eric Blake  <ebb9@byu.net>
95468         * lib/getaddrinfo.c (includes): Add missing include.
95470 2006-10-23  Bruno Haible  <bruno@clisp.org>
95471             Paul Eggert  <eggert@cs.ucla.edu>
95473         Ability to rename obstack_free.
95474         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95475         obstack_free.
95476         (obstack_free): Invoke the __obstack_free macro.
95477         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95479 2006-10-23  Bruno Haible  <bruno@clisp.org>
95480             Paul Eggert  <eggert@cs.ucla.edu>
95482         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95483         __argc, __argv from the declaration. (They are defined as macros on
95484         mingw.)
95486 2006-10-22  Bruno Haible  <bruno@clisp.org>
95488         * doc/gnulib-intro.texi: New file.
95489         * doc/gnulib.texi: Include it.
95491 2006-10-21  Bruno Haible  <bruno@clisp.org>
95493         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95494         "Introduction", "Miscellanous Notes", "Particular Modules".
95496 2006-10-21  Bruno Haible  <bruno@clisp.org>
95498         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95499         Change mostlyclean-local rule to avoid sh syntax error from bash
95500         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95502 2006-10-23  Jim Meyering  <jim@meyering.net>
95504         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95505         in place of snprintf.
95507         * modules/inttostr (Files): Add lib/uinttostr.c.
95508         * lib/uinttostr.c (inttostr): New file/function.
95509         * lib/inttostr.h (uinttostr): Declare.
95510         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95511         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95512         Add uinttostr.
95513         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95515 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95517         * lib/canonicalize.c (ELOOP): Define if not already defined.
95518         Problem reported by Bruno Haible in
95519         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95521 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95523         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95524         Problem reported by Perry Smith and Ville Laurikari.
95526         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95527         uses.
95529 2006-10-19  Bruno Haible  <bruno@clisp.org>
95531         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95532         for mingw.
95534 2006-10-19  Bruno Haible  <bruno@clisp.org>
95536         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95537         Needed for mingw.
95539 2006-10-19  Bruno Haible  <bruno@clisp.org>
95541         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95543 2006-10-19  Bruno Haible  <bruno@clisp.org>
95545         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
95546         it.
95548 2006-10-19  Bruno Haible  <bruno@clisp.org>
95550         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
95551         invocation.
95553 2006-10-19  Bruno Haible  <bruno@clisp.org>
95555         * gnulib-tool (func_create_testdir): Don't include ftruncate and
95556         mountlist by default.
95558 2006-10-16  Bruno Haible  <bruno@clisp.org>
95560         * lib/c-strstr.c: Include c-strstr.h.
95562 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95564         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
95565         in a slash.
95567 2006-10-18  Bruno Haible  <bruno@clisp.org>
95569         * lib/lock.h [C++]: Wrap definitions in extern "C".
95571 2006-10-18  Bruno Haible  <bruno@clisp.org>
95573         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
95574         gl_LIBOBJS list.
95576 2006-10-18  Bruno Haible  <bruno@clisp.org>
95578         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
95580 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
95582         * lib/xstrtol.h: Include gettext.h.
95583         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
95584         Problem reported by Eric Blake.
95585         * modules/xstrtol (Depends-on): Add gettext-h.
95587 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
95589         * lib/strftime.c (advance): New macro.
95590         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
95591         incomplete type, so you can't add 0 to it.  Problem and patch
95592         reported by Eelco Dolstra for dietlibc.
95594 2006-10-18  Jim Meyering  <jim@meyering.net>
95596         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
95597         type for a local, and rename it: s/up/user_proc/.
95599 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95601         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
95602         READ_UTMP_USER_PROCESS.
95603         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
95605 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95607         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
95608         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
95610 2006-10-17  Eric Blake  <ebb9@byu.net>
95612         * lib/sigprocmask.c (sigprocmask): Fix typo.
95614         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
95616         * modules/clean-temp (Makefile.am): Don't add to make output...
95617         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
95618         config.h.
95620 2006-10-17  Bruno Haible  <bruno@clisp.org>
95622         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
95623         differently if DEFAULT_TEXT_DOMAIN is set.
95625 2006-10-16  Bruno Haible  <bruno@clisp.org>
95627         * lib/clean-temp.c: Include fwriteerror.h.
95629 2006-10-16  Bruno Haible  <bruno@clisp.org>
95631         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
95633 2006-10-16  Bruno Haible  <bruno@clisp.org>
95635         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
95636         * lib/sigprocmask.h: Include <sys/types.h>.
95637         (sigset_t): Use the system's definition if present.
95639 2006-10-17  Eric Blake  <ebb9@byu.net>
95641         * lib/xvasprintf.c (includes): Assume config.h.
95642         * lib/xasprintf.c (includes): Likewise.
95644 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95646         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
95647         at least as wide as intmax_t.
95649 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
95651         (Imported from Automake.)
95652         * build-aux/gnupload: Update to version 1.1 of directive file.
95654 2006-10-16  Eric Blake  <ebb9@byu.net>
95656         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
95657         match Automake 1.10a.
95659 2006-10-14  Bruno Haible  <bruno@clisp.org>
95661         * modules/sigprocmask: New file.
95662         * lib/sigprocmask.h: New file.
95663         * lib/sigprocmask.c: New file.
95664         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
95665         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
95666         request sigprocmask.o.
95667         (gl_PREREQ_SIGPROCMASK): New macro.
95668         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
95669         (Depends-on): Add sigprocmask.
95670         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
95671         gt_SIGNALBLOCKING. Test for 'raise' only once.
95672         * lib/fatal-signal.c: Include sigprocmask.h.
95673         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
95674         unblock_fatal_signals): Define always.
95675         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
95676         sigprocmask.
95678 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95680         Sync from Automake.
95681         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
95682         which incorrectly sets the mode of an existing destination
95683         directory.  In some cases the unpatched install-sh could do the
95684         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
95685         system.  We hope this is rare in practice, but it's clearly worth
95686         fixing.  Problem reported by Alex Unleashed in
95687         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
95688         Also, don't bother to check for -m bugs unless we're using -m;
95689         suggested by Stepan Kasal.
95691 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95693         Sync from Automake.
95694         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
95695         `-c' flag, so they appear at the same position as in %FASTDEP%
95696         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
95697         which ignores unknown options only after the first non-option.
95698         Bug report against M4 by Nelson H. F. Beebe.
95700 2006-10-13  Jim Meyering  <jim@meyering.net>
95702         Fix a bug in yesterday's change.
95703         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
95704         p->fts_statp->st_dev would be used uninitialized.
95705         Ensures that we always call fts_stat on the very first entry.
95706         Miklos Szeredi reported that find -xdev stopped working.
95708 2006-10-12  Bruno Haible  <bruno@clisp.org>
95710         * gnulib-tool (func_get_automake_snippet): Append an automatically
95711         computed EXTRA_DIST augmentation.
95712         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
95713         * modules/alloca-opt (Makefile.am): Likewise.
95714         * modules/allocsa (Makefile.am): Likewise.
95715         * modules/arcfour (Makefile.am): Likewise.
95716         * modules/arctwo (Makefile.am): Likewise.
95717         * modules/argmatch (Makefile.am): Likewise.
95718         * modules/argz (Makefile.am): Likewise.
95719         * modules/atexit (Makefile.am): Likewise.
95720         * modules/backupfile (Makefile.am): Likewise.
95721         * modules/byteswap (Makefile.am): Likewise.
95722         * modules/c-strtod (Makefile.am): Likewise.
95723         * modules/c-strtold (Makefile.am): Likewise.
95724         * modules/calloc (Makefile.am): Likewise.
95725         * modules/canon-host (Makefile.am): Likewise.
95726         * modules/canonicalize (Makefile.am): Likewise.
95727         * modules/chdir-long (Makefile.am): Likewise.
95728         * modules/chdir-safer (Makefile.am): Likewise.
95729         * modules/check-version (Makefile.am): Likewise.
95730         * modules/chown (Makefile.am): Likewise.
95731         * modules/cloexec (Makefile.am): Likewise.
95732         * modules/close-stream (Makefile.am): Likewise.
95733         * modules/closeout (Makefile.am): Likewise.
95734         * modules/crc (Makefile.am): Likewise.
95735         * modules/csharpexec (Makefile.am): Likewise.
95736         * modules/cycle-check (Makefile.am): Likewise.
95737         * modules/des (Makefile.am): Likewise.
95738         * modules/dev-ino (Makefile.am): Likewise.
95739         * modules/dirfd (Makefile.am): Likewise.
95740         * modules/dirname (Makefile.am): Likewise.
95741         * modules/dup2 (Makefile.am): Likewise.
95742         * modules/eealloc (Makefile.am): Likewise.
95743         * modules/error (Makefile.am): Likewise.
95744         * modules/euidaccess (Makefile.am): Likewise.
95745         * modules/exclude (Makefile.am): Likewise.
95746         * modules/exitfail (Makefile.am): Likewise.
95747         * modules/fcntl-safer (Makefile.am): Likewise.
95748         * modules/fcntl (Makefile.am): Likewise.
95749         * modules/file-type (Makefile.am): Likewise.
95750         * modules/fileblocks (Makefile.am): Likewise.
95751         * modules/filemode (Makefile.am): Likewise.
95752         * modules/filenamecat (Makefile.am): Likewise.
95753         * modules/fnmatch (Makefile.am): Likewise.
95754         * modules/fopen-safer (Makefile.am): Likewise.
95755         * modules/fpending (Makefile.am): Likewise.
95756         * modules/fprintftime (Makefile.am): Likewise.
95757         * modules/free (Makefile.am): Likewise.
95758         * modules/fsusage (Makefile.am): Likewise.
95759         * modules/ftruncate (Makefile.am): Likewise.
95760         * modules/fts (Makefile.am): Likewise.
95761         * modules/gc-arcfour (Makefile.am): Likewise.
95762         * modules/gc-des (Makefile.am): Likewise.
95763         * modules/gc-hmac-md5 (Makefile.am): Likewise.
95764         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
95765         * modules/gc-md4 (Makefile.am): Likewise.
95766         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95767         * modules/gc-sha1 (Makefile.am): Likewise.
95768         * modules/gc (Makefile.am): Likewise.
95769         * modules/getaddrinfo (Makefile.am): Likewise.
95770         * modules/getcwd (Makefile.am): Likewise.
95771         * modules/getdelim (Makefile.am): Likewise.
95772         * modules/getdomainname (Makefile.am): Likewise.
95773         * modules/getgroups (Makefile.am): Likewise.
95774         * modules/gethostname (Makefile.am): Likewise.
95775         * modules/gethrxtime (Makefile.am): Likewise.
95776         * modules/getline (Makefile.am): Likewise.
95777         * modules/getloadavg (Makefile.am): Likewise.
95778         * modules/getlogin_r (Makefile.am): Likewise.
95779         * modules/getndelim2 (Makefile.am): Likewise.
95780         * modules/getopt (Makefile.am): Likewise.
95781         * modules/getpagesize (Makefile.am): Likewise.
95782         * modules/getpass-gnu (Makefile.am): Likewise.
95783         * modules/getpass (Makefile.am): Likewise.
95784         * modules/getsubopt (Makefile.am): Likewise.
95785         * modules/gettime (Makefile.am): Likewise.
95786         * modules/gettimeofday (Makefile.am): Likewise.
95787         * modules/getugroups (Makefile.am): Likewise.
95788         * modules/getusershell (Makefile.am): Likewise.
95789         * modules/glob (Makefile.am): Likewise.
95790         * modules/group-member (Makefile.am): Likewise.
95791         * modules/hard-locale (Makefile.am): Likewise.
95792         * modules/hash (Makefile.am): Likewise.
95793         * modules/hmac-md5 (Makefile.am): Likewise.
95794         * modules/hmac-sha1 (Makefile.am): Likewise.
95795         * modules/human (Makefile.am): Likewise.
95796         * modules/idcache (Makefile.am): Likewise.
95797         * modules/imaxabs (Makefile.am): Likewise.
95798         * modules/imaxdiv (Makefile.am): Likewise.
95799         * modules/inet_ntop (Makefile.am): Likewise.
95800         * modules/inet_pton (Makefile.am): Likewise.
95801         * modules/intprops (Makefile.am): Likewise.
95802         * modules/inttostr (Makefile.am): Likewise.
95803         * modules/inttypes (Makefile.am): Likewise.
95804         * modules/isapipe (Makefile.am): Likewise.
95805         * modules/javaversion (Makefile.am): Likewise.
95806         * modules/lchmod (Makefile.am): Likewise.
95807         * modules/lchown (Makefile.am): Likewise.
95808         * modules/localcharset (Makefile.am): Likewise.
95809         * modules/long-options (Makefile.am): Likewise.
95810         * modules/lstat (Makefile.am): Likewise.
95811         * modules/malloc (Makefile.am): Likewise.
95812         * modules/mathl (Makefile.am): Likewise.
95813         * modules/mbchar (Makefile.am): Likewise.
95814         * modules/md2 (Makefile.am): Likewise.
95815         * modules/md4 (Makefile.am): Likewise.
95816         * modules/md5 (Makefile.am): Likewise.
95817         * modules/memcasecmp (Makefile.am): Likewise.
95818         * modules/memchr (Makefile.am): Likewise.
95819         * modules/memcmp (Makefile.am): Likewise.
95820         * modules/memcoll (Makefile.am): Likewise.
95821         * modules/memcpy (Makefile.am): Likewise.
95822         * modules/memmem (Makefile.am): Likewise.
95823         * modules/memmove (Makefile.am): Likewise.
95824         * modules/mempcpy (Makefile.am): Likewise.
95825         * modules/memrchr (Makefile.am): Likewise.
95826         * modules/memset (Makefile.am): Likewise.
95827         * modules/memxor (Makefile.am): Likewise.
95828         * modules/mkancesdirs (Makefile.am): Likewise.
95829         * modules/mkdir-p (Makefile.am): Likewise.
95830         * modules/mkdir (Makefile.am): Likewise.
95831         * modules/mkdtemp (Makefile.am): Likewise.
95832         * modules/mkstemp (Makefile.am): Likewise.
95833         * modules/mktime (Makefile.am): Likewise.
95834         * modules/modechange (Makefile.am): Likewise.
95835         * modules/mountlist (Makefile.am): Likewise.
95836         * modules/nanosleep (Makefile.am): Likewise.
95837         * modules/obstack (Makefile.am): Likewise.
95838         * modules/openat (Makefile.am): Likewise.
95839         * modules/pagealign_alloc (Makefile.am): Likewise.
95840         * modules/pathmax (Makefile.am): Likewise.
95841         * modules/physmem (Makefile.am): Likewise.
95842         * modules/poll (Makefile.am): Likewise.
95843         * modules/posixtm (Makefile.am): Likewise.
95844         * modules/posixver (Makefile.am): Likewise.
95845         * modules/putenv (Makefile.am): Likewise.
95846         * modules/quote (Makefile.am): Likewise.
95847         * modules/quotearg (Makefile.am): Likewise.
95848         * modules/raise (Makefile.am): Likewise.
95849         * modules/read-file (Makefile.am): Likewise.
95850         * modules/readline (Makefile.am): Likewise.
95851         * modules/readlink (Makefile.am): Likewise.
95852         * modules/readtokens (Makefile.am): Likewise.
95853         * modules/readutmp (Makefile.am): Likewise.
95854         * modules/realloc (Makefile.am): Likewise.
95855         * modules/regex (Makefile.am): Likewise.
95856         * modules/rename-dest-slash (Makefile.am): Likewise.
95857         * modules/rename (Makefile.am): Likewise.
95858         * modules/rijndael (Makefile.am): Likewise.
95859         * modules/rmdir (Makefile.am): Likewise.
95860         * modules/rpmatch (Makefile.am): Likewise.
95861         * modules/safe-read (Makefile.am): Likewise.
95862         * modules/safe-write (Makefile.am): Likewise.
95863         * modules/same-inode (Makefile.am): Likewise.
95864         * modules/same (Makefile.am): Likewise.
95865         * modules/save-cwd (Makefile.am): Likewise.
95866         * modules/savedir (Makefile.am): Likewise.
95867         * modules/setenv (Makefile.am): Likewise.
95868         * modules/settime (Makefile.am): Likewise.
95869         * modules/sha1 (Makefile.am): Likewise.
95870         * modules/sig2str (Makefile.am): Likewise.
95871         * modules/snprintf (Makefile.am): Likewise.
95872         * modules/stat-macros (Makefile.am): Likewise.
95873         * modules/stat-time (Makefile.am): Likewise.
95874         * modules/stdbool (Makefile.am): Likewise.
95875         * modules/stdint (Makefile.am): Likewise.
95876         * modules/stdlib-safer (Makefile.am): Likewise.
95877         * modules/stpcpy (Makefile.am): Likewise.
95878         * modules/stpncpy (Makefile.am): Likewise.
95879         * modules/strcase (Makefile.am): Likewise.
95880         * modules/strcasestr (Makefile.am): Likewise.
95881         * modules/strchrnul (Makefile.am): Likewise.
95882         * modules/strcspn (Makefile.am): Likewise.
95883         * modules/strdup (Makefile.am): Likewise.
95884         * modules/strerror (Makefile.am): Likewise.
95885         * modules/strftime (Makefile.am): Likewise.
95886         * modules/strndup (Makefile.am): Likewise.
95887         * modules/strnlen (Makefile.am): Likewise.
95888         * modules/strpbrk (Makefile.am): Likewise.
95889         * modules/strsep (Makefile.am): Likewise.
95890         * modules/strstr (Makefile.am): Likewise.
95891         * modules/strtod (Makefile.am): Likewise.
95892         * modules/strtoimax (Makefile.am): Likewise.
95893         * modules/strtok_r (Makefile.am): Likewise.
95894         * modules/strtol (Makefile.am): Likewise.
95895         * modules/strtoll (Makefile.am): Likewise.
95896         * modules/strtoul (Makefile.am): Likewise.
95897         * modules/strtoull (Makefile.am): Likewise.
95898         * modules/strtoumax (Makefile.am): Likewise.
95899         * modules/strverscmp (Makefile.am): Likewise.
95900         * modules/sys_socket (Makefile.am): Likewise.
95901         * modules/sys_stat (Makefile.am): Likewise.
95902         * modules/sysexits (Makefile.am): Likewise.
95903         * modules/time_r (Makefile.am): Likewise.
95904         * modules/timegm (Makefile.am): Likewise.
95905         * modules/timespec (Makefile.am): Likewise.
95906         * modules/tmpfile-safer (Makefile.am): Likewise.
95907         * modules/trim (Makefile.am): Likewise.
95908         * modules/unistd-safer (Makefile.am): Likewise.
95909         * modules/unlinkdir (Makefile.am): Likewise.
95910         * modules/unlocked-io (Makefile.am): Likewise.
95911         * modules/userspec (Makefile.am): Likewise.
95912         * modules/utime (Makefile.am): Likewise.
95913         * modules/utimecmp (Makefile.am): Likewise.
95914         * modules/utimens (Makefile.am): Likewise.
95915         * modules/vasnprintf (Makefile.am): Likewise.
95916         * modules/vasprintf (Makefile.am): Likewise.
95917         * modules/vsnprintf (Makefile.am): Likewise.
95918         * modules/xalloc (Makefile.am): Likewise.
95919         * modules/xgetcwd (Makefile.am): Likewise.
95920         * modules/xnanosleep (Makefile.am): Likewise.
95921         * modules/xreadlink (Makefile.am): Likewise.
95922         * modules/xstrtod (Makefile.am): Likewise.
95923         * modules/xstrtol (Makefile.am): Likewise.
95924         * modules/xstrtold (Makefile.am): Likewise.
95925         * modules/yesno (Makefile.am): Likewise.
95926         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
95928 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95930         * modules/error (Makefile.am): Distribute files through
95931         EXTRA_DIST, not lib_SOURCES.
95933 2006-10-12  Eric Blake  <ebb9@byu.net>
95935         * modules/error (Makefile.am): Distribute files in /lib.
95936         * modules/obstack (Makefile.am): Likewise.
95938 2006-10-12  Bruno Haible  <bruno@clisp.org>
95940         * modules/acl (Makefile.am): Distribute all files in lib/ through
95941         EXTRA_DIST.
95942         * modules/arcfour (Makefile.am): Likewise.
95943         * modules/arctwo (Makefile.am): Likewise.
95944         * modules/argmatch (Makefile.am): Likewise.
95945         * modules/argz (Makefile.am): Likewise.
95946         * modules/atexit (Makefile.am): Likewise.
95947         * modules/backupfile (Makefile.am): Likewise.
95948         * modules/c-strtod (Makefile.am): Likewise.
95949         * modules/c-strtold (Makefile.am): Likewise.
95950         * modules/calloc (Makefile.am): Likewise.
95951         * modules/canon-host (Makefile.am): Likewise.
95952         * modules/canonicalize (Makefile.am): Likewise.
95953         * modules/chdir-long (Makefile.am): Likewise.
95954         * modules/chdir-safer (Makefile.am): Likewise.
95955         * modules/check-version (Makefile.am): Likewise.
95956         * modules/chown (Makefile.am): Likewise.
95957         * modules/cloexec (Makefile.am): Likewise.
95958         * modules/close-stream (Makefile.am): Likewise.
95959         * modules/closeout (Makefile.am): Likewise.
95960         * modules/crc (Makefile.am): Likewise.
95961         * modules/cycle-check (Makefile.am): Likewise.
95962         * modules/des (Makefile.am): Likewise.
95963         * modules/dirfd (Makefile.am): Likewise.
95964         * modules/dirname (Makefile.am): Likewise.
95965         * modules/dup2 (Makefile.am): Likewise.
95966         * modules/euidaccess (Makefile.am): Likewise.
95967         * modules/exclude (Makefile.am): Likewise.
95968         * modules/exitfail (Makefile.am): Likewise.
95969         * modules/fcntl-safer (Makefile.am): Likewise.
95970         * modules/file-type (Makefile.am): Likewise.
95971         * modules/fileblocks (Makefile.am): Likewise.
95972         * modules/filemode (Makefile.am): Likewise.
95973         * modules/filenamecat (Makefile.am): Likewise.
95974         * modules/fnmatch (Makefile.am): Likewise.
95975         * modules/fopen-safer (Makefile.am): Likewise.
95976         * modules/fpending (Makefile.am): Likewise.
95977         * modules/fprintftime (Makefile.am): Likewise.
95978         * modules/free (Makefile.am): Likewise.
95979         * modules/fsusage (Makefile.am): Likewise.
95980         * modules/ftruncate (Makefile.am): Likewise.
95981         * modules/fts (Makefile.am): Likewise.
95982         * modules/gc (Makefile.am): Likewise.
95983         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95984         * modules/getaddrinfo (Makefile.am): Likewise.
95985         * modules/getcwd (Makefile.am): Likewise.
95986         * modules/getdelim (Makefile.am): Likewise.
95987         * modules/getdomainname (Makefile.am): Likewise.
95988         * modules/getgroups (Makefile.am): Likewise.
95989         * modules/gethostname (Makefile.am): Likewise.
95990         * modules/gethrxtime (Makefile.am): Likewise.
95991         * modules/getline (Makefile.am): Likewise.
95992         * modules/getloadavg (Makefile.am): Likewise.
95993         * modules/getlogin_r (Makefile.am): Likewise.
95994         * modules/getopt (Makefile.am): Likewise.
95995         * modules/getpass (Makefile.am): Likewise.
95996         * modules/getpass-gnu (Makefile.am): Likewise.
95997         * modules/getsubopt (Makefile.am): Likewise.
95998         * modules/gettime (Makefile.am): Likewise.
95999         * modules/gettimeofday (Makefile.am): Likewise.
96000         * modules/getugroups (Makefile.am): Likewise.
96001         * modules/getusershell (Makefile.am): Likewise.
96002         * modules/glob (Makefile.am): Likewise.
96003         * modules/group-member (Makefile.am): Likewise.
96004         * modules/hard-locale (Makefile.am): Likewise.
96005         * modules/hash (Makefile.am): Likewise.
96006         * modules/hmac-md5 (Makefile.am): Likewise.
96007         * modules/hmac-sha1 (Makefile.am): Likewise.
96008         * modules/human (Makefile.am): Likewise.
96009         * modules/idcache (Makefile.am): Likewise.
96010         * modules/imaxabs (Makefile.am): Likewise.
96011         * modules/imaxdiv (Makefile.am): Likewise.
96012         * modules/inet_ntop (Makefile.am): Likewise.
96013         * modules/inet_pton (Makefile.am): Likewise.
96014         * modules/inttostr (Makefile.am): Likewise.
96015         * modules/isapipe (Makefile.am): Likewise.
96016         * modules/lchown (Makefile.am): Likewise.
96017         * modules/long-options (Makefile.am): Likewise.
96018         * modules/lstat (Makefile.am): Likewise.
96019         * modules/malloc (Makefile.am): Likewise.
96020         * modules/mathl (Makefile.am): Likewise.
96021         * modules/mbchar (Makefile.am): Likewise.
96022         * modules/md2 (Makefile.am): Likewise.
96023         * modules/md4 (Makefile.am): Likewise.
96024         * modules/md5 (Makefile.am): Likewise.
96025         * modules/memcasecmp (Makefile.am): Likewise.
96026         * modules/memchr (Makefile.am): Likewise.
96027         * modules/memcmp (Makefile.am): Likewise.
96028         * modules/memcoll (Makefile.am): Likewise.
96029         * modules/memcpy (Makefile.am): Likewise.
96030         * modules/memmem (Makefile.am): Likewise.
96031         * modules/memmove (Makefile.am): Likewise.
96032         * modules/mempcpy (Makefile.am): Likewise.
96033         * modules/memrchr (Makefile.am): Likewise.
96034         * modules/memset (Makefile.am): Likewise.
96035         * modules/memxor (Makefile.am): Likewise.
96036         * modules/mkancesdirs (Makefile.am): Likewise.
96037         * modules/mkdir (Makefile.am): Likewise.
96038         * modules/mkdir-p (Makefile.am): Likewise.
96039         * modules/mkdtemp (Makefile.am): Likewise.
96040         * modules/mkstemp (Makefile.am): Likewise.
96041         * modules/mktime (Makefile.am): Likewise.
96042         * modules/modechange (Makefile.am): Likewise.
96043         * modules/mountlist (Makefile.am): Likewise.
96044         * modules/nanosleep (Makefile.am): Likewise.
96045         * modules/openat (Makefile.am): Likewise.
96046         * modules/pagealign_alloc (Makefile.am): Likewise.
96047         * modules/physmem (Makefile.am): Likewise.
96048         * modules/poll (Makefile.am): Likewise.
96049         * modules/posixtm (Makefile.am): Likewise.
96050         * modules/posixver (Makefile.am): Likewise.
96051         * modules/putenv (Makefile.am): Likewise.
96052         * modules/quote (Makefile.am): Likewise.
96053         * modules/quotearg (Makefile.am): Likewise.
96054         * modules/raise (Makefile.am): Likewise.
96055         * modules/read-file (Makefile.am): Likewise.
96056         * modules/readline (Makefile.am): Likewise.
96057         * modules/readlink (Makefile.am): Likewise.
96058         * modules/readtokens (Makefile.am): Likewise.
96059         * modules/readutmp (Makefile.am): Likewise.
96060         * modules/realloc (Makefile.am): Likewise.
96061         * modules/regex (Makefile.am): Likewise.
96062         * modules/rename (Makefile.am): Likewise.
96063         * modules/rename-dest-slash (Makefile.am): Likewise.
96064         * modules/rijndael (Makefile.am): Likewise.
96065         * modules/rmdir (Makefile.am): Likewise.
96066         * modules/rpmatch (Makefile.am): Likewise.
96067         * modules/safe-read (Makefile.am): Likewise.
96068         * modules/safe-write (Makefile.am): Likewise.
96069         * modules/same (Makefile.am): Likewise.
96070         * modules/save-cwd (Makefile.am): Likewise.
96071         * modules/savedir (Makefile.am): Likewise.
96072         * modules/setenv (Makefile.am): Likewise.
96073         * modules/settime (Makefile.am): Likewise.
96074         * modules/sha1 (Makefile.am): Likewise.
96075         * modules/sig2str (Makefile.am): Likewise.
96076         * modules/snprintf (Makefile.am): Likewise.
96077         * modules/stdlib-safer (Makefile.am): Likewise.
96078         * modules/stpcpy (Makefile.am): Likewise.
96079         * modules/stpncpy (Makefile.am): Likewise.
96080         * modules/strcase (Makefile.am): Likewise.
96081         * modules/strcasestr (Makefile.am): Likewise.
96082         * modules/strchrnul (Makefile.am): Likewise.
96083         * modules/strcspn (Makefile.am): Likewise.
96084         * modules/strdup (Makefile.am): Likewise.
96085         * modules/strerror (Makefile.am): Likewise.
96086         * modules/strftime (Makefile.am): Likewise.
96087         * modules/strndup (Makefile.am): Likewise.
96088         * modules/strnlen (Makefile.am): Likewise.
96089         * modules/strpbrk (Makefile.am): Likewise.
96090         * modules/strsep (Makefile.am): Likewise.
96091         * modules/strstr (Makefile.am): Likewise.
96092         * modules/strtod (Makefile.am): Likewise.
96093         * modules/strtoimax (Makefile.am): Likewise.
96094         * modules/strtok_r (Makefile.am): Likewise.
96095         * modules/strtol (Makefile.am): Likewise.
96096         * modules/strtoll (Makefile.am): Likewise.
96097         * modules/strtoul (Makefile.am): Likewise.
96098         * modules/strtoull (Makefile.am): Likewise.
96099         * modules/strtoumax (Makefile.am): Likewise.
96100         * modules/strverscmp (Makefile.am): Likewise.
96101         * modules/time_r (Makefile.am): Likewise.
96102         * modules/timegm (Makefile.am): Likewise.
96103         * modules/tmpfile-safer (Makefile.am): Likewise.
96104         * modules/unistd-safer (Makefile.am): Likewise.
96105         * modules/unlinkdir (Makefile.am): Likewise.
96106         * modules/userspec (Makefile.am): Likewise.
96107         * modules/utime (Makefile.am): Likewise.
96108         * modules/utimecmp (Makefile.am): Likewise.
96109         * modules/utimens (Makefile.am): Likewise.
96110         * modules/vasnprintf (Makefile.am): Likewise.
96111         * modules/vasprintf (Makefile.am): Likewise.
96112         * modules/vsnprintf (Makefile.am): Likewise.
96113         * modules/xalloc (Makefile.am): Likewise.
96114         * modules/xgetcwd (Makefile.am): Likewise.
96115         * modules/xnanosleep (Makefile.am): Likewise.
96116         * modules/xreadlink (Makefile.am): Likewise.
96117         * modules/xstrtod (Makefile.am): Likewise.
96118         * modules/xstrtol (Makefile.am): Likewise.
96119         * modules/xstrtold (Makefile.am): Likewise.
96120         * modules/yesno (Makefile.am): Likewise.
96122 2006-10-12  Jim Meyering  <jim@meyering.net>
96124         * m4/getloadavg.m4: Revert the change below.
96126         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
96127         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
96128         fail with a symlink, which is what coreutils' ./bootstrap now
96129         creates by default.
96131 2006-10-12  Bruno Haible  <bruno@clisp.org>
96133         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
96134         mingw.
96135         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
96136         MSVC and mingw explicitly.
96138 2006-10-11  Simon Josefsson  <jas@extundo.com>
96139             Bruno Haible  <bruno@clisp.org>
96141         Add support for multiple gnulib-tool invocations in the scope of a
96142         single configure.ac file.
96143         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
96144         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
96145         with the same contents as the _LIBADD variable.
96146         (func_emit_initmacro_start, func_emit_initmacro_end,
96147         func_emit_initmacro_done): New functions.
96148         (func_import, func_create_testdir): Invoke them. Allow the identifiers
96149         gl_LIBOBJS and gl_LTLIBOBJS.
96151 2006-10-11  Bruno Haible  <bruno@clisp.org>
96153         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
96154         (func_create_testdir): Don't create po/Makefile.am, don't invoke
96155         autoreconf. Instead, invoke autopoint explicitly but move back the
96156         *.m4 files from gnulib.
96158 2006-10-11  Bruno Haible  <bruno@clisp.org>
96160         * gnulib-tool (func_usage): Make module names after --create-testdir
96161         optional.
96162         (func_create_testdir): If no module was specified, use nearly all
96163         modules.
96165 2006-10-12  Jim Meyering  <jim@meyering.net>
96167         Big performance improvement for fts-based tools that use FTS_NOSTAT.
96168         Avoid spurious inode-mismatch problems on non-POSIX file systems.
96169         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
96170         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
96171         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
96172         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
96173         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
96174         (fts_set_stat_required): New function.
96175         (fts_open): Defer the calls to fts_stat, if possible or requested.
96176         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
96177         into fts_stat itself.
96178         (fts_read): Perform any required (deferred) fts_stat call.
96179         (fts_build): Likewise, for the directory we're about to open and read.
96180         In the readdir loop, carefully decide whether each entry will require
96181         an eventual call to fts_stat, using dirent.d_type info if available.
96182         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
96183         a command line argument into this function.  Update all callers.
96184         Map a return value of FTS_DOT to FTS_D for a command line argument.
96185         * modules/fts (Depends-on): Add d-type.  Alphabetize.
96186         Thanks to Miklos Szeredi for his tenacity and for the initial
96187         bug report about "find" failing on a FUSE-based file system.
96189         * lib/fts.c (fts_open): Use consistent indentation.
96191 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96193         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
96194         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
96195         reported by Jim Meyering.  All uses of cache variables renamed
96196         to match Autoconf's.
96197         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
96198         the other one.
96200         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
96201         Fix misspelling in diagnostic.
96203 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96205         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
96206         defined.  Problem reported by Matthew Woehlke.
96208         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
96209         Add support for Tandem NonStop R series.
96210         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
96211         Use new macro.
96213         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
96214         (has_trailing_slash): Omit size arg; all callers changed.
96215         Omit 'inline', since it doesn't help performance and we'd
96216         need to configure it.
96217         Don't count //, ///, etc. as having a trailing slash.
96218         As a side effect, this removes a C99ism reported by Matthew Woehlke.
96219         (rpl_rename_dest_slash): On failure, use rename's errno rather
96220         than (in some cases) an incorrect or junk errno.
96221         Simplify code by removing need to compute length; this does
96222         cause it to make two passes instead of one over the file name,
96223         but it's worth it.
96225         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
96226         change, since Autoconf's version may no longer be appropriate now
96227         that we are using CVS Autoconf's version.  Add support for Tandem.
96229 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96230             Bruno Haible  <bruno@clisp.org>
96232         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
96233         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
96234         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
96235         gl_AC_TYPE_LONG_LONG.
96237         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
96238         instead of HAVE_LONG_LONG.
96239         * lib/printf-args.c (printf_fetchargs): Likewise.
96240         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
96241         * lib/vasnprintf.c (VASNPRINTF): Likewise.
96242         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
96243         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
96244         gl_AC_TYPE_LONG_LONG.
96246 2006-10-11  Bruno Haible  <bruno@clisp.org>
96248         * m4/longlong.m4: Add comments.
96249         * m4/ulonglong.m4: Likewise.
96251 2006-10-10  Bruno Haible  <bruno@clisp.org>
96253         Make it possible to #define stpcpy, strdup to aliases.
96254         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
96255         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
96257 2006-10-10  Bruno Haible  <bruno@clisp.org>
96259         Make it possible to #define gcd to an alias.
96260         * lib/gcd.c: Include config.h.
96262 2006-10-10  Bruno Haible  <bruno@clisp.org>
96264         Make it possible to #define c_isascii to an alias.
96265         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
96266         defined. Undefine the macros before defining them, to avoid gcc
96267         warnings.
96268         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
96269         define NO_C_CTYPE_MACROS early.
96271 2006-10-10  Bruno Haible  <bruno@clisp.org>
96273         Make it possible to #define set_program_name to an alias.
96274         * lib/progname.c: Don't undefine set_program_name; instead, undefine
96275         ENABLE_RELOCATABLE early.
96277 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96279         Port to Tandem NSK OSS, which has 64-bit signed int but at most
96280         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
96281         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
96282         More generally, don't assume that 64-bit signed int is available
96283         if unsigned int is, and vice versa.
96284         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
96285         unsigned symbols, not on their signed counterparts.
96286         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
96287         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
96288         (UINT64_C, UINTMAX_C):
96289         Likewise.
96290         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
96291         unsigned counterparts.
96292         (Have_long_long, Unsigned): New macros.
96293         (Int): Renamed from INT.
96294         (strtoimax): Use the new macros.
96295         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96296         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96297         * modules/inttypes (inttypes.h): Substitute
96298         HAVE_UNSIGNED_LONG_LONG_INT.
96299         * modules/stdint (stdint.h): Likewise.
96300         (Files): Add m4/ulonglong.m4.
96302 2006-10-10  Bruno Haible  <bruno@clisp.org>
96304         Fix a gcc -Wshadow warning.
96305         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96306         to 'bucket'.
96307         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96308         gl_linked_indexof_from_to): Likewise.
96309         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96310         Likewise.
96311         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96312         Likewise.
96313         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96314         Reported by Eric Blake.
96316 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96318         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96319         for NetBSD.  Problem reported by Bruno Haible.
96321 2006-10-09  Jim Meyering  <jim@meyering.net>
96323         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96324         Patch from Bruno Haible.
96326 2006-10-09  Jim Meyering  <jim@meyering.net>
96328         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96329         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96330         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96332 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96334         Don't include <config.h> twice; this doesn't work in some cases,
96335         e.g., when config.h has "#define intmax_t long long int" and
96336         we include <config.h>, <inttypes.h>, <config.h> in that order.
96337         Problem reported by Matthew Woehlke in:
96338         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96339         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96340         * lib/fts-cycle.c: Don't include config.h.
96341         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96342         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96343         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96344         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96345         inttypes.h.
96346         * lib/xstrtoumax.c: Likewise.
96347         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96348         __strtol and the like, so that this module is more like its siblings.
96349         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96350         Remove; no longer needed now that we assume gnulib inttypes.h.
96352 2006-10-08  Bruno Haible  <bruno@clisp.org>
96354         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96355         option.
96357 2006-10-07  Jim Meyering  <jim@meyering.net>
96359         * modules/inttypes (inttypes.h): Revert what seems to have been
96360         an inadvertent part of today's change: use "|", not "/" in the
96361         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96363 2006-10-07  Bruno Haible  <bruno@clisp.org>
96365         * modules/sublist: New file.
96367 2006-10-07  Bruno Haible  <bruno@clisp.org>
96369         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96370         * modules/argz (argz.h): Likewise.
96371         * modules/arpa_inet (arpa/inet.h): Likewise.
96372         * modules/byteswap (byteswap.h): Likewise.
96373         * modules/configmake (configmake.h): Likewise.
96374         * modules/fcntl (fcntl.h): Likewise.
96375         * modules/fnmatch (fnmatch.h): Likewise.
96376         * modules/getopt (getopt.h): Likewise.
96377         * modules/glob (glob.h): Likewise.
96378         * modules/inttypes (inttypes.h): Likewise.
96379         * modules/netinet_in (netinet/in.h): Likewise.
96380         * modules/poll (poll.h): Likewise.
96381         * modules/stdbool (stdbool.h): Likewise.
96382         * modules/stdint (stdint.h): Likewise.
96383         * modules/sys_select (sys/select.h): Likewise.
96384         * modules/sys_socket (sys/socket.h): Likewise.
96385         * modules/sys_stat (sys/stat.h): Likewise.
96386         * modules/sysexits (sysexits.h): Likewise.
96387         * modules/unistd (unistd.h): Likewise.
96388         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96389         Add a "DO NOT EDIT" comment to the generated file.
96390         (func_import): Likewise for gnulib-comp.m4.
96392 2006-10-07  Bruno Haible  <bruno@clisp.org>
96394         * lib/gl_sublist.h: New file.
96395         * lib/gl_sublist.c: New file.
96397 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96399         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96400         name (relative to the original working directory) and the file
96401         name component (relative to the temporary working directory).  All
96402         callers changed.
96403         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96404         * lib/mkdir-p.c (make_dir_parents): Likewise.
96405         * lib/mkdir-p.h (make_dir_parents): Likewise.
96407 2006-10-06  Eric Blake  <ebb9@byu.net>
96409         Define several macros for use by the clean-temp module.
96410         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96411         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96412         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96414         * lib/clean-temp.h (close_stream_temp): New declaration.
96415         * lib/clean-temp.c (includes): Pull in headers according to what
96416         other modules are in use.
96417         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96419 2006-10-06  Bruno Haible  <bruno@clisp.org>
96421         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96422         instead of fopen, fwriteerror.
96424 2006-10-06  Bruno Haible  <bruno@clisp.org>
96426         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96427         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96428         int.
96429         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96430         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96431         Return an error indicator.
96432         Suggested by Eric Blake.
96434 2006-10-06  Bruno Haible  <bruno@clisp.org>
96436         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96437         Reported by Eric Blake.
96439 2006-10-06  Bruno Haible  <bruno@clisp.org>
96441         * modules/closeout (Description): Mention stderr too.
96443 2006-10-06  Bruno Haible  <bruno@clisp.org>
96444         and Paul Eggert  <eggert@cs.ucla.edu>
96446         * lib/closeout.c (close_stdout): Also close stderr.
96447         * lib/closeout.h: Update comment.
96449 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96451         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96452         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96453         * lib/dirchownmod.c: Include lchown.h.
96454         * lib/lchown.c: Don't include files that lchown.h now includes.
96455         Don't declare chown, since lchown.h now does that.
96456         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96457         (lchown): Define to rpl_chown if lchown is declared but
96458         does not exist.  Declare using a prototype if lchown is not
96459         declared.  Add a copyright notice.
96460         * lib/mkstemp.h: Include <unistd.h>.
96461         * lib/openat.c: Include lchown.h.
96463         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96464         we now test for that separately.
96465         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96466         rather than O_NOFOLLOW, when testing whether it's possible to
96467         avoid a race condition reliably.
96468         * lib/savewd.c (savewd_chdir): Likewise.
96470         Remove macros that are no longer needed now that stdint.h is
96471         reliable.
96472         * lib/fsusage.c (UINTMAX_MAX): Remove.
96473         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96474         * lib/utimecmp.c (SIZE_MAX): Remove.
96476         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96478         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96479         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96480         O_NOATIME works.
96482 2006-10-05  Bruno Haible  <bruno@clisp.org>
96484         * lib/gl_list.h (gl_sortedlist_search_from_to,
96485         gl_sortedlist_indexof_from_to): New declarations.
96486         (gl_list_implementation): New fields sortedlist_search_from_to,
96487         sortedlist_indexof_from_to.
96488         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96489         inline functions.
96490         * lib/gl_list.c (gl_sortedlist_search_from_to,
96491         gl_sortedlist_indexof_from_to): New functions.
96492         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96493         function.
96494         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96495         (gl_array_sortedlist_search_from_to): New function.
96496         (gl_array_list_implementation): Update.
96497         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96498         function.
96499         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96500         (gl_carray_sortedlist_search_from_to): New function.
96501         (gl_carray_list_implementation): Update.
96502         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96503         gl_linked_sortedlist_indexof_from_to): New functions.
96504         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96505         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96506         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96507         gl_tree_sortedlist_indexof_from_to): New functions.
96508         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96509         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96510         Update.
96511         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96512         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96513         Update.
96515 2006-10-05  Bruno Haible  <bruno@clisp.org>
96517         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96518         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96519         (struct gl_list_implementation): Add fields search_from_to,
96520         indexof_from_to. Remove fields search, indexof.
96521         (gl_list_search): Use the search_from_to method.
96522         (gl_list_search_from, gl_list_search_from_to): New functions.
96523         (gl_list_indexof): Use the indexof_from_to method.
96524         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96525         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96526         (gl_list_search_from, gl_list_search_from_to): New functions.
96527         (gl_list_indexof): Use the indexof_from_to method.
96528         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96529         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96530         gl_array_indexof. Add start_index, end_index arguments.
96531         (gl_array_search_from_to): Renamed from gl_array_search. Add
96532         start_index, end_index arguments.
96533         (gl_array_remove, gl_array_list_implementation): Update.
96534         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96535         gl_carray_indexof. Add start_index, end_index arguments.
96536         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96537         start_index, end_index arguments.
96538         (gl_carray_remove, gl_carray_list_implementation): Update.
96539         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96540         gl_linked_search. Add start_index, end_index arguments.
96541         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96542         start_index, end_index arguments.
96543         (gl_linked_remove): Update.
96544         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96545         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96546         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
96547         field to 'size_t'.
96548         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
96549         gl_tree_search. Add start_index, end_index arguments.
96550         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96551         start_index, end_index arguments.
96552         (gl_tree_remove): Update.
96553         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96554         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96555         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
96556         function.
96557         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
96558         gl_tree_search. Add start_index, end_index arguments.
96559         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96560         start_index, end_index arguments.
96561         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96562         Update.
96563         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96565 2006-10-05  Bruno Haible  <bruno@clisp.org>
96567         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
96569         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
96570         fwriteerror_temp): New declarations.
96571         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
96572         (descriptors): New variable.
96573         (cleanup): First, close the descriptors.
96574         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
96575         fclose_temp, fwriteerror_temp): New functions.
96577 2006-10-04  Jim Meyering  <jim@meyering.net>
96579         * lib/fts.c (fts_open): Tiny comment change.
96581 2006-10-04  Bruno Haible  <bruno@clisp.org>
96583         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
96584         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
96585         gl_LOCK_BODY.
96586         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
96587         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
96588         gl_LOCK_EARLY_BODY.
96589         (gl_LOCK): Require gl_LOCK_BODY.
96591 2006-10-04  Bruno Haible  <bruno@clisp.org>
96593         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
96594         (gl_oset_search_atleast): New declaration.
96595         (struct gl_oset_implementation): Add field 'search_atleast'.
96596         (gl_oset_search_atleast): New inline function.
96597         * lib/gl_oset.c (gl_oset_search_atleast): New function.
96598         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
96599         (gl_array_oset_implementation): Update.
96600         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
96601         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
96602         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
96604 2006-10-04  Bruno Haible  <bruno@clisp.org>
96606         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
96608 2006-10-03  Bruno Haible  <bruno@clisp.org>
96610         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
96611         from gl_avltreehash_list_implementation.
96613 2006-10-03  Bruno Haible  <bruno@clisp.org>
96615         * lib/gl_oset.c (gl_oset_add): Fix return type.
96617 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
96619         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
96621 2006-10-02  Eric Blake  <ebb9@byu.net>
96623         * modules/strnlen (Depends-on): Add extensions.
96625 2006-10-02  Eric Blake  <ebb9@byu.net>
96627         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
96628         definition in 2.60+.
96630 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
96632         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
96633         checks.
96635 2006-10-02  Bruno Haible  <bruno@clisp.org>
96637         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
96638         to the AUTOMAKE_OPTIONS.
96639         Reported by Jim Meyering.
96641 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96643         Work around bug in Solaris 10 /proc file system:
96644         /proc/self/fd/NNN/.. isn't the parent directory of
96645         the directory whose file descriptor is NNN.  This needs to
96646         be worked around at run time, not compile time, since a
96647         program might be built on Solaris 8, where things work, and
96648         run on Solaris 10.
96649         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
96650         to use the following interface instead:
96651         (OPENAT_BUFFER_SIZE): New macro.
96652         (openat_proc_name): New function.
96653         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
96654         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
96655         Likewise.
96656         * lib/openat-proc.c: New file.
96657         * modules/openat (Files): Add lib/openat-proc.c.
96658         (Depends-on): Add same-inode, stdbool.
96659         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
96661 2006-09-29  Bruno Haible  <bruno@clisp.org>
96663         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
96664         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
96665         argument. Set stdout_closed before testing for ferror, not after.
96666         (fwriteerror, fwriteerror_no_ebadf): New functions.
96668 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96670         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
96672 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
96674         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
96675         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
96677 2006-09-28  Jim Meyering  <jim@meyering.net>
96679         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
96680         Include <unistd.h>.
96682 2006-09-28  Bruno Haible  <bruno@clisp.org>
96684         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
96685         * modules/linkedhash-list (Depends-on): Likewise.
96686         * modules/rbtreehash-list (Depends-on): Likewise.
96688 2006-09-28  Bruno Haible  <bruno@clisp.org>
96690         * lib/strndup.h: Simplify the redefinition of strndup.
96691         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
96692         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
96694 2006-09-28  Bruno Haible  <bruno@clisp.org>
96696         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
96697         * lib/gl_linkedhash_list.c: Likewise.
96698         * lib/gl_rbtreehash_list.c: Likewise.
96700 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96702         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
96703         getaddrinfo.
96705         * lib/__fpending.h: Don't include <stdio_ext.h> unless
96706         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
96707         it causes <stdio_ext.h> to cause a compile-time error.
96708         Problem reported by Nelson H. F. Beebe.
96709         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
96710         of HAVE_DECL___PENDING.
96712         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
96713         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
96714         declaration.
96716 2006-09-27  Jim Meyering  <jim@meyering.net>
96718         This file could end up with a definition for a function
96719         named __strndup, rather than rpl_strndup on a system with
96720         incomplete weak_alias support.
96721         * lib/strndup.c (strndup): Rename from __strndup.
96722         Remove #defines that used to map __strndup to strndup.
96723         Don't use K&R prototypes.
96724         Remove LIBC-related code, since this file is not sync'd with glibc.
96725         * lib/strndup.h: Revamp, accordingly.
96726         * m4/strndup.m4: Modernize.
96728 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96730         * modules/savewd (Depends-on): Add 'raise'.
96731         * lib/savewd.c: Include <signal.h>, for 'raise'.
96733 2006-09-26  Jim Meyering  <jim@meyering.net>
96735         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
96736         when we detect Darwin 8.7.0's acl_get_file bug.
96737         Rearrange to perform the new (below) run-test while $LIBS
96738         contains any acl-related library.  Set USE_ACL at the end.
96739         (gl_ACL_GET_FILE): New function.
96741 2006-09-26  Eric Blake  <ebb9@byu.net>
96743         * lib/verror.c: Include <config.h> unconditionally.
96745 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
96747         * modules/clock-time (Maintainer): Add self.
96748         * modules/getlogin_r (Depends-on): Add extensions.
96750 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96752         * modules/clock-time: New module.
96753         * modules/nanosleep (Depends-on): Add clock-time.
96754         * modules/gethrxtime (Depends-on): Likewise.
96755         * modules/gettime (Depends-on): Likewise.
96756         * modules/settime (Depends-on): Likewise.
96758         * modules/fts-lgpl: Depend on openat.
96759         * modules/mkancesdirs: Depend on savewd.
96760         * modules/mkdir-p: Likewise.
96762 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96764         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
96766         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
96767         `gl_have_arbitrary_file_name_length_limit' to
96768         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
96769         actually works between configure runs.
96771 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96772             Bruno Haible  <bruno@clisp.org>
96774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
96776 2006-09-25  Jim Meyering  <jim@meyering.net>
96778         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
96779         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
96781 2006-09-25  Eric Blake  <ebb9@byu.net>
96783         * gnulib-tool (func_import, func_create_testdir): Fix typos in
96784         exec's in 2006-09-18 patch when shuffling fds.
96786 2006-09-25  Bruno Haible  <bruno@clisp.org>
96788         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
96789         Reported by Jim Meyering.
96791 2006-09-24  Jim Meyering  <jim@meyering.net>
96793         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
96794         compare a pointer against a literal "0".  That caused failures with
96795         at least HP-UX's hpcc.
96797 2006-09-22  Simon Josefsson  <jas@extundo.com>
96799         * modules/gc-sha1:
96800         * modules/gc-md4:
96801         * modules/gc-hmac-sha1:
96802         * modules/gc-hmac-md5:
96803         * modules/gc-des:
96804         * modules/gc-arcfour: Distribute more files.
96806 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96808         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
96809         (gl_linked_iterator_from_to): Initialize struct completely.
96810         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
96811         (gl_tree_iterator_from_to): Likewise
96812         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
96813         * lib/gl_array_list.c [lint] (gl_array_iterator)
96814         (gl_array_iterator_from_to): Likewise.
96815         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
96816         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
96817         (gl_carray_iterator_from_to): Likewise.
96819         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
96820         * lib/md4.c (md4_process_block): Remove unused variable.
96821         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
96822         parentheses for clarity.
96824 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96826         * modules/bison-i18n (Depends-on): Add gettext.
96828 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96830         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
96831         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
96832         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
96833         also add missing comma that caused broken test.
96834         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
96835         stdlib.h, for `abort'.
96836         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
96837         variables.
96838         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
96839         include unistd.h if present, for `rmdir'.
96840         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
96841         variables.
96842         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
96843         in the process include standard headers for prototypes.
96844         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
96845         gets declared on GNU/Linux.
96846         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
96847         unistd.h, for `rmdir'.
96848         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
96850         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
96851         always true.
96852         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
96854         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
96856 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96858         * gnulib-tool (func_version): Create output all at once.  This
96859         may help avoid triggering unnecessary SIGPIPEs, and at any
96860         rate it doesn't hurt.
96862 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96863             Bruno Haible  <bruno@clisp.org>
96865         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
96866         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
96867         * m4/signed.m4 (bh_C_SIGNED): Likewise.
96869         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
96870         (gl_FUNC_VASPRINTF): Invoke it.
96872 2006-09-22  Bruno Haible  <bruno@clisp.org>
96874         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
96875         getloadavg.c as first argument.
96877 2006-09-22  Bruno Haible  <bruno@clisp.org>
96879         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
96880         at the beginning of the gl_INIT macro.
96881         * modules/getloadavg (configure.ac): Pass $gl_source_base to
96882         gl_GETLOADAVG.
96884 2006-09-22  Bruno Haible  <bruno@clisp.org>
96886         * gnulib-tool (func_create_megatestdir): Don't include the config-h
96887         module.
96888         Suggested by Ralf Wildenhues.
96890 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
96892         Import this patch from libc:
96894         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
96896         * lib/regex_internal.c (re_string_reconstruct): Handle
96897         offset < pstr->valid_raw_len && pstr->offsets_needed case.
96898         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
96899         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
96900         re_string_context_at.
96902         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
96903         now requires it.
96904         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
96905         gl_REGEX now does it for us.
96906         (gl_REGEX): Add test taken from
96907         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
96909         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
96910         Check that large offsets work.  Modernize Autoconf usages.
96911         Prefer "yes" to mean a good thing rather than a bad.
96912         Don't put "#define mkstemp" in config.h, as this might interfere
96913         with standard system headers that "#define mkstemp mkstemp64".
96915         * modules/mkstemp (Depends-on): Add extensions, so that
96916         mkstemp is visible on some platforms.
96917         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
96918         (Include): Change to "mkstemp.h" from <stdlib.h>.
96919         (Files): Add mkstemp.h.
96921         * lib/mkstemp.h: New file, since some standard headers
96922         #define mkstemp.
96923         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
96924         Include "mkstemp.h".
96925         Make the _LIBC code resemble glibc original more,
96926         e.g., use K&R style.
96927         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
96928         (mkstemp): Remove, since mkstemp.h does this for us.
96929         * lib/stdlib--.h: Include mkstemp.h.
96931         Import this patch from libc:
96933         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96935         * lib/tempname.c (__gen_tempname): Change attempts_min
96936         into a macro.  Use preprocessor to decide how to initialize
96937         attempts [Coverity CID 67].
96939 2006-09-20  Bruno Haible  <bruno@clisp.org>
96941         * lib/mkdtemp.c: Import from libc.
96942         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96943                 * sysdeps/posix/tempname.c (__gen_tempname): Change
96944                 attempts_min into a macro.  Use preprocessor to decide how to
96945                 initialize attempts [Coverity CID 67].
96946         2001-11-27  Paul Eggert  <eggert@twinsun.com>
96947                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
96948                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
96950 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96952         * gnulib-tool (func_exit): New function, to allow to pass the
96953         exit status portably through the trap.  Use everywhere.
96954         (--help, --version): Signal a write error.
96955         (trap): catch SIGPIPE, for write errors.
96956         Exit at the end of the trap, with the correct exit status.
96958 2006-09-19  Karl Berry  <karl@gnu.org>
96960         * doc/gnulib.texi: note about the license texinfo files.
96962 2006-09-19  Eric Blake  <ebb9@byu.net>
96964         * gnulib-tool: Avoid space-tab.
96966 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96968         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
96969         that prevented coreutils 6.1 from building.  Problem reported
96970         by Petter Reinholdtsen.
96972 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96974         * gnulib-tool (avoidlist): Fix typo that broke options like
96975         --avoid=lock that are used by coreutils bootstrap.
96977 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
96979         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
96980         more systematically.
96982 2006-09-18  Jim Meyering  <jim@meyering.net>
96984         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
96986 2006-09-18  Bruno Haible  <bruno@clisp.org>
96988         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
96990 2006-09-18  Bruno Haible  <bruno@clisp.org>
96992         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
96993         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
96994         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
96995         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
96996         * m4/gettext.m4: Require autoconf >= 2.52.
96997         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
96998         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
96999         of gl_cv_header_inttypes_h.
97001 2006-09-18  Bruno Haible  <bruno@clisp.org>
97003         * lib/javaversion.c: Include configmake.h.
97005 2006-09-18  Bruno Haible  <bruno@clisp.org>
97007         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
97008         avoid that the while loops be executed in a subshell.
97010 2006-09-18  Bruno Haible  <bruno@clisp.org>
97012         * MODULES.html.sh (func_module): Break long lines.
97013         Suggested by Bruce Korb <bkorb@gnu.org>.
97015 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97017         Speed up by a factor of 1.12.
97018         * gnulib-tool (nl): New variable.
97019         (func_import): Rewrite include directive extraction to only read each
97020         directive once.
97022 2006-09-17  Bruno Haible  <bruno@clisp.org>
97024         * modules/javaversion (Makefile.am): Remove DEFS setting.
97025         (Depends-on): Add configmake, for PKGDATADIR definition.
97027 2006-09-17  Bruno Haible  <bruno@clisp.org>
97029         * gnulib-tool (func_create_testdir): Rewrite all files at once.
97031 2006-09-17  Bruno Haible  <bruno@clisp.org>
97033         * gnulib-tool (func_append): New function, stolen from libtool.m4.
97034         (func_modules_transitive_closure, func_modules_add_dummy,
97035         func_modules_to_filelist, func_import, func_create_testdir,
97036         func_create_megatestdir, ...): Use it wherever possible.
97037         Suggested by Ralf Wildenhues.
97039 2006-09-16  Karl Berry  <karl@gnu.org>
97041         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
97042         to avoid sectioning errors.
97043         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
97044         [ifinfo]: blank line after @center-ed titles.
97045         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
97046         Spell FSF address consistently with others.
97047         (These changes approved by rms.)
97049 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97051         Speed up by a factor of 1.61.
97052         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
97053         already checked module names again.
97055 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97057         Speed up by a factor of 1.13.
97058         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
97059         for new_files, and the input to func_add_or_update.
97061 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97063         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
97064         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
97066 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97068         * modules/mkancesdirs (Depends-on): Add fcntl.
97069         * modules/savewd: New file.
97070         * MODULES.html.sh (File system functions): Add savewd.
97072         * modules/configmake (Makefile.am): Add support for the
97073         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
97075 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97077         * m4/savewd.m4: New file.
97079 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97081         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
97082         (dirchownmod): New arg FD.  All callers changed.
97083         Use FD rather than opening the directory ourself, as opening is
97084         now the caller's responsibility.
97085         * lib/dirchownmod.h: Likewise.
97086         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
97087         hosts that require <sys/types.h> before <sys/stat.h>.  Include
97088         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
97089         (test_dir): Remove.
97090         (mkancesdirs): Return length of prefix of FILE that has already
97091         been made, or -2 if there is a child doing the work.  Redo
97092         algorithm so that it is O(N) rather than O(N**2).  Optimize away
97093         ".", and treat ".." specially since it might stray back into
97094         already-created areas.  Use a subprocess if necessary.  New arg
97095         WD; all users changed.  MAKE_DIR function should now return 1
97096         if it creates a directory that is not readable.  Return -2 if
97097         a child process is spun off.
97098         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
97099         Adjust signature to match code.
97100         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
97101         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
97102         all users changed.
97103         * lib/savewd.c, lib/savewd.h: New files.
97105 2006-09-15  Jim Meyering  <jim@meyering.net>
97107         * modules/rename-dest-slash: New module.
97108         * MODULES.html.sh (posix_compat): Add it here.
97110         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
97112 2006-09-15  Jim Meyering  <jim@meyering.net>
97114         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
97115         file.
97117         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
97119 2006-09-15  Jim Meyering  <jim@meyering.net>
97121         * lib/rename-dest-slash.c (has_trailing_slash): Use
97122         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
97123         (rpl_rename_dest_slash): Perform the cheaper trailing slash
97124         test before testing whether SRC is a directory.
97125         Suggestions from Bruno Haible.
97127         Avoid a warning about an unused variable.
97128         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
97129         into the #ifdef block where it's used.
97131         * lib/rename-dest-slash.c: New file.
97133 2006-09-14  Bruno Haible  <bruno@clisp.org>
97135         * lib/allocsa.c: Include <config.h> unconditionally.
97136         * lib/asnprintf.c: Likewise.
97137         * lib/asprintf.c: Likewise.
97138         * lib/c-strcasecmp.c: Likewise.
97139         * lib/c-strcasestr.c: Likewise.
97140         * lib/c-strncasecmp.c: Likewise.
97141         * lib/c-strstr.c: Likewise.
97142         * lib/classpath.c: Likewise.
97143         * lib/clean-temp.c: Likewise.
97144         * lib/concatpath.c: Likewise.
97145         * lib/copy-file.c: Likewise.
97146         * lib/csharpcomp.c: Likewise.
97147         * lib/csharpexec.c: Likewise.
97148         * lib/execute.c: Likewise.
97149         * lib/fatal-signal.c: Likewise.
97150         * lib/findprog.c: Likewise.
97151         * lib/fwriteerror.c: Likewise.
97152         * lib/gl_array_list.c: Likewise.
97153         * lib/gl_array_oset.c: Likewise.
97154         * lib/gl_avltree_list.c: Likewise.
97155         * lib/gl_avltree_oset.c: Likewise.
97156         * lib/gl_avltreehash_list.c: Likewise.
97157         * lib/gl_carray_list.c: Likewise.
97158         * lib/gl_linked_list.c: Likewise.
97159         * lib/gl_linkedhash_list.c: Likewise.
97160         * lib/gl_list.c: Likewise.
97161         * lib/gl_oset.c: Likewise.
97162         * lib/gl_rbtree_list.c: Likewise.
97163         * lib/gl_rbtree_oset.c: Likewise.
97164         * lib/gl_rbtreehash_list.c: Likewise.
97165         * lib/imaxabs.c: Likewise.
97166         * lib/imaxdiv.c: Likewise.
97167         * lib/javacomp.c: Likewise.
97168         * lib/javaexec.c: Likewise.
97169         * lib/javaversion.c: Likewise.
97170         * lib/linebreak.c: Likewise.
97171         * lib/localcharset.c: Likewise.
97172         * lib/lock.c: Likewise.
97173         * lib/mbchar.c: Likewise.
97174         * lib/mbswidth.c: Likewise.
97175         * lib/mkdtemp.c: Likewise.
97176         * lib/pipe.c: Likewise.
97177         * lib/printf-args.c: Likewise.
97178         * lib/printf-parse.c: Likewise.
97179         * lib/progname.c: Likewise.
97180         * lib/progreloc.c: Likewise.
97181         * lib/readlink.c: Likewise.
97182         * lib/sh-quote.c: Likewise.
97183         * lib/stpcpy.c: Likewise.
97184         * lib/stpncpy.c: Likewise.
97185         * lib/strcasecmp.c: Likewise.
97186         * lib/strcasestr.c: Likewise.
97187         * lib/strcspn.c: Likewise.
97188         * lib/striconv.c: Likewise.
97189         * lib/strncasecmp.c: Likewise.
97190         * lib/strnlen1.c: Likewise.
97191         * lib/strstr.c: Likewise.
97192         * lib/strtok_r.c: Likewise.
97193         * lib/tls.c: Likewise.
97194         * lib/tmpdir.c: Likewise.
97195         * lib/unicodeio.c: Likewise.
97196         * lib/unsetenv.c: Likewise.
97197         * lib/vasnprintf.c: Likewise.
97198         * lib/vasprintf.c: Likewise.
97199         * lib/wait-process.c: Likewise.
97200         * lib/xallocsa.c: Likewise.
97201         * lib/xsetenv.c: Likewise.
97202         * lib/xstriconv.c: Likewise.
97204 2006-09-13  Simon Josefsson  <jas@extundo.com>
97206         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
97207         that internally, suggested by Ralf Wildenhues
97208         <Ralf.Wildenhues@gmx.de>.
97210 2006-09-13  Simon Josefsson  <jas@extundo.com>
97212         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
97213         @LIBOBJS@.
97214         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97216 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
97218         * lib/_fpending.c: Include <config.h> unconditionally, since we no
97219         longer worry about uses that don't define HAVE_CONFIG_H.
97220         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
97221         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
97222         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
97223         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
97224         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
97225         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
97226         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
97227         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
97228         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
97229         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
97230         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
97231         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
97232         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
97233         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
97234         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
97235         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
97236         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
97237         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
97238         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
97239         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
97240         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
97241         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
97242         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
97243         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
97244         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
97245         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
97246         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
97247         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
97248         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
97249         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
97250         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
97251         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
97252         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
97253         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
97254         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
97255         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
97256         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
97257         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
97258         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
97259         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
97260         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
97261         Likewise.
97263 2006-09-13  Eric Blake  <ebb9@byu.net>
97265         * lib/getopt.c: Fix typo in last commit.
97267 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97269         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
97270         dgettext.
97272 2006-09-12  Jim Meyering  <jim@meyering.net>
97274         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
97275         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
97276         Reported by Nelson H. F. Beebe.
97278 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97280         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
97281         program_invocation_name and program_invocation_short_name are
97282         initialized.
97283         * lib/argp-namefrob.h: Move declarations of program_invocation_name
97284         and program_invocation_short_name to argp.h, so they are visible
97285         to user programs.
97286         * lib/argp.h: Likewise
97288 2006-09-10  Bruno Haible  <bruno@clisp.org>
97290         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97291         m4/inttypes_h.m4, m4/uintmax_t.m4.
97293 2006-09-10  Bruno Haible  <bruno@clisp.org>
97295         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97296         gl_AC_TYPE_UINTMAX_T.
97298 2006-09-10  Bruno Haible  <bruno@clisp.org>
97300         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97302 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97304         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97305         convention.  Text proposed by Bruno Haible.
97306         (struct argp_option): Document the use of N_() wrappers.
97308         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97309         '\v', and translate the two parts separately, instead of feeding
97310         the whole string to gettext.  This allows to exclude
97311         '\v' from the strings visible to the translator by writing doc
97312         strings as N_("..") "\v" N_("..").
97314 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97316         * config/srclist.txt: Undo latest change; the bug was fixed.
97318 2006-09-09  Bruno Haible  <bruno@clisp.org>
97320         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97321         assignments if building a library without libtool.
97322         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97323         in func_emit_lib_Makefile_am.
97324         (func_import): When building a static library libfoo.a, arrange to
97325         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97326         (func_create_testdir): Likewise.
97327         * modules/gc (configure.ac, Makefile.am): If building statically,
97328         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97329         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97330         * modules/striconv (configure.ac, Makefile.am): Likewise.
97331         Based on a suggestion by Ralf Wildenhues.
97333 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97335         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97336         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97337         Also:
97339         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97340         Add year_2050_test to catch glibc bug 2821
97341         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97343         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97344         Prefer #ifdef to #if.
97346         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97347         Return from 'main' instead of calling 'exit'.
97349 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97351         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97352         returned the maximum time_t value rather than (time_t) -1.
97353         Problem originally reported by William Bardwell
97354         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97356         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97357         Moved to here ...
97358         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97359         ... from here.
97361 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97363         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97364         2821 is fixed.
97366 2006-09-08  Jim Meyering  <jim@meyering.net>
97368         Don't make generated files read-only.  That would bother too many
97369         people.  However, do retain the ability to work when targets are
97370         read-only: remove the destination and temporary files before writing
97371         them (when generated via sed or echo), or by using the -f option for
97372         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97373         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97374         * modules/byteswap, modules/configmake, modules/fcntl:
97375         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97376         * modules/localcharset, modules/netinet_in, modules/poll:
97377         * modules/stdbool, modules/stdint, modules/sys_select:
97378         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97380 2006-09-08  Jim Meyering  <jim@meyering.net>
97382         Avoid new build failure on FreeBSD 6.0.
97383         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97384         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97385         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97387 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97389         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97391 2006-09-07  Jim Meyering  <jim@meyering.net>
97393         Fix global typo in last change: use chmod u-w, not chmod u-x.
97394         Spotted by Paul Eggert and Bruce Korb.
97395         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97396         * modules/byteswap, modules/configmake, modules/fcntl:
97397         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97398         * modules/localcharset, modules/netinet_in, modules/poll:
97399         * modules/stdbool, modules/stdint, modules/sys_select:
97400         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97402 2006-09-06  Jim Meyering  <jim@meyering.net>
97404         Make generated files be read-only.
97405         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97406         Ensure that each generated file is now read-only.
97407         * modules/argz: Likewise.
97408         * modules/arpa_inet: Likewise.
97409         * modules/byteswap: Likewise.
97410         * modules/configmake: Likewise.
97411         * modules/fcntl: Likewise.
97412         * modules/fnmatch: Likewise.
97413         * modules/getopt: Likewise.
97414         * modules/glob: Likewise.
97415         * modules/inttypes: Likewise.
97416         * modules/netinet_in: Likewise.
97417         * modules/poll: Likewise.
97418         * modules/stdbool: Likewise.
97419         * modules/stdint: Likewise.
97420         * modules/sys_select: Likewise.
97421         * modules/sys_socket: Likewise.
97422         * modules/sys_stat: Likewise.
97423         * modules/sysexits: Likewise.
97424         * modules/localcharset: Same as above, but continue using temporary
97425         file named "t-$@" (why different?) rather than the "$@-t" used
97426         everywhere else.
97428         * modules/sysexits (Makefile.am): Replace literal occurrences
97429         of "sysexit.h" more readable, and more consistent, "$@".
97431 2006-09-06  Bruno Haible  <bruno@clisp.org>
97433         * modules/striconv: New file.
97434         * modules/xstriconv: New file.
97435         * MODULES.html.sh (Internationalization functions): Add striconv,
97436         xstriconv.
97438 2006-09-06  Bruno Haible  <bruno@clisp.org>
97440         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97441         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97442         not using libtool correctly.
97444 2006-09-06  Bruno Haible  <bruno@clisp.org>
97446         * lib/striconv.h: New file.
97447         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97448         iconvstring.c.
97449         * lib/xstriconv.h: New file.
97450         * lib/xstriconv.c: New file.
97452 2006-09-06  Bruno Haible  <bruno@clisp.org>
97454         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97455         lib_..._LDFLAGS.
97457 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97459         * lib/argz_.h: Sync from Libtool.
97461         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97462                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97464         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97466 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97468         * modules/trim: New file.
97470 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97472         * lib/trim.h: New file.
97473         * lib/trim.c: New file.
97475 2006-09-05  Bruno Haible  <bruno@clisp.org>
97477         * MODULES.html.sh (String handling): Add trim.
97479 2006-09-04  Karl Berry  <karl@gnu.org>
97481         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97482         until next release.
97484 2006-09-03  Bruno Haible  <bruno@clisp.org>
97486         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97487         correctly.
97489 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97491         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97492         not gl_GETLOADAVG.  Omit unneeded semicolons.
97493         Problems reported by Ralf Wildenhues in
97494         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97495         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97496         at the end, which is the usual gnulib style.
97498         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97499         of doing all the work ourselves.
97500         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97501         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97503 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97505         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97506         Problem reported by Ralf Wildenhues in
97507         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97509         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97510         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97512 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97514         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97515         yesterday's patch by changing test -n to test -z.
97517 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97519         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97520         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97521         the former is now obsolescent.
97523         * modules/chdir-long (Depends-on): Add fcntl.
97525 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97527         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97528         obsolescent, and programs should use gnulib instead.
97529         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97530         but with prefixes changed.
97532 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97534         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97535         or stdbool.h, because they might not exist while configuring.
97537         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97538         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97539         does that for us.
97540         (O_DIRECTORY): Remove.
97542 2006-08-31  Eric Blake  <ebb9@byu.net>
97544         * gnulib-tool: Don't let emacs change spaces to TAB.
97546 2006-08-31  Bruno Haible  <bruno@clisp.org>
97548         * gnulib-tool: When calling func_import more than once, do it in a
97549         subshell.
97550         Reported by Eric Blake <ebb9@byu.net>.
97552 2006-08-31  Bruno Haible  <bruno@clisp.org>
97554         * gnulib-tool (nl): Remove variable.
97555         (sed_transform_lib_file): Use more robust test for config-h module.
97556         (func_import): Fix typo in 2006-08-25 patch.
97558 2006-08-31  Bruno Haible  <bruno@clisp.org>
97560         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
97561         specified, augment Makefile.am variables instead of assigning them.
97563 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97565         Work around a bug in both the Linux and SunOS 64-bit kernels:
97566         nanosleep mishandles sleeps for longer than 2**31 seconds.
97567         Problem reported by Frank v Waveren in
97568         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97569         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
97570         Check for nanosleep bug.
97571         (LIB_NANOSLEEP): Append clock_gettime library if needed.
97573 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97575         Work around a bug in both the Linux and SunOS 64-bit kernels:
97576         nanosleep mishandles sleeps for longer than 2**31 seconds.
97577         Problem reported by Frank v Waveren in
97578         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97579         * lib/nanosleep.c (BILLION): New constant.
97580         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
97581         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
97582         implementation.
97584 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97586         * modules/nanosleep (Depends-on): Add gettime.
97588 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97589         and Simon Josefsson  <jas@extundo.com>
97590         and Oskar Liljeblad  <oskar@osk.mine.nu>
97592         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
97593         * gnulib-tool (func_import): New license type 'unmodifiable license
97594         text'.
97595         * modules/fdl: Use it.  Longer description.
97596         * module/gpl, module/lgpl: New files.
97598 2006-08-30  Jim Meyering  <jim@meyering.net>
97600         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
97601         shadowing the parameter.
97603 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97605         Sync from Libtool:
97607         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97609         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
97610         sharing with gnulib.  Report by Eric Blake.
97612 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97614         * modules/isapipe: New file.
97615         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
97617 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97619         * modules/configmake (Makefile.am): Add a comment, and omit
97620         the CONFIGMAKE_ prefix from generated macro names.  Suggested
97621         by Bruno Haible.
97623 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97625         * m4/isapipe.m4: New file.
97627 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97629         * lib/isapipe.c, lib/isapipe.h: New files.
97631 2006-08-29  Jim Meyering  <jim@meyering.net>
97633         * modules/configmake (Makefile.am): Make configmake.h depend on
97634         Makefile.  Otherwise, a stale configmake.h could hang around.
97636 2006-08-29  Eric Blake  <ebb9@byu.net>
97638         * lib/error.c (error_at_line, print_errno_message): Match libc, after
97639         resolution of upstream bug 3044.
97641 2006-08-29  Bruno Haible  <bruno@clisp.org>
97643         * modules/localcharset (Depends-on): Add configmake.
97644         (Makefile.am): Remove setting of LIBDIR through DEFS.
97646 2006-08-29  Bruno Haible  <bruno@clisp.org>
97648         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
97649         defined.
97651 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97653         * modules/fcntl: New file.
97654         * modules/chdir-safer (Depends-on): Add fcntl.
97655         * modules/fts: Likewise.
97656         * modules/mkdir-p: Likewise.
97658         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
97659         This undoes the most recent change, since we're now addressing the
97660         problem in a different way.
97662         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
97663         into output, since the output might be called Makefile.am even
97664         if $makefile_name is something different.
97665         (func_import): Use $makefile_am rather than
97666         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
97667         empty.
97669         * modules/inttypes (Files): Add m4/inttypes-h.m4.
97671 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97673         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
97674         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
97675         recent change to stdint.m4, since we're now addressing the problem in a
97676         different way.
97678 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97680         * m4/fcntl_h.m4: New file.
97682 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97684         * lib/fcntl_.h: New file.
97685         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
97686         the fcntl module.
97687         * lib/dirchownmod.c: Likewise.
97688         * lib/fts.c: Likewise.
97690         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
97691         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
97692         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
97693         just before including <inttypes.h>, to avoid circular inclusion.
97695 2006-08-28  Jim Meyering  <jim@meyering.net>
97697         * doc/visibility.texi: Actually read and correct the grammar of the
97698         sentence affected by yesterday's change.
97700 2006-08-28  Eric Blake  <ebb9@byu.net>
97702         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
97703         needs wrapper.
97705 2006-08-28  Eric Blake  <ebb9@byu.net>
97707         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
97709 2006-08-28  Eric Blake  <ebb9@byu.net>
97711         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
97713 2006-08-28  Bruno Haible  <bruno@clisp.org>
97715         * modules/c-strstr: New file, from GNU gettext.
97716         * MODULES.html.sh (String handling): Add c-strstr.
97718 2006-08-28  Bruno Haible  <bruno@clisp.org>
97720         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
97721         macros.
97722         Reported by Eric Blake.
97724 2006-08-28  Bruno Haible  <bruno@clisp.org>
97726         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
97727         (VASNPRINTF): Return a string of length > INT_MAX without failing.
97728         * lib/vasprintf.c: Include errno.h, limits.h.
97729         (EOVERFLOW): New fallback definition.
97730         (vasprintf): Test here whether the string length is > INT_MAX.
97731         * lib/vsnprintf.c: Include errno.h, limits.h.
97732         (EOVERFLOW): New fallback definition.
97733         (vsnprintf): Fix bug when generated string was too long for the buffer.
97734         Test here whether the string length is > INT_MAX.
97736 2006-08-28  Bruno Haible  <bruno@clisp.org>
97738         * lib/inttypes_.h (SCNX*): Remove definitions.
97739         Reported by Eric Blake.
97741 2006-08-28  Bruno Haible  <bruno@clisp.org>
97743         * lib/c-strstr.h: New file, from GNU gettext.
97744         * lib/c-strstr.c: New file, from GNU gettext.
97746 2006-08-28  Bruno Haible  <bruno@clisp.org>
97748         * gnulib-tool: Reorder some statements.
97750 2006-08-28  Bruno Haible  <bruno@clisp.org>
97752         * gnulib-tool: New option --makefile-name.
97753         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
97754         $makefile_name.
97755         (func_import): Write $makefile_name to the cache file, and read it from
97756         there unless explicitly specified. Use $makefile_name as file name
97757         instead of Makefile.am. Adjust the recommendations accordingly.
97759 2006-08-28  Bruno Haible  <bruno@clisp.org>
97761         * gnulib-tool (func_verify_module): Check against misapplying patch.
97763 2006-08-28  Bruno Haible  <bruno@clisp.org>
97765         * gnulib-tool (func_relativize, func_relconcat): New functions.
97766         Give an error if --local-dir is given with --update.
97767         Remove trailing slashes from $local_gnulib_dir.
97768         (func_import): Store the relativized $local_gnulib_dir in
97769         gnulib-cache.m4, and read it from there if not specified explicitly.
97771 2006-08-28  Bruno Haible  <bruno@clisp.org>
97773         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
97774         is the current directory. Respect also $local_gnulib_dir.
97776 2006-08-28  Bruno Haible  <bruno@clisp.org>
97777             Simon Josefsson  <jas@extundo.com>
97779         BeOS portability.
97780         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
97782 2006-08-27  Jim Meyering  <jim@meyering.net>
97784         * doc/visibility.texi: Remove duplicate word: "pointer".
97786 2006-08-26  Bruno Haible  <bruno@clisp.org>
97788         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
97789         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
97790         (Makefile.am): Create inttypes.h from inttypes_.h.
97791         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
97793         * modules/imaxabs: New file.
97795         * modules/imaxdiv: New file.
97797 2006-08-26  Bruno Haible  <bruno@clisp.org>
97799         * m4/inttypes.m4: New file.
97800         * m4/_inttypes_h.m4: Remove file.
97801         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
97802         PRI_MACROS_BROKEN.
97803         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
97805         * m4/imaxabs.m4: New file.
97807         * m4/imaxdiv.m4: New file.
97809 2006-08-26  Bruno Haible  <bruno@clisp.org>
97811         * lib/inttypes_.h: New file.
97812         * lib/inttypes.h: Remove file.
97813         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
97815         * lib/imaxabs.c: New file.
97817         * lib/imaxdiv.c: New file.
97819 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97821         New config-h module, so that "make" output needn't be cluttered
97822         by -DHAVE_CONFIG_H.
97823         * MODULES.html.sh (Support for building libraries and executables):
97824         Add config-h.
97825         * modules/config-h: New file.
97826         * gnulib-tool (nl, sed_transform_lib_file): New vars.
97827         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
97828         the config-h module is used.
97830         New configmake module, so that "make" output needn't be cluttered
97831         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
97832         * MODULES.html.sh (Support for building libraries and executables):
97833         Add configmake.
97834         * modules/configmake: New file.
97836 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97838         * m4/config-h.m4: New file.
97840 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97842         * config/srclist.txt: Add elisp-comp.
97844 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97846         * MODULES.html.sh (Support for building libraries and executables):
97847         Add elisp-comp.
97848         * build-aux/elisp-comp: New file.
97849         * modules/elisp-comp: New file.
97851 2006-08-24  Bruno Haible  <bruno@clisp.org>
97853         * gnulib-tool (func_create_testdir): Use non-default values of
97854         sourcebase and m4base.
97856 2006-08-24  Bruno Haible  <bruno@clisp.org>
97858         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
97859         HTML structure.
97861 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97863         * modules/openat (Depends-on): Add lchown.
97865 2006-08-23  Bruno Haible  <bruno@clisp.org>
97867         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
97868         of gl_LOCK_EARLY instead of gl_LOCK.
97870 2006-08-23  Bruno Haible  <bruno@clisp.org>
97872         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
97873         on OSF/1 to no.
97874         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
97876 2006-08-23  Bruno Haible  <bruno@clisp.org>
97878         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
97879         as unusable.
97881         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
97882         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
97883         (gl_LOCK): New macro.
97885 2006-08-22  Simon Josefsson  <jas@extundo.com>
97887         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
97888         to md5 module.
97890 2006-08-22  Simon Josefsson  <jas@extundo.com>
97892         * MODULES.html.sh: Add "Support for maintaining and release
97893         projects".
97895         * build-aux/gnupload: New file, from coreutils.
97897 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97899         Avoid the need for AC_LIBSOURCES in m4 macros.
97900         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
97901         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
97902         * modules/check-version (EXTRA_DIST): Add check-version.h.
97903         * modules/crc (EXTRA_DIST): Add crc.h.
97904         * modules/des (EXTRA_DIST): Add des.h.
97905         * modules/gc (EXTRA_DIST): Add gc.h.
97906         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
97907         * modules/getline (EXTRA_DIST): Add getline.h.
97908         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
97909         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
97910         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
97911         * modules/md2 (EXTRA_DIST): Add md2.h.
97912         * modules/md4 (EXTRA_DIST): Add md4.h.
97913         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
97914         * modules/read-file (EXTRA_DIST): Add read-file.h.
97915         * modules/readline (EXTRA_DIST): Add readline.h.
97916         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
97917         rijndael-api-fst.h.
97919 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97921         * m4/rijndael.m4 (gl_ARCFOUR):
97922         * m4/arctwo.m4 (gl_ARCTWO):
97923         * m4/check-version.m4 (gl_CHECK_VERSION):
97924         * m4/crc.m4 (gl_CRC):
97925         * m4/des.m4 (gl_DES):
97926         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
97927         * m4/gc.m4 (gl_GC):
97928         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
97929         * m4/getline.m4 (gl_FUNC_GETLINE):
97930         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
97931         * m4/hmac-md5.m4 (gl_HMAC_MD5):
97932         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
97933         * m4/md2.m4 (gl_MD2):
97934         * m4/md4.m4 (gl_MD4):
97935         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
97936         * m4/read-file.m4 (gl_FUNC_READ_FILE):
97937         * m4/readline.m4 (gl_FUNC_READLINE):
97938         * m4/rijndael.m4 (gl_RIJNDAEL):
97939         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
97940         to get the necessary .h files and whatnot.
97942 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97944         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
97945         gnulib rather than the other way around.
97946         * config/srclistvars.sh (COREUTILS): Remove.
97948 2006-08-22  Jim Meyering  <jim@meyering.net>
97950         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
97952         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
97954 2006-08-22  Eric Blake  <ebb9@byu.net>
97956         * modules/regexprops-generic: New file.
97957         * MODULES.html.sh (Support for building documentation): List it.
97959 2006-08-22  Eric Blake  <ebb9@byu.net>
97961         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
97962         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
97963         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
97964         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
97966 2006-08-22  Bruno Haible  <bruno@clisp.org>
97968         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
97969         and lib_LTLIBRARIES like the other lib_* variables.
97971 2006-08-22  Bruno Haible  <bruno@clisp.org>
97973         * build-aux/x-to-1.in: New file, from GNU gettext.
97975 2006-08-22  Bruno Haible  <bruno@clisp.org>
97977         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
97978         <utmpx.h> exists.
97980 2006-08-22  Bruno Haible  <bruno@clisp.org>
97982         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
97983         <utmpx.h> exists.
97985 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97987         BeOS portability.
97988         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
97989         exist.
97990         Problem reported by Bruno Haible.
97992 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97994         Avoid the need for AC_LIBSOURCES in m4 macros.
97995         * modules/acl (EXTRA_DIST): Add acl.h.
97996         * modules/argmatch (Files): Add m4/argmatch.m4.
97997         (configure.ac): Add gl_ARGMATCH.
97998         (EXTRA_DIST): Renamed from lib_SOURCES, for
97999         consistency with the other modules.  Remove argmatch.c.
98000         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
98001         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
98002         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
98003         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
98004         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
98005         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
98006         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
98007         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
98008         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
98009         * modules/closeout (EXTRA_DIST): Add closeout.h.
98010         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
98011         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
98012         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
98013         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
98014         dirname.h; remove basename.c and stripslash.c.
98015         * modules/exclude (EXTRA_DIST): Add exclude.h.
98016         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
98017         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
98018         * modules/file-type (EXTRA_DIST): Add file-type.h.
98019         * modules/filemode (EXTRA_DIST): Add filemode.h.
98020         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
98021         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98022         * modules/fpending (EXTRA_DIST): Add __fpending.h.
98023         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
98024         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
98025         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
98026         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
98027         * modules/getdate (EXTRA_DIST): Add getdate.c.
98028         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
98029         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
98030         * modules/getpass (EXTRA_DIST): Add getpass.h.
98031         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
98032         * modules/group-member (EXTRA_DIST): Add group-member.h.
98033         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
98034         * modules/hash (EXTRA_DIST): Add hash.h.
98035         * modules/human (EXTRA_DIST): Add human.h.
98036         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
98037         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
98038         * modules/lchown (EXTRA_DIST): Add lchown.h.
98039         * modules/long-options (EXTRA_DIST): Add long-options.h.
98040         * modules/lstat (EXTRA_DIST): Add lstat.h.
98041         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
98042         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
98043         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
98044         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
98045         * modules/memxor (EXTRA_DIST): Add memxor.h.
98046         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
98047         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
98048         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
98049         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
98050         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
98051         * modules/physmem (EXTRA_DIST): Add physmem.h.
98052         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
98053         * modules/posixver (EXTRA_DIST): Add posixver.h.
98054         * modules/quote (EXTRA_DIST): Add quote.h.
98055         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
98056         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
98057         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
98058         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
98059         regex_internal.h regexec.c.
98060         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
98061         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
98062         * modules/same (EXTRA_DIST): Add same.h.
98063         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
98064         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
98065         * modules/savedir (EXTRA_DIST): Add savedir.h.
98066         * modules/sha1 (EXTRA_DIST): Add sha1.h.
98067         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
98068         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
98069         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
98070         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
98071         * modules/strdup (EXTRA_DIST): Add strdup.h.
98072         * modules/strftime (EXTRA_DIST): Add strftime.h.
98073         * modules/strndup (EXTRA_DIST): Add strndup.h.
98074         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
98075         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
98076         * modules/time_r (EXTRA_DIST): Add time_r.h.
98077         * modules/timespec (EXTRA_DIST): Add timespec.h.
98078         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98079         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
98080         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
98081         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
98082         * modules/userspec (EXTRA_DIST): Add userspec.h.
98083         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
98084         * modules/utimens (EXTRA_DIST): Add utimens.h.
98085         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
98086         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
98087         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
98088         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
98089         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
98090         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
98091         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
98092         * modules/yesno (EXTRA_DIST): Add yesno.h.
98094 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98096         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
98098         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
98099         * m4/dev-ino.m4, same-inode.m4: Remove.
98101         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
98102         * m4/acl.m4 (AC_FUNC_ACL):
98103         * m4/backupfile.m4 (gl_BACKUPFILE):
98104         * m4/c-strtod.m4 (gl_C99_STRTOLD):
98105         * m4/canon-host.m4 (gl_CANON_HOST):
98106         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
98107         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
98108         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
98109         * m4/cloexec.m4 (gl_CLOEXEC):
98110         * m4/close-stream.m4 (gl_CLOSE_STREAM):
98111         * m4/closeout.m4 (gl_CLOSEOUT):
98112         * m4/dirfd.m4 (gl_FUNC_DIRFD):
98113         * m4/dirname.m4 (gl_DIRNAME):
98114         * m4/exclude.m4 (gl_EXCLUDE):
98115         * m4/exitfail.m4 (gl_EXITFAIL):
98116         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
98117         * m4/file-type.m4 (gl_FILE_TYPE):
98118         * m4/filemode.m4 (gl_FILEMODE):
98119         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
98120         * m4/fpending.m4 (gl_FUNC_FPENDING):
98121         * m4/fprintftime.m4 (gl_FPRINTFTIME):
98122         * m4/fts.m4 (gl_FUNC_FTS):
98123         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
98124         * m4/getdate.m4 (gl_GETDATE):
98125         * m4/gethrxtime.m4 (gl_GETHRXTIME):
98126         * m4/getpagesize.m4 (gl_GETPAGESIZE):
98127         * m4/getpass.m4 (gl_FUNC_GETPASS):
98128         * m4/gettime.m4 (gl_GETTIME):
98129         * m4/getugroups.m4 (gl_GETUGROUPS):
98130         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
98131         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
98132         * m4/hard-locale.m4 (gl_HARD_LOCALE):
98133         * m4/hash.m4 (gl_HASH):
98134         * m4/idcache.m4 (gl_IDCACHE):
98135         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
98136         * m4/lchown.m4 (gl_FUNC_LCHOWN):
98137         * m4/long-options.m4 (gl_LONG_OPTIONS):
98138         * m4/lstat.m4 (gl_FUNC_LSTAT):
98139         * m4/md5.m4 (gl_MD5):
98140         * m4/memcasecmp.m4 (gl_MEMCASECMP):
98141         * m4/memcoll.m4 (gl_MEMCOLL):
98142         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
98143         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
98144         * m4/memxor.m4 (gl_MEMXOR):
98145         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
98146         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
98147         * m4/modechange.m4 (gl_MODECHANGE):
98148         * m4/mountlist.m4 (gl_MOUNTLIST):
98149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98150         * m4/openat.m4 (gl_FUNC_OPENAT):
98151         * m4/pathmax.m4 (gl_PATHMAX):
98152         * m4/physmem.m4 (gl_PHYSMEM):
98153         * m4/posixtm.m4 (gl_POSIXTM):
98154         * m4/posixver.m4 (gl_POSIXVER):
98155         * m4/quote.m4 (gl_QUOTE):
98156         * m4/quotearg.m4 (gl_QUOTEARG):
98157         * m4/readtokens.m4 (gl_READTOKENS):
98158         * m4/readutmp.m4 (gl_READUTMP):
98159         * m4/regex.m4 (gl_REGEX):
98160         * m4/safe-read.m4 (gl_SAFE_READ):
98161         * m4/safe-write.m4 (gl_SAFE_WRITE):
98162         * m4/same.m4 (gl_SAME):
98163         * m4/save-cwd.m4 (gl_SAVE_CWD):
98164         * m4/savedir.m4 (gl_SAVEDIR):
98165         * m4/settime.m4 (gl_SETTIME):
98166         * m4/sha1.m4 (gl_SHA1):
98167         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
98168         * m4/stat-macros.m4 (gl_STAT_MACROS):
98169         * m4/stat-time.m4 (gl_STAT_TIME):
98170         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
98171         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
98172         * m4/strdup.m4 (gl_FUNC_STRDUP):
98173         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
98174         * m4/strndup.m4 (gl_FUNC_STRNDUP):
98175         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
98176         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
98177         * m4/time_r.m4 (gl_TIME_R):
98178         * m4/timespec.m4 (gl_TIMESPEC):
98179         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
98180         * m4/unlinkdir.m4 (gl_UNLINKDIR):
98181         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
98182         * m4/userspec.m4 (gl_USERSPEC):
98183         * m4/utimecmp.m4 (gl_UTIMECMP):
98184         * m4/utimens.m4 (gl_UTIMENS):
98185         * m4/xalloc.m4 (gl_XALLOC):
98186         * m4/xgetcwd.m4 (gl_XGETCWD):
98187         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
98188         * m4/xreadlink.m4 (gl_XREADLINK):
98189         * m4/xstrtod.m4 (gl_XSTRTOD):
98190         * m4/yesno.m4 (gl_YESNO):
98191         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98192         to get the necessary .h files and whatnot.
98194 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
98195             Bruno Haible  <bruno@clisp.org>
98197         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
98198         /bin/sh understanding of '!' conditional negation.
98200 2006-08-21  Jim Meyering  <jim@meyering.net>
98202         * modules/openat (Depends-on): Really alphabetize.
98204         * modules/acl (Depends-on): Add error and quote.
98206         * check-module (find_included_lib_files): Add at-func.c to the
98207         ok-to-include-more-than-once white list.
98209         * modules/openat (Depends-on): Add lstat.  Alphabetize.
98211 2006-08-21  Bruno Haible  <bruno@clisp.org>
98213         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98214         Emit a pkgdata_DATA variable only if some snippets add contents to it.
98215         Reported by Martin Lambers <marlam@marlam.de>.
98217 2006-08-21  Bruno Haible  <bruno@clisp.org>
98219         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
98220         specify an installation location, don't emit a noinst_LIBRARIES or
98221         noinst_LTLIBRARIES assignment.
98223 2006-08-21  Bruno Haible  <bruno@clisp.org>
98225         BeOS portability.
98226         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
98227         BeOS has mbrtowc() but no <wctype.h>.
98229 2006-08-21  Bruno Haible  <bruno@clisp.org>
98231         BeOS portability.
98232         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
98233         exist.
98235 2006-08-21  Bruno Haible  <bruno@clisp.org>
98237         BeOS portability.
98238         * lib/mbchar.h: Include <wctype.h> only if it exists.
98240 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98242         Remove files that are no longer needed by their respective modules.
98243         * m4/obstack.m4: Remove.
98244         * m4/strerror_r.m4: Remove.
98245         * m4/uint32_t.m4: Remove.
98246         * m4/uintptr_t.m4: Remove.
98247         * m4/ullong_max.m4: Remove.
98248         * m4/xstrtoimax.m4: Remove.
98249         * m4/xstrtoumax.m4: Remove.
98251         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
98252         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
98253         dependencies now capture this.
98255         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
98256         Do not use AC_LIBSOURCES, since gnulib modules now do this.
98257         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
98258         * m4/human.m4 (gl_HUMAN): Likewise.
98259         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
98260         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
98262         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
98264         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
98265         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
98266         stdint.
98267         * m4/human.m4 (gl_HUMAN): Likewise.
98268         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
98269         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
98270         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98271         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98272         * m4/xstrtol (gl_XSTRTOL): Likewise.
98274         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
98275         AC_TYPE_LONG_LONG_INT.
98276         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98277         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
98278         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
98279         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98281         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
98282         on stdbool.
98284         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
98285         (gl_PREREQ_XSTRTOUL): Remove.
98287         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
98289         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
98290         mode.
98292 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98294         Add and change modules to make it easier for coreutils to use
98295         gnulib-tool.
98296         * modules/backupfile (Files): Remove m4/d-ino.m4.
98297         (Depends-on): Add d-ino.
98298         * modules/cycle-check (Depends-on): Add stdint.
98299         (lib_SOURCES): Add cycle-check.h.
98300         * modules/d-ino: New module.
98301         * modules/d-type: New module.
98302         * modules/error (Files): Remove m4/strerror_r.m4.
98303         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98304         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
98305         m4/inttypes_h.m4, m4/uintmax_t.m4.
98306         (Depends-on): Add stdint.
98307         (lib_SOURCES): Add fsusage.h.
98308         * modules/getcwd (Files): Remove d-ino.m4.
98309         (Depends-on): Add d-ino.
98310         * modules/getndelim2 (Depends-on): Add stdint.
98311         * modules/glob (Files): Remove m4/d-type.m4.
98312         (Depends-on): Add d-type.
98313         * modules/host-os: New module.
98314         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98315         m4/inttypes_h.m4, m4/uintmax_t.m4.
98316         * Depends-on: Add stdint.
98317         (lib_SOURCES): Add human.h.
98318         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98319         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98320         m4/uintmax_t.m4, m4/ulonglong.m4.
98321         (Depends-on): Add stdint.
98322         (EXTRA_DIST): Add inttostr.h.
98323         * modules/lchmod: New module.
98324         * modules/link-follow: New module.
98325         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98326         (Depends-on): Add lchmod.
98327         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98328         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98329         (Depends-on): Add stdint.
98330         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98331         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98332         (Depends-on): Add stdint.
98333         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98334         * modules/perl: New module.
98335         * modules/regex (Depends-on): Add stdint.
98336         * modules/rmdir-errno: New module.
98337         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98338         m4/intmax_t.m4.
98339         (Depends-on): Add stdint.
98340         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98341         m4/uintmax_t.m4.
98342         (Depends-on): Add stdint.
98343         * modules/unlink-busy: New module.
98344         * modules/utimecmp (Depends-on): Add stdint.
98345         * modules/uptime: New module.
98346         * modules/winsz-ioctl: New module.
98347         * modules/winsz-termios: New module.
98348         * modules/xnanosleep (Depends-on): Add nanosleep.
98349         * modules/ullong_max: Remove.
98350         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98351         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98352         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98353         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98354         (Depends-on): Add inttypes.
98355         (lib_SOURCES): Add xstrtol.h.
98356         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98357         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98358         * MODULES.html.sh: Move 'assert' into the assert section.
98359         Move 'dummy' into the linking section.
98360         Remove ullong_max.
98361         Add section for compatibility checks for POSIX:2001 functions,
98362         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98363         winsz-ioctl, and winsz-termios into it.
98364         Add lchmod.
98365         Add top-level Misc section and put host-os, perl, and uptime
98366         into it.
98368 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98370         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98371         now assume the stdint module.  Do not include inttypes.h.
98372         * lib/fsusage.h: Likewise.
98373         * lib/getndelim2.c: Likewise.
98374         * lib/human.h: Likewise.
98375         * lib/inttostr.h: Likewise.
98376         * lib/obstack.c: Likewise.
98377         * lib/regex_internal.h: Likewise.
98378         * lib/tempname.c: Likewise.
98379         * lib/utimecmp.c: Likewise.
98380         * lib/xstrtol.h: Likewise.
98382         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98384         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98385         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98386         * lib/xtime.h: Likewise.
98388 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98390         * modules/openat (Files): Add lib/fchmodat.c.
98391         Fixes problem reported by Jay Youngman.
98393 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98395         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98396         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98398 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98399             Bruno Haible  <bruno@clisp.org>
98401         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98402         and is a script that invokes bison. Tighten the code. Add comments.
98404 2006-08-18  Jim Meyering  <jim@meyering.net>
98406         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98407         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98408         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98409         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98411 2006-08-18  Bruno Haible  <bruno@clisp.org>
98413         * modules/bison-i18n: New file.
98414         * MODULES.html.sh (Internationalization functions): Add it.
98416 2006-08-18  Bruno Haible  <bruno@clisp.org>
98418         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98419         sys/statvfs.h. When getmntinfo was found, check its declaration and
98420         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98422 2006-08-18  Bruno Haible  <bruno@clisp.org>
98424         * m4/bison-i18n.m4: New file, from bison.
98426 2006-08-18  Bruno Haible  <bruno@clisp.org>
98428         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98429         (ME_DUMMY): Treat "kernfs" as a dummy.
98430         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98432 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98434         Update from coreutils.
98436         2006-08-15  Jim Meyering  <jim@meyering.net>
98438         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98440         2006-01-17  Jim Meyering  <jim@meyering.net>
98442         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98444         2006-01-11  Jim Meyering  <jim@meyering.net>
98446         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98447         Check for the lchmod function.
98449 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98451         Update from coreutils.
98453         * lib/__fpending.h: Add copyright notice.
98454         * lib/fprintftime.h: Likewise.
98455         * lib/savedir.c: Use (C) in copyright notice.
98456         * lib/savedir.h: Likewise.
98458         2006-08-15  Jim Meyering  <jim@meyering.net>
98460         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98461         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98462         in support of the EXPECTED_ERRNO macro.
98463         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98464         definitions.  Instead, define the appropriate symbols and include
98465         "at-func.c".
98466         * lib/mkdirat.c (mkdirat): Likewise.
98467         * lib/fchmodat.c (fchmodat): Likewise.
98468         (ENOSYS): Remove definition.
98469         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98470         it.  Don't include "unistd--.h" -- it wasn't ever used.
98472         2006-01-17  Jim Meyering  <jim@meyering.net>
98474         Rewrite fts.c not to change the current working directory,
98475         by using openat, fstatat, fdopendir, etc..
98477         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98478         (HAVE_OPENAT_SUPPORT): Define.
98479         [_LIBC] (fchdir): Don't undef or define; no longer used.
98480         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98481         Now, this `function' always succeeds, and consumes its file descriptor
98482         parameter -- so callers must not close such FDs.  Update callers.
98483         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98484         (diropen): Add parameter, SP.  Adjust all callers.
98485         Implement using diropen_fd, rather than open.
98486         (fts_open): Initialize new member, fts_cwd_fd.
98487         Remove fts_rft-setting code.
98488         (fts_close): Close fts_cwd_fd, if necessary.
98489         (__opendir2): Define in terms of opendir or opendirat,
98490         depending on whether the FST_NOCHDIR flag is set.
98491         (fts_build): Since fts_safe_changedir consumes its FD, and since
98492         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98493         and close the dup'd file descriptor upon failure.
98494         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98495         (fts_safe_changedir): Tweak semantics to reflect that this function
98496         now calls cwd_advance_fd and hence consumes its FD argument.
98497         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98498         [struct FTS] (fts_rft): Remove now-unused member.
98499         [struct FTS] (fts_cycle.state): Improve comment.
98501         * lib/openat.c (openat_needs_fchdir): New function.
98502         * lib/openat.h (openat_needs_fchdir): Declare it.
98504 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98506         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98507         Problem and fix reported by Pádraig Brady in
98508         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98510 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98512         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98514 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98516         * lib/memcoll.c (memcoll): Optimize for the common case where the
98517         arguments are bytewise equal.
98519 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98521         * doc/regexprops-generic.texi: Add a copyright notice.
98523 2006-08-15  Bruno Haible  <bruno@clisp.org>
98525         * modules/tmpdir (License): Change to LGPL.
98527 2006-08-15  Bruno Haible  <bruno@clisp.org>
98529         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98530         module.
98532 2006-08-14  Simon Josefsson  <jas@extundo.com>
98534         * config/srclist.txt: Add gnupload.
98536 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98538         Change copyright notice from LGPL 2 to GPL 2, since that's the
98539         standard form used in the gnulib repository.
98540         * tests/test-lock.c: Likewise.
98541         * tests/test-stdint.c: Likewise.
98542         * tests/test-tls.c: Likewise.
98544         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
98545         prelude-manager.  User shorter URLs for GNU projects, without '?'.
98546         Add copyright notice.
98548         * check-module: Add copyright notice.  Output a copyright
98549         notice if "--version" is specified.
98550         * modules/COPYING: New file.
98551         * tests/test-getaddrinfo.c: Add copyright notice.
98552         * tests/test-verify.c: Likewise.
98554 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98556         Change copyright notice from LGPL 2 to GPL 2, since that's the
98557         standard form used in the gnulib repository.
98558         * lib/lock.c: LGPL -> GPL.
98559         * lib/lock.h: Likewise.
98560         * lib/strnlen1.c: Likewise.
98561         * lib/strnlen1.h: Likewise.
98562         * lib/tls.c: Likewise.
98563         * lib/tls.h: Likewise.
98564         * lib/tmpdir.c: Likewise.
98566         * lib/TODO: Remove; this belongs only in coreutils.
98568 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98570         Add copyright notices to long-enough files that lack them, since
98571         otherwise the files aren't clearly free.  Use the same notice that
98572         getdate.texi already uses.
98573         * doc/alloca-opt.texi: Add copyright notice.
98574         * doc/alloca.texi: Likewise.
98575         * doc/ctime.texi: Likewise.
98576         * doc/functions.texi: Likewise.
98577         * doc/gcd.texi: Likewise.
98578         * doc/gnulib-tool.texi: Likewise.
98579         * doc/inet_ntoa.texi: Likewise.
98580         * doc/visibility.texi: Likewise.
98582         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
98583         * doc/quote.texi: Add copyright notice.
98585         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
98586         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
98587         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
98588         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
98589         is now obsolete, and give a pointer to the Sun list.
98590         Add copyright notice.
98592 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98594         * config/srclistvars.sh: Add copyright notice.
98596 2006-08-14  Eric Blake  <ebb9@byu.net>
98598         Import the following change from libc:
98600         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
98602         Upstream bug 2997.
98603         * lib/misc/error.c: Add space between program name and message if file
98604         name is missing.
98606 2006-08-12  Karl Berry  <karl@gnu.org>
98608         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
98609         remove, these originate in gnulib now.
98611 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98613         * doc/Makefile (standards.info standards.html standards.dvi):
98614         Also depend on make-stds.texi.
98616 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
98618         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
98619         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
98621         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
98622         in wchar_t.  Problem reported by Eric Blake.
98624         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
98625         LEN is smaller than SIZE.  Suggested by Bruno Haible.
98626         Also, help the compiler to keep LEN in a register.
98628 2006-08-11  Eric Blake  <ebb9@byu.net>
98630         * users.txt: Sort.  Add tar.
98632 2006-08-11  Bruno Haible  <bruno@clisp.org>
98634         * users.txt: New file.
98636 2006-08-11  Bruno Haible  <bruno@clisp.org>
98638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
98639         before <wchar.h>. Needed for OSF/1 and BSD/OS.
98641 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98643         * modules/snprintf (Depends-on): Remove minmax.
98644         (Maintainer): Add self and Bruno.
98646 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98648         * lib/.cppi-disable: Add snprintf.h, socket_.h.
98649         * lib/snprintf.c: Include <errno.h> and <limits.h>.
98650         (EOVERFLOW): Define if the system does not.
98651         Do not include "minmax.h"; it wasn't used.
98652         (snprintf): Don't assume size_t promotes to an unsigned type.
98653         Fix bug when generated string was too long for the buffer: the
98654         buffer's contents are supposed to be the initial prefix of the
98655         output.  Don't assume vasnprintf returns EOVERFLOW if the size
98656         exceeds INT_MAX; do the check ourselves.
98658         Import the following changes from libc:
98660         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
98662         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
98663         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
98664         set wc to the byte which couldn't be converted.
98665         (re_string_reconstruct): Don't clear valid_raw_len before calling
98666         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
98667         tip_context using re_string_context_at.
98669         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
98671         * lib/posix/regex.h: g++ still cannot handled [restrict].
98673         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
98675         * lib/posix/regex.h: Remove special handling for VMS.
98677 2006-08-10  Jim Meyering  <jim@meyering.net>
98679         * modules/same-inode: New module.
98680         * modules/dev-ino: New module.
98681         * modules/cycle-check: Depend on these modules, rather than simply
98682         including their .h files.
98683         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
98684         required via m4/cycle-check.m4.
98685         * modules/same: Depend on new same-inode module, rather than
98686         including same-inode.h.
98687         * modules/chdir-safer: New file.
98689         * modules/chown (Depends-on): Add stat-macros.
98691 2006-08-10  Jim Meyering  <jim@meyering.net>
98693         * m4/cycle-check.m4: New file.
98694         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
98695         * m4/dev-ino.m4, m4/same-inode.m4: New files.
98697 2006-08-10  Eric Blake  <ebb9@byu.net>
98699         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
98700         in from original proposal.
98702 2006-08-10  Eric Blake  <ebb9@byu.net>
98703         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
98705         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
98706         namespace.
98708 2006-08-10  Bruno Haible  <bruno@clisp.org>
98710         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
98711         as well.
98713 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98715         Sync from coreutils.
98717         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
98719         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
98720         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
98722 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98724         * modules/restrict: Remove; no longer needed now that we assume
98725         Autoconf 2.59 or later.
98726         * MODULES.html.sh: Remove 'restrict'.
98727         * modules/argp (Depends-on): Remove 'restrict'.
98728         * modules/base64 (Depends-on): Likewise.
98729         * modules/gc (Depends-on): Likewise.
98730         * modules/getaddrinfo (Depends-on): Likewise.
98731         * modules/glob (Depends-on): Likewise.
98732         * modules/inet_ntop (Depends-on): Likewise.
98733         * modules/inet_pton (Depends-on): Likewise.
98734         * modules/memxor (Depends-on): Likewise.
98735         * modules/regex (Depends-on): Likewise.
98736         * modules/strtok_r (Depends-on): Likewise.
98737         * modules/time_r (Depends-on): Likewise.
98739 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98741         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
98742         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
98743         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98744         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
98745         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
98746         * m4/memxor.m4 (gl_MEMXOR): Likewise.
98747         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
98748         gl_C_RESTRICT replaced by AC_C_RESTRICT.
98750         Merge from coreutils.
98751         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
98752         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
98753         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98754         * m4/time_r.m4 (gl_TIME_R): Likewise.
98756 2006-08-09  Karl Berry  <karl@gnu.org>
98758         * config/srclist.txt: no more gettext-tools, per Bruno.
98760 2006-08-08  Eric Blake  <ebb9@byu.net>
98762         * modules/verror: New module.
98763         * MODULES.html.sh: Document it.
98765 2006-08-08  Eric Blake  <ebb9@byu.net>
98767         * lib/verror.h, lib/verror.c: New files.
98769 2006-08-08  Eric Blake  <ebb9@byu.net>
98771         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
98772         verror_at_line output complies with GNU Coding Standards even when
98773         file is NULL.
98775 2006-08-07  Bruno Haible  <bruno@clisp.org>
98777         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
98778         versions of AIX.
98779         Reported by Ralf Wildenhues.
98781 2006-08-07  Bruno Haible  <bruno@clisp.org>
98783         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
98784         in an AC_DEFUN. Needed so that the autoconf snippets can use
98785         AC_REQUIRE.
98787 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98789         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98790         Initialize pkgdata_DATA.
98791         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
98792         overriding it.
98794 2006-08-06  Eric Blake  <ebb9@byu.net>
98796         * lib/error.h: Fold in some upstream changes from glibc.
98797         * lib/error.c: Likewise.
98799 2006-08-04  Bruno Haible  <bruno@clisp.org>
98801         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98802         Make the mostlyclean-local rule depend on mostlyclean-generic.
98803         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
98805 2006-07-31  Bruno Haible  <bruno@clisp.org>
98807         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
98808         <stdlib.h>, <string.h>.
98810 2006-07-30  Bruno Haible  <bruno@clisp.org>
98812         * modules/readlink (License): Change to LGPL.
98814 2006-07-30  Bruno Haible  <bruno@clisp.org>
98816         * modules/javaversion (Makefile.am): Distribute javaversion.java and
98817         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
98818         set PKGDATADIR to point to it.
98820 2006-07-30  Bruno Haible  <bruno@clisp.org>
98822         * modules/csharpexec (configure.ac): Comment out macro invocation.
98823         * modules/javaexec (configure.ac): Likewise.
98824         * modules/javacomp-script (configure.ac): Likewise.
98826         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
98828 2006-07-30  Bruno Haible  <bruno@clisp.org>
98830         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
98831         linked-list.
98833 2006-07-30  Bruno Haible  <bruno@clisp.org>
98835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
98837 2006-07-30  Bruno Haible  <bruno@clisp.org>
98839         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98840         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
98841         get removed.
98843 2006-07-29  Bruno Haible  <bruno@clisp.org>
98845         Make it possible for gnulib-tool to work with locally modified or
98846         augmented gnulib repositories.
98847         * gnulib-tool (func_usage): Document --local-dir option.
98848         (local_gnulib_dir): New variable.
98849         Handle --local-dir option.
98850         (func_lookup_file): New function.
98851         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
98852         (func_get_description, func_get_filelist, func_get_description,
98853         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
98854         func_get_automake_snippet, func_get_include_directive,
98855         func_get_license, func_get_maintainer): Use func_lookup_file.
98856         (func_import, func_create_testdir): Use func_lookup_file.
98858 2006-07-29  Bruno Haible  <bruno@clisp.org>
98860         * modules/setenv (Depends-on): Add unistd.
98862 2006-07-29  Bruno Haible  <bruno@clisp.org>
98864         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
98866 2006-07-29  Bruno Haible  <bruno@clisp.org>
98868         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
98870 2006-07-29  Bruno Haible  <bruno@clisp.org>
98872         * gnulib-tool (import, update): If there is no Makefile.am, look at
98873         aclocal.m4, instead of bailing out.
98875 2006-07-29  Bruno Haible  <bruno@clisp.org>
98877         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
98878         Categorize the options by when they are useful.
98880 2006-07-29  Bruno Haible  <bruno@clisp.org>
98882         * gnulib-tool (func_usage): Document option --no-libtool.
98883         Handle option --no-libtool.
98884         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
98885         for changed semantics of $libtool variable.
98886         (func_import): Likewise. If libtool is not used, show this through
98887         an option --no-libtool.
98888         (func_create_testdir): Update.
98890 2006-07-29  Bruno Haible  <bruno@clisp.org>
98892         * gnulib-tool (func_import): Extend error message about missing
98893         --doc-base.
98895 2006-07-29  Bruno Haible  <bruno@clisp.org>
98897         * gnulib-tool (func_import): Don't create the $docbase directory if
98898         there is no file to store there.
98900 2006-07-29  Bruno Haible  <bruno@clisp.org>
98902         * gnulib-tool (autoconf_minversion): If a --dir option is given and
98903         relevant, look for configure.ac there, not in the current directory.
98904         Also use a simple search for AC_PREREQ, not "autoconf --trace".
98906 2006-07-29  Bruno Haible  <bruno@clisp.org>
98908         * gnulib-tool (SORT): New variable.
98909         (func_usage): Undocument --assume-autoconf option.
98910         Remove --assume-autoconf option handling.
98911         (autoconf_minversion): Determine from the contents of configure.ac.
98912         (func_import): Remove autoconf_minversion handling.
98913         Suggested by Eric Blake.
98915 2006-07-29  Bruno Haible  <bruno@clisp.org>
98917         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
98919 2006-07-29  Bruno Haible  <bruno@clisp.org>
98921         * config/srclist.txt (*setenv.[ch]): Remove rules.
98923 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98925         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
98927 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98929         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
98930         arpa/inet.h.
98932 2006-07-28  Simon Josefsson  <jas@extundo.com>
98934         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
98935         * modules/inet_pton (Depends-on): Likewise.
98937 2006-07-28  Simon Josefsson  <jas@extundo.com>
98939         * m4/netinet_in_h.m4: New file.
98941 2006-07-28  Simon Josefsson  <jas@extundo.com>
98943         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
98944         #include's.
98946 2006-07-28  Simon Josefsson  <jas@extundo.com>
98948         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
98949         #include's.
98951 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
98953         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
98954         setgid on directories only if they set these bits.
98955         * lib/modechange.h: Remove obsolete comment about masks.
98957 2006-07-28  Eric Blake  <ebb9@byu.net>
98959         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
98960         macro expansion.
98962 2006-07-28  Bruno Haible  <bruno@clisp.org>
98964         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
98966 2006-07-28  Bruno Haible  <bruno@clisp.org>
98968         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
98970 2006-07-28  Bruno Haible  <bruno@clisp.org>
98972         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
98973         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
98974         Define fallbacks.
98975         Avoids link error on FreeBSD 4.x.
98976         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98978         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
98979         encoding.
98980         * lib/mbswidth.c (iswcntrl): Likewise.
98982 2006-07-27  Bruno Haible  <bruno@clisp.org>
98984         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
98985         test.
98987 2006-07-27  Bruno Haible  <bruno@clisp.org>
98989         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
98990         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
98991         defined.
98993 2006-07-26  Eric Blake  <ebb9@byu.net>
98995         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
98997 2006-07-26  Eric Blake  <ebb9@byu.net>
98999         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
99000         like mingw that lack mkstemp.
99001         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
99002         avoid compilation warning on mingw.
99004 2006-07-26  Bruno Haible  <bruno@clisp.org>
99006         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
99007         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
99008         INT_FAST*_MIN, INTPTR_MIN.
99010 2006-07-25  Bruno Haible  <bruno@clisp.org>
99012         * modules/version-etc (Depends-on): Add stdarg.
99014 2006-07-25  Bruno Haible  <bruno@clisp.org>
99016         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
99017         complex commands.
99019 2006-07-25  Bruno Haible  <bruno@clisp.org>
99021         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
99022         defined in <stdarg.h> or config.h.
99024 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99026         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
99027         (gl_STDIO_SAFER): Remove.
99029 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99031         * MODULES.html.sh (File stream based Input/Output):
99032         Add fopen-safer, tmpfile-safer; remove stdio-safer.
99033         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
99034         * modules/fopen-safer, modules/tmpfile-safer: New files.
99035         * modules/stdio-safer: Remove.
99037 2006-07-24  Bruno Haible  <bruno@clisp.org>
99039         * modules/tmpdir: New file.
99040         * MODULES.html.sh (File system functions): Add it.
99042 2006-07-24  Bruno Haible  <bruno@clisp.org>
99044         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
99045         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
99047 2006-07-24  Bruno Haible  <bruno@clisp.org>
99049         * modules/clean-temp: New file.
99051 2006-07-24  Bruno Haible  <bruno@clisp.org>
99053         * m4/tmpdir.m4: New file, from GNU gettext.
99055 2006-07-24  Bruno Haible  <bruno@clisp.org>
99057         * lib/tmpdir.h: New file, from GNU gettext.
99058         * lib/tmpdir.c: New file, from GNU gettext.
99060 2006-07-24  Bruno Haible  <bruno@clisp.org>
99062         * lib/clean-temp.h: New file, from GNU gettext.
99063         * lib/clean-temp.c: New file, from GNU gettext.
99065 2006-07-23  Eric Blake  <ebb9@byu.net>
99067         * modules/stdio-safer (Files): Add tmpfile-safer.c.
99068         (Depends-on): Add binary-io.
99070 2006-07-23  Eric Blake  <ebb9@byu.net>
99072         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
99074 2006-07-23  Eric Blake  <ebb9@byu.net>
99076         * lib/tmpfile-safer.c: New file.
99077         * lib/stdio-safer.h (fopen_safer): Add prototype.
99078         * lib/stdio--.h (tmpfile): Make safer.
99080 2006-07-23  Bruno Haible  <bruno@clisp.org>
99082         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
99083         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
99084         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
99085         gl_linked_remove_at): Use it.
99087 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99088         and Simon Josefsson <jas@extundo.com>
99090         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
99092         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
99094 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99096         * modules/close-stream: New file.
99097         * modules/closeout (Description): Make it clear that it exits
99098         with a diagnostic on error.
99099         (Depends-on): Add close-stream.  Remove fpending, stdbool.
99100         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
99102 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99104         * m4/close-stream.m4: New file.
99106 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99108         * lib/close-stream.c, lib/close-stream.h: New files.
99110 2006-07-22  Bruno Haible  <bruno@clisp.org>
99112         Merge from GNU gettext 0.15.
99114         2006-05-01  Bruno Haible  <bruno@clisp.org>
99116                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
99118         2006-07-22  Bruno Haible  <bruno@clisp.org>
99120                 * modules/javaversion: New file.
99121                 * MODULES.html.sh (Java): Add javaversion.
99123         2006-03-12  Bruno Haible  <bruno@clisp.org>
99125                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
99127         2005-12-04  Bruno Haible  <bruno@clisp.org>
99129                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
99130                 (untested).
99132         2006-06-21  Bruno Haible  <bruno@clisp.org>
99134                 Avoid warnings from recent versions of mcs.
99135                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
99136                 -o, -L, -r any more. Use options documented since mcs-1.0
99137                 instead. Similarly for -g.
99139         2005-12-04  Bruno Haible  <bruno@clisp.org>
99141                 * build-aux/csharpcomp.sh.in: Suffix for resources is
99142                 .resources, not .resource.
99144         2005-07-09  Bruno Haible  <bruno@clisp.org>
99146                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
99147                 add a .dll suffix.
99148                 Reported by Mark Junker <mjscod@gmx.de>.
99150         2006-07-22  Bruno Haible  <bruno@clisp.org>
99152                 * modules/gettext: Upgrade to gettext-0.15.
99153                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
99154                 m4/visibility.m4.
99155                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
99157 2006-07-22  Bruno Haible  <bruno@clisp.org>
99159         Merge from GNU gettext 0.15.
99161         2006-03-25  Bruno Haible  <bruno@clisp.org>
99163                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
99165         2006-07-21  Bruno Haible  <bruno@clisp.org>
99167                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
99168                 "1.1".
99170         2006-05-09  Bruno Haible  <bruno@clisp.org>
99172                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
99173                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
99174                 for the conftestver execution.
99176         2006-05-01  Bruno Haible  <bruno@clisp.org>
99178                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
99179                 optional target-version argument. Verify that the compiler
99180                 groks source of the specified source-version, or add -source
99181                 option as necessary. Verify that the compiler produces
99182                 bytecode in the specified target-version, or add -target and
99183                 -source options as necessary. Make the result of the test
99184                 available as variable CONF_JAVAC. Also log error output in
99185                 config.log.
99187         2006-03-11  Bruno Haible  <bruno@clisp.org>
99189                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
99191         2006-05-09  Bruno Haible  <bruno@clisp.org>
99193                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
99194                 CLASSPATH_SEPARATOR to a semicolon.
99196         2006-03-12  Bruno Haible  <bruno@clisp.org>
99198                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
99199                 available as variable CONF_JAVA, for subsequent autoconf
99200                 tests. Also log error output in config.log.
99202         2006-07-19  Bruno Haible  <bruno@clisp.org>
99204                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
99205                 that getline works on glibc2 systems. Needed to avoid trouble
99206                 in relocatable.c.
99207                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
99209         2005-12-04  Bruno Haible  <bruno@clisp.org>
99211                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
99212                 launcher (untested).
99214         2005-12-04  Bruno Haible  <bruno@clisp.org>
99216                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
99218         2006-07-22  Bruno Haible  <bruno@clisp.org>
99220                 * gettext.m4: Update from GNU gettext-0.15.
99221                 * nls.m4: Likewise.
99222                 * po.m4: Likewise.
99223                 * inttypes-pri.m4: Likewise.
99224                 * inttypes-h.m4: Renamed from inttypes.m4.
99225                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
99227 2006-07-22  Bruno Haible  <bruno@clisp.org>
99229         Merge from GNU gettext 0.15.
99231         2005-07-05  Bruno Haible  <bruno@clisp.org>
99233                 * printf-args.c (printf_fetchargs): Work around broken
99234                 definition of wint_t on mingw.
99236         2005-02-12  Bruno Haible  <bruno@clisp.org>
99238                 * xallocsa.h: Add extern "C" for C++.
99240         2006-05-17  Bruno Haible  <bruno@clisp.org>
99242                 Cygwin portability.
99243                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
99245         2006-04-30  Bruno Haible  <bruno@clisp.org>
99247                 * progreloc.c: Include <mach-o/dyld.h> if available.
99248                 (find_executable): Use _NSGetExecutablePath when possible.
99250         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
99252                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
99253                 function.
99255         2005-12-29  Bruno Haible  <bruno@clisp.org>
99257                 * progreloc.c (set_program_name_and_installdir): Fix
99258                 compilation error.
99260         2005-12-04  Bruno Haible  <bruno@clisp.org>
99262                 Cygwin portability.
99263                 * progreloc.c: Include <windows.h> also on Cygwin.
99264                 (find_executable): Add support for Cygwin.
99265                 (set_program_name_and_installdir): Handle also platforms with
99266                 nonempty EXEEXT.
99268         2006-07-11  Bruno Haible  <bruno@clisp.org>
99270                 * javacomp.c: Fix a comment.
99271                 Reported by Jim Meyering.
99273         2006-04-30  Bruno Haible  <bruno@clisp.org>
99275                 * javacomp.h (compile_java_class): Add source_version,
99276                 target_version arguments.
99277                 * javacomp.c: Rewritten to choose only a compiler that
99278                 respects the specified source_version and target_version.
99280         2006-06-27  Bruno Haible  <bruno@clisp.org>
99282                 Assume correct S_ISDIR macro.
99283                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
99285         2006-07-22  Bruno Haible  <bruno@clisp.org>
99287                 * javaversion.h: New file, from GNU gettext.
99288                 * javaversion.c: New file, from GNU gettext.
99289                 * javaversion.java: New file, from GNU gettext.
99290                 * javaversion.class: New file, from GNU gettext.
99292         2006-05-17  Bruno Haible  <bruno@clisp.org>
99294                 Cygwin portability.
99295                 * javaexec.c (execute_java_class): Test for jview program
99296                 also on Cygwin.
99298         2006-04-09  Bruno Haible  <bruno@clisp.org>
99300                 * fatal-signal.c: Don't include string.h.
99301                 (at_fatal_signal): Use a copying loop instead of memcpy.
99303         2005-12-04  Bruno Haible  <bruno@clisp.org>
99305                 * csharpexec.c: Add support for 'clix' launcher (untested).
99306                 (execute_csharp_using_sscli): New function.
99307                 (execute_csharp_program): Call it.
99309         2006-06-21  Bruno Haible  <bruno@clisp.org>
99311                 Avoid warnings from recent versions of mcs.
99312                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99313                 -o, -L, -r any more. Use options documented since mcs-1.0
99314                 instead. Similarly for -g.
99316         2005-07-09  Bruno Haible  <bruno@clisp.org>
99318                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99319                 add a .dll suffix.
99320                 Reported by Mark Junker <mjscod@gmx.de>.
99322         2006-06-17  Bruno Haible  <bruno@clisp.org>
99324                 * config.charset: Update for NetBSD 3.0.
99326         2006-05-17  Bruno Haible  <bruno@clisp.org>
99328                 Cygwin portability.
99329                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99331         2006-05-16  Bruno Haible  <bruno@clisp.org>
99333                 * localcharset.c [CYGWIN]: Include <windows.h>.
99334                 (get_charset_aliases): For Cygwin, return the same CPxxx
99335                 aliases list as under WIN32.
99336                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99337                 the environment variables. Fall back to GetACP().
99339         2006-04-05  Bruno Haible  <bruno@clisp.org>
99341                 * config.charset: Update Juan Manuel Guerrero's address.
99343         2005-02-12  Bruno Haible  <bruno@clisp.org>
99345                 * allocsa.h: Add extern "C" for C++.
99347         2005-02-10  Bruno Haible  <bruno@clisp.org>
99349                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99350                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99352         2006-07-22  Bruno Haible  <bruno@clisp.org>
99354                 * gettext.h: Update to GNU gettext-0.15.
99356 2006-07-22  Bruno Haible  <bruno@clisp.org>
99358         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99359         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99360         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99362 2006-07-21  Eric Blake  <ebb9@byu.net>
99364         * modules/stdlib-safer: New file.
99365         * MODULES.html.sh (File stream based Input/Output): Add
99366         stdlib-safer.
99368 2006-07-21  Eric Blake  <ebb9@byu.net>
99370         * lib/stdlib-safer.h: New file from coreutils, required by
99371         stdlib--.h.
99373 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99375         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99377 2006-07-20  Bruno Haible  <bruno@clisp.org>
99379         * gnulib-tool: Recognize new option --assume-autoconf.
99380         (autoconf_minversion): New variable.
99381         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99383 2006-07-20  Bruno Haible  <bruno@clisp.org>
99385         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99387 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99389         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99390         Reindent and repaginate.
99392 2006-07-19  Derek Price  <derek@ximbiot.com>
99394         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99395         Correct grammar.
99397 2006-07-17  Bruno Haible  <bruno@clisp.org>
99399         * modules/list: New file.
99400         * modules/array-list: New file.
99401         * modules/carray-list, modules/carray-list-tests: New files.
99402         * modules/linked-list, modules/linked-list-tests: New files.
99403         * modules/avltree-list, modules/avltree-list-tests: New files.
99404         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99405         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99406         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99407         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99408         * modules/oset: New file.
99409         * modules/array-oset: New file.
99410         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99411         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99412         * tests/test-carray_list.c: New file.
99413         * tests/test-linked_list.c: New file.
99414         * tests/test-avltree_list.c: New file.
99415         * tests/test-rbtree_list.c: New file.
99416         * tests/test-linkedhash_list.c: New file.
99417         * tests/test-avltreehash_list.c: New file.
99418         * tests/test-rbtreehash_list.c: New file.
99419         * tests/test-avltree_oset.c: New file.
99420         * tests/test-rbtree_oset.c: New file.
99421         * MODULES.html.sh (Container data structures): New section.
99423 2006-07-17  Bruno Haible  <bruno@clisp.org>
99425         * m4/gl_list.m4: New file.
99427 2006-07-17  Bruno Haible  <bruno@clisp.org>
99429         * lib/gl_list.h: New file.
99430         * lib/gl_list.c: New file.
99431         * lib/gl_array_list.h: New file.
99432         * lib/gl_array_list.c: New file.
99433         * lib/gl_carray_list.h: New file.
99434         * lib/gl_carray_list.c: New file.
99435         * lib/gl_linked_list.h: New file.
99436         * lib/gl_linked_list.c: New file.
99437         * lib/gl_anylinked_list1.h: New file.
99438         * lib/gl_anylinked_list2.h: New file.
99439         * lib/gl_avltree_list.h: New file.
99440         * lib/gl_avltree_list.c: New file.
99441         * lib/gl_anyavltree_list1.h: New file.
99442         * lib/gl_anyavltree_list2.h: New file.
99443         * lib/gl_rbtree_list.h: New file.
99444         * lib/gl_rbtree_list.c: New file.
99445         * lib/gl_anyrbtree_list1.h: New file.
99446         * lib/gl_anyrbtree_list2.h: New file.
99447         * lib/gl_anytree_list1.h: New file.
99448         * lib/gl_anytree_list2.h: New file.
99449         * lib/gl_linkedhash_list.h: New file.
99450         * lib/gl_linkedhash_list.c: New file.
99451         * lib/gl_anyhash_list1.h: New file.
99452         * lib/gl_anyhash_list2.h: New file.
99453         * lib/gl_avltreehash_list.h: New file.
99454         * lib/gl_avltreehash_list.c: New file.
99455         * lib/gl_rbtreehash_list.h: New file.
99456         * lib/gl_rbtreehash_list.c: New file.
99457         * lib/gl_anytreehash_list1.h: New file.
99458         * lib/gl_anytreehash_list2.h: New file.
99460         * lib/gl_oset.h: New file.
99461         * lib/gl_oset.c: New file.
99462         * lib/gl_array_oset.h: New file.
99463         * lib/gl_array_oset.c: New file.
99464         * lib/gl_avltree_oset.h: New file.
99465         * lib/gl_avltree_oset.c: New file.
99466         * lib/gl_rbtree_oset.h: New file.
99467         * lib/gl_rbtree_oset.c: New file.
99468         * lib/gl_anytree_oset.h: New file.
99470 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99472         * m4/mkancesdirs.m4: New file.
99473         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99474         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99475         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99476         it.
99478 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99480         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99481         * lib/mkancesdirs.h: New files.
99482         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99483         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99484         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99485         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99486         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99487         callers changed.  Revamp internals significantly, by not
99488         attempting to create directories that are temporarily more
99489         permissive than the final results.  Do not attempt to use
99490         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99491         This removes some race conditions, fixes some bugs, and simplifies
99492         things.  Use new dirchownmod function to do owner and mode changes.
99493         * lib/mkdir-p.h: Likewise.
99494         * lib/modechange.c (octal_to_mode): New function.
99495         (struct mode_change): New member mentioned.
99496         (make_node_op_equals): New arg mentioned.  All callers changed.
99497         (mode_compile): Keep track of which mode bits the user has explicitly
99498         mentioned.
99499         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99500         New arg PMODE_BITS, to keep track of which mode bits the user
99501         mentioned; it treats S_ISUID and S_ISGID speciall.
99502         All callers changed.
99503         * lib/modechange.h: Likewise.
99505 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99507         * MODULES.html.sh: Add mkancestors.
99508         * modules/mkancesdirs: New module.
99509         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99510         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99511         The chdir-safer and afs files are now orphans; I'll remove them
99512         unless someone speaks up.
99513         Add lib/dirchownmod.c, lib/dirchownmod.h.
99514         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99515         Add lchown, mkancesdirs.
99516         (Maintainer): Add self.
99518 2006-07-15  Karl Berry  <karl@gnu.org>
99520         * gnulib-tool: help message wording/arrangement.
99522 2006-07-14  Simon Josefsson  <jas@extundo.com>
99524         * doc/gnulib.texi (Libtool and Windows): New section.
99526 2006-07-12  Simon Josefsson  <jas@extundo.com>
99528         * modules/gendocs (License): Fix license, approved by Karl.
99530 2006-07-12  Eric Blake  <ebb9@byu.net>
99532         * MODULES.html.sh: Add gendocs.
99534 2006-07-11  Eric Blake  <ebb9@byu.net>
99536         * modules/fdl: New module, to install doc/fdl.texi.
99537         * MODULES.html.sh: Add new section for documentation modules.
99538         * gnulib-tool: Avoid space-tab.
99539         (--doc-base): New option, to manage files from doc.
99541 2006-07-11  Eric Blake  <ebb9@byu.net>
99543         * m4/absolute-header.m4: Fix comments to match recent change.
99545 2006-07-11  Eric Blake  <ebb9@byu.net>
99547         * gnulib-tool: List --doc-base before --tests-base.
99549 2006-07-11  Derek R. Price  <derek@ximbiot.com>
99551         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
99553 2006-07-11  Bruno Haible  <bruno@clisp.org>
99555         * README: Mention where to put documentation.
99557 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99559         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
99561 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
99564         to stdint.m4.
99566 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99568         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
99569         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
99570         "no/such/file/stdint.h" when there is no such file, so that
99571         the resulting C code can be parsed by dodgy compilers.
99572         Problems reported by Bob Proulx.
99574 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99576         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
99577         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99578         macros into the GNU _D_EXACT_NAMLEN.
99579         * lib/savedir.c:  Likewise.
99580         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
99582 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99583         and Paul Eggert  <eggert@cs.ucla.edu>
99585         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
99586         * m4/savedir.m4:
99587         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99588         macros into the GNU _D_EXACT_NAMLEN.
99590 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
99593         around the absolute name, to work around a problem with the HP-UX
99594         11.23 native C compiler, reported by Bob Proulx.
99596 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99598         * doc/maintain.texi, make-stds.texi: Sync from
99599         <http://savannah.gnu.org/projects/gnustandards>.
99601 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99603         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
99605 2006-07-09  Jim Meyering  <jim@meyering.net>
99607         * m4/glob.m4: Remove a doubled word in a comment.
99609 2006-07-09  Jim Meyering  <jim@meyering.net>
99611         * lib/argp-pv.c: Remove a doubled word in a comment.
99612         * lib/check-version.c (check_version): Likewise.
99613         * lib/javacomp.c (compile_java_class): Likewise.
99615 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99617         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
99618         for the benefit of people using Autoconf 2.60.  If you want to
99619         support older Autoconf versions you can copy m4/onceonly_2_57.m4
99620         (or m4/onceonly.m4, if pre-2.57) manually.
99622 2006-07-08  Jim Meyering  <jim@meyering.net>
99624         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
99625         comment.
99626         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
99627         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
99628         comment.
99630 2006-07-08  Jim Meyering  <jim@meyering.net>
99632         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
99634 2006-07-07  Simon Josefsson  <jas@extundo.com>
99636         * tests/test-crc.c: Change expected crc value, the test vector
99637         were probably computed using the old broken crc.c?
99639 2006-07-06  Simon Josefsson  <jas@extundo.com>
99641         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
99642         now the canonical place for the M4 file).
99644         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
99645         from the sys_socket dependency now.
99647         * modules/inet_pton (Files): Ditto.
99649         * modules/inet_ntop (Files): Ditto.
99651 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99653         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
99654         not gl_PREREQ_GETUSERSHELL.
99656 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99658         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
99659         with only one argument, for Autoconf 2.60.
99660         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
99661         expand to nothing, so add a shell command to avoid syntax error.
99662         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99664 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99666         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
99668 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99670         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
99671         no longer needed.  Check for isblank decl.
99672         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
99673         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
99674         of existence.
99676 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99678         * lib/getloadavg.c: Use __VMS, not VMS.
99679         * lib/getopt.c: Likewise.
99680         * lib/getpagesize.h: Likewise.
99681         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
99682         and probably does not work.
99684 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99686         * lib/.cppi-disable: Add wcwidth.
99687         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
99688         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
99689         (ISGRAPH): Remove.  All uses changed to isgraph.
99690         (FOLD) [!defined _LIBC]: Remove special case.
99691         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
99692         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
99693         HAVE_ISBLANK.
99694         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
99695         case.
99697 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99699         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
99700         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
99701         brackets.  Other minor changes to suppress some compiler
99702         warnings.
99704 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99705         and Paul Eggert  <eggert@cs.ucla.edu>
99707         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
99708         of invoking obsolescent AC_HEADER_DIRENT macro.
99709         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
99710         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
99711         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
99712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
99713         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
99714         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99715         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
99716         * m4/readdir.m4: Remove; no longer needed.
99718 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99719         and Paul Eggert  <eggert@cs.ucla.edu>
99721         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
99722         Don't worry about this obsolete case any more.
99723         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
99724         directories.
99725         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
99726         worry about this obsolete case any more.
99727         * lib/fts.c: Likewise.
99728         * lib/getcwd.c: Likewise.
99729         * lib/glob.h: Likewise.
99730         * lib/savedir.c: Likewise.
99732 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99734         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
99735         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
99736         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
99737         needed.
99738         All uses removed.
99739         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99740         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99741         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
99742         needed.
99743         * m4/getdate.m4 (gl_GETDATE): Likewise.
99744         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99745         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99746         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99747         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99748         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99749         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99750         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
99751         needed.
99753 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99755         * lib/memcasecmp.c: Include <limits.h>.
99756         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
99757         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
99758         Don't assume isdigit succeeds only on '0' through '9'.
99760 2006-07-05  Eric Blake  <ebb9@byu.net>
99762         * modules/getaddrinfo (Depends-on): Add snprintf.
99764 2006-07-05  Eric Blake  <ebb9@byu.net>
99766         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
99767         to avoid 'header present but could not be compiled' on cygwin.
99769 2006-07-05  Eric Blake  <ebb9@byu.net>
99771         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
99772         missing from netdb.h.
99773         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
99775 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99777         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
99778         no longer needed.
99779         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
99780         * m4/getdate.m4 (gl_GETDATE): Likewise.
99781         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99782         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99783         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99784         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99785         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99787 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99789         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
99790         All uses of is_space replaced by isspace.
99791         * lib/exit.h: Don't talk about STDC_HEADERS.
99792         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
99793         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
99794         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
99795         replaced by isprint etc.
99796         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
99797         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99798         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
99799         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
99800         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
99801         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99803 2006-07-05  Bruno Haible  <bruno@clisp.org>
99805         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
99806         the function exists, before testing against AIX.
99807         Reported by Martin Lambers <marlam@marlam.de>.
99809 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99811         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
99812         From Mark D. Baushke.
99814 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99816         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
99817         to the absolute name, not just one, to bypass Sun C 5.8's
99818         "warning: #include of /usr/include/... may be non-portable".
99820 2006-07-04  Eric Blake  <ebb9@byu.net>
99822         * modules/dirname-tests: New test module.
99823         * tests/test-dirname.c: New file, replacing dirname.c
99824         TEST_DIRNAME section that was recently deleted.
99826 2006-07-04  Bruno Haible  <bruno@clisp.org>
99828         Assume ANSI C header files and <ctype.h> functions.
99829         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
99830         (mbsnwidth): Use isprint, iscntrl instead.
99832 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99834         Merge from coreutils.
99835         * MODULES.html.sh: Add xstrtold.
99836         * modules/xstrtold: New file.
99837         * modules/cycle-check (Files): Add lib/same-inode.h.
99838         * modules/dirname (Files): Add m4/double-slash-root.m4.
99839         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
99840         * modules/mkdir-p (Files): Add lib/same-inode.h.
99841         * modules/same (Files): Add lib/same-inode.h.
99843 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99845         * m4/absolute-header.m4: Renamed from full-header-path.m4.
99846         This is to keep the terminology clean; POSIX talks about
99847         "absolute pathnames", not "full pathnames", but the GNU
99848         Coding Standards say to use "path" for something else;
99849         so use "absolute" to keep both sides happy.
99850         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
99851         Set gl_absolute_header, not gl_full_header_path.
99852         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
99853         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
99854         All uses changed.
99856         Merge from coreutils.
99858         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99860         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
99861         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
99862         want to require the building of c-strtod.o.
99863         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
99864         needs -lm directly.
99865         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
99867         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
99869         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
99870         --as-needed option if available.  Problem reported by Albert Chin in
99871         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
99872         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
99873         cc merely issues a bunch of annoying warnings for --as-needed
99874         (this problem was reported by Bob Proulx).  Also, try linking with
99875         -lm to detect a bug in binutils 2.16 (this problem was reported
99876         by Ralf Wildenhues).
99878         2006-06-18  Jim Meyering  <jim@meyering.net>
99880         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
99881         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
99882         macro.
99883         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
99884         also check for glibc-2.4's abort-inducing bug.
99886         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
99887         Low-probability clean-up should be to use rmdir to get rid of
99888         the just-created directory, not unlink.
99890         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
99891         configure fail, and request a bug report to inform us about it.
99892         Add a comment that, barring reports to the contrary, in 2007 we'll
99893         assume ftruncate is universally available.
99895         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99897         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
99899         2006-03-12  Jim Meyering  <jim@meyering.net>
99901         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
99902         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
99903         * m4/same.m4 (gl_SAME): Likewise.
99904         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
99906         2006-03-11  Eric Blake  <ebb9@byu.net>
99908         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
99909         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
99910         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
99911         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
99913 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99915         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
99916         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
99917         reported by Mark D. Baushke, one in
99918         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
99920         Merge from coreutils.
99922         * lib/.cppi-disable: Add stdint_.h.
99923         * lib/.cvsignore: Add stdint.h.
99925         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99927         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
99928         both double and long double versions.
99929         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
99930         * lib/xstrtold.c: New file.
99931         * lib/xstrtod.h (xstrtold): New decl.
99933         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
99935         * lib/filemode.c (setst): Remove.
99936         (strmode): Rewrite to avoid setst.  This makes the code shorter,
99937         (arguably) clearer, and the generated code is a bit smaller on my
99938         Debian GNU/Linux stable x86 host.
99940         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99942         * lib/filemode.c: Include "filemode.h" first, to test the interface.
99943         Assume that filemode.h includes sys/types.h and sys/stat.h.
99944         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
99945         (ftypelet): Reorder to put common cases first, for efficiency.
99946         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
99947         to do 'M'.
99948         (strmode): Renamed from mode_string, and now stores 12 bytes instead
99949         of 10, for compatibility with FreeBSD.  All callers changed.
99950         (filemodestring): Now stores 12 bytes instead of 10, and sets file
99951         types that can't be deduced solely from st_mode.  First arg is now a
99952         const pointer.
99953         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
99954         (strmode): Renamed from mode_string.
99955         (filemodestring): New decl.
99956         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
99957         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
99958         needed.
99959         (S_ISPORT, S_ISWHT): New macros, if not already defined.
99961         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
99963         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
99964         fsusage.h now does that.  Include fsusage.h first, to test interface.
99965         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
99966         at most one method (the old code could have generated decls that
99967         didn't conform to C89, not that this was ever exercised).
99968         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
99970         2006-03-19  Jim Meyering  <jim@meyering.net>
99972         Work even in a chroot where d_ino values for entries in "/"
99973         don't match the stat.st_ino values for the same names.
99974         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
99975         number, iterate through all entries again, using lstat instead.
99976         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
99977         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
99979         * lib/getcwd.c (__getcwd): Clarify a comment.
99980         Use memcpy in place of a call to strcpy.
99982         2006-03-12  Jim Meyering  <jim@meyering.net>
99984         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
99985         matches that of the current directory (which we're about to chdir ".."
99986         out of), then save the dev-ino of the parent, instead.
99988         * lib/same-inode.h (SAME_INODE): New file/macro.
99989         * lib/chdir-safer.c (SAME_INODE): Remove definition.
99990         Include "same-inode.h", instead.
99991         * lib/same.c: Likewise.
99992         * lib/cycle-check.h: Include "same-inode.h".
99993         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
99994         * lib/cycle-check.c (SAME_INODE): Remove definition.
99995         * lib/root-dev-ino.h: Include "same-inode.h".
99997         2006-03-11  Eric Blake  <ebb9@byu.net>
99999         * lib/same.c (same_name): s/base_name/last_component/
100000         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
100001         * lib/filenamecat.c (file_name_concat): Likewise.
100003         2006-03-11  Eric Blake  <ebb9@byu.net>,
100004                     Paul Eggert  <eggert@cs.ucla.edu>
100006         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
100007         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
100008         drive prefix.
100009         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
100010         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
100011         (last_component): New method.
100012         * lib/dirname.c (dir_len): Determine when drive letters need a
100013         subsequent slash.  Preserve // when it is special.
100014         (dir_name): Don't append dot when drive letter is absolute.
100015         [TEST_DIRNAME]: Move into a full-blown gnulib test.
100016         * lib/basename.c (base_name): New semantics - malloc the result.
100017         Preserve // when it is special.  Preserve relative files that look
100018         like drive letters.
100019         (base_len): Preserve // when it is special.
100020         (last_component): New method, similar to old base_name semantics.
100021         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
100022         base_name.  Strip redundant slashes from ///.
100024 2006-07-03  Jim Meyering  <jim@meyering.net>
100026         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
100027         macro is used before the first cycle_check call.
100029 2006-07-03  Eric Blake  <ebb9@byu.net>
100031         * modules/dirname (Depends-on): Add xstrndup.
100033 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100035         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
100036         test cases, so that config.log is a bit easier to follow.
100038 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100040         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
100041         both are 64 bits, since this seems to be the tradition, and this
100042         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
100043         we ever run into a host that prefers long long to long in this
100044         case, we'll need another configure-time test.  Problem reported by
100045         Jim Meyering.
100047 2006-07-02  Eric Blake  <ebb9@byu.net>
100049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
100051 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100053         * modules/inttypes (Depends-on): No longer depends on stdint.
100054         * modules/stdint (Description): Say more about assumptions.
100055         Say that the fast types might differ.  Say macros are used.
100056         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
100057         (Makefile.am): Revise list of substituted symbols to match
100058         new stdint.m4.
100059         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
100060         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
100061         * tests/test-stdint.c (verify_same_types)
100062         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
100063         the code conforms to C99/C89.
100064         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
100065         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
100067 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100069         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
100070         but fix a bug, by requiring at least 64 bits.
100071         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100072         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
100073         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
100074         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
100076         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
100077         changes.  Make 2.59 a prerequisite.  Check and substitute for
100078         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
100079         inttypes.h.  Do not use special include files; just use the
100080         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
100081         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
100082         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
100083         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
100084         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
100085         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
100086         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
100087         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
100088         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
100089         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
100090         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
100091         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
100092         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
100093         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
100094         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
100095         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
100096         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
100097         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
100098         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
100099         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
100100         WINT_MAX.  Check for C99 conformance more strictly, by detecting
100101         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
100102         not check for things that C99 does not require, e.g., int8_t.  If
100103         a test isn't needed unless <stdint.h> isn't working, and is
100104         unlikely to be needed for any other reason, then don't do it
100105         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
100106         size_t, since we assume C89 freestanding at least.  Do not check
100107         for sig_atomic_t, wchar_t, or wint_t, since the code now does
100108         the right thing even if the types are not defined.  Instead use:
100109         (gl_STDINT_TYPE_PROPERTIES): New macro.
100110         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
100111         testing whether <sys/types.h> clashes, as Autoconf does this for
100112         us now.  All uses removed.
100113         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
100114         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
100115         (gl_CHECK_TYPE_SAME):
100116         Remove; no longer needed.
100117         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
100118         exists, since we'll return 0 anyway in that case.
100119         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
100121 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100123         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
100124         possible collision with system files.
100125         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
100126         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
100127         WCHAR_MIN and WCHAR_MAX in this case.
100128         (<stddef.h>): Do not include; no longer needed.
100129         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
100130         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
100131         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
100132         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
100133         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
100134         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
100135         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
100136         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
100137         !defined(__c99))]: Include in this case too, since it's harmless
100138         now.
100139         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
100140         dangerous to do so.
100141         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
100142         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
100143         (_STDINT_MIN, _STDINT_MAX): New macros.
100144         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
100145         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
100146         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
100147         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
100148         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
100149         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
100150         macros, not typedefs; this simplifies things quite a bit.
100151         Use long int for all types narrower than int64_t.
100152         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
100153         Define in terms of long long int or int64_t or long int,
100154         not int64_t or int32_t.  This saves some compile-time testing.
100155         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
100156         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
100157         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
100158         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
100159         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
100160         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
100161         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
100162         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
100163         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
100164         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
100165         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100166         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100167         undef any previous version and define our own version, for
100168         simplicity and consistency with the new macros for types.
100169         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100170         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100171         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
100172         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
100173         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
100174         @WINT_T_SUFFIX@ to keep things simple here.
100175         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
100176         Simplify by assuming typical 8/16/32/64 host, since we're
100177         already doing that elsewhere anyway.
100178         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
100179         and assume long long int is 64 bits if available.  This
100180         speeds up 'configure'.
100182 2006-07-01  Eric Blake  <ebb9@byu.net>
100184         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
100185         Reported by Andreas Buening.
100187 2006-07-01  Eric Blake  <ebb9@byu.net>
100189         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
100191 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100193         * lib/getaddrinfo.c: fixed typo
100195 2006-06-29  Jim Meyering  <jim@meyering.net>
100197         * modules/strftime (Maintainer): Add my name, since with the
100198         FPRINTFTIME changes strftime.c has forked from glibc.
100200 2006-06-29  Eric Blake  <ebb9@byu.net>
100202         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
100204 2006-06-29  Eric Blake  <ebb9@byu.net>
100206         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
100208 2006-06-29  Eric Blake  <ebb9@byu.net>
100210         * lib/stat_.h: New file.
100212 2006-06-29  Eric Blake  <ebb9@byu.net>
100214         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
100215         unused static function.
100217 2006-06-29  Eric Blake  <ebb9@byu.net>
100219         * doc/functions.texi (Function Portability): Document missing lstat
100220         on mingw.
100222 2006-06-29  Eric Blake  <ebb9@byu.net>
100224         * MODULES.html.sh: Add sys_stat.
100225         * modules/sys_stat: New module.
100226         * modules/mkstemp (Depends-on): Add sys_stat.
100228 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100230         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
100232 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100234         * m4/c-bs-a.m4: Removed.
100236 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100238         * lib/strftime.c: Assume strftime() exists.
100240 2006-06-29  Derek Price  <derek@ximbiot.com>
100242         * modules/c-bs-a: Removed - \a is C89.
100243         * MODULES.html.sh: Remove c-bs-a.
100245 2006-06-29  Bruno Haible  <bruno@clisp.org>
100247         * modules/wcwidth (License): Change to LGPL.
100249 2006-06-28  Simon Josefsson  <jas@extundo.com>
100251         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
100252         on _WIN32.
100254         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
100255         getnameinfo.
100257 2006-06-28  Simon Josefsson  <jas@extundo.com>
100259         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
100261 2006-06-28  Simon Josefsson  <jas@extundo.com>
100263         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
100264         functions there.  It will succeed on Windows XP, but on Windows
100265         2000 and (presumably) earlier, it will fail, and use the internal
100266         re-implementation.
100267         (use_win32_p): New function.
100268         (getaddrinfo): Use strtoul on servname, to support numeric ports.
100269         Support AI_NUMERICSERV to disable getservbyname.
100270         (getnameinfo): New function, only supports
100271         NI_NUMERICHOST|NI_NUMERICSERV for now.
100273         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
100274         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
100275         getnameinfo.
100277 2006-06-28  Eric Blake  <ebb9@byu.net>
100279         * modules/wcwidth: New file.
100280         * modules/mbchar (Depends-on): Add wcwidth.
100281         * modules/mbswidth (Depends-on): Add wcwidth.
100282         * MODULES.html.sh: Add wcwidth.
100284 2006-06-28  Eric Blake  <ebb9@byu.net>
100286         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
100287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
100289 2006-06-28  Eric Blake  <ebb9@byu.net>
100291         * lib/xvasprintf.h: Fix comments.
100293 2006-06-28  Eric Blake  <ebb9@byu.net>
100295         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100296         * lib/mbswidth.c (wcwidth): Move from here...
100297         * lib/wcwidth.h: ...to this new file.
100299 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100301         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100303         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100304         it's obsolete.
100305         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100307 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100309         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100310         Autoconf 2.60 says this stuff was obsolete.
100312 2006-06-28  Bruno Haible  <bruno@clisp.org>
100314         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100316 2006-06-28  Bruno Haible  <bruno@clisp.org>
100318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100319         gt_TYPE_WCHAR_T.
100321 2006-06-28  Bruno Haible  <bruno@clisp.org>
100323         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100324         declaration for wcwidth.
100325         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100327 2006-06-28  Bruno Haible  <bruno@clisp.org>
100329         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100330         (mkdir): Define using _mkdir.
100332 2006-06-28  Bruno Haible  <bruno@clisp.org>
100334         * lib/getaddrinfo.h: Fix POSIX URL.
100335         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100336         _WIN32.
100337         (use_win32_p): Make static.
100338         (getaddrinfo): Reject service name if it is empty or does not consist
100339         solely of decimal digits, or if its value is > 65535.
100340         (getnameinfo): Remove useless casts.
100342 2006-06-27  Simon Josefsson  <jas@extundo.com>
100344         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100345         Eggert and Martin Lambers.
100347 2006-06-27  Simon Josefsson  <jas@extundo.com>
100349         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100350         Eggert and Martin Lambers.
100352 2006-06-27  Bruno Haible  <bruno@clisp.org>
100354         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100355         result to 0, not to empty.
100356         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100358 2006-06-27  Bruno Haible  <bruno@clisp.org>
100360         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100362 2006-06-26  Simon Josefsson  <jas@extundo.com>
100364         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100365         present.
100367 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100369         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100370         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100371         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100373 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100375         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100377 2006-06-26  Bruno Haible  <bruno@clisp.org>
100379         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100381 2006-06-26  Bruno Haible  <bruno@clisp.org>
100383         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100385 2006-06-26  Bruno Haible  <bruno@clisp.org>
100387         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100388         SGI C compiler in pre-C99 mode.
100389         Suggested by Mark D. Baushke and Larry Jones.
100391 2006-06-26  Bruno Haible  <bruno@clisp.org>
100393         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100394         WCHAR_MAX.
100395         Reported by Mark D. Baushke and Larry Jones.
100397 2006-06-26  Bruno Haible  <bruno@clisp.org>
100399         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100400         in pre-C99 mode.
100401         Suggested by Mark D. Baushke and Larry Jones.
100403 2006-06-23  Simon Josefsson  <jas@extundo.com>
100404             Bruno Haible  <bruno@clisp.org>
100406         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100407         Emit mostlyclean-local rule.
100408         (func_emit_tests_Makefile_am): Likewise.
100409         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100411 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100413         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100415 2006-06-23  Bruno Haible  <bruno@clisp.org>
100417         * tests/test-stdint.c: Update to match ISO C 99 Technical
100418         Corrigendum 1.
100420 2006-06-23  Bruno Haible  <bruno@clisp.org>
100422         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100424 2006-06-23  Bruno Haible  <bruno@clisp.org>
100426         * lib/stdint_.h: Treat IRIX like OpenBSD.
100428 2006-06-23  Bruno Haible  <bruno@clisp.org>
100430         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100431         ISO C 99 Technical Corrigendum 1.
100433 2006-06-22  Simon Josefsson  <jas@extundo.com>
100435         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100436         MinGW.
100438 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100440         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100441         needed.  Some compiler complained about some of them.  Problem reported
100442         by Larry Jones in
100443         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100445 2006-06-21  Simon Josefsson  <jas@extundo.com>
100447         * tests/test-getaddrinfo.c: New file.
100449         * modules/getaddrinfo-tests: New file.
100451         * MODULES.html.sh: Add inet_pton.
100453         * modules/inet_pton: New file.
100455 2006-06-21  Simon Josefsson  <jas@extundo.com>
100457         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100458         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100459         of using the (limited) gnulib implementation on Windows XP.
100461         * m4/inet_pton.m4: New file.
100463 2006-06-21  Simon Josefsson  <jas@extundo.com>
100465         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100466         variable.
100468         * lib/socket_.h: Don't define WINVER.
100470         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100471         slightly modified to work in gnulib.
100473 2006-06-21  Simon Josefsson  <jas@extundo.com>
100475         * doc/gnulib.texi (Windows sockets): Add.
100477 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100479         * lib/read-file.c (fread_file): Start with buffer allocation of
100480         0 bytes rather than 1 byte; this simplifies the code.
100481         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100482         code to free buffer and save/restore errno.
100483         (internal_read_file): Remove unused local.
100485 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100487         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100488         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100489         Problem reported by Denis Excoffier in
100490         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100492 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100494         * modules/sys_socket, modules/socklen: Include sys/types since
100495         FreeBSD 4.x's sys/socket.h needs it.
100497 2006-06-19  Simon Josefsson  <jas@extundo.com>
100499         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100501 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100503         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100505 2006-06-19  Bruno Haible  <bruno@clisp.org>
100507         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100508         and FULL_PATH_INTTYPES_H in angle brackets.
100509         Reported by Mark D. Baushke <mdb@gnu.org>.
100511 2006-06-17  Eric Blake  <ebb9@byu.net>
100513         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100514         errno.
100516 2006-06-17  Bruno Haible  <bruno@clisp.org>
100518         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100519         <sys/inttypes.h>.
100521 2006-06-17  Bruno Haible  <bruno@clisp.org>
100523         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100524         whether errno is declared. Assume <errno.h> declares errno.
100526 2006-06-17  Bruno Haible  <bruno@clisp.org>
100528         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100530 2006-06-17  Bruno Haible  <bruno@clisp.org>
100532         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100533         problem on Solaris 2.5.1.
100535 2006-06-16  Eric Blake  <ebb9@byu.net>
100537         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100538         * lib/unicodeio.c [!defined errno]: Likewise.
100539         * lib/strtol.c [!defined errno]: Likewise.
100540         * lib/strtod.c [!defined errno]: Likewise.
100542 2006-06-15  Eric Blake  <ebb9@byu.net>
100544         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
100546 2006-06-15  Eric Blake  <ebb9@byu.net>
100548         * config/srclist.txt (ssize_t.m4): Lose sync.
100550 2006-06-15  Bruno Haible  <bruno@clisp.org>
100552         * modules/stdint (Files): Include m4/full-header-path.m4,
100553         m4/size_max.m4, m4/wchar_t.m4.
100554         (Makefile.am): Many more substitutions.
100555         * modules/stdint-tests: New file.
100556         * tests/test-stdint.c: New file.
100558 2006-06-15  Bruno Haible  <bruno@clisp.org>
100560         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
100561         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
100562         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
100563         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
100564         gl_CHECK_TYPE_SAME): New macros.
100566 2006-06-15  Bruno Haible  <bruno@clisp.org>
100568         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
100570 2006-06-15  Bruno Haible  <bruno@clisp.org>
100572         * lib/stdint_.h: Rewritten to be fully auto-configured.
100573         Fixes bug on HP-UX/IA64.
100575 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
100577         * lib/getdate.y (__attribute__): Don't define if already defined.
100578         Problem reported by Larry Jones.
100579         * lib/utimens.c (__attribute__): Likewise.
100581 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
100583         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
100584         reported by Andreas Schwab.
100586 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100587             Bruno Haible  <bruno@clisp.org>
100589         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
100590         check for the declaration of strnlen and a run test that exposes the
100591         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
100592         rpl_strndup.
100594 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100595             Bruno Haible  <bruno@clisp.org>
100597         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
100599 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100601         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
100602         compile test, for Tru64 4.0D.
100604 2006-05-28  Karl Berry  <karl@gnu.org>
100606         * config/srclist.txt (printf-args.c): lose sync.
100608 2006-05-26  Martin Lambers  <marlam@marlam.de>
100610         * lib/getpass.c: Updates the test for the native W32 API, and adds
100611         missing includes, thus fixing compilation warnings.
100613 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100615         * lib/exclude.c (exclude_fnmatch): New function.
100616         (excluded_file_name): Call exclude_fnmatch.
100617         * lib/exclude.h (excluded_file_name): New prototype
100619 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
100621         * lib/tempname.c (small_open, large_open): New macros.
100622         (__open, __open64) [!_LIBC]: Remove.
100623         (__gen_tempname): Use small_open and large_open instead of __open
100624         and __open64.  This fixes a portability bug on HP-UX 11.11i
100625         reported by Simon Wing-Tang in
100626         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
100628 2006-05-24  Bruno Haible  <bruno@clisp.org>
100630         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
100631         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
100632         Reported by Thorsten Maerz <torte@netztorte.de> via
100633         Aaron Stone <aaron@serendipity.cx>.
100635 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
100638         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
100639         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
100640         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
100641         not really conditional on the cache.
100642         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
100644 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100646         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
100647         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
100648         (my_usleep): Don't mishandle maximum value.
100650 2006-05-19  Jim Meyering  <jim@meyering.net>
100652         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
100654 2006-05-17  Bruno Haible  <bruno@clisp.org>
100656         Cygwin portability.
100657         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
100659 2006-05-17  Bruno Haible  <bruno@clisp.org>
100661         * lib/stdint_.h: Fix recognition of Cygwin.
100663 2006-05-15  Bruno Haible  <bruno@clisp.org>
100665         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
100666         on libtool patch by Ralf Wildenhues.
100668 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100670         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
100671         test for C99 conformance; (bool) 0.5 is an integer constant
100672         expression, but (bool) -0.5 is not.  Problem reported by Fedor
100673         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
100675 2006-05-11  Simon Josefsson  <jas@extundo.com>
100677         * m4/xvasprintf.m4: Fix obvious typo.
100679 2006-05-11  Jim Meyering  <jim@meyering.net>
100681         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
100682         James Lemley.
100684 2006-05-10  Simon Josefsson  <jas@extundo.com>
100686         * lib/md4.c: Typo fix, update copyright years.
100687         (K1, K2): Don't use L because it turn computations into 64-bit on
100688         64-bit platforms.
100690 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
100692         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
100693         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
100694         unwanted sign propagation, e.g., on hosts with 64-bit int.
100695         There still are some problems with reeelly weird theoretical hosts
100696         (e.g., 33-bit int) but it's not worth worrying about now.
100697         * lib/sha1.c (rol): Likewise.
100698         (K1, K2, K3, K4): Remove unnecessary L suffix.
100700 2006-05-10  Bruno Haible  <bruno@clisp.org>
100702         * lib/des.c: Cast to avoid warnings.
100704 2006-05-09  Bruno Haible  <bruno@clisp.org>
100706         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
100707         (Depends-on): Depend also on xsize, stdarg.
100708         (configure.ac): Add gl_XVASPRINTF.
100710 2006-05-09  Bruno Haible  <bruno@clisp.org>
100712         * m4/xvasprintf.m4: New file.
100714 2006-05-09  Bruno Haible  <bruno@clisp.org>
100716         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
100717         (EOVERFLOW): Define fallback value.
100718         (xstrcat): New function.
100719         (xvasprintf): Recognize the special case of a string concatenation.
100721 2006-05-08  Eric Blake  <ebb9@byu.net>
100723         * gnulib-tool (func_version): Base copyright year on CVS date.
100724         (func_emit_copyright_notice): New function.
100725         (func_emit_lib_Makefile_am): Use it.
100726         (func_emit_tests_Makefile_am): Likewise.
100727         (func_import): Likewise.
100729 2006-05-08  Bruno Haible  <bruno@clisp.org>
100731         * modules/stdarg: New file.
100732         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
100734 2006-05-08  Bruno Haible  <bruno@clisp.org>
100736         * m4/stdarg.m4: New file, from GNU gettext.
100738 2006-05-08  Bruno Haible  <bruno@clisp.org>
100740         * config/srclist.txt (build-aux/config.rpath): different from latest
100741         release.
100743 2006-05-08  Bruno Haible  <bruno@clisp.org>
100745         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
100747 2006-05-05  Jim Meyering  <jim@meyering.net>
100749         * m4/warning.m4: New file, derived from bison's file by the same name.
100751 2006-05-03  Bruno Haible  <bruno@clisp.org>
100753         * lib/stdint_.h: Shorter URL.
100754         * lib/inttypes.h: Likewise.
100756 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100758         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
100760 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100762         * lib/verify.h: Document the internals better.  Most of this change
100763         was written by Bruno Haible.
100765 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100767         * doc/verify.texi: New file, partly based on a proposal by
100768         Bruno Haible.
100770 2006-05-02  Bruno Haible  <bruno@clisp.org>
100772         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
100773         test from here...
100774         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
100776 2006-04-29  Bruno Haible  <bruno@clisp.org>
100778         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
100779         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
100781 2006-04-29  Bruno Haible  <bruno@clisp.org>
100783         * gnulib-tool: Make --update option actually work.
100785 2006-04-29  Bruno Haible  <bruno@clisp.org>
100787         * doc/gcd.texi: New file.
100788         * doc/gnulib.texi: Include it.
100790 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
100792         * lib/getdate.y (get_date): When adding relative date, start with the
100793         initial time, not with the result of the first mktime call.
100795 2006-04-25  Bruno Haible  <bruno@clisp.org>
100797         * gnulib-tool (func_import): Output the include directives in three
100798         blocks, sorted separately.
100799         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100801 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100803         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
100804         to define main with arguments, for C++.  Reported by Eric Blake.
100805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
100806         Prefer 'int main ()' to 'int main (void)', for C++.
100807         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
100808         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
100809         for 'main', for C99 and C++.
100811 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100813         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
100814         Don't assume that exit status -1 is valid.
100815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
100816         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
100817         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
100818         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
100819         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
100820         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
100821         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
100822         functions can be used without declaring them, or that you can
100823         exit with status -1.
100824         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
100826 2006-04-24  Karl Berry  <karl@gnu.org>
100828         * config/srclist.txt (longdouble.m4): sync lost.
100830 2006-04-24  Eric Blake  <ebb9@byu.net>
100832         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
100834 2006-04-24  Bruno Haible  <bruno@clisp.org>
100836         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
100837         poll() implementation in AIX.
100838         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100840 2006-04-24  Bruno Haible  <bruno@clisp.org>
100842         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
100843         assigned exactly once.
100845 2006-04-23  Claudio Fontana  <claudio@gnu.org>
100846             Bruno Haible  <bruno@clisp.org>
100848         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
100849         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
100850         for AM_CPPFLAGS.
100852 2006-04-23  Bruno Haible  <bruno@clisp.org>
100854         * modules/copy-file: Depend on unistd.
100855         * modules/execute: Likewise.
100856         * modules/fatal-signal: Likewise.
100857         * modules/findprog: Likewise.
100858         * modules/mkdtemp : Likewise.
100859         * modules/pipe: Likewise.
100860         * modules/wait-process: Likewise.
100862 2006-04-23  Bruno Haible  <bruno@clisp.org>
100864         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
100865         condition was already detected.
100866         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100868 2006-04-23  Bruno Haible  <bruno@clisp.org>
100870         * lib/copy-file.c: Include <unistd.h> unconditionally.
100871         * lib/execute.c: Likewise.
100872         * lib/fatal-signal.c: Likewise.
100873         * lib/findprog.c: Likewise.
100874         * lib/mkdtemp.c: Likewise.
100875         * lib/pipe.h: Likewise.
100876         * lib/pipe.c: Likewise.
100877         * lib/wait-process.h: Likewise.
100879 2006-04-23  Bruno Haible  <bruno@clisp.org>
100881         * gnulib-tool (func_usage): Fix --import description. Document
100882         --update.
100883         (func_import): Create temporary file in a temporary directory, if
100884         --dry-run is specified. Silence errors from 'grep' when there are no
100885         m4 files in $m4dir.
100886         (func_create_testdir): Silence errors from 'grep' when there are no
100887         m4 files in $m4dir.
100888         Reported by Karl Berry <karl@freefriends.org>.
100890 2006-04-20  Bruno Haible  <bruno@clisp.org>
100892         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
100893         one argument, so that the code will be portable to Autoconf 2.60.
100894         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
100895         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
100896         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
100898 2006-04-19  Derek Price  <derek@ximbiot.com>
100899             Eric Blake  <ebb9@byu.net>
100901         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
100902         rather than "/full/path.h".  Update comment to match.  Shorten &
100903         generalize m4_translit call via AS_TR_CPP.
100905 2006-04-19  Derek Price  <derek@ximbiot.com>
100906             Eric Blake  <ebb9@byu.net>
100908         * lib/inttypes.h: Correct grammar in comment.
100910 2006-04-18  Derek Price  <derek@ximbiot.com>
100911             Paul Eggert  <eggert@cs.ucla.edu>
100913         * modules/inttypes: New file.
100914         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
100916 2006-04-18  Derek Price  <derek@ximbiot.com>
100917             Paul Eggert  <eggert@cs.ucla.edu>
100919         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
100920         New files.
100922 2006-04-18  Derek Price  <derek@ximbiot.com>
100923             Paul Eggert  <eggert@cs.ucla.edu>
100925         * lib/inttypes.h: New file.
100926         * lib/strtoimax.c: Assume <inttypes.h>.
100928 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
100930         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
100931         isn't mounted.  Problem reported by Kir Kolyshkin.
100933 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100935         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
100936         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
100937         Derek R. Price.
100938         * lib/regex.h (RE_DUP_MAX): Update comment to match current
100939         implementation.
100941 2006-04-12  Eric Blake  <ebb9@byu.net>
100943         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
100944         is now done automatically by the corresponding Autoconf macro.
100946 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
100948         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
100949         time_r.h.
100951 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100953         Merge regex changes from libc, removing some of our
100954         POSIX-conformance changes that were rejected and redoing them in a
100955         less-intrusive way.
100957         * lib/regcomp.c (re_compile_internal, init_dfa):
100958         Length arg is now size_t, not Idx.  All uses changed.
100959         (peek_token): Forward decl now says internal_function.
100960         (__re_error_msgid, __re_error_msgid_idx):
100961         Now static rather than extern with attribute_hidden.
100962         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
100963         For some reason libc prefers K&R style defns for external functions.
100964         (regerror) [!defined _LIBC]: Likewise.
100965         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
100966         (seek_collating_symbol_entry, lookup_collation_sequence_value):
100967         (build_range_exp, build_collating_symbol):
100968         Use K&R-style defn.
100969         (re_compile_fastmap): Use '\0' to memset, not 0.
100970         (utf8_sb_map): Make the calculations more obvious.
100971         (init_dfa, parse_bracket_exp, build_charclass_op):
100972         Call calloc and cast result, as glibc does.
100973         (init_word_char, fetch_token, peek_token, peek_token_bracket):
100974         (build_range_exp, build_collating_symbol):
100975         Now internal functions.
100977         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
100979         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
100980         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
100981         Don't depend on VMS; depend on __VMS instead, for POSIX
100982         namespace cleanness.
100983         (regoff_t): Define to ssize_t, not long int.
100985         Remove the REG_ macros named below.  Instead, make the old names
100986         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
100987         __USE_GNU_REGEX.
100988         (REG_BACKSLASH_ESCAPE_IN_LISTS):
100989         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
100990         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
100991         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
100992         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
100993         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
100994         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
100995         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
100996         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
100997         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
100998         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
100999         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
101000         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
101001         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
101002         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
101003         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
101004         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
101005         (REG_NREGS):
101006         Remove.  All uses replaced by the old RE_* names.
101007         (RE_BACKSLASH_ESCAPE_IN_LISTS):
101008         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
101009         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
101010         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
101011         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
101012         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
101013         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
101014         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
101015         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
101016         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
101017         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
101018         Don't bother having these macros be independent of each others'
101019         values, since they no longer exist in the POSIX name space.
101021         Rename the following member names back to their old names,
101022         unless !__USE_GNU_REGEX.  All uses changed back.
101023         (buffer): Renamed from re_buffer.
101024         (allocated): Renamed from re_allocated.
101025         (used): Renamed from re_used.
101026         (syntax): Renamed from re_syntax.
101027         (fastmap): Renamed from re_fastmap.
101028         (translate): Renamed from re_translate.
101029         (can_be_null): Renamed from re_can_be_null.
101030         (regs_allocated): Renamed from re_regs_allocated.
101031         (fastmap_accurate): Renamed from re_fastmap_accurate.
101032         (no_sub): Renamed from re_no_sub.
101033         (not_bol): Renamed from re_not_bol.
101034         (not_eol): Renamed from re_not_eol.
101035         (newline_anchor): Renamed from re_newline_anchor.
101036         (num_regs): Renamed from rm_num_regs.
101037         (start): Renamed from rm_start.
101038         (end): Renamed from rm_end.
101040         (free_state): Move up a bit.
101042         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
101043         #define to be empty.
101044         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
101045         when that is what is intended.
101046         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
101047         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
101048         (MAX): New macro.
101049         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
101050         All uses changed back to re_malloc, etc.  It's now the caller's
101051         responsibility to check for overflow; all callers changed.
101052         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
101053         (re_x2nrealloc): Remove.
101054         (free_state): Remove decl.
101056         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
101057         (re_set_registers, re_exec):
101058         Use K&R-style defn.
101060         2006-01-31  Roland McGrath  <roland@redhat.com>
101062         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
101063         Reported by Mike Frysinger <vapier@gentoo.org>.
101065         2006-01-15  Andreas Jaeger  <aj@suse.de>
101067         [BZ #1950]
101068         * lib/regex_internal.c (re_string_reconstruct): Adjust for
101069         build_wcs_upper_buffer change.
101070         (build_wcs_upper_buffer): Change return type.
101072         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
101074         * lib/regex_internal.h: Include <stdint.h> if available.
101076         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
101078         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
101080         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
101082         * lib/regcomp.c: Adjust for changed secondary hash function.
101084         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
101086         * lib/regex.h: Pretty printing.
101087         Clean up namespace a bit.
101089         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
101091         * lib/regexec.c (update_cur_sifted_state, check_arrival,
101092         check_arrival_add_next_nodes): Avoid using uninitialized variable.
101094         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101095                     Ulrich Drepper  <drepper@redhat.com>
101097         [BZ #1302]
101098         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
101099         changed.
101100         (bitset_word_t): Renamed from bitset_word.  All uses changed.
101102         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
101104         [BZ #281]
101105         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
101106         * lib/regcomp.c: Remove unnecessary uses of
101107         unsigned RE_TRANSLATE_TYPE.
101108         * lib/regex_internal.h: Likewise.
101109         * lib/regex_internal.c: Likewise.
101110         * lib/regexec.c: Likewise.
101111         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
101113         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
101115         * lib/regexec.c (find_recover_state): Remove unnecessary
101116         initialization.
101117         (transit_state_bkref): Make DFA a const pointer.
101118         (get_subexp): Likewise.
101119         (check_arrival): Likewise.
101120         (update_cur_sifted_state): Likewise.
101121         (re_search_internal): Likewise.
101122         (prune_impossible_nodes): Likewise.
101123         (acquire_init_state_context): Likewise.
101124         (proceed_next_node): Likewise.
101125         (set_regs): Likewise.
101126         (free_fail_stack_return): Likewise.
101127         (check_arrival_expand_ecl): Mark DFA parameter as const.
101128         (check_arrival_expand_ecl_sub): Likewise.
101129         (check_subexp_limits): Likewise.
101130         (sub_epsilon_src_nodes):  Likewise.
101131         (add_epsilon_src_nodes):  Likewise.
101132         (merge_state_array): Likewise.
101133         (update_regs): Likewise.
101134         (build_trtable): Likewise.
101135         (sift_states_backward): Mark MCTX parameter as const.
101136         (build_sifted_states): Likewise.
101137         (update_cur_sifted_state): Likewise.
101138         (sift_states_mkref): Likewise.
101139         (check_arrival_expand_ecl): Mark eclosure as const.
101140         (check_dst_limits_calc_pos_1): Likewise.
101141         * lib/regex_internal.h (re_match_context_t): Make dfa a const
101142         pointer.
101144         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
101146         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
101147         (transit_state_sb): Likewise.
101148         (transit_state_mb): Likewise.
101149         (sift_states_iter_mb): Likewise.
101150         (check_arrival_add_next_nodes): Likewise.
101151         (check_node_accept_bytes): Change first parameter to pointer-to-const.
101152         [_LIBC] (re_search_2_stub): Use mempcpy.
101154         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
101155         mbrtowc for very simple UTF-8 case.
101157         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
101158         a pointer-to-const.
101159         (re_acquire_state_context): Likewise.
101160         * lib/regex_internal.h: Adjust prototypes.
101162         * lib/regex.c: Prevent using C++ compilers.
101164         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
101165         (re_acquire_state_context): Likewise.
101167 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101169         * modules/regex (Depends-on): Add ssize_t.
101171 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101173         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
101174         translation table.
101176 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101178         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
101180 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
101181             Bruno Haible  <bruno@clisp.org>
101183         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
101184         <sys/types.h> and <inttypes.h>.
101186 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101188         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
101189         `__error_t_defined', so argp.h will not typedef the former.
101191 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
101193         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
101194         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
101195         glibc names.  Even if glibc is changed to conform to POSIX, the
101196         traditional names will be available anyway, since regex depends on
101197         the extensions module.  Also, fix a longstanding typo in the
101198         implementation of Spencer ERE test #75 from grep 2.3.  Problems
101199         reported by Emanuele Giaquinta.  Also, change sense of cached
101200         variable, so that the message makes sense.
101202 2006-03-24  Simon Josefsson  <jas@extundo.com>
101204         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
101205         including some doc fixes.
101206         (base64_encode_alloc): Fix +1 bug on allocation failures.
101208 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101210         * lib/base64.c (base64_encode): Do not read past end of array with
101211         unsanitized input on systems with CHAR_BIT > 8.
101213 2006-03-24  Eric Blake  <ebb9@byu.net>
101215         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
101217 2006-03-22  Karl Berry  <karl@gnu.org>
101219         * config/srclist.txt (*setenv.[ch]): get from coreutils.
101220         * config/srclistvars.sh (COREUTILS): new var.
101222 2006-03-17  Jim Meyering  <jim@meyering.net>
101224         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
101225         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
101227 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101229         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
101230         no longer needs it.  Instead, check that regoff_t is as least
101231         as wide as ptrdiff_t.
101233         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
101234         so that our regex.h stays compatible with the installed regex.
101235         This is helpful for installers who configure --without-included-regex.
101236         Problem reported by Emanuele Giaquinta.
101238 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101240         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
101241         Typedef to long int, not to off_, as POSIX will likely change
101242         in that direction.
101244 2006-03-15  Eric Blake  <ebb9@byu.net>
101246         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
101248 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101250         * lib/argp-help.c (validate_uparams): Fix typo
101251         * lib/argp-parse.c (argp_default_options): Consistently begin help
101252         messages with a lowercase letter.
101254 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
101256         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
101257         overrun buffers and shouldn't be used (much as gets shouldn't be
101258         used).
101259         * lib/time_r.c (asctime_r, ctime_r): Likewise.
101261 2006-03-08  Simon Josefsson  <jas@extundo.com>
101263         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
101264         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101266 2006-03-08  Simon Josefsson  <jas@extundo.com>
101268         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
101269         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101271 2006-03-08  Simon Josefsson  <jas@extundo.com>
101273         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
101274         signal that configure disabled the device.
101276 2006-03-08  Simon Josefsson  <jas@extundo.com>
101278         * build-aux/maint.mk: Fix refresh-po, to handle no translated
101279         languages.
101281 2006-03-07  Simon Josefsson  <jas@extundo.com>
101283         * modules/getopt (Depends-on): Add unistd.
101285         * modules/unistd: New file.
101287 2006-03-07  Simon Josefsson  <jas@extundo.com>
101289         * modules/gc-random: New file.
101291 2006-03-07  Simon Josefsson  <jas@extundo.com>
101293         * m4/unistd_h.m4: New file.
101295 2006-03-07  Simon Josefsson  <jas@extundo.com>
101297         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101298         test to be side-effect free by storing the result in the cache
101299         variable gl_cv_lib_readline, and moving the assignment of
101300         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101301         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101303 2006-03-07  Simon Josefsson  <jas@extundo.com>
101305         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101306         error on missing devices (the functions will return an error).
101308         * m4/gc.m4: Move random stuff to gc-random.m4
101310 2006-03-07  Simon Josefsson  <jas@extundo.com>
101312         * lib/unistd_.h: New file.
101314 2006-03-07  Simon Josefsson  <jas@extundo.com>
101316         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101318 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101320         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101321         Problem reported by Juan Manuel Guerrero.
101323 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101325         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101326         the unistd module.
101327         * lib/getlogin_r.c: Likewise.
101328         * lib/getlogin_r.h: Likewise.
101329         * lib/glob.c: Likewise.
101330         * lib/pagealign_alloc.c: Likewise.
101331         * lib/unistd_.h: Remove; no longer needed.
101333 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101335         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101336         Add unistd.
101337         * modules/c-stack (Depends-on): Add unistd.
101338         * modules/getlogin_r: Likewise.
101339         * modules/glob: Likewise.
101340         * modules/pagealign_alloc: Likewise.
101341         * modules/unistd (Files): Remove lib/unistd_.h.
101342         (EXTRA_DIST): Remove.
101343         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101344         need unistd_.h.
101345         (MOSTLYCLEANFILES): Remove unistd.h-t.
101347 2006-03-03  Simon Josefsson  <jas@extundo.com>
101349         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101351 2006-03-03  Simon Josefsson  <jas@extundo.com>
101353         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101354         libidn and bison.
101356 2006-03-03  Simon Josefsson  <jas@extundo.com>
101358         * build-aux/maint.mk: Add indent target.
101360 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101362         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101363         our replacement poll.h in any case, to avoid a differing
101364         declaration from a system header.  Seen on AIX.
101366 2006-03-01  Simon Josefsson  <jas@extundo.com>
101368         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101369         <kasal@ucw.cz>.
101371 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101373         * modules/gettime (Depends-on): Add extensions module.
101374         * modules/nanosleep (Depends-on): Likewise.
101375         * modules/settime (Depends-on): Likewise.
101377 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101379         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101380         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101381         pedantically.
101382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101383         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101385         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101386         not "==".  Reported by Ralf Wildenhues.
101388 2006-03-01  Karl Berry  <karl@gnu.org>
101390         * doc/Copyright/request-*: new files, synced from gnuorg.
101392 2006-03-01  Karl Berry  <karl@gnu.org>
101394         * config/srclist.txt (Copyright/*): new entries.
101396 2006-02-28  Simon Josefsson  <jas@extundo.com>
101398         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101400 2006-02-27  Simon Josefsson  <jas@extundo.com>
101402         * lib/base64.h: Indent #define's.  From Jim Meyering
101403         <jim@meyering.net>.
101405 2006-02-27  Jim Meyering  <jim@meyering.net>
101407         Revert the change of 2006-02-24, so these files can continue
101408         to be sync'd from gettext.
101409         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101410         of `config.h'.
101412 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101414         * modules/intprops: New file.
101415         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101416         Add intprops.
101417         * modules/getloadavg (Files): Remove lib/intprops.h.
101418         (Depends-on): Add intprops.
101419         * modules/human: Likewise.
101420         * modules/inttostr: Likewise.
101421         * modules/openat: Likewise.
101422         * modules/sig2str: Likewise.
101423         * modules/userspec: Likewise.
101424         * modules/utimecmp: Likewise.
101425         * modules/xnanosleep: Likewise.
101426         * modules/xstrtol: Likewise.
101428 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101430         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101431         * modules/lock-tests (TESTS): Use $(EXEEXT).
101432         * modules/tls-tests: Likewise.
101433         * modules/argp-tests: Likewise.
101434         (check_PROGRAMS): New var, replacing...
101435         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101437 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101439         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101440         `config.h'.
101442 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101444         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101446 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101448         Sync from coreutils.
101449         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101450         gl_CHDIR_SAFER.
101452 2006-02-22  Jim Meyering  <jim@meyering.net>
101454         Sync from coreutils.
101455         * m4/chdir-safer.m4: New file.
101457 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101459         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101460         AT_FDCWD exceeds INT_MAX.
101461         * lib/openat.h (AT_FDCWD): Likewise.
101463 2006-02-17  Eric Blake  <address@hidden>
101465         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101467 2006-02-16  Simon Josefsson  <jas@extundo.com>
101469         * modules/getaddrinfo (Depends-on): Add sys_socket.
101471 2006-02-15  Simon Josefsson  <jas@extundo.com>
101473         * build-aux/maint.mk: Add dsyntax-check rule.
101475 2006-02-15  Eric Blake  <ebb9@byu.net>
101477         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101478         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101479         'present but cannot compile' warnings on cygwin.
101480         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101481         use ws2tcpip.h if sys/socket.h works.
101482         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101483         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101485 2006-02-14  Simon Josefsson  <jas@extundo.com>
101487         * modules/maintainer-makefile (Files): Rename.
101489         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101490         and (the local) Makefile.cfg to maint-cfg.mk.
101492         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101493         to the latter.
101495         * modules/maintainer-makefile: New module.
101497         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101498         severaly stripped to make it possible to build it up from scratch
101499         with reliable tests.
101501         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101502         fixes to permit overriding the default actions when configure and
101503         makefile are not available.
101505 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101507         Sync from coreutils.
101508         * modules/lstat (Depends-on): Don't depend on xalloc.
101509         (License): Change from GPL to LGPL, since this is now simply a
101510         replacement for a libc function.
101512 2006-02-14  Jim Meyering  <jim@meyering.net>
101514         Sync from coreutils.
101516         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101517         failure on deficient systems, and simplify gnulib lgpl dependencies.
101518         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101519         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101521         * lib/xalloc-die.c: Remove unused definition of N_.
101523 2006-02-14  Jim Meyering  <jim@meyering.net>
101525         Sync from coreutils.
101526         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101527         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101528         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101529         double-quote uses of that variable, to accommodate the rare case in
101530         which getmntent is available in none of the libraries checked.  This
101531         happens at least on FreeBSD 5.0.
101533 2006-02-13  Simon Josefsson  <jas@extundo.com>
101535         * gnulib-tool (Usage): Fix --import, from
101536         karl@freefriends.org (Karl Berry).
101538 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101540         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101542 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
101544         * lib/argp-namefrob.h: Restore changes accidentally lost during the
101545         "autoupdate" on 2005-12-12.
101547 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101549         * modules/closeout (Depends-on): Remove atexit.
101551 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101553         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
101554         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
101556 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
101558         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
101559         __EXTENSIONS__ if this causes compilation to fail.  Problem
101560         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
101561         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
101563 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
101565         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
101566         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
101567         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
101568         All uses changed.
101570 2006-01-26  Simon Josefsson  <jas@extundo.com>
101572         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
101573         prototype is visible on mingw32.
101575         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
101576         for mingw32.
101578         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
101579         mingw32).
101581 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101583         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
101584         attempt to open for write; this always fails, at least on POSIX
101585         hosts.  This reinstates the 2006-01-09 change, which was
101586         inadvertently removed.
101588 2006-01-26  Bruno Haible  <bruno@clisp.org>
101590         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
101591         Reported by Paul Eggert.
101593 2006-01-26  Bruno Haible  <bruno@clisp.org>
101594             Paul Eggert  <eggert@cs.ucla.edu>
101596         * lib/stdbool_.h (_Bool)
101597         [(! (defined __cplusplus || defined __BEOS__)
101598           && !defined __GNUC__
101599           && !(defined __HP_cc || defined __xlc__
101600                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
101601                || defined __sgi))]:
101602         #define to signed char in these cases too; this simplifies
101603         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
101604         etc., separately) and makes it more conservative.
101606 2006-01-25  Simon Josefsson  <jas@extundo.com>
101608         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
101609         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
101610         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
101612 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101614         * lib/argp-namefrob.h: Bugfix. Remove stray #
101616 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
101618         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
101619         so that we test the test.
101620         Check for yet another HP-UX cc bug involving *bool |= bool.
101622 2006-01-25  Karl Berry  <karl@gnu.org>
101624         * config/srclist.txt (vasnprintf.c): sync lost.
101626 2006-01-25  Jim Meyering  <jim@meyering.net>
101628         Sync from the stable (b5) branch of coreutils:
101630         * lib/fts.c (fts_children): Don't let close() clobber errno from
101631         failed fchdir().
101633         * lib/fts.c (fts_stat): When following a symlink-to-directory,
101634         don't necessarily interpret stat-fails+lstat-succeeds as indicating
101635         a dangling symlink.  That can also happen at least for ELOOP.
101636         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
101637         FYI, this bug predates the inclusion of fts.c in coreutils.
101639         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
101640         in their own block, so pre-c99 compilers don't object.
101642         Avoid the double-free (first in fts_read, second in fts_close) that
101643         would occur when an `active' directory is made inaccessible (e.g.,
101644         via chmod a-x) during a traversal.
101645         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101646         before returning.  Reproduce this failure by
101647         mkdir -p a/b; cd a; chmod a-x . b
101648         Reported by Stavros Passas.
101650 2006-01-25  Jim Meyering  <jim@meyering.net>
101652         * lib/fileblocks.c: Remove more useless parentheses.
101653         * lib/readutmp.h: Likewise.
101655 2006-01-25  Bruno Haible  <bruno@clisp.org>
101657         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
101658         warnings.
101659         Reported by Paul Eggert.
101661 2006-01-25  Bruno Haible  <bruno@clisp.org>
101663         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
101664         rid of a trap command. For Solaris sh.
101665         Reported by Mark D. Baushke <mdb@gnu.org>.
101667 2006-01-24  Simon Josefsson  <jas@extundo.com>
101669         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
101670         Bruno.
101672 2006-01-24  Karl Berry  <karl@gnu.org>
101674         * config/srclist.txt (argp-namefrob.h): sync lost.
101676 2006-01-24  Jim Meyering  <jim@meyering.net>
101678         * modules/openat (Files): Add lib/intprops.h.
101679         From Mark D. Baushke.
101681 2006-01-24  Jim Meyering  <jim@meyering.net>
101683         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
101684         Reported by Mark D. Baushke.
101686 2006-01-24  Jim Meyering  <jim@meyering.net>
101688         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
101690 2006-01-24  Bruno Haible  <bruno@clisp.org>
101692         * modules/strnlen (Maintainer): Change from glibc to all.
101694 2006-01-24  Bruno Haible  <bruno@clisp.org>
101696         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
101697         Patch by Paul Eggert.
101699 2006-01-24  Bruno Haible  <bruno@clisp.org>
101701         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
101702         already has it.
101703         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
101704         2005-11-26.
101706         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
101707         'signed char' to avoid problems with the built-in _Bool type.
101708         Reported by Paul Eggert on 2005-11-26.
101710 2006-01-24  Bruno Haible  <bruno@clisp.org>
101712         * gnulib-tool (func_import): Avoid constructing complicated sed
101713         expressions inside backquote.
101714         Report and solution by Mark D. Baushke <mdb@gnu.org>.
101716 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
101718         These changes imported from libc.
101719         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
101720         test and two separate function calls.
101721         * lib/strndup.c (__strndup): Add libc_hidden_def.
101723 2006-01-23  Simon Josefsson  <jas@extundo.com>
101725         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
101726         Remove the test_*_SOURCES variable: automake infers it by default.
101727         * modules/tls-tests: Likewise.
101729 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101731         Work around porting bugs reported by Dieter in
101732         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
101733         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
101734         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
101735         Include "getopt.h" first, to check interface.
101736         (getenv): Declare only if defined HAVE_DECL_GETENV &&
101737         !HAVE_DECL_GETENV.
101738         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
101739         (__strndup): Revert to K&R-style function dfns, the glibc style.
101740         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
101741         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
101742         Include strnlen.h first, to get prototype properly.
101743         (strnlen): Renamed from __strnlen.
101744         Remove weak alias.
101746 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101748         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
101750 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101752         * config/srclist.txt: Adjust to reflect glibc reorganization.
101753         This affects only comments.
101755 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101757          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
101758          Reported by Bruce Korb <bkorb@gnu.org>.
101760 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
101762         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
101763         to pacify gcc -Wswitch-default.
101765 2006-01-22  Bruno Haible  <bruno@clisp.org>
101767         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
101768         temporary buffer for sprintf, take into account the precision also
101769         for 'd', 'i', 'u', 'o', 'x', 'X'.
101771 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101773         * modules/argp-tests: New module
101774         * tests/test-argp.c: New file
101775         * tests/test-argp-2.sh: New file
101777 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101779         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
101780         (__argp_base_name): Removed
101781         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
101782         typo.
101783         (__argp_base_name): Provide macro definition or extern declaration
101784         depending on the configuration
101786 2006-01-20  Simon Josefsson  <jas@extundo.com>
101788         * modules/inet_ntop (Depends-on): Depend on sys_socket.
101790 2006-01-20  Simon Josefsson  <jas@extundo.com>
101792         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
101794 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101796         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
101797         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
101798         Suggested by Bruno Haible.
101800 2006-01-20  Karl Berry  <karl@gnu.org>
101802         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
101803         until changes propagate, I guess.
101805 2006-01-19  Simon Josefsson  <jas@extundo.com>
101807         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
101809 2006-01-19  Simon Josefsson  <jas@extundo.com>
101811         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
101813 2006-01-19  Simon Josefsson  <jas@extundo.com>
101815         * gnulib-tool: Set check_PROGRAMS.
101817         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101818         modules/des-tests, modules/gc-arcfour-tests,
101819         modules/gc-arctwo-tests, modules/gc-des-tests,
101820         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101821         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101822         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101823         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101824         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101825         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
101826         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
101827         test_*_SOURCES.
101829 2006-01-18  Simon Josefsson  <jas@extundo.com>
101831         * modules/socklen (Depends-on): Depend on sys_socket.
101833 2006-01-18  Simon Josefsson  <jas@extundo.com>
101835         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101836         modules/des-tests, modules/gc-arcfour-tests,
101837         modules/gc-arctwo-tests, modules/gc-des-tests,
101838         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101839         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101840         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101841         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101842         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101843         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
101844         $(EXEEXT) to automake TESTS variable, for mingw32.
101846 2006-01-17  Simon Josefsson  <jas@extundo.com>
101848         * modules/socklen (Include): Need sys/socket.h.
101850 2006-01-17  Bruno Haible  <bruno@clisp.org>
101852         * modules/ssize_t (Include): Add <sys/types.h>.
101854 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
101856         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
101857         it's not portable and it doesn't work with cross-compiles.
101858         Problem reported by Bruno Haible.  Fix missing-$ typo in
101859         'test "gl_cv_ignore_unused_libraries" ...' that prevented
101860         -zignore from being used with Sun's C compiler.
101862 2006-01-12  Simon Josefsson  <jas@extundo.com>
101864         * lib/base64.c: Fix warning, reported by Bruno Haible
101865         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
101867 2006-01-12  Bruno Haible  <bruno@clisp.org>
101869         * modules/ldd: New file.
101870         * build-aux/ldd.sh.in: New file.
101871         * MODULES.html.sh (Support for building libraries and executables): Add
101872         ldd.
101874 2006-01-12  Bruno Haible  <bruno@clisp.org>
101876         * m4/ldd.m4: New file.
101878 2006-01-12  Bruno Haible  <bruno@clisp.org>
101880         * gnulib-tool (func_import, func_create_testdir): Don't go into an
101881         endless loop while replacing $auxdir with build-aux.
101883 2006-01-11  Simon Josefsson  <jas@extundo.com>
101885         * lib/stdint_.h (SIZE_MAX): Add missing (.
101887 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
101889         Sync from coreutils.
101890         * lib/md5.c: Fix commentary typos.
101891         (alignof, UNALIGNED_P): No need for a GCC-specific version.
101892         * lib/md5.h (__attribute__): Remove; unused.
101893         * lib/sha1.c: Fix commentary to match md5 better.
101894         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
101895         so that we don't need to worry about alignment.  All uses changed.
101896         This merges the 2005-10-28 md5 change into sha1.
101898 2006-01-11  Jim Meyering  <jim@meyering.net>
101900         Sync from coreutils.
101901         * lib/md5.c (OP): Fix spacing.
101903 2006-01-11  Bruno Haible  <bruno@clisp.org>
101905         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101906         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
101907         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
101909 2006-01-11  Bruno Haible  <bruno@clisp.org>
101911         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101912         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
101913         the "early" section as well.
101915 2006-01-11  Bruno Haible  <bruno@clisp.org>
101917         Avoid "ar: no archive members specified" error on MacOS X.
101918         * gnulib-tool (func_modules_add_dummy): New function.
101919         (func_import, func_create_testdir): Invoke it.
101921 2006-01-11  Bruno Haible  <bruno@clisp.org>
101923         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
101924         with $auxdir in AC_CONFIG_FILES statements.
101926 2006-01-11  Bruno Haible  <bruno@clisp.org>
101928         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101929         Initialize also noinst_HEADERS to empty.
101931 2006-01-11  Bruno Haible  <bruno@clisp.org>
101933         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
101934         variables.
101935         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
101936         autoreconf.
101938 2006-01-11  Bruno Haible  <bruno@clisp.org>
101940         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
101941         overridable by the user.
101942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101944 2006-01-10  Simon Josefsson  <jas@extundo.com>
101946         * modules/sys_socket: New file.
101948 2006-01-10  Simon Josefsson  <jas@extundo.com>
101950         * m4/sys_socket_h.m4: New file.
101952 2006-01-10  Simon Josefsson  <jas@extundo.com>
101954         * lib/socket_.h: New file.
101956 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101958         * modules/readutmp (Maintainer): Add myself.
101960 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101962         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
101963         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
101964         People who are still concerned with buggy memcmp implementations
101965         can invoke gl_FUNC_MEMCMP themselves.
101967 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101969         * lib/regex_internal.h (BITSET_WORD_BITS):
101970         Work around a bug in 64-bit PGC (before version 6.1-2), where the
101971         preprocessor mishandles large unsigned values as if they were signed.
101972         Problem reported by Claudio Fontana in
101973         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
101975 2006-01-10  Jim Meyering  <jim@meyering.net>
101977         Avoid the double-free (first in fts_read, second in fts_close) that
101978         would occur when an `active' directory is made inaccessible (e.g.,
101979         via chmod a-x) during a traversal.
101980         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101981         before returning.  Reproduce this failure by
101982         mkdir -p a/b; cd a; chmod a-x . b
101983         Reported by Stavros Passas.
101985         Sync from coreutils.
101986         * lib/sha1.c: Tweak grammar in a comment.
101988 2006-01-10  Jim Meyering  <jim@meyering.net>
101990         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
101991         Patch by Joerg Sonnenberger.
101993 2006-01-10  Bruno Haible  <bruno@clisp.org>
101995         * modules/readutmp: Depend on module free.
101996         * modules/strtok_r: Depend on module restrict.
101998 2006-01-10  Bruno Haible  <bruno@clisp.org>
102000         * modules/gettext (configure.ac): Add an invocation of
102001         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
102003 2006-01-10  Bruno Haible  <bruno@clisp.org>
102005         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
102006         Reported by Werner Lemberg <wl@gnu.org>.
102008 2006-01-10  Bruno Haible  <bruno@clisp.org>
102010         * lib/localcharset.c: Update from GNU gettext.
102012 2006-01-10  Bruno Haible  <bruno@clisp.org>
102014         * lib/argp.h (__const): Remove macro. Use const instead.
102015         * lib/argp-fmtstream.h (__const): Likewise.
102016         * lib/glob_.h (__const): Remove macro.
102017         * lib/glob-libc.h: Use const instead of __const.
102019 2006-01-10  Bruno Haible  <bruno@clisp.org>
102021         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
102022         variable.
102023         Needed to avoid an automake error regarding the 'gettext' module.
102025 2006-01-09  Simon Josefsson  <jas@extundo.com>
102027         * modules/inet_ntop (Depends-on): Add restrict.
102029 2006-01-09  Simon Josefsson  <jas@extundo.com>
102031         * modules/gc-rijndael-tests (License): Put under LGPL.
102033         * modules/gc-des-tests (License): Likewise.
102035         * modules/gc-arcfour-tests (License): Likewise.
102037         * modules/gc-arctwo-tests (License): Likewise.
102039         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
102041         * modules/gc-hmac-sha1-tests (Files): Likewise.
102043         * modules/gc-hmac-md5-tests (License): Likewise.
102045         * modules/gc-sha1-tests (License): Likewise.
102047         * modules/gc-md5-tests (License): Likewise.
102049         * modules/gc-md4-tests (License): Likewise.
102051         * modules/gc-md2-tests (License): Likewise.
102053         * modules/gc-tests (License): Likewise.
102055         * modules/des-tests (License): Likewise.
102057         * modules/md4-tests (License): Likewise.
102059         * modules/md2-tests (License): Likewise.
102061 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102063         Sync from coreutils:
102065         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
102066         * modules/lib-ignore: New file.
102067         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
102068         chdir-safer.m4, lchmod.m4.
102069         * modules/openat: Add mkdirat.c, openat-priv.h.
102071 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102073         Sync from coreutils.
102074         * m4/lib-ignore.m4: New file.
102075         * m4/lchmod.m4: New file.
102077 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102079         Sync from coreutils.
102080         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
102081         for write access: POSIX says that must fail.
102082         * lib/fts.c (diropen): Likewise.
102083         * lib/save-cwd.c (save_cwd): Likewise.
102084         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
102085         well, for minor improvements on hosts that lack O_DIRECTORY.
102086         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
102087         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
102088         Fall back on chown if open failed with EACCES.
102090         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
102091         Report an error at compile-time if only a 1-second nominal clock
102092         resolution is found.
102094         * lib/lchmod.h: New file.
102095         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
102096         (make_dir_parents): Use lchown rather than chown, and
102097         lchmod rather than chmod.
102099         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
102100         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
102101         "proc" reported by n0dalus.
102103         * lib/mountlist.c: Include <limits.h>.
102104         (dev_from_mount_options)
102105         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
102106         New function.  It no longer assumes "dev=" has the System V meaning
102107         on Linux (since it doesn't).  It also parses "dev=" more carefully.
102108         (read_file_system_list)
102109         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
102110         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
102111         dev= in that case.
102113         * lib/posixtm.h (PDS_PRE_2000): New macro.
102114         * lib/posixtm.c (year): Arg is now syntax_bits rather than
102115         allow_century.  All usages changed.  Reject dates outside the range
102116         1969-1999 if PDS_PRE_2000 is used.
102118 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102120         Sync from coreutils.
102121         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
102122         (Time of day items): Mention the possibility of leap seconds.
102123         Problem reported by Dr. David Alan Gilbert.
102125 2006-01-09  Jim Meyering  <jim@meyering.net>
102127         Sync from coreutils.
102129         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
102131         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
102133         * lib/modechange.c (mode_compile): Reject an invalid mode string
102134         that starts with an octal digit.  From Andreas Gruenbacher.
102136         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
102137         and dup to open_safer and dup_safer, respectively.
102138         (openat_permissive): Fix typo in comment.
102140         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
102141         "gettext.h"; either no longer needed or are guaranteed by openat.h.
102142         (_): Remove; no longer needed.
102143         (openat): Renamed from rpl_openat; no need for rpl_openat
102144         since openat.h renames openat for us.
102145         Replace most of the body with a call to openat_permissive,
102146         to avoid duplicate code.
102147         Port to (probably hypothetical) environments were mode_t is
102148         wider than int.
102149         (openat_permissive): Require mode arg, so that we can check
102150         types better.  Put it just after flags.  Change cwd failure
102151         indicator from pointer-to-bool to pointer-to-errno-value.
102152         All callers changed.
102153         Invoke openat_save_fail and/or openat_restore_fail if
102154         cwd_errno is null, so that openat can call us.
102155         (openat_permissive, fdopendir, fstatat, unlinkat):
102156         Simplify errno handling to avoid some duplicate code,
102157         as it's OK to set errno on success.
102158         * lib/openat.h: Revamp code so that function macros depend on
102159         __OPENAT_PREFIX only, not also on AT_FDCWD.
102160         (openat_ro): Remove.  Caller changed to use openat_permissive.
102161         (openat_permissive): Now a macro, if not a function.
102162         (openat_restore_fail, openat_save_fail): Now always functions,
102163         since mkdirat needs them even if __OPENAT_PREFIX is defined.
102165         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
102166         and openat.c.
102167         * lib/mkdirat.c: Include openat-priv.h.
102168         Remove definitions of macros defined therein.
102169         * lib/openat.c: Likewise.
102171         * lib/mkdirat.c (mkdirat): New file and function.
102172         * lib/openat.h (mkdirat): Declare.
102174         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
102176         * lib/openat.h (openat_permissive): Declare.
102177         (openat_ro): Define.
102179         * lib/openat.c (EXPECTED_ERRNO): New macro.
102180         (openat_permissive): New function -- used in remove.c rewrite.
102181         (all functions): Set errno just before returning, only if there
102182         was an actual failure.
102183         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
102185         Emulate openat-family functions using Linux's procfs, if possible.
102186         Idea and some code based on Ulrich Drepper's glibc changes.
102188         * lib/openat.c: (BUILD_PROC_NAME): New macro.
102189         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
102190         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
102191         before falling back on save_cwd and restore_cwd.
102192         (fdopendir, fstatat, unlinkat): Likewise.
102194         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
102195         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
102197         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
102198         as second argument to va_arg.  Otherwise, some versions of gcc
102199         warn that `if this code is reached, the program will abort'.
102201 2006-01-09  Jim Meyering  <jim@meyering.net>
102203         Sync from coreutils.
102204         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
102205         Require openat-priv.h.
102207 2006-01-09  Bruno Haible  <bruno@clisp.org>
102209         * modules/strnlen (Include): Use strnlen.h.
102211 2006-01-09  Bruno Haible  <bruno@clisp.org>
102213         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
102215 2006-01-09  Bruno Haible  <bruno@clisp.org>
102217         * lib/sysexit_.h (EX_OK): New macro.
102218         Suggested by Martin Lambers <marlam@marlam.de>.
102220 2006-01-09  Bruno Haible  <bruno@clisp.org>
102222         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
102223         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
102225 2006-01-09  Bruno Haible  <bruno@clisp.org>
102227         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
102228         numbers.
102230 2006-01-09  Bruno Haible  <bruno@clisp.org>
102232         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
102233         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
102234         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
102235         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
102237 2006-01-09  Bruno Haible  <bruno@clisp.org>
102239         * build-aux/javacomp.sh.in: New file, moved from lib/.
102240         * modules/javacomp-script (Files): Update.
102241         (configure.ac): Add AC_CONFIG_FILES invocation.
102242         (EXTRA_DIST): Remove variable.
102244         * build-aux/javaexec.sh.in: New file, moved from lib/.
102245         * modules/javaexec (Files): Update.
102246         (configure.ac): Add AC_CONFIG_FILES invocation.
102247         (EXTRA_DIST): Remove javaexec.sh.in.
102249         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
102250         * modules/csharpcomp-script (Files): Update.
102251         (configure.ac): Add AC_CONFIG_FILES invocation.
102252         (EXTRA_DIST): Remove variable.
102254         * build-aux/csharpexec.sh.in: New file, moved from lib/.
102255         * modules/csharpexec (Files): Update.
102256         (configure.ac): Add AC_CONFIG_FILES invocation.
102257         (EXTRA_DIST): Remove csharpexec.sh.in.
102259 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102261         Sync from coreutils.
102263         Add POSIX ACL support
102264         * lib/acl.h (copy_acl, set_acl): Add declarations.
102265         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
102266         systems other than Linux.
102267         (chmod_or_fchmod): New function: use fchmod when possible,
102268         and chmod otherwise.
102269         (file_has_acl): Add a POSIX ACL implementation, with a
102270         Linux-specific subcase.
102271         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
102272         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
102273         acls are unsupported.
102274         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
102275         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
102276         are unsupported.
102278 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102280         Sync from coreutils.
102281         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
102283 2006-01-07  Bruno Haible  <bruno@clisp.org>
102285         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
102286         gl_EARLY.
102288 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102290         * lib/strftime.c (tzname): Don't declare if it is already #defined.
102291         Problem reported for Mingw by Mark Junker.
102293 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102295         * README: Gnulib normally doesn't generate a tarball.
102297 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102299         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102300         long int, not int, for nanosecond counts, so that people who are
102301         used to POSIX struct timespec won't be surprised.  Reported by Jim
102302         Meyering.
102304 2005-12-28  Bruno Haible  <bruno@clisp.org>
102306         * build-aux/config.rpath: Update from GNU gettext.
102308 2005-12-16  Jim Meyering  <jim@meyering.net>
102310         * modules/fprintftime: New module.
102311         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102313 2005-12-16  Jim Meyering  <jim@meyering.net>
102315         * m4/fprintftime.m4: New file.
102317 2005-12-16  Jim Meyering  <jim@meyering.net>
102319         * lib/fprintftime.c, lib/fprintftime.h: New files.
102321 2005-12-15  Simon Josefsson  <jas@extundo.com>
102323         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102324         new m4/socklen.m4.
102326 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102328         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102329         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102331 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102333         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102334         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102335         struct uparams is valid. Fall back to the default values if it is
102336         not.
102338 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102340         * modules/argp (Files): Add argp-pin.c
102341         (Depends-on): dirname
102342         (lib_SOURCES): Add argp-pin.c
102344 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102346         * m4/argp.m4:  Check if program_invocation_name and
102347         program_invocation_short_name are declared and define appropriate
102348         macros if they are not.
102350 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102352         * lib/argp-help.c (__argp_base_name): New function
102353         (__argp_short_program_name): Rewrite using __argp_base_name
102354         * lib/argp-namefrob.h: Define program_invocation_name and
102355         program_invocation_short_name if requested
102356         (__argp_base_name): Add prototype
102357         * lib/argp-parse.c (argp_def): Use gettext wrappers
102358         (argp_default_parser): Use __argp_base_name
102359         * lib/argp-pin.c: New file. Defines program_invocation_name and
102360         program_invocation_short_name on systems that lack them.
102362 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102364         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102365         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102366         porting problem reported by Georg Schwarz in
102367         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102369 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102371         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102372         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102373         porting problem reported by Georg Schwarz in
102374         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102376 2005-12-05  Bruno Haible  <bruno@clisp.org>
102378         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102379         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102380         Reported by Mark Junker <mjscod@gmx.de>.
102382 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102384         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102385         Use implementation from Albert Chin, with some
102386         comments/corrections by Stepan Kasal and myself.
102388 2005-12-02  Bruno Haible  <bruno@clisp.org>
102390         * gnulib-tool (func_import): Accept GPLed build tool modules when
102391         --lgpl is given.
102392         * modules/csharpcomp-script: New file.
102393         * modules/csharpcomp: Depend on it.
102394         * modules/javacomp-script: New file.
102395         * modules/javacomp: Depend on it.
102396         Suggested by Simon Josefsson.
102398 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102400         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102401         statement, to work around an HP-UX 10.20 compiler bug reported by
102402         Peter O'Gorman.
102404 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102406         * modules/savedir (Depends-on): Add openat.
102408 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102410         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102411         (uintmax_t) [defined uintmax_t]: Do not declare.
102412         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102413         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102414         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102415         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102416         sake of portability to weird hosts that C allows (though we don't
102417         know of any practical examples).
102419         * lib/savedir.h (fdsavedir): New decl.
102420         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102421         contains most of the former guts of savedir.
102422         (savedir): Use savedirstream.
102423         Include "openat.h".
102425 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102427         * modules/obstack (Files): Add m4/ulonglong.m4.
102428         Problem reported by Davide Angelocola.
102430 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102432         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102433         coreutils no longer futzes with rounding modes.
102435 2005-11-14  Jim Meyering  <jim@meyering.net>
102437         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102438         replacement of mkstemp.
102440 2005-11-10  Simon Josefsson  <jas@extundo.com>
102442         * lib/readline.c: Remove EOL.
102444 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102446         * modules/gethrxtime (Depends-on): Add gettime.
102448 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102450         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102451         or gettimeofday; no longer needed.
102453 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102455         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102456         time business.
102457         (gethrxtime) [! (HAVE_NANOUPTIME
102458         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102459         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102460         our own approximation.
102462 2005-11-08  Eric Blake  <ebb9@byu.net>
102464         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102466 2005-11-08  Eric Blake  <ebb9@byu.net>
102468         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102470 2005-11-04  Bruno Haible  <bruno@clisp.org>
102472         * gnulib-tool: Implement --update mode.
102474 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102476         Fix porting problem reported by Theodoros V. Kalamatianos.
102477         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102478         Don't assume that futimes failing means we must fail.
102480 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102482         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102483         variables to suggest the intended function of the PATH_MAX check.
102485 2005-10-30  Kean Johnston  <jkj@sco.com>
102487         Trivial changes to support SCO systems.
102488         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102489         as PATH_MAX.
102490         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102491         where __ptr is null when no I/O is pending.
102493 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102495         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102496         leave errno alone.  Problem reported by Dmitry V. Levin.
102498 2005-10-28  Simon Josefsson  <jas@extundo.com>
102500         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102501         Test more.
102503         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102505         * modules/md2, modules/md2-tests: New files.
102507 2005-10-28  Simon Josefsson  <jas@extundo.com>
102509         * m4/inet_ntop.m4: More tests.
102511         * m4/gc-md2.m4, md2.m4: New file.
102513 2005-10-28  Simon Josefsson  <jas@extundo.com>
102515         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102516         "restrict" keywords, as per POSIX.  Protect the function
102517         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102518         Don't use K&R prototypes.  Check the sprintf return values.
102519         Re-define EAFNOSUPPORT if not present.  Indent.
102521         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102522         suggested by Bruno Haible <bruno@clisp.org>.
102524         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102526         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102528         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102529         libgcrypt).
102531         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102533         * lib/md2.h, lib/md2.c: New files.
102535 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102537         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102538         errno alone.  Problem reported by Frederic Jolliton.
102540 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102542         * modules/verify (License): Change from GPL to LGPL.  This is a
102543         tiny module and there are apparently near-equivalents that are
102544         under the BSD license.
102546 2005-10-24  Simon Josefsson  <jas@extundo.com>
102548         * modules/sha1: Relicense to LGPL.
102550 2005-10-24  Simon Josefsson  <jas@extundo.com>
102552         * lib/md4.h: Shrink buffer size, now that we changed the type.
102554 2005-10-23  Simon Josefsson  <jas@extundo.com>
102556         * gnulib-tool (func_import): Fix --tests-base.
102558 2005-10-22  Simon Josefsson  <jas@extundo.com>
102560         * modules/arcfour (Depends-on): Need stdint.
102562 2005-10-22  Simon Josefsson  <jas@extundo.com>
102564         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
102565         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
102567 2005-10-22  Simon Josefsson  <jas@extundo.com>
102569         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
102570         suggested by Bruno Haible <bruno@clisp.org>.
102572 2005-10-22  Simon Josefsson  <jas@extundo.com>
102574         * lib/crc.h: Include stddef.h, for size_t.
102576 2005-10-22  Simon Josefsson  <jas@extundo.com>
102578         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
102579         arcfour_context struct (simplify test vector testing in GNU
102580         Shishi).
102582 2005-10-21  Simon Josefsson  <jas@extundo.com>
102584         * modules/des, modules/des-tests: New files.
102586         * modules/gc-des, modules/gc-des-tests: New files.
102588         * tests/test-des.c, tests/test-gc-des.c: New file.
102590 2005-10-21  Simon Josefsson  <jas@extundo.com>
102592         * modules/arctwo, modules/arctwo-tests: New files.
102594         * tests/test-arctwo.c: New file.
102596         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
102598         * tests/test-gc-arctwo.c: New file.
102600 2005-10-21  Simon Josefsson  <jas@extundo.com>
102602         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
102603         Bruno Haible <bruno@clisp.org>.
102605         * m4/gc-des.m4: New file.
102607 2005-10-21  Simon Josefsson  <jas@extundo.com>
102609         * m4/arctwo.m4: New file.
102611         * m4/gc-arctwo.m4: New file.
102613 2005-10-21  Simon Josefsson  <jas@extundo.com>
102615         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
102616         block.
102618 2005-10-21  Simon Josefsson  <jas@extundo.com>
102620         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
102621         <bruno@clisp.org>.
102623         * lib/hmac-sha1.c (hmac_sha1): Likewise.
102625         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
102626         Bruno Haible <bruno@clisp.org>.
102628         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
102629         <bruno@clisp.org>.
102631 2005-10-21  Simon Josefsson  <jas@extundo.com>
102633         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
102635 2005-10-21  Simon Josefsson  <jas@extundo.com>
102637         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
102639 2005-10-21  Simon Josefsson  <jas@extundo.com>
102641         * lib/des.h, lib/des.c: New files.
102643         * lib/gc-gnulib.c: Support DES.c
102645 2005-10-21  Simon Josefsson  <jas@extundo.com>
102647         * lib/arctwo.h, lib/arctwo.c: New files.
102649         * lib/gc-gnulib.c: Support ARCTWO.
102651 2005-10-21  Simon Josefsson  <jas@extundo.com>
102653         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
102654         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102656 2005-10-21  Simon Josefsson  <jas@extundo.com>
102658         * gnulib-tool (func_import, func_create_testdir): Define automake
102659         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
102660         Makefile.am snippet),
102661         suggested by Bruno Haible <bruno@clisp.org>.
102663         * modules/gc (Makefile.am): Use it.
102665 2005-10-21  Bruno Haible  <bruno@clisp.org>
102667         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
102668         patch.
102670 2005-10-19  Simon Josefsson  <jas@extundo.com>
102672         * tests/test-gc-rijndael.c: New file.
102674         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
102676 2005-10-19  Simon Josefsson  <jas@extundo.com>
102678         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
102679         interface too.
102681 2005-10-19  Simon Josefsson  <jas@extundo.com>
102683         * tests/test-gc-arcfour.c: New file.
102685         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
102687 2005-10-19  Simon Josefsson  <jas@extundo.com>
102689         * modules/gc-md4, modules/gc-md4-tests: New file.
102691         * tests/test-gc-md4.c: New file.
102693 2005-10-19  Simon Josefsson  <jas@extundo.com>
102695         * m4/gc-md4.m4: New file.
102697 2005-10-19  Simon Josefsson  <jas@extundo.com>
102699         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
102700         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
102701         <kasal@ucw.cz>.
102703 2005-10-19  Simon Josefsson  <jas@extundo.com>
102705         * m4/gc-arcfour.m4: New file.
102707         * m4/gc-rijndael.m4: New file.
102709 2005-10-19  Simon Josefsson  <jas@extundo.com>
102711         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
102713 2005-10-19  Simon Josefsson  <jas@extundo.com>
102715         * lib/gc-gnulib.c: Support ARCFOUR.
102717 2005-10-19  Simon Josefsson  <jas@extundo.com>
102719         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
102720         support.
102722         * lib/gc.h: Add ECB enum type.
102724         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
102726 2005-10-18  Simon Josefsson  <jas@extundo.com>
102728         * tests/test-md5.c: New file.
102730         * modules/md5-tests: New file.
102732 2005-10-18  Simon Josefsson  <jas@extundo.com>
102734         * tests/test-md4.c: New file.
102736         * modules/md4, modules/md4-tests: New files.
102738 2005-10-18  Simon Josefsson  <jas@extundo.com>
102740         * m4/md4.m4: New file.
102742 2005-10-18  Simon Josefsson  <jas@extundo.com>
102744         * lib/md4.h, lib/md4.c: New files, based on md5.?.
102746 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
102748         * gnulib-tool (func_create_testdir): Omit the second check whether
102749         BUILT_SOURCES in nonempty.
102751 2005-10-17  Simon Josefsson  <jas@extundo.com>
102753         * tests/test-rijndael.c: New file.
102755 2005-10-17  Simon Josefsson  <jas@extundo.com>
102757         * modules/sha1: Depend on stdint instead of md5.
102759         * modules/md5: Depend on stdint, remove uint32_t.
102761 2005-10-17  Simon Josefsson  <jas@extundo.com>
102763         * modules/gc-sha1-tests: New file.
102765         * tests/test-gc-sha1.c: New file.
102767 2005-10-17  Simon Josefsson  <jas@extundo.com>
102769         * m4/md5.m4: Remove call to uint32_t.m4.
102771 2005-10-17  Simon Josefsson  <jas@extundo.com>
102773         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
102775         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
102776         md5.h.
102778         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
102780         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
102782 2005-10-17  Simon Josefsson  <jas@extundo.com>
102784         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
102786 2005-10-17  Simon Josefsson  <jas@extundo.com>
102788         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
102790 2005-10-17  Simon Josefsson  <jas@extundo.com>
102792         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
102794         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
102796 2005-10-17  Bruno Haible  <bruno@clisp.org>
102798         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
102799         that it can also be used in a test.
102801 2005-10-16  Bruno Haible  <bruno@clisp.org>
102803         * gnulib-tool (func_emit_tests_Makefile_am): Also define
102804         TESTS_ENVIRONMENT, so that individual tests can augment it.
102806         * gnulib-tool (func_create_testdir): Use an intermediate target for
102807         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
102808         macros, like $(ALLOCA_H), which cannot be passed through the command
102809         line.
102811 2005-10-15  Simon Josefsson  <jas@extundo.com>
102813         * modules/rijndael-tests: New file.
102815         * modules/rijndael: New file.
102817 2005-10-15  Simon Josefsson  <jas@extundo.com>
102819         * m4/rijndael.m4: New file.
102821 2005-10-15  Simon Josefsson  <jas@extundo.com>
102823         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
102825         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
102827 2005-10-14  Simon Josefsson  <jas@extundo.com>
102829         * tests/test-arcfour.c: New file.
102831         * modules/arcfour, modules/arcfour-tests: New files.
102833 2005-10-14  Simon Josefsson  <jas@extundo.com>
102835         * m4/arcfour.m4: New file.
102837 2005-10-14  Simon Josefsson  <jas@extundo.com>
102839         * lib/arcfour.h, lib/arcfour.c: New files.
102841 2005-10-14  Roland McGrath  <roland@redhat.com>
102843         Import from libc.  [BZ #1331]
102844         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
102845         macro argument.
102846         Reported by Matej Vela <vela@debian.org>.
102848 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102850         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
102851         include <wchar.h>; no longer needed.
102853 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102855         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
102857 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
102858         and  Ulrich Drepper  <drepper@redhat.com>
102860         Import from libc.
102861         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
102862         instead of inline stream orientation test and two separate
102863         function calls.  Pay no attention to USE_IN_LIBIO.
102865 2005-10-13  Simon Josefsson  <jas@extundo.com>
102867         * modules/gc-hmac-md5-tests: New file.
102869         * tests/test-gc-hmac-sha1.c: New file.
102871         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
102873         * modules/gc-hmac-md5-tests: New file.
102875         * tests/test-gc-md5.c: New file.
102877         * modules/gc-md5-tests: New file.
102879 2005-10-13  Simon Josefsson  <jas@extundo.com>
102881         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
102882         Move memory allocation outside of loop.
102884 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
102886         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
102887         intermediate directory is in a read-only file system.  Problem
102888         reported by Eric Blake.
102890 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
102892         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
102894 2005-10-12  Simon Josefsson  <jas@extundo.com>
102896         * tests/test-hmac-sha1.c: New file.
102898         * modules/hmac-sha1-tests: New file.
102900         * modules/hmac-sha1: New file.
102902 2005-10-12  Simon Josefsson  <jas@extundo.com>
102904         * modules/gc-sha1: New file.
102906 2005-10-12  Simon Josefsson  <jas@extundo.com>
102908         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
102910         * tests/test-gc-pbkdf2-sha1.c: New file.
102912 2005-10-12  Simon Josefsson  <jas@extundo.com>
102914         * modules/gc-md5, modules/gc-hmac-md5: New files.
102916         * modules/gc (Files): Remove md5, memxor and hmac files.
102918 2005-10-12  Simon Josefsson  <jas@extundo.com>
102920         * m4/gc-pbkdf2-sha1.m4: New file.
102922         * m4/gc-hmac-sha1.m4: New file.
102924         * m4/gc-sha1: New file.
102926         * m4/hmac-sha1.m4: New file.
102928 2005-10-12  Simon Josefsson  <jas@extundo.com>
102930         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
102932         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
102934 2005-10-12  Simon Josefsson  <jas@extundo.com>
102936         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
102937         suggested by Bruno Haible <bruno@clisp.org>.
102939 2005-10-12  Simon Josefsson  <jas@extundo.com>
102941         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
102943 2005-10-12  Simon Josefsson  <jas@extundo.com>
102945         * lib/gc-pbkdf2-sha1.c: New file.
102947         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
102949 2005-10-12  Simon Josefsson  <jas@extundo.com>
102951         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
102953         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
102955 2005-10-12  Simon Josefsson  <jas@extundo.com>
102957         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
102958         GC_USE_HMAC_MD5, respectively.
102960         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
102961         (gc_md5): Fix typo.
102963         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
102965         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
102967         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
102969 2005-10-12  Bruno Haible  <bruno@clisp.org>
102971         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
102972         Reported by Stepan Kasal <kasal@ucw.cz>.
102974 2005-10-11  Simon Josefsson  <jas@extundo.com>
102976         * tests/test-crc.c: New file.
102978         * modules/crc, modules/crc-tests: New files.
102980 2005-10-11  Simon Josefsson  <jas@extundo.com>
102982         * m4/crc.m4: New file.
102984 2005-10-11  Simon Josefsson  <jas@extundo.com>
102986         * lib/gc.h: Add gc_hash and gc_hash_buffer.
102988         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
102990         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
102992 2005-10-11  Simon Josefsson  <jas@extundo.com>
102994         * lib/crc.h, lib/crc.c: New files.
102996         * lib/gc.h (gc_hash_buffer): Add doc.
102998 2005-10-11  Bruno Haible  <bruno@clisp.org>
103000         * modules/c-strcasestr: New file.
103001         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
103003 2005-10-11  Bruno Haible  <bruno@clisp.org>
103005         * modules/c-strcase: New file.
103006         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
103008 2005-10-11  Bruno Haible  <bruno@clisp.org>
103010         * lib/strcasecmp.c: Include limits.h.
103011         (strcasecmp): Avoid integer overflow on exotic platforms.
103012         * lib/strncasecmp.c: Include limits.h.
103013         (strncasecmp): Avoid integer overflow on exotic platforms.
103014         Reported by Paul Eggert.
103016 2005-10-11  Bruno Haible  <bruno@clisp.org>
103018         * lib/c-strcasestr.h: New file, from GNU gettext.
103019         * lib/c-strcasestr.c: New file, from GNU gettext.
103021 2005-10-11  Bruno Haible  <bruno@clisp.org>
103023         * lib/c-strcase.h: New file, from GNU gettext.
103024         * lib/c-strcasecmp.c: New file, from GNU gettext.
103025         * lib/c-strncasecmp.c: New file, from GNU gettext.
103027 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103029         * modules/mempcpy (License): GPL -> LGPL.
103030         * modules/strchrnul (License): Likewise.
103031         * modules/sysexits (License): Likewise.
103033 2005-10-08  Simon Josefsson  <jas@extundo.com>
103035         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
103037 2005-10-07  Simon Josefsson  <jas@extundo.com>
103039         * m4/memxor.m4: Remove gl_C_RESTRICT call.
103041 2005-10-06  Simon Josefsson  <jas@extundo.com>
103043         * tests/test-hmac-md5.c: New file.
103045         * modules/hmac-md5-tests: New file.
103047         * modules/hmac-md5: New file.
103049 2005-10-06  Simon Josefsson  <jas@extundo.com>
103051         * m4/hmac-md5.m4: New file.
103053         * m4/memxor.m4: Require gl_C_RESTRICT.
103055 2005-10-06  Simon Josefsson  <jas@extundo.com>
103057         * lib/memxor.c (memxor): Avoid casts and warnings.
103059 2005-10-06  Simon Josefsson  <jas@extundo.com>
103061         * lib/hmac-md5.c: New file.
103063         * lib/hmac.h: New file.
103065 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103067         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
103068         promotes to int, not unsigned int, to catch the AIX 5.3
103069         compiler bug.
103071 2005-10-05  Simon Josefsson  <jas@extundo.com>
103073         * modules/memxor: New file.
103075         * modules/iconv (Files): Move config.rpath to havelib, it is used
103076         there.
103078         * modules/havelib (Files): Add config.rpath.
103080 2005-10-05  Simon Josefsson  <jas@extundo.com>
103082         * m4/memxor.m4: New file.
103084 2005-10-05  Simon Josefsson  <jas@extundo.com>
103086         * lib/memxor.c (memxor): Fix compiler error.
103088         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
103089         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
103091         * lib/memxor.h, lib/memxor.c: New files.
103093         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
103094         we assume all systems have it, suggested by Jim Meyering
103095         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
103096         any systems lack sys/socket.h; mingw32 is known to lack it, but we
103097         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
103098         same reasons.
103100 2005-10-05  Simon Josefsson  <jas@extundo.com>
103102         * config/srclist.txt: Add glibc bug 1423 for md5.h.
103104 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
103106         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
103107         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
103108         needed, since the source code now assumes these .h files.
103110 2005-10-05  Derek Price  <derek@ximbiot.com>
103112         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
103114 2005-10-05  Bruno Haible  <bruno@clisp.org>
103116         * modules/stdint (License): Change to LGPL.
103118 2005-10-04  Simon Josefsson  <jas@extundo.com>
103120         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
103121         D. Baushke" <mdb@gnu.org>.
103123 2005-10-04  Bruno Haible  <bruno@clisp.org>
103125         * lib/verify.h (verify_true): Provide alternative definition for C++.
103127 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
103129         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
103130         (SSIZE_MAX): New macro, if not already defined.
103131         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
103132         than 2 GiB.
103134 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103136         Sync from coreutils.
103137         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
103138         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
103139         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
103140         ULLONG_MAX doesn't work with 2.7.2.1.
103142 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103144         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
103145         From Ben Pfaff.
103147         * modules/exclude (Depends-on): Depend on verify.
103148         * modules/strtoimax (Depends-on): Likewise.
103149         * modules/utimecmp (Depends-on): Likewise.
103151 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103153         * lib/exclude.c: Include verify.h.
103154         (verify): Remove.  All callers changed to use verify.h's version.
103155         * lib/strtoimax.c: Likewise.
103156         * lib/utimecmp.c: Likewis.e
103158         Sync from coreutils.
103159         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
103160         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
103161         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
103162         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
103163         bother returning ENOSYS if settimeofday or stime fails; just let
103164         them return whatever errno they want to return.
103165         * lib/utimens.c: Include unistd.h, for dup2.
103166         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
103167         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
103169 2005-10-02  Jim Meyering  <jim@meyering.net>
103171         Sync from coreutils.
103172         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
103173         from glibc-2.2.5 that fails for read-only files.
103175 2005-10-02  Jim Meyering  <jim@meyering.net>
103177         Sync from coreutils.
103178         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
103179         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
103180         `#if HAVE_CONFIG_H'.
103181         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
103182         Remove AT_FDCWD test.
103183         Do not consume the fd unless successful.
103184         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
103185         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
103186         block, so that we don't even try to compile it if settimeofday is
103187         available.  This works around a compilation failure on OSF1 V5.1,
103188         due to stime requiring a `long int*' while tv_sec is `int'.
103190 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
103192         Sync from coreutils.
103193         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
103194         against `yes', rather than just testing for nonempty.
103196 2005-10-01  Simon Josefsson  <jas@extundo.com>
103198         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
103199         and Darwin.
103201         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
103202         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
103203         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
103204         freeaddrinfo and gai_strerror are declared by the POSIX headers.
103205         Check if struct addrinfo is declared.
103207 2005-10-01  Simon Josefsson  <jas@extundo.com>
103209         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
103210         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
103211         AI_* and EAI_* definitions.  Protect function declarations.
103213 2005-10-01  Jim Meyering  <jim@meyering.net>
103215         Sync from coreutils.
103217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
103218         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
103219         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
103220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103221         in the inet and nsl libraries.  Required on Solaris 5.7.
103223 2005-10-01  Jim Meyering  <jim@meyering.net>
103225         Sync from coreutils.
103226         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103227         in the inet and nsl libraries.  Required on Solaris 5.7.
103229 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
103231         * lib/getdelim.c (getdelim): Remove unused variables.
103233 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
103235         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
103236         so that the code works even with ancient cpp.  Portability problem
103237         with GCC 2.7.2.1 reported by Thomas M.Ott.
103239 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
103241         * modules/regex (Depends-on): Add strcase.
103243         * modules/gethostname (Licence): Change from GPL to LGPL, since
103244         gethostname.c is a trivial implementation of a standard library
103245         function.
103246         * modules/poll (License): Change from GPL to LGPL, since it's
103247         derived from LGPL code.
103249 2005-09-27  Jim Meyering  <jim@meyering.net>
103251         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
103252         HAVE_CONFIG_H.
103254         * lib/intprops.h (signed_type_or_expr__): Define.
103255         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
103256         for unsigned types.
103258 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
103260         * lib/verify.h (verify_expr): Remove, replacing with:
103261         (verify_true): New macro that returns true instead of void.
103262         (verify_type__): Remove.
103263         (verify): Use verify_true rather than verify_type__.
103265 2005-09-26  Bruno Haible  <bruno@clisp.org>
103267         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
103268         is necessary.
103269         (lib_SOURCES): Remove mbchar.c.
103270         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
103271         (Files): Add m4/mbrtowc.m4.
103272         * modules/mbiter: Likewise.
103273         * modules/mbuiter: Likewise.
103275 2005-09-26  Bruno Haible  <bruno@clisp.org>
103277         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
103278         compile mbchar.c if they are not both present.
103279         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
103280         * m4/mbiter.m4 (gl_MBITER): Likewise.
103281         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
103282         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
103283         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
103285 2005-09-25  Jim Meyering  <jim@meyering.net>
103287         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
103288         also uses socklen_t.
103290 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
103292         * lib/utimens.c (ENOSYS): Define if not already defined.
103293         (futimens): Support having a null PATH if the file descriptor
103294         is nonnegative.
103296         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103297         Remove.
103298         (__attribute): Define to empty unless GCC 3.1 or later.
103299         This works around a core dump on OpenBSD 3.4, which has GCC
103300         2.95.3, which dumps core when given __attribute__(()).  It also
103301         simplifies other tests, since we really don't want to bother with
103302         worrying about which ancient version of GCC supported what.
103303         Original problem reported by Yoann Vandoorselaere, with part of
103304         the fix suggested by Derek Price.
103306 2005-09-24  Jim Meyering  <jim@meyering.net>
103308         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103309         so we can once again use a positive bitfield width of 1 -- now we
103310         don't have to explain why we were using a bitfield width of 2.
103312 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103314         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103315         and similarly for the other external symbols.  Problem reported
103316         by James Gallager.
103318         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103319         bug reported by Jim Meyering.
103321         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103323         not needed, since socklen is a prerequisite module.
103325 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103327         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103328         Problem reported by Eric Blake.
103329         (getaddrinfo): Initialize se so that it's not garbage.
103330         Redo internal storage allocation so that it doesn't make unportable
103331         assumptions about alignment.
103332         Fix a memory leak.
103334         * lib/utimens.c (futimens): Use futimesat if available.
103335         Prefer it to futimes since it doesn't have the futimes bug.
103337         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103338         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103339         Instead, declare a function that returns a pointer to an array,
103340         and use verify_type__ to declare the size of the array.
103341         Problem and germ of a solution reported by Bruno Haible.
103342         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103343         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103345 2005-09-23  Jim Meyering  <jim@meyering.net>
103347         Sync from coreutils.
103348         Correct build failure (socklen_t not defined) on at least
103349         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103352 2005-09-23  Jim Meyering  <jim@meyering.net>
103354         * modules/getaddrinfo (Depends-on): Add socklen.
103356 2005-09-23  Bruno Haible  <bruno@clisp.org>
103358         * tests/test-verify.c: New file.
103360 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103362         Sync from coreutils.
103364         * modules/argmatch (Depends-on): Add verify.
103365         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103366         unistd-safer.
103367         * modules/save-cwd (Depends-on): Likewise.
103369         * modules/openat (Files): Add lib/openat-die.c.
103370         (Depends-on): Remove error, exitfail.
103371         Add dirname.
103373         * modules/verify: New file.
103374         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103375         with "verify" module.
103377 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103379         Sync from coreutils.
103381         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103382         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103383         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103384         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103385         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103386         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103387         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103388         Don't bother checking for string.h, stdlib.h, unistd.h.
103389         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103390         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103391         module's job.
103392         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103393         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103395         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103396         (gl_GETDATE): Use it.
103398         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103400 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103402         Sync from coreutils.
103404         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103405         stat-time.h.
103406         * lib/argmatch.h: Include verify.h
103407         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103408         (ARGMATCH_ASSERT): Remove; unused.
103409         * lib/canonicalize.c: Assume STDC_HEADERS.
103410         * lib/exclude.c: Include "strcase.h".
103411         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103412         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103413         and stdio-safer.h.
103414         (getusershell): Call fopen, not fopen_safer.
103415         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103416         Do not include unistd-safer.h.
103417         (save_cwd): Don't call fd_safer; no longer needed
103418         now that we include fcntl--.h.
103420         * lib/getdate.y (relative_time): New type.
103421         (RELATIVE_TIME_0): New constant.
103422         (parser_control): Use relative_time instead of doing it ourselves.
103423         (%union): Add new relative_time rel member.
103424         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103425         Now typeless.
103426         (relunit, relunit_snumber): Now of type rel.
103427         (zone, rel, relunit, get_date): Adjust to above changes.
103429         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103430         Do not include unistd-safer.h.
103431         (getloadavg): Don't call fd_safer; no longer needed
103432         now that we include fcntl--.h.
103434         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103435         (make_dir_parents): Treat ENOSYS like EEXIST.
103437         Improve quality of diagnostics on restore_cwd failure.
103438         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103439         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103440         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103441         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103442         each time through the loop.  Do not diagnose restore_cwd failure;
103443         that is the caller's job (and perhaps the caller does not care).
103445         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103446         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103447         If the file already exists but is not a directory, don't bother
103448         to try to make its parents.
103449         Close potential file descriptor leak if we can't chdir("/") (!).
103450         Don't always return true if chdir($PWD) fails; return true only
103451         if the requested action was done successfully (except for the
103452         chdir($PWD)).
103453         Don't log final directory unless we actually made it.
103454         Refactor to avoid duplicate code to fix up permissions.
103455         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103457         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103458         to make it a bit faster and (I hope) clearer.
103459         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103460         Fix bug in formats like %2N.
103462         * lib/verify.h: New file.
103464 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103466         Sync from coreutils.
103467         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103469 2005-09-22  Jim Meyering  <jim@meyering.net>
103471         Sync from coreutils.
103473         * m4/lstat.m4 (gl_FUNC_LSTAT):
103474         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103475         Remove obsolete comment.
103476         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103477         * m4/xstrtod.m4: Likewise.
103479         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103481 2005-09-22  Jim Meyering  <jim@meyering.net>
103483         Sync from coreutils.
103485         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103487         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103488         the .tm_year member, since otherwise gcc-4.0 would now warn about
103489         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103491         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103492         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103494         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103495         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103496         when run in a time zone for which daylight savings time is in effect
103497         for the starting date.
103499         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103500         stop us from restricting permissions of just-created absolute-named
103501         directories.
103502         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103503         to restore initial working directory.
103504         * lib/mkdir-p.c (make_dir_parents): New parameter:
103505         different_working_dir, to tell caller if/when we change the working
103506         directory and are unable to return to the initial one.
103507         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103508         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103509         `return false'.  This fixes a bug introduced on 2004-07-30.
103511         * lib/openat.c (fdopendir): Be sure to close the supplied
103512         file descriptor before returning.  This makes our replacement
103513         implementation a little closer to Solaris's, where fdopendir
103514         ties the file descriptor to the returned DIR* pointer.
103515         * lib/openat.c (unlinkat): New function.
103516         * lib/openat.h (unlinkat): Add prototype.
103517         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103518         (openat_restore_fail): Rename from openat_restore_die.
103519         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103521         Provide an alternative to exiting immediately upon save_cwd or
103522         restore_cwd failure.  Now, an application can arrange e.g.,
103523         to perform a longjump in that case.
103524         * lib/openat.c: Include dirname.h.
103525         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103526         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103527         and openat_restore_die rather than calling error directly.
103528         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103530         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103531         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103532         define.
103534         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103535         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103536                             int utc, int nanoseconds);
103537         Background:
103538         date should not have to allocate a megabyte of virtual memory to
103539         handle a format argument like +%1048575T.  When implemented with
103540         strftime, it must allocate such a buffer, use strftime to fill it
103541         in, print it, then free it.
103542         With fprintftime, it simply prints everything and exits.
103543         With no need for memory allocation, that's one fewer way to fail.
103544         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
103545         optional field width, not before, so we accept %9:z, not %:9z.
103546         (my_strftime): Be sure to use L_('x') for literals.
103548         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
103549         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
103550         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
103551         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
103552         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
103553         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
103554         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
103555         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
103556         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
103557         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
103558         * lib/xgethostname.c, lib/xreadlink.c:
103559         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
103561         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
103562         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
103563         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
103564         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103565         and don't include <sys/file.h>).
103567 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
103569         Sync from coreutils.
103571         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
103572         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
103573         [!LDAV_DONE]: Avoid unused variable warning.
103575 2005-09-21  Bruno Haible  <bruno@clisp.org>
103577         * lib/unicodeio.h (unicode_to_mb): New declaration.
103579 2005-09-20  Derek Price  <derek@ximbiot.com>
103581         * lib/getaddrinfo.c: Don't include <netdb.h> included from
103582         getaddrinfo.h.
103584 2005-09-20  Bruno Haible  <bruno@clisp.org>
103586         * gnulib-tool: Remove trailing slashes from the values specified for
103587         --source-base, --m4-base, --tests-base, --aux-dir.
103588         Suggested by Simon Josefsson <jas@extundo.com>.
103590 2005-09-20  Bruno Haible  <bruno@clisp.org>
103592         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
103593         func_modules_to_filelist, func_import, func_create_testdir): Make all
103594         sorting results locale-independent, so that gnulib-cache.m4 doesn't
103595         change when gnulib-tool is invoked in a different locale.
103597 2005-09-19  Simon Josefsson  <jas@extundo.com>
103599         * m4/socklen.m4: Fix typo.
103601 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103603         Use a consistent style for including <config.h>.
103604         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
103605         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
103606         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
103607         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
103608         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
103609         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
103610         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
103611         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
103612         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
103613         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
103614         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
103615         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
103616         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
103617         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
103618         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
103619         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
103620         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
103621         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
103622         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
103623         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
103624         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
103625         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
103626         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
103627         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
103628         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
103629         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
103630         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
103631         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
103632         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
103633         lib/xstrtoumax.c, lib/yesno.c:
103634         Standardize inclusion of config.h.
103635         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
103636         lib/inttostr.h:  Removed inclusion of config.h from header files.
103637         * lib/inttostr.c:  Adjusted in-tree users.
103638         * lib/timespec.h: Remove superfluous warning to include config.h.
103639         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
103640         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
103641         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
103642         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
103643         config.h with HAVE_CONFIG_H.
103645 2005-09-19  Jim Meyering  <jim@meyering.net>
103647         * modules/pathmax (License): Change to LGPL.
103649 2005-09-19  Derek Price  <derek@ximbiot.com>
103651         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
103653 2005-09-19  Bruno Haible  <bruno@clisp.org>
103655         * gnulib-tool (import): Provide default for --tests-base.
103657 2005-09-19  Bruno Haible  <bruno@clisp.org>
103659         * doc/quote.texi: New file, extracted from gnulib.texi.
103660         * doc/ctime.texi: New file, extracted from gnulib.texi.
103661         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
103662         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
103663         * doc/gnulib.texi: Include them.
103665 2005-09-18  Bruno Haible  <bruno@clisp.org>
103667         Portability fix.
103668         * gnulib-tool (func_readlink): New function.
103669         (func_ln_if_changed): Use it.
103671 2005-09-18  Bruno Haible  <bruno@clisp.org>
103673         * gnulib-tool: Support --with-tests also with --import.
103674         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
103675         (func_import): Use variables $testsbase and $inctests. Emit a
103676         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
103677         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
103678         SUBDIRS += $testsdir.
103679         (func_create_testdir): Update.
103681 2005-09-18  Bruno Haible  <bruno@clisp.org>
103683         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
103684         instead of $dry_run.
103685         (func_cp_if_changed, func_mv_if_changed): Remove functions.
103686         (func_ln_if_changed): Don't handle dry-run here.
103687         (func_import): In dry-run mode, detect more precisely which actions
103688         would be performed, and don't use "...ing" verbs.
103690 2005-09-18  Bruno Haible  <bruno@clisp.org>
103692         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
103693         (func_import): Use join on two temporary files instead of three nested
103694         loops, in order to determine which files are new or old.
103696 2005-09-18  Bruno Haible  <bruno@clisp.org>
103698         * gnulib-tool (func_import): Comment out code that spits out the
103699         new files with --dry-run.
103701 2005-09-18  Bruno Haible  <bruno@clisp.org>
103703         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
103705 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103707         * lib/stat-time.h: New file.
103708         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
103709         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
103710         in a different way.
103711         (timespec_cmp): New function.
103712         * lib/utimecmp.c: Include stat-time.h.
103713         (SYSCALL_RESOLUTION): Depend on whether various struct stat
103714         members exist, not on the obsolescent ST_MTIM_NSEC.
103715         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
103717 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103719         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
103721 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103723         * MODULES.html.sh (File system functions): Add stat-time.
103724         * modules/stat-time: New file.
103725         * modules/timespec (Files): Remove m4/st_mtim.m4; this
103726         is now done in a different way, by the stat-time module.
103727         * modules/utimecmp (Depends-on): Add stat-time.
103729 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103731         * m4/st_mtim.m4: Remove.  Superseded by...
103732         * m4/stat-time.m4: New file.
103733         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
103734         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
103736 2005-09-15  Derek Price  <derek@ximbiot.com>
103738         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
103740 2005-09-15  Derek Price  <derek@ximbiot.com>
103742         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
103743         * lib/regex_internal.c: Ditto, using this...
103744         (__GNUC_PREREQ): ...new macro.
103745         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
103746         using...
103747         (__GNUC_PREREQ): ...this new macro.
103749         * lib/strstr.h: Include string.h. Define strstr as a macro here.
103751 2005-09-15  Derek Price  <derek@ximbiot.com>
103752             Paul Eggert  <eggert@cs.ucla.edu>
103754         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
103755         changes, consolidating in...
103756         * lib/regex_internal.h: ...this file.
103758 2005-09-13  Jim Meyering  <jim@meyering.net>
103760         * lib/canon-host.c: Filter through gnu indent and reword comments
103761         slightly.
103762         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
103764 2005-09-13  Derek Price  <derek@ximbiot.com>
103766         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
103767         failure.
103768         Reported by Jim Meyering  <jim@meyering.net>.
103770 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103772         * lib/base64.c: Typo.
103773         (base64_encode): Put b64str in initialized data section.
103775 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
103777         Merge glibc and coreutils changes into gnulib, plus a few
103778         extra fixes.
103779         * lib/md5.c: Use #error rather than a string.
103780         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
103781         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
103782         (__attribute__): Define to empty for non recent-GCC.
103783         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
103784         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
103785         Renamed from their non-__ counterparts, with new macros replacing
103786         them if not _LIBC.  Add __THROW attribute.
103787         (rol): Remove.
103788         (struct md5_ctx): Align buffer if using GCC.
103789         * lib/sha1.h (struct sha1_ctx): Likewise.
103790         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
103791         The old name was backwards.
103792         (NOTSWAP): Remove; not used.
103793         (rol): New macro, moved here from md5.h.
103794         (sha1_process_block): Remove a FIXME that doesn't make sense.
103796 2005-09-12  Derek Price  <derek@ximbiot.com>
103798         Return usable errors from canon-host.
103799         * lib/canon-host.h: New file.
103800         * lib/canon-host.c (canon_host): Wrap...
103801         (canon_host_r): ...this new function, which now relies exclusively on
103802         getaddrinfo.
103803         (ch_strerror): New function.
103804         (last_cherror): New global.
103805         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
103806         interface.
103807         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
103808         void *.
103809         (freeaddrinfo): Free ai->ai_canonname when set.
103811 2005-09-12  Derek Price  <derek@ximbiot.com>
103813         Make canon-host require getaddrinfo.
103814         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
103815         AC_LIBSOURCE canon-host.h.  Call...
103816         (gl_PREREQ_CANON_HOST): ...this new function, which requires
103817         gl_GETADDRINFO.
103818         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
103820 2005-09-12  Derek Price  <derek@ximbiot.com>
103822         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
103823         LGPL.
103824         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
103826 2005-09-12  Derek Price  <derek@ximbiot.com>
103828         * lib/gai_strerror.c: Include config.h when available.  Include
103829         getaddrinfo.h before other headers to test interface.
103830         Reported by Larry Jones <lawrence.jones@ugs.com>.
103832 2005-09-12  Derek Price  <derek@ximbiot.com>
103833             Paul Eggert  <eggert@cs.ucla.edu>
103835         * modules/glob (Files): Add glob-libc.h.
103837 2005-09-12  Derek Price  <derek@ximbiot.com>
103838             Paul Eggert  <eggert@cs.ucla.edu>
103840         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
103841         glob_.h, glob-libc.h.
103842         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
103844 2005-09-12  Derek Price  <derek@ximbiot.com>
103845             Paul Eggert  <eggert@cs.ucla.edu>
103847         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
103848         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
103849         protecting things that should be done only in gnulib contexts.
103850         * lib/glob_.h: New file, containing only the glob things needed for
103851         gnulib.
103852         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
103853         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
103854         (glob, globfree, glob_pattern_p): Now defined simply in terms of
103855         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
103856         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
103857         and to respect the namespace rules better.
103859 2005-09-08  Simon Josefsson  <jas@extundo.com>
103861         * modules/socklen: New file.
103863 2005-09-08  Simon Josefsson  <jas@extundo.com>
103865         * m4/socklen.m4: New file.
103867 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103869         * modules/utimens (Files): Add m4/utimbuf.m4, since
103870         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
103871         Reported by Sergey Poznyakoff.
103873 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103875         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
103876         definitions, since that's the preferred style in glibc.
103877         Fix a minor spacing issue, and update copyright notice to match
103878         glibc's.
103880 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103882         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
103884 2005-09-06  Simon Josefsson  <jas@extundo.com>
103886         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
103887         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
103889 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103891         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
103892         warning.
103894 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103896         * config/srclist.txt: Add glibc bug 1302.
103898 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
103900         Change bitset word type from unsigned int to unsigned long int,
103901         as this has better performance on typical 64-bit hosts.
103902         Port bitset code to hosts with unusual word sizes.
103903         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
103904         (build_collating_symbol):
103905         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
103906         argument is a bitset.  This is merely a style issue, but it makes
103907         it clearer that an entire array is expected.
103908         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
103909         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
103910         Port to the case where bitset_word is not the same as unsigned int.
103911         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
103912         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
103913         Likewise.
103914         * lib/regexec.c (check_dst_limits_calc_pos_1,
103915         check_subexp_matching_top):
103916         (build_trtable, group_nodes_into_DFAstates):
103917         Likewise.
103918         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
103919         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
103920         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
103921         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
103922         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
103923         * lib/regcomp.c (optimize_subexps, lower_subexp):
103924         Work even if bitset_word has holes in its bitwise representation.
103925         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
103926         * lib/regexec.c (check_dst_limits_calc_pos_1,
103927         check_subexp_matching_top):
103928         Likewise.
103929         * lib/regex_internal.c (re_string_reconstruct):
103930         Don't assume UCHAR_MAX == 255.
103931         * lib/regex_internal.h (bitset_set_all): Likewise.
103932         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
103933         All uses changed.
103934         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
103935         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
103936         All uses changed.
103937         (BITSET_WORD_MAX): New macro.
103938         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
103939         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
103940         (bitset_empty, bitset_copy):
103941         Prefer sizeof (bitset) to multiplying it out ourselves.
103942         (bitset_not_merge): Remove; unused.
103943         (bitset_contain): Return bool, not unsigned int with one bit on.
103944         All callers changed.
103945         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
103946         alignment than re_node_set; do this by defining a new internal
103947         type struct dests_alloc and using it to allocate memory.
103949 2005-09-05  Bruno Haible  <bruno@clisp.org>
103951         * gnulib-tool (func_import): Fix comparison in handling of symbolic
103952         links.
103954 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
103956         * modules/size_max (Makefile.am): Add size_max.h
103958 2005-09-04  Derek Price  <derek@ximbiot.com>
103960         * gnulib-tool (func_import): Fix reversed $symbolic logic.
103962 2005-09-03  Simon Josefsson  <jas@extundo.com>
103964         * gnulib-tool: Fix typo.
103966 2005-09-03  Simon Josefsson  <jas@extundo.com>
103968         * config/srclist.txt: Add glibc bug 1293.
103970 2005-09-03  Derek Price  <derek@ximbiot.com>
103972         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
103973         From Larry Jones <lawrence.jones@ugs.com>.
103975 2005-09-02  Simon Josefsson  <jas@extundo.com>
103977         * modules/socklen: New file.
103979 2005-09-02  Simon Josefsson  <jas@extundo.com>
103981         * modules/havelib: New module.
103983         * modules/gettext, modules/iconv, modules/lock, modules/readline:
103984         Use havelib.
103986 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
103988         Check for arithmetic overflow when calculating sizes, to prevent
103989         some buffer-overflow issues.  These patches are conservative, in the
103990         sense that when I couldn't determine whether an overflow was possible,
103991         I inserted a run-time check.
103992         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
103993         macros.
103994         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
103995         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
103996         (re_xnrealloc, re_x2nrealloc): New inline functions.
103997         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
103998         parse_bracket_exp):
103999         (build_equiv_class, build_charclass): Check for arithmetic overflow
104000         in size expression calculations.
104001         * lib/regex_internal.c (re_string_realloc_buffers):
104002         (build_wcs_upper_buffer, re_node_set_add_intersect):
104003         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
104004         (re_dfa_add_node, register_state): Likewise.
104005         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
104006         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
104007         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
104008         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
104010 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104012         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104013         m4/ulonglong.m4.  Problem reported by Martin Lambers.
104015 2005-09-02  Bruno Haible  <bruno@clisp.org>
104017         Support for lib vs. lib64 distinction on biarch platforms.
104018         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
104019         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
104020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
104022 2005-09-02  Bruno Haible  <bruno@clisp.org>
104024         * gnulib-tool (import): In the other first-use case, provide defaults
104025         as well.
104027 2005-09-02  Bruno Haible  <bruno@clisp.org>
104029         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
104030         patches not yet found in the latest gettext release.
104032 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104034         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
104035         to avoid a collision with bits/local_lim.h in glibc.
104036         All uses changed.  Problem reported by Dmitry V. Levin in
104037         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
104039         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
104040         bugs in int versus size_t comparisons.
104041         (re_string_context_at): Fix bug where the code assumed that
104042         Idx is signed.
104044         Use bool where appropriate.
104045         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
104046         All callers changed.
104047         (calc_eclosure_iter): Likewise, for ROOT arg.
104048         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
104049         (build_charclass_op): Likewise, for NON_MATCH arg.
104050         * lib/regex_internal.c (re_string_allocate, re_string_construct):
104051         (re_string_construct_common): Likewise, for ICASE arg.
104052         * lib/regexec.c (re_search_2_stub, re_search_stub):
104053         Likewise, for RET_LEN arg.
104054         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
104055         (set_regs): Likewise, for FL_BACKTRACK arg.
104056         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
104057         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
104058         (calc_eclosure_iter, parse_bracket_exp):
104059         Use bool for internal variables that are booleans.
104060         * lib/regexec.c (re_search_internal, check_matching,
104061         proceed_next_node):
104062         (set_regs, build_sifted_states, sift_states_bkref):
104063         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
104064         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104065         (find_collation_sequence_value):
104066         Likewise.
104067         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
104068         (re_node_set_compare):
104069         Return bool, not int. All callers changed.
104070         * lib/regexec.c (check_halt_node_context, check_dst_limits):
104071         (build_trtable, check_node_accept): Likewise.
104072         * lib/regex_internal.h: Include stdbool.h.
104074         Fix bugs uncovered when converting to bool.
104075         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
104076         failure instead of charging ahead blindly.
104077         * lib/regex_internal.c (register_state): Likewise.
104078         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
104079         for freeing internal storage.
104080         (group_nodes_into_DFA_states): Use unsigned int, not int, for
104081         bitset pieces used as boolean, to avoid undefined behavior
104082         on hosts that do int overflow checking.
104084 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104086         * config/srclist.txt: Add glibc bugs 1285-1287.
104088 2005-09-01  Jim Meyering  <jim@meyering.net>
104090         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
104091         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
104092         Require gl_STAT_MACROS, too.
104094 2005-09-01  Bruno Haible  <bruno@clisp.org>
104096         * gnulib-tool (import): In the first-use case, provide defaults.
104098 2005-09-01  Bruno Haible  <bruno@clisp.org>
104100         * gnulib-tool (func_import): Remove the .tmp files.
104102 2005-09-01  Bruno Haible  <bruno@clisp.org>
104104         * gnulib-tool (func_import): Fix handling of symbolic links.
104106 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104108         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
104109         old glibc regex code mishandles strings longer than 2**31 bytes.
104110         This patch fixes this when the regex code is used in gnulib
104111         (i.e., outside glibc).
104113         This patch should not affect the use of the regex code inside
104114         glibc.  No doubt this problem also needs to be handled for glibc
104115         as well, but the result will be an incompatible change to the
104116         glibc ABI, and the old ABI will have to be supported too.  That
104117         can be the subject for another patch.
104119         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
104120         governing whether the rest of this patch is active.  By default,
104121         the macro is disabled and the patch has no effect.
104122         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
104123         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
104124         (struct re_pattern_buffer, re_search, re_search_2, re_match):
104125         (re_match_2, re_set_registers): Use the new types.
104126         * lib/regex_internal.h (Idx, re_hashval_t): New types.
104127         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
104128         New macros.
104129         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
104130         (re_string_context_at, bin_tree_t, re_dfastate_t):
104131         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
104132         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
104133         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
104134         (re_string_char_size_at, re_string_wchar_at):
104135         (re_string_elem_size_at):
104136         Use the new types and macros to port to 64-bit hosts.
104137         Use unsigned types for internal values, so that the code
104138         mostly works even for arrays larger than SSIZE_MAX.
104139         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
104140         (search_duplicated_node, calc_eclosure_iter, fetch_number):
104141         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
104142         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
104143         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
104144         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
104145         (calc_inveclosure, parse_dup_op, build_range_exp):
104146         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
104147         (fetch_number, create_token_tree, mark_opt_subexp):
104148         Likewise.
104149         * lib/regex_internal.c (re_string_construct_common,
104150         create_ci_newstate):
104151         (create_cd_newstate, re_string_allocate, re_string_construct):
104152         (re_string_realloc_buffers, build_wcs_upper_buffer):
104153         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104154         (re_string_reconstruct, re_string_peek_byte_case):
104155         (re_string_fetch_byte_case, re_string_context_at):
104156         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104157         (re_node_set_init_copy, re_node_set_add_intersect):
104158         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104159         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104160         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104161         (re_acquire_state, re_acquire_state_context, register_state):
104162         Likewise.
104163         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
104164         search_cur_bkref_entry):
104165         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
104166         (re_search_internal, re_search_2_stub, re_search_stub)
104167         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
104168         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
104169         (update_cur_sifted_state, check_dst_limits):
104170         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104171         (check_subexp_limits, sift_states_bkref, merge_state_array):
104172         (check_subexp_matching_top, get_subexp, get_subexp_sub):
104173         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
104174         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104175         (expand_bkref_cache, check_node_accept_bytes):
104176         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
104177         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
104178         (acquire_init_state_context, check_halt_node_context):
104179         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
104180         (sift_states_backward, clean_state_log_if_needed):
104181         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
104182         (find_recover_state, transit_state_sb, transit_state_mb):
104183         (transit_state_bkref, build_trtable, match_ctx_clean):
104184         Likewise.
104185         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
104186         to work around an assumption that REG_MISSING is negative.
104188         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
104189         (seek_collating_symbol_entry) [defined _LIBC]:
104190         (lookup_collation_sequence_value) [defined _LIBC]:
104191         (build_range_exp, build_collating_symbol) [defined _LIBC]:
104192         Use prototypes rather than old-style function definitions.
104193         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
104194         (transit_state_sb) [0]:
104195         (find_collation_sequence_value) [defined _LIBC]: Likewise.
104197         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
104198         rm_eo.
104200         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
104201         (optimize_subexps, lower_subexp):
104202         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
104203         since the signed shift might overflow.  Use 1u<<31 instead.
104204         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104205         Likewise.
104206         * lib/regexec.c (check_dst_limits_calc_pos_1,
104207         check_subexp_matching_top): Likewise.
104209         * lib/regcomp.c (optimize_subexps, lower_subexp):
104210         Use CHAR_BIT rather than 8, for clarity.
104211         * lib/regexec.c (check_dst_limits_calc_pos_1):
104212         (check_subexp_matching_top): Likewise.
104213         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
104214         have to worry about portability issues when shifting it left.
104215         Remove no-longer-needed test for table_size > 0.
104216         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
104217         in a word, as the resulting behavior is undefined.
104218         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
104219         in one case, a <= should have been an <, and in another case the
104220         whole test was missing.
104221         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
104222         the standard name CHAR_BIT.
104223         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
104224         this is not true on one's complement and signed-magnitude hosts.
104226         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
104227         next_last_offset.
104228         (struct re_dfa_t): Remove unused member states_alloc.
104229         * lib/regcomp.c (init_dfa): Don't initialize unused members.
104231 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104233         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
104234         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
104235         and large-file glibc and in 32-bit large-file Solaris.
104237 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104239         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
104240         lengths fit in regoff_t; this isn't true if regoff_t is the same
104241         width as size_t.
104242         * lib/regex.c (re_search_internal): 5th arg is LAST_START
104243         (= START + RANGE) instead of RANGE.  This avoids overflow
104244         problems when regoff_t is the same width as size_t.
104245         All callers changed.
104246         (re_search_2_stub): Check for overflow when adding the
104247         sizes of the two strings.
104248         (re_search_stub): Check for overflow when adding START
104249         to RANGE; if it occurs, substitute the extreme value.
104251 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104253         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
104255 2005-08-31  Jim Meyering  <jim@meyering.net>
104257         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
104258         a pointer-to-const.
104259         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
104260         (register_state): Likewise.
104261         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
104262         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104263         (group_nodes_into_DFAstates): Likewise.
104265 2005-08-31  Jim Meyering  <jim@meyering.net>
104267         * check-module: Add a FIXME comment.
104269 2005-08-31  Eric Blake  <ebb9@byu.net>
104271         * modules/unistd-safer (Files): Add unistd--.h.
104272         * modules/stdio-safer (Files): Add stdio--.h.
104274 2005-08-31  Derek Price  <derek@ximbiot.com>
104276         * lib/getdelim.c (getdelim): Return EOF on EOF.
104277         Reported by Larry Jones <lawrence.jones@ugs.com>.
104279 2005-08-31  Bruno Haible  <bruno@clisp.org>
104281         Avoid unnecessary diffs in the generated lib/Makefile.am.
104282         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
104283         the generated files.
104284         (func_import): Don't set cmd.
104286 2005-08-31  Bruno Haible  <bruno@clisp.org>
104288         * lib/strstr.c: Include <stddef.h>, for NULL.
104289         * lib/strcasestr.c: Likewise.
104290         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104292 2005-08-31  Bruno Haible  <bruno@clisp.org>
104294         * gnulib-tool: New option --macro-prefix.
104295         (func_import): Use macro_prefix.
104296         (import): Handle option --macro-prefix.
104298 2005-08-31  Bruno Haible  <bruno@clisp.org>
104300         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104301         Also use new variables cached_lgpl, cached_libtool.
104303 2005-08-31  Bruno Haible  <bruno@clisp.org>
104305         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104306         always instantiating them.
104308 2005-08-31  Bruno Haible  <bruno@clisp.org>
104310         * gnulib-tool (func_import): Read the previous cached settings
104311         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104312         earlier added by gnulib but are now dropped. Warn when a gnulib file
104313         overwrites a non-gnulib file.
104315 2005-08-31  Bruno Haible  <bruno@clisp.org>
104317         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104318         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104319         projects that don't keep autogenerated files in CVS. Put into
104320         actioncmd only the specified modules, not the transitive closure.
104322 2005-08-31  Bruno Haible  <bruno@clisp.org>
104324         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104325         Create directories that shall be filled.
104326         (import): Don't look for gl_* macros in configure.ac. Recurse across
104327         all directories containing a gnulib-cache.m4 files, if meaningful.
104329 2005-08-31  Bruno Haible  <bruno@clisp.org>
104331         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104332         (import): Set seen_libtool when we see gl_LIBTOOL.
104334 2005-08-31  Bruno Haible  <bruno@clisp.org>
104336         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104337         declaration macro definitions from generated gnulib.m4.
104339 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104341         * lib/iconvme.h: Add prototype for iconv_alloc.
104343 2005-08-29  Simon Josefsson  <jas@extundo.com>
104345         * lib/iconvme.c: Fix errno.
104347 2005-08-29  Bruno Haible  <bruno@clisp.org>
104349         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104350         that it works when the directory contains spaces.
104352 2005-08-29  Bruno Haible  <bruno@clisp.org>
104354         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104356 2005-08-29  Bruno Haible  <bruno@clisp.org>
104358         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104359         Emit more advice.
104361 2005-08-29  Bruno Haible  <bruno@clisp.org>
104362         and Stepan Kasal  <kasal@ucw.cz>
104364         * check-module: If more parameters are given, check each of them
104365         separately; add more exceptions, as noted by Jim Meyering.
104366         (check_module): New procedure.
104367         (%exempt_header): Now contains all exceptions.
104369 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104371         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104373 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104375         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104377 2005-08-28  Bruno Haible  <bruno@clisp.org>
104379         * m4/gnulib-tool.m4: New file.
104381 2005-08-27  Jim Meyering  <jim@meyering.net>
104383         * modules/unistd-safer (Files): Add pipe-safer.c.
104384         * modules/fcntl-safer (Files): Add creat-safer.c.
104386 2005-08-27  Jim Meyering  <jim@meyering.net>
104388         * m4/stdlib-safer.m4: New file.  From coreutils.
104389         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104390         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104391         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104392         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104393         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104395 2005-08-27  Jim Meyering  <jim@meyering.net>
104397         * lib/fopen-safer.c: Merge minor changes from coreutils.
104398         * lib/dup-safer.c: Likewise.
104399         * lib/fd-safer.c: Likewise.
104401         Merge from coreutils.
104402         * lib/stdio--.h: New file.
104403         * lib/stdlib--.h: New file.
104404         * lib/mkstemp-safer.c: New file.
104406         GNU tar needs these.
104407         * lib/pipe-safer.c: New file.
104408         * lib/creat-safer.c: New file.
104409         * lib/fcntl--.h (creat): Define to creat_safer.
104410         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104411         * lib/unistd--.h (pipe): Define to pipe_safer.
104412         * lib/unistd-safer.h: Declare pipe_safer.
104414 2005-08-26  Simon Josefsson  <jas@extundo.com>
104416         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104417         Haible <bruno@clisp.org>.
104419 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104421         * lib/regex_internal.h: Remove all references to
104422         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104423         or better.
104424         (bitset_not, bitset_merge, bitset_not_merge):
104425         (bitset_mask, re_string_allocate, re_string_construct):
104426         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104427         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104428         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104429         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104430         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104431         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104432         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104433         (re_acquire_state_context):
104434         Remove unnecessary forward decls.
104435         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104436         Put __attribute at function definition,
104437         now that the function decl has been removed.
104438         * lib/regex_internal.c (re_string_peek_byte_case):
104439         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104440         Likewise.
104442 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104444         * m4/regex.m4: Add AC_PREREQ(2.50).
104445         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104447 2005-08-25  Simon Josefsson  <jas@extundo.com>
104449         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104450         __fsetlocking.
104452 2005-08-25  Simon Josefsson  <jas@extundo.com>
104454         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104455         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104456         GLIBC specific code.
104458 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104460         Make regex safe for g++.  This fixes one real bug (an "err"
104461         that should have been "*err").  g++ problem reported by
104462         Sam Steingold.
104463         * lib/regex_internal.h (re_calloc): New macro, consistent with
104464         re_malloc etc.  All callers of calloc changed to use re_calloc.
104465         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104466         not int.  All callers changed.
104467         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104468         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104469         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104470         (find_recover_state): Change "err" to "*err"; this fixes what
104471         appears to be a real bug.
104472         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104473         versus int.
104475 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104477         * modules/regex (Depends-on): Add malloc, since the code
104478         assumes that !malloc(0) means failure.
104480 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104482         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104484         alloca modernization/simplification for regex.
104485         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104486         needs to be at the start of the file, and can be moved into
104487         regex_internal.h and simplified.
104488         * lib/regex_internal.h: Include <alloca.h>.
104489         (__libc_use_alloca) [!defined _LIBC]: New macro.
104490         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104491         now works outside glibc.
104493 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104495         * config/srclist.txt: Add glibc bugs 1241, 1245.
104497 2005-08-25  Jim Meyering  <jim@meyering.net>
104499         * lib/open-safer.c: Include <config.h>.
104500         Otherwise, we'd lose LARGEFILE support in any file using
104501         e.g. "fcntl--.h"
104503 2005-08-25  Bruno Haible  <bruno@clisp.org>
104505         * m4/minmax.m4: Require autoconf 2.52.
104506         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104507         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104508         alternatives of translit over the alphabet.
104509         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104511 2005-08-24  Simon Josefsson  <jas@extundo.com>
104513         * tests/test-getpass.c: New file.
104515 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104517         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104518         for GNU regex features.
104520 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104522         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104523         * lib/regex.h (regerror): Likewise.
104525         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104526         requires this.  (The code never needed it.)
104528         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104529         All uses of recently-renamed identifiers changed to use the new,
104530         POSIX-compliant names.  The code will build and run just fine
104531         without these changes, but it's better to eat our own dog food
104532         and use the standard-conforming names.
104534         * lib/regex.h: Fix a multitude of POSIX name space violations.
104535         These changes have an effect only for programs that define
104536         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104537         do not change anything for programs compiled in the normal way.
104538         Also, there is no effect on the ABI.
104540         (_REGEX_SOURCE): New macro.
104541         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104542         defined and _GNU_SOURCE is not; this fixes a name space violation.
104544         Rename the following macros to obey POSIX requirements.
104545         The old names are still visible as macros if _REGEX_SOURCE is defined.
104546         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
104547         RE_BACKSLASH_ESCAPE_IN_LISTS.
104548         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
104549         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
104550         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
104551         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
104552         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
104553         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
104554         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
104555         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
104556         (REG_INTERVALS): renamed from RE_INTERVALS.
104557         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
104558         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
104559         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
104560         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
104561         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
104562         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
104563         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
104564         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
104565         RE_UNMATCHED_RIGHT_PAREN_ORD.
104566         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
104567         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
104568         (REG_DEBUG): renamed from RE_DEBUG.
104569         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
104570         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
104571         unusual, since we can't clash with the POSIX REG_ICASE.
104572         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
104573         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
104574         (REG_NO_SUB): renamed from RE_NO_SUB.
104575         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
104576         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
104577         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
104578         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
104579         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
104580         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
104581         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
104582         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
104583         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
104584         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
104585         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
104586         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
104587         RE_SYNTAX_POSIX_MINIMAL_BASIC.
104588         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
104589         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
104590         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
104591         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
104592         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
104593         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
104594         (REG_FIXED): Renamed from REGS_FIXED.
104595         (REG_NREGS): Renamed from RE_NREGS.
104597         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
104598         of other REG_* macros, since POSIX says the user is allowed to
104599         #undef these macros selectively.
104601         (reg_errcode_t): Update comment stating what other tables need
104602         to be consistent.
104604         Rename the following enum values to obey POSIX requirements.
104605         The old names are still visible as macros.
104606         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
104607         is not defined, since GNU is supposed to be a superset of POSIX as
104608         much as possible, and since we want reg_errcode_t to be a signed
104609         type for implementation consistency.
104610         (_REG_NOERROR): Renamed from REG_NOERROR.
104611         (_REG_NOMATCH): Renamed from REG_NOMATCH.
104612         (_REG_BADPAT): Renamed from REG_BADPAT.
104613         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
104614         (_REG_ECTYPE): Renamed from REG_ECTYPE.
104615         (_REG_EESCAPE): Renamed from REG_EESCAPE.
104616         (_REG_ESUBREG): Renamed from REG_ESUBREG.
104617         (_REG_EBRACK): Renamed from REG_EBRACK.
104618         (_REG_EPAREN): Renamed from REG_EPAREN.
104619         (_REG_EBRACE): Renamed from REG_EBRACE.
104620         (_REG_BADBR): Renamed from REG_BADBR.
104621         (_REG_ERANGE): Renamed from REG_ERANGE.
104622         (_REG_ESPACE): Renamed from REG_ESPACE.
104623         (_REG_BADRPT): Renamed from REG_BADRPT.
104624         (_REG_EEND): Renamed from REG_EEND.
104625         (_REG_ESIZE): Renamed from REG_ESIZE.
104626         (_REG_ERPAREN): Renamed from REG_ERPAREN.
104627         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
104628         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
104629         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
104630         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
104632         (_REG_RE_NAME, _REG_RM_NAME): New macros.
104633         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
104634         changed.  But support the old name if the new one is not defined
104635         and if _REGEX_SOURCE.
104637         Change the following member names in struct re_pattern_buffer.
104638         The old names are still supported if !_REGEX_SOURCE.
104639         The new names are always supported, regardless of _REGEX_SOURCE.
104640         (re_buffer): Renamed from buffer.
104641         (re_allocated): Renamed from allocated.
104642         (re_used): Renamed from used.
104643         (re_syntax): Renamed from syntax.
104644         (re_fastmap): Renamed from fastmap.
104645         (re_translate): Renamed from translate.
104646         (re_can_be_null): Renamed from can_be_null.
104647         (re_regs_allocated): Renamed from regs_allocated.
104648         (re_fastmap_accurate): Renamed from fastmap_accurate.
104649         (re_no_sub): Renamed from no_sub.
104650         (re_not_bol): Renamed from not_bol.
104651         (re_not_eol): Renamed from not_eol.
104652         (re_newline_anchor): Renamed from newline_anchor.
104654         Change the following member names in struct re_registers.
104655         The old names are still supported if !_REGEX_SOURCE.
104656         The new names are always supported, regardless of _REGEX_SOURCE.
104657         (rm_num_regs): Renamed from num_regs.
104658         (rm_start): Renamed from start.
104659         (rm_end): Renamed from end.
104661         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
104662         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
104663         Prepend __ to parameter names.
104665         Undo yesterday's changes.
104667 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104669         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
104670         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
104671         lib/regex.c.
104673 2005-08-24  Jim Meyering  <jim@meyering.net>
104675         Sync from coreutils.
104676         * m4/fcntl-safer.m4: New file.
104678         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
104679         and object files for this module.
104681 2005-08-24  Jim Meyering  <jim@meyering.net>
104683         Sync from coreutils.
104684         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
104686 2005-08-24  Jim Meyering  <jim@meyering.net>
104688         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
104689         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
104691 2005-08-24  Jim Meyering  <jim@meyering.net>
104693         * modules/fcntl-safer: New module.
104694         * modules/fts (Depends-on): Add fcntl-safer.
104695         * MODULES.html.sh (File descriptor based Input/Output):
104696         Add fcntl-safer.
104698 2005-08-24  Bruno Haible  <bruno@clisp.org>
104700         Support for unit test modules.
104701         * modules/README: Mention tests modules.
104702         * modules/TEMPLATE-TESTS: New file.
104703         * gnulib-tool: New options --extract-tests-module, --with-tests and
104704         --tests-base (unused for the moment).
104705         (testsbase, inctests): New variables.
104706         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
104707         (func_verify_module): Exclude TEMPLATE-TESTS.
104708         (func_verify_nontests_module, func_verify_tests_module): New functions.
104709         (func_get_dependencies): Add implicit dependency for tests modules.
104710         (func_get_tests_module): New function.
104711         (func_modules_transitive_closure): When --with-tests was specified,
104712         include the unit tests as well, unless explicitly avoided.
104713         (func_emit_lib_Makefile_am): Ignore the tests modules here.
104714         (func_emit_tests_Makefile_am): New function.
104715         (func_create_testdir): When --with-tests was specified, emit a
104716         tests/ directory.
104717         * MODULES.html.sh (Future developments): Update.
104719 2005-08-24  Bruno Haible  <bruno@clisp.org>
104721         * modules/tls-tests: New file.
104722         * tests/test-tls.c: New file, from GNU gettext.
104724 2005-08-24  Bruno Haible  <bruno@clisp.org>
104726         * modules/lock-tests: New file.
104727         * tests/test-lock.c: New file, from GNU gettext.
104729 2005-08-24  Bruno Haible  <bruno@clisp.org>
104731         * lib/lock.h: Add multiple inclusion guard.
104732         * lib/tls.h: Add multiple inclusion guard.
104734 2005-08-24  Bruno Haible  <bruno@clisp.org>
104736         * gnulib-tool: Add support for the --aux-dir option to
104737         --create-testdir, --create-megatestdir, --test, --megatest.
104738         (func_create_testdir, func_create_megatestdir): Optionally emit a
104739         AC_CONFIG_AUX_DIR directive.
104740         (create-testdir, create-megatestdir, test, megatest): Provide a
104741         default value for $auxdir.
104743 2005-08-24  Bruno Haible  <bruno@clisp.org>
104745         * gnulib-tool (import): Use compound statement instead of subshell
104746         where possible.
104748 2005-08-24  Bruno Haible  <bruno@clisp.org>
104750         * gnulib-tool (import): Change --aux-dir default to "build-aux".
104752 2005-08-24  Bruno Haible  <bruno@clisp.org>
104754         * gnulib-tool (func_version): Update.
104756 2005-08-24  Bruno Haible  <bruno@clisp.org>
104758         * gnulib-tool (func_import, func_create_testdir,
104759         func_create_megatestdir): Quote all autoconf macro arguments.
104761 2005-08-24  Bruno Haible  <bruno@clisp.org>
104763         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
104764         option --force, because --force causes the aclocal.m4 of each
104765         subdirectory to be newer than the corresponding config.h.in.
104767 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104769         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
104770         All contents moved to gl_REGEX.
104771         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
104772         assume that it does.
104774 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104776         * lib/regex.h (REG_NOSYS)
104777         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
104778         Define, since POSIX requires it as of 2001.
104779         (_REG_ENOSYS)
104780         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
104781         New private symbol, used to keep the enum signed in all cases.
104782         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
104783         Youngman in
104784         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
104786         * lib/regex_internal.c (re_string_skip_chars, register_state):
104787         (calc_state_hash):
104788         Remove forward decls; no longer needed now that we use prototypes.
104789         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
104790         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
104791         (clean_state_log_if_needed): Likewise.
104793 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104795         * config/srclist.txt: Add glibc bugs 1231-1233.
104797 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104799         Fix problems reported by Sam Steingold in
104800         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
104801         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
104802         assumed that reg_errcode_t is a signed type, which is not
104803         necessarily true if _XOPEN_SOURCE is not defined.
104804         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
104805         since some compilers warn about it otherwise.
104807 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104809         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
104810         (init_word_char, create_initial_state, duplicate_node_closure):
104811         (fetch_token, peek_token_bracket, build_range_exp):
104812         (build_collating_symbol): Remove forward decls; no longer needed
104813         now that we use prototypes.
104815         * lib/regcomp.c:
104816         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
104817         (re_compile_fastmap_iter, regcomp, regerror, regfree):
104818         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
104819         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
104820         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
104821         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
104822         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
104823         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
104824         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
104825         (build_range_exp, build_collating_symbol, parse_bracket_exp):
104826         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
104827         (build_charclass, build_charclass_op, fetch_number, create_tree):
104828         (create_token_tree, mark_opt_subexp, duplicate_tree):
104829         Use prototypes rather than old-style definitions.
104831         * lib/regex_internal.c:
104832         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
104833         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
104834         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104835         (re_string_reconstruct, re_string_peek_byte_case):
104836         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
104837         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104838         (re_node_set_init_copy, re_node_set_add_intersect):
104839         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104840         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104841         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104842         (re_acquire_state, re_acquire_state_context, register_state):
104843         (create_ci_newstate, create_cd_newstate, free_state):
104844         Likewise.
104845         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
104846         re_search_2):
104847         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
104848         (re_search_internal, prune_impossible_nodes):
104849         (acquire_init_state_context, check_matching, static):
104850         (check_halt_node_context, check_halt_state_context, proceed_next_node):
104851         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
104852         (update_regs, sift_states_backward, build_sifted_states):
104853         (clean_state_log_if_needed, merge_state_array):
104854         (update_cur_sifted_state, add_epsilon_src_nodes):
104855         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
104856         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
104857         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
104858         (find_recover_state, check_subexp_matching_top, transit_state_mb):
104859         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
104860         (check_arrival, check_arrival_add_next_nodes):
104861         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104862         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104863         (check_node_accept_bytes, check_node_accept, extend_buffers):
104864         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
104865         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
104866         (sift_ctx_init):
104867         Likewise.
104869         * lib/regex_internal.h:
104870         (re_string_allocate, re_string_construct, re_string_reconstruct):
104871         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
104872         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
104873         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
104874         (re_string_context_at, re_string_peek_byte_case):
104875         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
104876         is defined, since we now use prototypes always.
104878         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
104879         C89 or better.  All uses removed.
104881 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104883         * config/srclist.txt: Add glibc bugs 1220-1227.
104885 2005-08-20  Jim Meyering  <jim@meyering.net>
104887         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
104888         of unused local, dfa.
104890 2005-08-20  Bruno Haible  <bruno@clisp.org>
104892         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
104894 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104896         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
104897         (re_node_set_insert_last, re_dfa_add_node):
104898         Rename local variables to avoid GCC shadowing warnings.
104900 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104902         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
104903         [defined lint]: Suppress bogus uninitialized-variable warnings.
104905         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
104906         and let the caller return REG_ESPACE if out of space.  This
104907         removes an uninitialied-variable warning with GCC 4.0.1, and also
104908         avoids taking the address of a local variable.  All callers
104909         changed.
104911 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104913         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
104914         $LIBCSRC/posix/regexec.c.
104915         Add glibc bug 1217 for regcomp.c.
104917 2005-08-19  Jim Meyering  <jim@meyering.net>
104919         * lib/regexec.c (proceed_next_node): Redo local variables to
104920         avoid GCC shadowing warnings.
104922 2005-08-18  Bruno Haible  <bruno@clisp.org>
104924         * lib/strstr.c (strstr): Fix return value in multibyte case.
104925         * lib/strcasestr.c (strcasestr): Likewise.
104927 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104929         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
104931 2005-08-17  Jim Meyering  <jim@meyering.net>
104933         Make the %s format (seconds since the epoch) work for a negative
104934         number and when used with a zero-padded field width, e.g. %015s.
104936         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
104937         label so that it precedes the code to set `digits'.  Otherwise,
104938         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
104939         print `00-22'.  Now, it prints `-0022', as it should.
104941 2005-08-17  Bruno Haible  <bruno@clisp.org>
104943         * modules/strstr (Files): Add m4/mbrtowc.m4.
104944         (Depends-on): Add mbuiter.
104946 2005-08-17  Bruno Haible  <bruno@clisp.org>
104948         * modules/strcasestr: New file.
104949         * MODULES.html.sh (String handling, based on ANSI C 89): Add
104950         strcasestr.
104952 2005-08-17  Bruno Haible  <bruno@clisp.org>
104954         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
104956 2005-08-17  Bruno Haible  <bruno@clisp.org>
104958         * modules/mbuiter: New file.
104959         * MODULES.html.sh (Extended multibyte and wide character utilities):
104960         Add mbuiter.
104962 2005-08-17  Bruno Haible  <bruno@clisp.org>
104964         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
104965         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
104967 2005-08-17  Bruno Haible  <bruno@clisp.org>
104969         * m4/strcasestr.m4: New file.
104971 2005-08-17  Bruno Haible  <bruno@clisp.org>
104973         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
104974         * lib/strstr.c: Completely rewritten, with multibyte locale support.
104976 2005-08-17  Bruno Haible  <bruno@clisp.org>
104978         * lib/strcasestr.h: New file.
104979         * lib/strcasestr.c: New file.
104981 2005-08-17  Bruno Haible  <bruno@clisp.org>
104983         * lib/strcasecmp.c: Use mbuiter.h.
104985 2005-08-17  Bruno Haible  <bruno@clisp.org>
104987         * lib/mbuiter.h: New file.
104989 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
104991         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
104992         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
104993         and gl_GETOPT are both invoked via different paths (as happens
104994         with GNU tar CVS because it uses both argp and getopt), the former
104995         wins.
104997 2005-08-16  Bruno Haible  <bruno@clisp.org>
104999         * modules/tls: New file.
105000         * MODULES.html.sh (Multithreading): Add tls.
105002 2005-08-16  Bruno Haible  <bruno@clisp.org>
105004         * modules/strnlen1: New file.
105005         * MODULES.html.sh (String handling): Add strnlen1.
105007 2005-08-16  Bruno Haible  <bruno@clisp.org>
105009         * modules/strcase (Files): Add m4/mbrtowc.m4.
105010         (Depends-on): Add strnlen1, mbchar.
105012 2005-08-16  Bruno Haible  <bruno@clisp.org>
105014         * modules/mbiter: New file.
105015         * MODULES.html.sh (Extended multibyte and wide character utilities):
105016         Add mbiter.
105018 2005-08-16  Bruno Haible  <bruno@clisp.org>
105020         * modules/mbfile: New file.
105021         * MODULES.html.sh (Extended multibyte and wide character utilities):
105022         Add mbfile.
105024 2005-08-16  Bruno Haible  <bruno@clisp.org>
105026         * modules/mbchar: New file.
105027         * MODULES.html.sh (Extended multibyte and wide character utilities):
105028         New section.
105030 2005-08-16  Bruno Haible  <bruno@clisp.org>
105032         * m4/tls.m4: New file, from GNU gettext.
105034 2005-08-16  Bruno Haible  <bruno@clisp.org>
105036         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
105037         always.
105038         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
105040 2005-08-16  Bruno Haible  <bruno@clisp.org>
105042         * m4/mbiter.m4: New file.
105044 2005-08-16  Bruno Haible  <bruno@clisp.org>
105046         * m4/mbfile.m4: New file.
105048 2005-08-16  Bruno Haible  <bruno@clisp.org>
105050         * m4/mbchar.m4: New file.
105052 2005-08-16  Bruno Haible  <bruno@clisp.org>
105054         * lib/tls.h: New file, from GNU gettext.
105055         * lib/tls.c: New file, from GNU gettext.
105057 2005-08-16  Bruno Haible  <bruno@clisp.org>
105059         * lib/strnlen1.h: New file.
105060         * lib/strnlen1.c: New file.
105062 2005-08-16  Bruno Haible  <bruno@clisp.org>
105064         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
105065         (mbi_init): Update.
105066         (mbi_avail, mbi_advance): Let the iteration end before the terminating
105067         NUL byte, not after it.
105069 2005-08-16  Bruno Haible  <bruno@clisp.org>
105071         * lib/strcase.h (strcasecmp): Add note in comments.
105072         * lib/strncasecmp.c: Use code from strcasecmp.c.
105073         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
105074         (strcasecmp): Work correctly in multibyte locales.
105076 2005-08-16  Bruno Haible  <bruno@clisp.org>
105078         * lib/mbiter.h: New file.
105080 2005-08-16  Bruno Haible  <bruno@clisp.org>
105082         * lib/mbfile.h: New file.
105084 2005-08-16  Bruno Haible  <bruno@clisp.org>
105086         * lib/mbchar.h: New file.
105087         * lib/mbchar.c: New file.
105089 2005-08-16  Bruno Haible  <bruno@clisp.org>
105091         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
105092         the valid ones. Makes the comparison operations transitive:
105093         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
105094         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
105096 2005-08-15  Simon Josefsson  <jas@extundo.com>
105098         * modules/ssize_t (License): Change to 'unlimited'.
105100         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
105102 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105104         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
105105         Add comments for each pending glibc patch.
105107 2005-08-15  Bruno Haible  <bruno@clisp.org>
105109         * lib/regex.h (__restrict_arr): Don't define to __restrict if
105110         __cplusplus is defined.
105112 2005-08-14  Jim Meyering  <jim@meyering.net>
105114         Sync from coreutils.
105116         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
105117         Use the hash-table-based cycle-detection code not just when
105118         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
105119         Reported by James Youngman in
105120         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
105121         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
105122         FTS_TIGHT_CYCLE_CHECK.
105123         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
105124         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
105125         once again.
105126         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
105127         * lib/fts.c (fd_safer): Remove decl.
105128         Include fcntl--.h rather than unistd-safer.h
105129         (fts_safe_changedir): Don't call fd_safer; no longer needed
105130         now that we include fcntl--.h.
105132 2005-08-12  Simon Josefsson  <jas@extundo.com>
105134         * modules/getndelim2: Use ssize_t module.
105135         * modules/getnline: Likewise.
105136         * modules/safe-read: Likewise.
105137         * modules/xreadlink: Likewise.
105139         * modules/ssize_t: New file.
105141 2005-08-12  Simon Josefsson  <jas@extundo.com>
105143         * m4/readline.m4: Look for termcap, curses or ncurses if required.
105145 2005-08-12  Simon Josefsson  <jas@extundo.com>
105147         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105148         ssize_t.
105150 2005-08-12  Simon Josefsson  <jas@extundo.com>
105152         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
105153         readline, getdelim and check_version.
105154         (Support for systems lacking ISO C 99: Sizes of integer types):
105155         Add size_max.
105157 2005-08-12  Bruno Haible  <bruno@clisp.org>
105159         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
105161 2005-08-11  Simon Josefsson  <jas@extundo.com>
105163         * modules/readline: New file.
105165         * modules/strnlen (Files): Add strnlen.h.
105167 2005-08-11  Simon Josefsson  <jas@extundo.com>
105169         * m4/readline.m4: New file.
105171 2005-08-11  Simon Josefsson  <jas@extundo.com>
105173         * lib/readline.h, readline.c: New file.
105175 2005-08-11  Simon Josefsson  <jas@extundo.com>
105177         * doc/gnulib.texi (Initial import, Finishing touches): Mention
105178         gl_AVOID.
105180 2005-08-11  Bruno Haible  <bruno@clisp.org>
105182         * lib/strnlen.h (strnlen): Change parameter name to match comment.
105184 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
105186         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
105188 2005-08-10  Simon Josefsson  <jas@extundo.com>
105190         * tests/test-iconvme.c: New file.
105192 2005-08-10  Simon Josefsson  <jas@extundo.com>
105194         * m4/strnlen.m4: New file.
105196         * m4/strndup.m4: Don't check for strnlen declaration, done in
105197         strnlen.m4.
105199 2005-08-10  Simon Josefsson  <jas@extundo.com>
105201         * lib/strndup.c: Use strnlen.h.
105203         * lib/strnlen.h: New file.
105205 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105207         * README: Typos.
105209 2005-08-02  Simon Josefsson  <jas@extundo.com>
105211         * modules/readline: New file.
105213 2005-08-02  Simon Josefsson  <jas@extundo.com>
105215         * modules/getdelim: New file.
105217         * modules/getline: Rewrite, don't use getndelim2.
105219 2005-08-02  Simon Josefsson  <jas@extundo.com>
105221         * m4/getline.m4: Separate out getdelim stuff into separate module.
105223         * m4/getdelim.m4: New file.
105225 2005-08-02  Simon Josefsson  <jas@extundo.com>
105227         * lib/getline.h, getline.c: Rewrite.
105229         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
105231 2005-07-31  Bruno Haible  <bruno@clisp.org>
105233         * lib/lock.h (gl_lock_initializer): New macro.
105234         (gl_lock_define_initialized): Use it.
105235         (gl_rwlock_initializer): New macro.
105236         (gl_rwlock_define_initialized): Use it.
105237         (gl_recursive_lock_initializer): New macro.
105238         (gl_recursive_lock_define_initialized): Use it.
105240 2005-07-30  Karl Berry  <karl@gnu.org>
105242         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
105243         Report from Ben Pfaff, regarding getopt.
105245 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
105247         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
105248         normal way.
105249         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
105250         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
105251         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
105252         (gl_GETOPT): Use the new macros.  Most of the implementation
105253         is moved to the new macros.  This is for programs like Emacs
105254         that don't want all the functionality of gl_GETOPT.
105256 2005-07-26  Bruno Haible  <bruno@clisp.org>
105258         * m4/lock.m4: Update from GNU gettext.
105260 2005-07-26  Bruno Haible  <bruno@clisp.org>
105262         * lib/lock.h: Update from GNU gettext.
105263         * lib/lock.c: Update from GNU gettext.
105265 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
105267         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
105268         obsolescent AC_TRY_RUN.  Include the default includes files, for
105269         'exit'.
105271 2005-07-24  Bruno Haible  <bruno@clisp.org>
105273         * modules/visibility: New file.
105274         * MODULES.html.sh (Misc): Add visibility.
105276 2005-07-24  Bruno Haible  <bruno@clisp.org>
105278         * m4/visibility.m4: New file.
105280 2005-07-24  Bruno Haible  <bruno@clisp.org>
105282         * doc/visibility.texi: New file.
105284 2005-07-22  Bruno Haible  <bruno@clisp.org>
105286         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
105287         $(ALLOCA_H), redundant through BUILT_SOURCES.
105288         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
105289         redundant through BUILT_SOURCES.
105290         * modules/byteswap (Makefile.am): Remove explicit dependency on
105291         $(BYTESWAP_H), redundant through BUILT_SOURCES.
105292         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105293         $(FNMATCH_H), redundant through BUILT_SOURCES.
105294         * modules/getopt (Makefile.am): Remove explicit dependency on
105295         $(GETOPT_H), redundant through BUILT_SOURCES.
105296         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105297         redundant through BUILT_SOURCES.
105298         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105299         redundant through BUILT_SOURCES.
105300         * modules/stdbool (Makefile.am): Remove explicit dependency on
105301         $(STDBOOL_H), redundant through BUILT_SOURCES.
105302         * modules/stdint (Makefile.am): Remove explicit dependency on
105303         $(STDINT_H), redundant through BUILT_SOURCES.
105304         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105305         Remove explicit dependency on $(SYSEXITS_H).
105306         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105308 2005-07-18  Simon Josefsson  <jas@extundo.com>
105310         * lib/check-version.c (check_version): Accept identical versions too.
105312 2005-07-18  Bruno Haible  <bruno@clisp.org>
105314         * modules/lock: New file.
105315         * MODULES.html.sh (Multithreading): New section.
105317 2005-07-18  Bruno Haible  <bruno@clisp.org>
105319         * m4/lock.m4: New file, from GNU gettext.
105321 2005-07-18  Bruno Haible  <bruno@clisp.org>
105323         * lib/lock.h: New file, from GNU gettext.
105324         * lib/lock.c: New file, from GNU gettext.
105326 2005-07-18  Bruno Haible  <bruno@clisp.org>
105328         * lib/lock.h (gl_once_t): New type.
105329         (gl_once_define, gl_once): New macros.
105330         * lib/lock.c (fresh_once): New variable.
105331         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105332         functions.
105334 2005-07-16  Simon Josefsson  <jas@extundo.com>
105336         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105337         workaround, suggested by Bruno.
105339 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105341         * modules/xalloc (Depends-on): Add xalloc-die.
105342         * modules/xvasprintf (Depends-on): Add xalloc-die.
105344 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105346         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105347         with a minor change.
105349 2005-07-15  Bruno Haible  <bruno@clisp.org>
105351         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105352         When using lib/poll.c, define poll as rpl_poll.
105354 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105356         * modules/argp (Depends-on): Remove unlocked-io.
105358 2005-07-14  Derek Price  <derek@ximbiot.com>
105360         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105361         for glob symlink bug.
105363 2005-07-14  Bruno Haible  <bruno@clisp.org>
105365         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105366         Instead, test for *_unlocked function declarations directly.
105368 2005-07-11  Simon Josefsson  <jas@extundo.com>
105370         * modules/size_max: New file.
105372         * modules/xsize: Depend on size_max module for size_max.m4.
105374 2005-07-11  Simon Josefsson  <jas@extundo.com>
105376         * lib/size_max.h: New file.
105378 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105380         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105381         copyright symbol and the year.
105382         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105383         (version_etc_va): Use parameterized copyright notice.
105384         Reword to conform to the current GNU coding standards.
105386 2005-07-11  Karl Berry  <karl@gnu.org>
105388         * doc/gnulib.texi (Quoting): new node.
105389         (Initial import): more info, from Patrice.
105391 2005-07-11  Bruno Haible  <bruno@clisp.org>
105393         * gnulib-tool (func_usage): Document option --avoid.
105394         (Command line options): Handle --avoid.
105395         (func_acceptable): New function.
105396         (func_modules_transitive_closure): Use it.
105398 2005-07-11  Bruno Haible  <bruno@clisp.org>
105400         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105401         Reported by Jim Meyering.
105403 2005-07-10  Bruno Haible  <bruno@clisp.org>
105405         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105406         Needed when size_t is smaller than 'unsigned int'.
105407         Reported by Paul Eggert.
105409 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105411         * modules/argp (Depends-on): Add unlocked-io
105413 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105415         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105416         block of defines.
105418 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105420         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105421         fix now.
105423 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105424         and Paul Eggert  <eggert@cs.ucla.edu>
105426         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105427         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105429 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105431         * modules/regex (Files): Add lib/regex_internal.c,
105432         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105433         (Depends-on): Add extensions.
105434         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105436 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105438         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105439         pathconf.
105440         * m4/same.m4 (gl_SAME): Likewise.
105441         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105443         * m4/regex.m4: Adjust to new libc regex implementation.
105444         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105445         all the .c and .h parts of (the new) regex.
105446         Quote the m4 stuff better.
105447         Check for RE_ICASE bug of old gnulib.
105448         Check for REG_STARTEND of recent libc.
105449         Rename local variables from jm_* to gl_*.
105450         Quote operand of "test -f".
105451         Say "recent enough" version of libc, not "version 2".
105452         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105453         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105454         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105455         Remove check for btowc, isascii.
105456         Require AM_LANGINFO_CODESET.
105458 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105460         * lib/regex.c, regex.h: Sync from libc.
105461         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105462         * lib/regexec.c:
105463         New files, synced from libc, except that regex_internal.h
105464         currently has a small porting fix.
105466 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105468         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105469         regex_internal.c, regexec.c.
105470         Add regex_internal.h too, but as a comment, since the libc version
105471         is currently broken in gnulib mode.
105473 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105475         Support programs like Emacs that use gnulib but not gettext.
105476         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105477         * modules/gettext-h: New file.
105478         * modules/gettext (Files): Remove lib/gettext.h.
105479         (Depends-on): Add gettext-h.
105480         (Makefile.am): Remove lib_SOURCES.
105481         * modules/argmatch, modules/c-stack, modules/closeout:
105482         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105483         * modules/execute, modules/file-type, modules/getaddrinfo:
105484         * modules/getopt, modules/human, modules/javacomp:
105485         * modules/javaexec, modules/mkdir-p, modules/obstack:
105486         * modules/openat, modules/pagealign_alloc, modules/pipe:
105487         * modules/quotearg, modules/regex, modules/rpmatch:
105488         * modules/unicodeio, modules/userspec, modules/version-etc:
105489         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105490         * modules/xsetenv:
105491         Depend on gettext-h, not gettext.
105493 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105495         * gnulib-tool (func_import): Add support for 'public domain' license.
105496         * modules/alloca, modules/atexit, modules/memmove:
105497         Now public domain, not GPL.
105498         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105499         * modules/realloc, modules/strerror, modules/strtod:
105500         Now LGPL, not GPL.
105502 2005-07-05  Bruno Haible  <bruno@clisp.org>
105504         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105505         autoconf CVS. Needed for mingw.
105507 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105509         Remove the dependency of the strftime module on the tzset module.
105510         * modules/strftime (Depends-on): Remove dependency on tzset.
105512 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105514         Remove the dependency of the strftime module on the tzset module.
105515         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105516         gl_FUNC_TZSET_CLOBBER.
105518 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105520         Remove the dependency of the strftime module on the tzset module.
105521         * lib/strftime.c (my_strftime)
105522         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105523         Copy the input structure, to work around some of the bug with
105524         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105525         Solaris releases, you should also use the tzset module, but we won't
105526         require it as a dependency any more since we don't want LGPLed code
105527         to depend on GPLed code.
105529 2005-07-02  Jim Meyering  <jim@meyering.net>
105531         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105532         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105533         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105534         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105536 2005-07-02  Jim Meyering  <jim@meyering.net>
105538         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105540 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105542         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105543         declares only 'struct timespec;' (!).
105545 2005-07-01  Jim Meyering  <jim@meyering.net>
105547         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
105548         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
105549         * lib/save-cwd.c, tempname.c:
105550         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
105551         and don't include <sys/file.h>).
105553 2005-06-29  Jim Meyering  <jim@meyering.net>
105555         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
105556         type name.  Use the variable name instead.
105557         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
105558         Likewise.
105560 2005-06-28  Simon Josefsson  <jas@extundo.com>
105562         * modules/check-version (Files): Add check-version.m4.
105564 2005-06-28  Simon Josefsson  <jas@extundo.com>
105566         * m4/check-version.m4: New file, suggested by Jim Meyering
105567         <jim@meyering.net>.
105569 2005-06-28  Simon Josefsson  <jas@extundo.com>
105571         * lib/check-version.h, lib/check-version.c: New files.
105573 2005-06-28  Simon Josefsson  <jas@extundo.com>
105575         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
105576         collision with global variable.  Better indentation.  Don't
105577         increment buffer pointer beyond buffer end.  Based on comments
105578         from Paul Eggert <eggert@cs.ucla.edu>.
105580         * lib/base64.h: Indent.
105582 2005-06-28  Simon Josefsson  <jas@extundo.com>
105584         * doc/gnulib.texi (Library version handling): New section.
105586 2005-06-28  Jim Meyering  <jim@meyering.net>
105588         * check-module (find_included_lib_files): Hard-code another
105589         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
105590         but modules/fts-lgpl (correctly) does not list those files.
105592         * modules/canonicalize (Files): Add lib/pathmax.h.
105594 2005-06-25  Simon Josefsson  <jas@extundo.com>
105596         * modules/check-version: New file.
105598 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
105600         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
105601         initializer of struct addrinfo, as an indication that we don't
105602         care how many members the structure has.
105604 2005-06-24  Derek Price  <derek@ximbiot.com>
105605         and Bruno Haible  <bruno@clisp.org>
105607         Remove stat module & update lstat.
105608         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
105609         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105610         * m4/stat.m4: Remove this file.
105612 2005-06-24  Derek Price  <derek@ximbiot.com>
105613         and Bruno Haible  <bruno@clisp.org>
105615         Remove stat module & update lstat.
105616         * lib/stat.c: Remove this file...
105617         (slash_aware_lstat): ...moving this content and its support...
105618         * lib/lstat.c (rpl_lstat): ...into here.
105619         * lib/lstat.h: New file.
105621 2005-06-24  Derek Price  <derek@ximbiot.com>
105622         and Bruno Haible  <bruno@clisp.org>
105624         Remove stat module & update lstat.
105625         * config/srclist.txt (libc sources): Remove stat.
105627 2005-06-24  Derek Price  <derek@ximbiot.com>
105628         and Bruno Haible  <bruno@clisp.org>
105630         Remove stat module & update lstat.
105631         * MODULES.html.sh (stat): Remove.
105632         * MODULES.html: Regenerated.
105633         * modules/lstat (Description): Correct function name.
105634         (Files): Add "lstat.h".
105635         (Depends-on): Remove stat, add xalloc, stat-macros.
105636         * modules/stat: Remove this file.
105637         (Include): Add "lstat.h", remove <sys/stat.h>.
105639 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
105641         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
105642         (ranged_convert): Don't save conversion in a temporary struct.
105643         This causes a warning with GCC 4.0.0, and anyway in the typical
105644         case it's not worth the extra 100 bytes or so of code.
105645         (ranged_convert, __mktime_internal): When calling a function via a
105646         pointer P, use P () rather than (*P) (), as we now assume C89 or
105647         better.
105649 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105651         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
105652         "who -r" failed to give output.  Problem reported by Tim Waugh.
105654         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
105655         (xcalloc): Use it to avoid needless tests.
105656         Problem reported by Jim Meyering.
105658 2005-06-20  Derek Price  <derek@ximbiot.com>
105660         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
105661         unnecessary for Autoconfs > 2.59c.
105663 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105665         * lib/argp.h (__option_is_short): Check upper limit of
105666         __key. Isprint() requires its argument to have the value
105667         of an unsigned char or EOF.
105669 2005-06-16  Jim Meyering  <jim@meyering.net>
105671         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
105672         when either N or S is zero.
105674 2005-06-16  Derek Price  <derek@ximbiot.com>
105676         * m4/bison.m4: Declare YACC & YFLAGS precious.
105678 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
105680         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
105681         multibyte string or pattern, fall back on unibyte matching.
105682         Problem reported by James Youngman.
105684 2005-06-08  Bruno Haible  <bruno@clisp.org>
105686         * modules/csharpcomp: New file.
105687         * MODULES.html.sh (C#): Add csharpcomp.
105689 2005-06-08  Bruno Haible  <bruno@clisp.org>
105691         * m4/csharpcomp.m4: New file, from GNU gettext.
105693 2005-06-08  Bruno Haible  <bruno@clisp.org>
105695         * lib/csharpcomp.h: New file, from GNU gettext.
105696         * lib/csharpcomp.c: New file, from GNU gettext.
105697         * lib/csharpcomp.sh.in: New file, from GNU gettext.
105699 2005-06-08  Bruno Haible  <bruno@clisp.org>
105701         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
105702         warning on mingw.
105704 2005-06-07  Derek Price  <derek@ximbiot.com>
105706         Sync from CVS.
105707         * lib/glob_.h: Indent nested #ifdef.
105709 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105711         Sync from coreutils.
105712         Use "file name" when talking about file names, instead of "filename"
105713         or "path", as per the GNU coding standards.
105714         * lib/mkdir-p.c: Renamed from makepath.c.
105715         (make_dir_parents): Renamed from make_path.  All callers changed.
105716         * lib/mkdir-p.h: Likewise.  All includers changed.
105717         * lib/filenamecat.c: Renamed from path-concat.c.
105718         (file_name_concat): Renamed from path_concat.  All callers changed.
105719         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
105720         * lib/filenamecat.h: Likewise.  All includers changed.
105721         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
105722         in comments or local variable names.
105723         * lib/basename.c: Likewise.
105724         * lib/canonicalize.c, canonicalize.h: Likewise.
105725         * lib/dirname.c, dirname.h: Likewise.
105726         * lib/euidaccess.c: Likewise.
105727         * lib/exclude.c: Likewise
105728         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
105729         * lib/fsusage.c, fsuage.h: Likewise.
105730         * lib/fts.c, fts_.h: Likewise.
105731         * lib/getcwd.c: Likewise.
105732         * lib/getloadavg.c: Likewise.
105733         * lib/mkstemp.c: Likewise.
105734         * lib/mountlist.c, mountlist.h: Likewise.
105735         * lib/openat.c, openat.h: Likewise.
105736         * lib/readlink-stub.c: Likewise.
105737         * lib/readutmp.c, readutmp.h: Likewise.
105738         * lib/rename.c: Likewise.
105739         * lib/rmdir.c: Likewise.
105740         * lib/same.c: Likewise.
105741         * lib/savedir.c: Likewise.
105742         * lib/stripslash.c: Likewise.
105743         * lib/tempname.c: Likewise.
105744         * lib/xreadlink.c: Likewise.
105745         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
105746         All uses changed.
105747         * lib/exclude.h: Likewise.
105749         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
105750         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105751         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
105752         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105753         * lib/pathmax.h: Include <limits.h> unconditionally, since other
105754         files have been getting away with it for years (MORE/BSD 4.3
105755         is extinct now).
105756         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
105757         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105759         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
105760         Define to 256, not 255, as per modern POSIX.
105762 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105764         Sync from coreutils.
105765         Use "file name" when talking about file names, instead of "filename"
105766         or "path", as per the GNU coding standards.
105767         * MODULES.html.sh: mkdir-p renamed from makepath.
105768         filenamecat renamed from path-concat.
105769         * modules/filenamecat: Renamed from modules/path-concat.
105770         (Files): filenamecat.h and filenamecat.c renamed from
105771         path-concat.h and path-concat.c.
105772         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
105773         (Include): filenamecat.h, not path-concat.h.
105774         * modules/mkdir-p: Renamed from modules/makepath.
105775         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
105776         makepath.c.
105777         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
105778         (Include): mkdir-p.h, not makepath.h.
105780 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105782         Sync from coreutils.
105783         * m4/mkdir-p.m4: Renamed from makepath.m4.
105784         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
105785         Rename files from makepath.c to mkdir-p.c, and from
105786         makepath.h to mkdir-p.h.
105787         * m4/filenamecat.m4: Renamed from path-concat.m4.
105788         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
105789         Rename files from path-concat.c to filenamecat.c,
105790         and from path-concat.h to filenamecat.h.
105791         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
105792         "file name" in local variables or comments.
105793         * m4/rename.m4: Likewise.
105795 2005-06-01  Bruno Haible  <bruno@clisp.org>
105797         * modules/csharpexec: New file.
105798         * MODULES.html.sh (C#): New section.
105800 2005-06-01  Bruno Haible  <bruno@clisp.org>
105802         * m4/csharp.m4: New file, from GNU gettext.
105803         * m4/csharpexec.m4: New file, from GNU gettext.
105805 2005-06-01  Bruno Haible  <bruno@clisp.org>
105807         * lib/csharpexec.h: New file, from GNU gettext.
105808         * lib/csharpexec.c: New file, from GNU gettext.
105809         * lib/csharpexec.sh.in: New file, from GNU gettext.
105811 2005-05-31  Derek Price  <derek@ximbiot.com>
105812             Paul Eggert  <eggert@cs.ucla.edu>
105814         Sync from cvs.
105815         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105817 2005-05-31  Derek Price  <derek@ximbiot.com>
105818             Paul Eggert  <eggert@cs.ucla.edu>
105820         Sync from cvs.
105821         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105823 2005-05-29  Derek Price  <derek@ximbiot.com>
105825         * config/srclist.txt (glob_.h, glob.c): Add these files.
105827 2005-05-29  Derek Price  <derek@ximbiot.com>
105829         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
105830         * modules/glob: New file.
105831         * modules/getlogin_r: Add link to POSIX spec in description.
105833 2005-05-29  Derek Price  <derek@ximbiot.com>
105834             Paul Eggert  <eggert@cs.ucla.edu>
105836         * m4/glob.m4: New file.
105838 2005-05-29  Derek Price  <derek@ximbiot.com>
105839             Paul Eggert  <eggert@cs.ucla.edu>
105841         * lib/glob_.h, lib/glob.c: New files.
105843 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105845         * modules/fts (Files): Remove m4/inttypes-pri.m4.
105846         * modules/fts-lgpl (Depends-on): Remove gettext.
105848 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105850         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
105851         and don't require gt_INTTYPES_PRI.
105853 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105855         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
105857         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
105858         the configuration hassle isn't worth it.
105859         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
105860         (LONGEST_MODIFIER, PRIuMAX): Remove.
105862 2005-05-27  Bruno Haible  <bruno@clisp.org>
105864         * lib/getlogin_r.h: Remove second include of <stddef.h>.
105866 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
105868         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
105869         _POSIX_PTHREAD_SEMANTICS for Solaris.
105871 2005-05-25  Derek Price  <derek@ximbiot.com>
105873         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
105875 2005-05-25  Derek Price  <derek@ximbiot.com>
105876             Paul Eggert  <eggert@cs.ucla.edu>
105878         * modules/getlogin_r, m4/getlogin_r.m4: New files.
105879         * lib/getlogin_r.c, getlogin_r.h: New files.
105881 2005-05-25  Bruno Haible  <bruno@clisp.org>
105882             Derek Price  <derek@ximbiot.com>
105884         * lib/getlogin_r.h: Simplify API documentation.
105886 2005-05-23  Derek Price  <derek@ximbiot.com>
105888         * modules/minmax (Files): Add m4/minmax.m4.
105889         (configure.ac): Add gl_MINMAX.
105891 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
105893         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
105894         so that unistd-safer.h (GPL'ed code) need not be included.
105896 2005-05-22  Bruno Haible  <bruno@clisp.org>
105898         * m4/minmax.m4: New file.
105899         Based on a patch by Derek Price <derek@ximbiot.com>.
105901 2005-05-22  Bruno Haible  <bruno@clisp.org>
105903         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
105904         (INT64_MIN): Fix definition.
105905         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
105907         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
105908         NEED_SIGNED_INT_TYPES.
105910         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
105911         HAVE_SYSTEM_INTTYPES.
105913 2005-05-22  Bruno Haible  <bruno@clisp.org>
105915         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
105916         Also include <sys/param.h> if it defines MIN, MAX.
105917         Based on a patch by Derek Price <derek@ximbiot.com>.
105919 2005-05-21  Jim Meyering  <jim@meyering.net>
105921         * modules/fts (Files): Add m4/inttypes-pri.m4.
105922         (Depends-on): Add lstat and remove gettext.  Alphabetize.
105924 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105926         New fts module.
105927         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
105928         (setup_dir, free_dir): New functions.
105929         (enter_dir, leave_dir): Define trivial
105930         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
105931         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
105932         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
105933         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
105934         Move to fts-cycle.c.
105935         (fts_open): Use setup_dir.
105936         (fts_close): Use free_dir.
105937         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
105938         This adds a label and some gotos, but the alternatives were messier.
105939         Check for memory allocation failure when entering a dir.
105940         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
105941         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
105942         (FTS): New member fts_cycle, that is a union that contains the
105943         old active_dir_ht and cycle_state.  All uses changed to mention
105944         fts_cycle.ht and fts_cycle.state.
105945         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
105946         fts.c, with the following changes:
105947         (setup_dir, free_dir): New functions.
105948         (enter_dir): Now returns bool.  Return true if successful, false
105949         if memory exhausted.  All callers changed.
105950         Do not bother partly cleaning up on
105951         memory allocation failure; that is free_dir's job.
105952         However, free ad if hash_insert fails, to avoid memory leak.
105953         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
105954         fts->fts_options to see which union member to use.
105956 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105958         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
105959         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
105961 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105963         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
105965 2005-05-20  Jim Meyering  <jim@meyering.net>
105967         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
105968         Now a macro, to pacify GCC.
105970 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105972         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
105973         of -1.
105975 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105977         * lib/chown.c (rpl_chown): Return -1 on failure.
105979 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
105981         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
105982         Don't check for stddef.h.
105983         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
105984         don't use its results.
105985         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
105986         since we include them unconditionally.  Don't require
105987         AM_STDBOOL_H, since stdbool is a prerequisite.
105988         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
105989         since we assume C89 or better.
105990         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
105991         as we don't use their results.
105992         Don't check for fchdir, memmove, memset, strrchr, as we use
105993         them unconditionally.
105994         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
105995         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
105997 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
105999         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
106000         Include <stddef.h> unconditionally, since we assume C89 now.
106001         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
106002         * lib/fts.c: Include fts_.h first, to check interface.
106003         Do not include intprops.h; no longer needed.
106004         Include cycle-check.h and hash.h, since fts_.h no longer does.
106005         Remove unnecessary casts of closedir to void.
106006         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
106007         decide whether to decrement nlinks.
106008         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
106009         (FTS): Use struct hash_table * instead of Hash_table, so that
106010         we no longer need to include hash.h here.
106012 2005-05-18  Jim Meyering  <jim@meyering.net>
106014         * modules/dirfd (License): Change to LGPL.  Most of the code
106015         is already in the public domain.
106017 2005-05-18  Jim Meyering  <jim@meyering.net>
106019         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
106020         Reported by Yoann Vandoorselaere.
106022 2005-05-17  Jim Meyering  <jim@meyering.net>
106024         * m4/fts.m4: New file, from coreutils.
106026 2005-05-17  Jim Meyering  <jim@meyering.net>
106028         * lib/fts.c, lib/fts_.h: New files, from coreutils.
106030 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106032         Sync from coreutils.
106033         * m4/unlinkdir.m4: New file.
106035 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106037         Sync from coreutils.
106038         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
106039         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
106040         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
106041         White space changes only.
106042         * lib/makepath.c (make_path): Port to hosts where leading "//" is
106043         special.
106044         * lib/yesno.c: Include getline.h, not ctype.h.
106045         (yesno): Don't remove leading white space; POSIX doesn't allow it.
106046         Use getline to remove arbitrary restriction on response length.
106048 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106050         * config/srclist-update: Spell out "Street" in FSF postal
106051         mail address; this is the style the FSF seems to prefer.
106053         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
106054         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
106055         this updates FSF postal mail address.
106057         Sync from coreutils.
106058         * modules/unlinkdir: New file.
106059         * modules/yesno (Depends-on): Add getline.
106060         * MODULES.html.sh (File system functions): Add unlinkdir.
106062 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106064         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
106065         lib/strsep.h:
106066         Change the initial comment to refer to GPL, not LGPL.
106067         gnulib-tool will change it to LGPL as needed.
106069         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
106070         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
106071         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
106072         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
106073         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
106074         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
106075         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
106076         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
106077         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
106078         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
106079         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
106080         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
106081         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
106082         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
106083         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
106084         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
106085         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
106086         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
106087         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
106088         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
106089         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
106090         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
106091         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
106092         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
106093         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
106094         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
106095         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
106096         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
106097         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
106098         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
106099         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
106100         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
106101         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
106102         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
106103         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
106104         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
106105         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
106106         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
106107         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
106108         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
106109         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
106110         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
106111         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
106112         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
106113         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
106114         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
106115         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
106116         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
106117         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
106118         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
106119         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106120         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
106121         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
106122         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
106123         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
106124         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
106125         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
106126         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
106127         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
106128         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
106129         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
106130         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
106131         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
106132         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
106133         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
106134         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
106135         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
106136         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
106137         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
106138         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
106139         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
106140         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
106141         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
106142         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
106143         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
106144         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
106145         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
106146         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
106147         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
106148         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
106149         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
106150         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
106151         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
106152         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
106153         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
106154         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
106155         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
106156         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
106157         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
106158         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
106159         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
106160         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
106161         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
106162         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
106163         lib/yesno.c, lib/yesno.h:
106164         Update FSF postal mail address.
106166 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106168         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
106169         tests/test-memmem.c, tests/test-stpncpy.c:
106170         Update FSF postal mail address.
106172 2005-05-13  Bruno Haible  <bruno@clisp.org>
106174         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
106175         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
106176         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
106177         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
106178         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
106179         Add support for 64-bit integers in the MSVC compiler.
106181 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106183         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
106185 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
106187         * gnulib-tool (func_import): Sort and uniquify recommended includes.
106189 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
106191         * doc/getdate.texi (General date syntax): Don't say that date
106192         date --iso-8601=ns generates acceptable dates; it doesn't yet.
106193         Problem reported by Nic Ferrier.
106195 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106197         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
106198         specified in ai_socktype. Fix invalid ai_protocol
106199         check. ai_protocol is usually set to 0 or depending on
106200         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
106201         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
106202         ai_socktype / ai_protocol in the returned addrinfo structure.
106204 2005-05-10  Simon Josefsson  <jas@extundo.com>
106206         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
106207         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106209 2005-05-10  Karl Berry  <karl@gnu.org>
106211         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
106212         (from http://www.gnu.org/licenses).
106213         * doc/COPYING.LIB: also rename to COPYING.LESSER.
106214         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
106215         fdl.texi suffices.
106217 2005-05-10  Karl Berry  <karl@gnu.org>
106219         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
106220         (COPYING.DOC): remove.
106222         * config/srclist-update: new FSF address.
106224 2005-05-10  Derek Price  <derek@ximbiot.com>
106226         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
106227         possible.
106229 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106230             Bruno Haible  <bruno@clisp.org>
106232         * modules/inet_ntop: New file.
106233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106234         inet_ntop.
106236 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106237             Bruno Haible  <bruno@clisp.org>
106239         * m4/inet_ntop.m4: New file.
106241 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106242             Bruno Haible  <bruno@clisp.org>
106244         * lib/inet_ntop.h: New file.
106245         * lib/inet_ntop.c: New file, from glibc with modifications.
106247 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
106249         * modules/time_r (License): Change to LGPL.
106250         * modules/extensions (License): Change to LGPL.  Actually,
106251         the license is more permissive than that, but currently gnulib-tool
106252         doesn't know how to handle more-permissive licenses.
106254         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
106255         Problem reported by Dave Love.
106257 2005-05-08  Jim Meyering  <jim@meyering.net>
106259         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
106260         blank.
106262 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106264         * modules/argmatch (Depends-on): Add stdbool.
106265         * modules/backupfile (Depends-on): Likewise.
106266         * modules/chdir-long (Depends-on): Likewise.
106267         * modules/closeout (Depends-on): Likewise.
106268         * modules/cycle-check (Depends-on): Likewise.
106269         * modules/dirname (Depends-on): Likewise.
106270         * modules/fnmatch (Depends-on): Likewise.
106271         * modules/fsusage (Depends-on): Likewise.
106272         * modules/fwriteerror (Depends-on): Likewise.
106273         * modules/getcwd (Depends-on): Likewise.
106274         * modules/getloadavg (Depends-on): Likewise.
106275         * modules/hard-locale (Depends-on): Likewise.
106276         * modules/makepath (Depends-on): Likewise.
106277         * modules/mountlist (Depends-on): Likewise.
106278         * modules/nanosleep (Depends-on): Likewise.
106279         * modules/posixtm (Depends-on): Likewise.
106280         * modules/quotearg (Depends-on): Likewise.
106281         * modules/readtokens (Depends-on): Likewise.
106282         * modules/readtokens0 (Depends-on): Likewise.
106283         * modules/readutmp (Depends-on): Likewise.
106284         * modules/save-cwd (Depends-on): Likewise.
106285         * modules/strftime (Depends-on): Likewise.
106286         * modules/userspec (Depends-on): Likewise.
106287         * modules/utimecmp (Depends-on): Likewise.
106288         * modules/xgetcwd (Depends-on): Likewise.
106289         * modules/xnanosleep (Depends-on): Likewise.
106290         * modules/xstrtod (Depends-on): Likewise.
106291         * modules/yesno (Depends-on): Likewise.
106293 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106295         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106296         needless checks.
106298 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106300         Merge from coreutils.  Among other things,
106301         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106302         * lib/fd-safer.c: New file.
106303         * lib/fcntl-safer.h, open-safer.c: Remove.
106304         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106305         * lib/dup-safer.c: Include unistd-safer.h first.
106306         Don't include errno.h.
106307         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106308         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106309         * lib/file-type.c: Rely on file-type.h change.
106310         * lib/getloadavg.c: Include unistd-safer.h.
106311         (getloadavg): Use safer open.
106312         * lib/getusershell.c: Include "stdio-safer.h".
106313         (getusershell): Use safer fopen.
106314         * lib/long-options.c (long_options): Use NULL rather than 0.
106315         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106316         'free'.
106317         * lib/modechange.c: Likewise.
106318         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106319         (MODE_DONE): New constant.
106320         (struct mode_change): Remove 'next' member.
106321         (make_node_op_equals): New function; like the old one of the
106322         same name, except it allocates an array.
106323         (mode_compile, mode_create_from_ref): Use it.
106324         (mode_compile): Allocate result as an array, not a linked list.
106325         Parse octal string ourself, so that we catch mistakes like "+0".
106326         (mode_adjust): Arg is an array, not a linked list.
106327         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106328         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106329         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106330         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106331         Remove.  This is now stat-macros.h's job.
106332         (talloc): Remove.  All callers replaced by xalloc, so that
106333         our invokers don't have to worry about reporting memory failures.
106334         (make_node_op_equals): Remove.
106335         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106336         New constants.
106337         (struct mode_change): Moved here from modechange.h.
106338         (mode_append_entry): Remove.
106339         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106340         apps to have incorrect behavior.  Use simpler algorithm for head
106341         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106342         Detect more invalid usages rather than having somewhat-random behavior.
106343         Don't insert an "a=" action, as that leads to incorrect behavior.
106344         (mode_compile, mode_create_from_ref): Return NULL on error instead
106345         of an enum, since now there's only one way to have an error.  All
106346         callers changed.
106347         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106348         at the correct time.  Simplify calculation of "+u" and its ilk.
106349         Don't mishandle "+X".
106350         (mode_free): Remove "register" and localize decls.
106351         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106352         (struct mode_change): Move to modechange.c; callers don't
106353         need to see this stuff.
106354         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106355         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106356         (mode_change, mode_adjust): Reflect the new signatures noted above.
106357         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106358         that might redefine system include files.
106359         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106360         (my_usleep): Use NULL rather than (void *) 0.
106361         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106362         Use siginterrupt to specify that system calls should be interrupted.
106363         (rpl_nanosleep): Move initialization of suspended closer to call of
106364         my_usleep.
106365         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106366         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106367         (desirable_utmp_entry): New function.
106368         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106369         using x2nrealloc, to simplify logic.
106370         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106371         size calculation.  Do not assume utmp file is a regular file.
106372         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106373         (READ_UTMP_CHECK_PIDS): New constant.
106374         * lib/save-cwd.c: Include unistd-safer.h.
106375         (save_cwd): Use fd_safer.
106376         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106377         [!_LIBC] Include "stat-macros.h" instead.
106378         * lib/unistd-safer.h (fd_safer): New decl.
106380 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106382         * modules/getloadavg (Depends-on): Add unistd-safer.
106383         * modules/getusershell (Depends-on): Add stdio-safer.
106384         * modules/lstat (Depends-on): Remove xalloc.
106385         * modules/mkstemp (Depends-on): Add stat-macros.
106386         * modules/modechange (Depends-on): Remove xstrtol.
106387         Add stat-macros, xalloc.
106388         * modules/save-cwd (Depends-on): Add unistd-safer.
106389         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106390         * modules/unistd-safer (Files): Add lib/fd-safer.c
106391         (Makefile.am): Remove lib_SOURCES.
106393         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106394         Remove fcntl-safer; unistd-safer supersedes it.
106396 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106398         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106399         AC_HEADER_STAT.
106400         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106401         (gl_PREREQ_CHOWN): Remove.
106402         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106403         it.  Don't require AC_HEADER_STAT.
106404         (gl_PREREQ_LSTAT): Remove.
106405         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106406         Don't require AC_HEADER_STAT.
106407         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106408         (gl_PREREQ_RMDIR): Remove.
106409         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106410         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106411         the stat-macros module a prerequisite.
106412         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106413         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106414         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106415         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106416         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106417         variable names.
106418         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106419         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106420         variable prefixes.
106421         * m4/fcntl-safer.m4: Remove.
106422         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106423         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106424         Invoke gl_PREREQ_FD_SAFER.
106425         (gl_PREREQ_FD_SAFER): New macro.
106426         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106427         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106428         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106429         Remove duplicate call to AC_LIBOBJ(readutmp).
106430         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106432         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106433         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106435 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106437         * MODULES.html.sh (Misc): Add byteswap.
106439 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106441         * modules/getcwd (Depends-on): Add extensions.
106442         * modules/openat (Depends-on): Likewise.
106444 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106446         * modules/byteswap: New file.
106448 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106450         * m4/byteswap.m4: New file.
106452 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106454         * lib/byteswap_.h: New file.
106456 2005-04-25  Karl Berry  <karl@gnu.org>
106458         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106460 2005-04-25  Albert Chin  <china@thewrittenword.com>
106462         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106463         Toolkit C bug.
106465 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106467         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106468         (func_ln_if_changed): Remove forcibly for no error message
106469         in case file does not exist.
106471 2005-04-19  Simon Josefsson  <jas@extundo.com>
106473         * gnulib-tool (Options): Make --symlink mean --symbolic.
106475 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106477         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106479 2005-04-16  Simon Josefsson  <jas@extundo.com>
106481         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106483 2005-04-15  Simon Josefsson  <jas@extundo.com>
106485         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106487 2005-04-15  Simon Josefsson  <jas@extundo.com>
106489         * gnulib-tool: Rename --symlink to --symbolic.
106491 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106493         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106494         symbolic links to files instead of copying/moving.  Add --aux-dir,
106495         specifying directory relative --dir where auxiliary build tools
106496         are placed.
106498 2005-04-14  Bruno Haible  <bruno@clisp.org>
106500         * modules/allocsa (License): Change to LGPL.
106501         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106503 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106505         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106506         that "UTC +1 second" continues to work.  Problem reported
106507         by Dmitry V. Levin.
106508         (relunit_snumber): New rule.
106509         (relunit): Use it.
106511 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106513         * lib/getdate.y (universal_time_zone_table): New constant.
106514         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106515         universal_time_zone_table.
106516         (lookup_zone): Prefer universal_time_zone_table to
106517         local_time_zone_table, so that "GMT" time stamps are allowed in
106518         London during the summer.  Problem reported by Ian Abbott.
106520 2005-04-12  Jim Meyering  <jim@meyering.net>
106522         * lib/human.c (humblock): Set *options even when returning due to
106523         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106524         warning from gcc-4.
106526 2005-04-09  Jim Meyering  <jim@meyering.net>
106528         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106529         -Wuninitialized: initialize tm0.tm_year.
106531 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106533         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106534         count, since there's no maximum.  All uses changed.
106535         Add member dsts_seen.
106536         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106537         not being INT_MAX.
106538         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106539         Use pc_rels_seen to decide whether a date is absolute.
106541         * lib/getdate.y (number): Don't overwrite year.
106542         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106543         check.
106545 2005-04-02  Simon Josefsson  <jas@extundo.com>
106547         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
106548         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
106550 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
106552         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
106553         where no absolute path name can be longer than PATH_MAX.
106555 2005-03-27  Jim Meyering  <jim@meyering.net>
106557         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
106559 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
106561         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
106562         "one's complement" -> "ones' complement" in comment, as per Knuth.
106563         "value of type" -> "type or expression" in comment.
106564         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
106566 2005-03-26  Jim Meyering  <jim@meyering.net>
106568         Comment nits.
106569         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
106570         Correct typos: s/or/of/.
106572 2005-03-26  Jim Meyering  <jim@meyering.net>
106574         * modules/check-include-files: Move to ../ and rename to...
106575         * check-module: ...this.
106577 2005-03-25  Jim Meyering  <jim@meyering.net>
106579         * modules/xvasprintf (Files): Add xalloc.h.
106581 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106583         * modules/gettext (Files): config/config.rpath ->
106584         build-aux/config.rpath
106585         * modules/iconv (Files): Likewise.
106586         Problem reported by Oskar Liljeblad.
106588 2005-03-23  Jim Meyering  <jim@meyering.net>
106590         * modules/check-include-files: New script to check for
106591         missing dependencies, multiple includes, etc.
106593         * modules/c-strtold (Depends-on): Add xalloc.
106594         * modules/c-strtod (Depends-on): Add xalloc.
106595         * modules/hash (Depends-on): Add xalloc.
106596         (Files): Remove lib/xalloc.h.
106598         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
106599         * modules/userspec (Files): Add lib/inttostr.h.
106601 2005-03-23  Jim Meyering  <jim@meyering.net>
106603         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
106605 2005-03-22  Jim Meyering  <jim@meyering.net>
106607         * modules/stat-macros: New module.
106608         * modules/canonicalize, modules/euidaccess, modules/file-type,
106609         * modules/filemode, modules/lchown, modules/makepath,
106610         * modules/rmdir, modules/stat: Depend on new stat-macros module
106611         rather than listing lib/stat-macros.h manually.
106612         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
106614 2005-03-22  Jim Meyering  <jim@meyering.net>
106616         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
106618 2005-03-22  Bruno Haible  <bruno@clisp.org>
106620         * config/srclist.txt: Replace target directory 'config' with
106621         'build-aux'.
106622         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
106623         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
106624         ../build-aux/.
106626 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
106628         * modules/chdir-long (Depends-on): Add mempcpy.
106630         * modules/acl, modules/backupfile, modules/c-strtod,
106631         modules/c-strtold, modules/canon-host, modules/canonicalize,
106632         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
106633         modules/exclude, modules/exitfail, modules/file-type,
106634         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
106635         modules/getdate, modules/getline, modules/getpagesize,
106636         modules/getpass, modules/getugroups, modules/group-member,
106637         modules/hard-locale, modules/hash, modules/human, modules/idcache,
106638         modules/inttostr, modules/long-options, modules/makepath,
106639         modules/md5, modules/memcasecmp, modules/memcoll,
106640         modules/modechange, modules/mountlist, modules/path-concat,
106641         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
106642         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
106643         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
106644         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
106645         modules/strftime, modules/strndup, modules/strverscmp,
106646         modules/timespec, modules/unlocked-io, modules/userspec,
106647         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
106648         modules/yesno:
106649         Remove lib_SOURCES line from Makefile.am section, as this is now
106650         done automatically by the corresponding Autoconf macro.
106652 2005-03-21  Jim Meyering  <jim@meyering.net>
106654         Changes imported from coreutils.
106656         * lib/cycle-check.c: Don't include xalloc.h.
106658         * lib/path-concat.c: Don't include assert.h.
106659         (path_concat): Remove assertion that would have triggered
106660         for ABASE starting with more than one slash.
106661         Reported by Andreas Schwab.
106663         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
106664         properly when ABASE is an absolute file name.
106665         Correct the description of this function.
106666         Include <assert.h>.
106667         Add an assertion and a test driver.
106668         This fixes a bug introduced on 2004-07-02.
106669         Andreas Schwab reported the resulting failure of cp --parents:
106670         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
106672 2005-03-21  Jim Meyering  <jim@meyering.net>
106674         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
106675         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
106677 2005-03-21  Jim Meyering  <jim@meyering.net>
106678         and  Paul Eggert  <eggert@cs.ucla.edu>
106680         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
106681         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
106682         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
106683         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
106684         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
106685         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
106686         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
106687         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
106688         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
106689         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
106690         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
106691         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
106692         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
106693         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
106694         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
106695         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
106696         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
106697         for these modules.
106699 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
106701         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
106702         (which shouldn't happen), generate nothing instead of returning 0
106703         immediately, so that nstrftime (NULL, ...) doesn't return 0.
106705 2005-03-16  Bruno Haible  <bruno@clisp.org>
106707         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
106708         HAVE_LONGLONG_64BIT.
106710 2005-03-16  Bruno Haible  <bruno@clisp.org>
106712         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
106713         HAVE_LONGLONG_64BIT.
106715 2005-03-16  Bruno Haible  <bruno@clisp.org>
106717         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
106718         HAVE_LONGLONG_64BIT.
106720 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106722         * lib/strftime.c (my_strftime): Prepend space to format so that we can
106723         reliably distinguish strftime failure from empty output on POSIX
106724         hosts.
106726 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106728         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
106729         (iconv_string): Don't guess a size-zero buffer, as that might cause
106730         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
106731         result would be 'too large', where 'too large' is (heuristically)
106732         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
106733         overflow concerns.  This will prevent some unwanted malloc failures
106734         when the inputs are very large.
106736 2005-03-15  Karl Berry  <karl@gnu.org>
106738         * config/srclist.txt (config.rpath): from gettext.
106739         * config/config.rpath: update.
106741 2005-03-15  Bruno Haible  <bruno@clisp.org>
106743         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
106744         to 'negate'.
106746         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
106747         variable.
106749         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
106750         results.
106752 2005-03-14  Simon Josefsson  <jas@extundo.com>
106754         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
106755         <fx@gnu.org>.
106757 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
106759         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
106760         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
106761         intprops.h.
106762         * lib/strtol.c: Likewise.
106764 2005-03-14  Jim Meyering  <jim@meyering.net>
106766         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
106767         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
106768         to be nonzero so that we (and caller) can detect the difference
106769         between a valid zero-length expansion and an error return, even
106770         when the underlying strftime fails before writing anything into
106771         that location.
106773 2005-03-14  Bruno Haible  <bruno@clisp.org>
106775         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
106776         Update from GNU gettext 0.14.3.
106778 2005-03-10  Jim Meyering  <jim@meyering.net>
106780         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
106782 2005-03-10  Jim Meyering  <jim@meyering.net>
106784         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
106785         so that this module works on systems without fchdir.
106787 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
106789         Factor int-properties macros into a single file, except for
106790         glibc-related files.
106791         * lib/intprops.h: New file.
106792         * lib/getloadavg.c: Include it instead of limits.h.
106793         (INT_STRLEN_BOUND): Remove.
106794         * lib/human.c: Include intprops.h.
106795         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
106796         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
106797         302/1000.
106798         * lib/inttostr.h: Include intprops.h instead of limits.h.
106799         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
106800         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
106801         for consistency with intprops.h.
106802         (time_t_is_integer, twos_complement_arithmetic): Use them.
106803         * lib/sig2str.h: Include <signal.h>, intprops.h.
106804         (INT_STRLEN_BOUND): Remove.
106805         * lib/strftime.c (TYPE_SIGNED): Remove.
106806         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
106807         * lib/strtol.c: Adjust comments to match intprops.h.
106808         * lib/userspec.c: Include intprops.h.
106809         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
106810         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
106811         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
106812         instead of rolling our own expressions.
106813         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
106815         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
106816         instead of int.
106817         (my_strftime): Do not mishandle years close to INT_MAX, by doing
106818         the right thing even if adding 1900 would overflow.  Similarly
106819         for tm_mon + 1 and tm_yday + 1.
106820         Make %Y always equivalent to %C%y, and similarly for %G and %g.
106821         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
106822         (DO_SIGNED_NUMBER): New macro.
106823         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
106825 2005-03-07  Bruno Haible  <bruno@clisp.org>
106827         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
106829 2005-03-07  Bruno Haible  <bruno@clisp.org>
106831         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
106833 2005-03-04  Derek R. Price  <derek@ximbiot.com>
106835         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
106836         (func_import): Only replace files via --import when they have actually
106837         changed.
106839 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106841         * m4/mmap-anon.m4: New file.
106842         * m4/pagealign_alloc.m4: New file.
106844 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106845             Bruno Haible  <bruno@clisp.org>
106847         * modules/pagealign_alloc: New file.
106848         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
106850 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106851             Bruno Haible  <bruno@clisp.org>
106853         * lib/pagealign_alloc.h: New file.
106854         * lib/pagealign_alloc.c: New file.
106856 2005-03-03  Bruno Haible  <bruno@clisp.org>
106858         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
106859         Use an all-permissive copyright notice, recommended by RMS.
106861 2005-03-02  Bruno Haible  <bruno@clisp.org>
106863         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
106864         of AIX, the replacement has to be done only after <string.h> is
106865         included, therefore not in config.h. stpncpy.h does the replacement,
106866         and stpncpy.c uses it.
106868 2005-03-02  Bruno Haible  <bruno@clisp.org>
106870         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
106871         stpncpy.c uses it.
106873 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106875         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
106876         The workaround isn't strictly needed for POSIX conformance, and
106877         it's too much of a pain to configure and maintain.  We'll ask
106878         people to fix their kernels instead.
106879         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
106880         (NANOSLEEP_BUG_WORKAROUND): Remove.
106881         (xnanosleep): Remove the workaround.
106883 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106885         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
106886         Reported by Derek Price.
106887         (Include): Add "timespec.h".
106889         * modules/xnanosleep (Depends-on): Remove gethrxtime.
106891 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106893         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
106894         to detect nanosleep bug.
106896 2005-03-01  Bruno Haible  <bruno@clisp.org>
106898         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
106900 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
106902         * modules/gethrxtime: New file.
106903         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
106904         (Depends-on): Add gethrxtime.
106905         (configure.ac): Add gl_XNANOSLEEP.
106906         (Makefile.am): Remove lib_SOURCES line.
106908 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106910         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
106911         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
106913 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106915         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
106916         * lib/timespec.h (gettime): Return void, since it always
106917         succeeds now.  All uses changed.
106918         * lib/gettime.c (gettime): Likewise.
106919         [HAVE_NANOTIME]: Prefer nanotime.
106920         Assume gettimeofday succeeds, as POSIX requires.
106921         Assime time () succeeds, since other code already does.
106922         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
106923         (timespec_subtract): Remove.
106924         (NANOSLEEP_BUG_WORKAROUND): New constant.
106925         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
106926         things considerably.  Use it only on GNU/Linux hosts, since the
106927         workaround shouldn't be needed elsewhere.
106929 2005-02-24  Bruno Haible  <bruno@clisp.org>
106931         * modules/gettext (Files): Add m4/glibc2.m4.
106933 2005-02-24  Bruno Haible  <bruno@clisp.org>
106935         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
106936         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
106937         * m4/progtest.m4:
106938         Update from GNU gettext 0.14.2.
106939         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
106941 2005-02-24  Bruno Haible  <bruno@clisp.org>
106943         * lib/localcharset.c: Update from GNU gettext 0.14.2.
106944         * lib/config.charset: Update from GNU gettext 0.14.2.
106946 2005-02-24  Bruno Haible  <bruno@clisp.org>
106948         * lib/gettext.h: Update from GNU gettext 0.14.2.
106950 2005-02-23  Simon Josefsson  <jas@extundo.com>
106952         * m4/iconvme.m4: New file.
106954 2005-02-23  Jim Meyering  <jim@meyering.net>
106956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
106957         change.
106958         Thanks to Bruno Haible for catching it.
106960 2005-02-22  Simon Josefsson  <jas@extundo.com>
106962         * modules/iconvme: New file.
106964         * MODULES.html.sh: Add iconvme.
106966 2005-02-22  Simon Josefsson  <jas@extundo.com>
106968         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
106970 2005-02-22  Simon Josefsson  <jas@extundo.com>
106972         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
106974 2005-02-22  Jim Meyering  <jim@meyering.net>
106976         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
106977         s/ifndef/ifdef/.
106979 2005-02-20  Neil Conway  <neilc@samurai.com>
106981         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
106982         returned by OSX/Darwin if the specified buffer is not large
106983         enough for the hostname.
106985 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106987         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
106988         pass it to _help, otherwise the latter coredumps trying to
106989         dereference state.root_argp.
106991 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106993         * modules/chdir-long (Depends-on): Add memrchr.
106994         * modules/memrchr (Files): Add lib/memrchr.h.
106995         (Include): "memrchr.h".
106997 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106999         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
107001 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107003         * lib/memrchr.h: New file.
107004         * lib/chdir-long.c: Include it.
107005         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
107006         Don't bother including stddef.h.
107008 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107010         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
107011         inclusion.
107012         Include <sys/types.h>, for dev_t.
107013         (ME_DUMMY, ME_REMOTE): Move from here....
107014         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
107015         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
107016         Dmitry V. Levin.
107017         Include mountlist.h first, to test the interface.
107019 2005-01-29  Bruno Haible  <bruno@clisp.org>
107021         * lib/progname.c (program_name): Initialize.
107022         Needed when linking statically on MacOS X.
107024 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107026         Sync from coreutils.
107027         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
107028         (Depends-on): Add c-strtod.
107029         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
107031 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107033         Sync from coreutils.
107034         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
107036         Remove files that are specific to coreutils.
107037         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
107039 2005-01-28  Bruno Haible  <bruno@clisp.org>
107041         * modules/javacomp: New file.
107042         * MODULES.html.sh (Java): Add javacomp.
107044 2005-01-28  Bruno Haible  <bruno@clisp.org>
107046         * m4/javacomp.m4: New file, from GNU gettext.
107048 2005-01-28  Bruno Haible  <bruno@clisp.org>
107050         * lib/javacomp.sh.in: New file, from GNU gettext.
107051         * lib/javacomp.h: New file, from GNU gettext.
107052         * lib/javacomp.c: New file, from GNU gettext.
107054 2005-01-26  Simon Josefsson  <jas@extundo.com>
107056         * lib/gai_strerror.c: Use GPL in header.
107058 2005-01-26  Bruno Haible  <bruno@clisp.org>
107060         * modules/javaexec: New file.
107061         * MODULES.html.sh (Java): Add javaexec.
107063 2005-01-26  Bruno Haible  <bruno@clisp.org>
107065         * m4/javaexec.m4: New file, from GNU gettext.
107067 2005-01-26  Bruno Haible  <bruno@clisp.org>
107069         * lib/javaexec.sh.in: New file, from GNU gettext.
107070         * lib/javaexec.h: New file, from GNU gettext.
107071         * lib/javaexec.c: New file, from GNU gettext.
107073 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107075         * modules/lchown (Depends-on): Remove lchown.h
107077 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107079         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
107080         must be defined if the header file was not found, in order
107081         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
107083 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107085         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
107086         initializers for struct pentry_state.
107087         (__argp_error): Check return value of __asprintf
107088         (__argp_failure): Translate error message
107090         * lib/argp-parse.c: Removed braces around the expansion of N_()
107092 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107094         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
107095         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
107096         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
107097         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
107098         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
107099         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
107100         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
107101         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
107102         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
107103         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
107104         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
107105         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
107106         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
107107         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
107108         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
107109         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
107110         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
107111         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
107112         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
107113         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
107114         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
107115         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
107116         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
107117         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
107118         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
107119         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
107120         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
107121         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
107122         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
107123         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
107124         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
107125         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
107126         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
107127         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
107128         xstrtol.m4, xstrtoumax.m4, yesno.m4:
107129         Use an all-permissive copyright notice, recommended by RMS.
107131 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
107133         * modules/chdir-long (Depends-on): Remove mempcpy.
107135 2005-01-21  Jim Meyering  <jim@meyering.net>
107137         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
107138         same value as for Solaris 9.
107140         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
107141         component length.  This included changing the parameter to be
107142         of type `char *' rather than `char const *'.
107143         * lib/chdir-long.h (chdir_long): Update prototype.
107145         * lib/openat.c (fdopendir, fstatat): New functions.
107146         * lib/openat.h: Include headers required for use of DIR and struct
107147         stat.
107148         [AT_SYMLINK_NOFOLLOW]: Define.
107149         (fdopendir, fstatat): Add prototypes.
107151 2005-01-21  Bruno Haible  <bruno@clisp.org>
107153         * modules/classpath: New file.
107154         * MODULES.html.sh (Java): Add classpath.
107156 2005-01-21  Bruno Haible  <bruno@clisp.org>
107158         * lib/classpath.h: New file, from GNU gettext.
107159         * lib/classpath.c: New file, from GNU gettext.
107161 2005-01-20  Simon Josefsson  <jas@extundo.com>
107163         * modules/version-etc-fsf: New file.
107165 2005-01-20  Simon Josefsson  <jas@extundo.com>
107167         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
107168         * lib/version-etc.c: Remove version_etc_copyright.
107169         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
107170         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
107172 2005-01-20  Simon Josefsson  <jas@extundo.com>
107174         * lib/base64.h (isbase64): Add.
107176         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
107177         using a unsigned prototype, don't inline.
107178         (base64_decode): Use it.
107180 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107182         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
107183         it.
107185 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107187         * lib/save-cwd.c (save_cwd): Remove code to support the case
107188         where fchdir is missing or flaky.
107190 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107192         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
107194 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107196         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
107197         AC_LIBSOURCES now does this.
107198         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
107199         with new ullong_max module.
107201 2005-01-19  Bruno Haible  <bruno@clisp.org>
107203         * modules/sh-quote: New file.
107204         * MODULES.html.sh (Executing programs): Add sh-quote.
107206 2005-01-19  Bruno Haible  <bruno@clisp.org>
107208         * lib/sh-quote.h: New file, from GNU gettext.
107209         * lib/sh-quote.c: New file, from GNU gettext.
107211 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107213         Merge from coreutils.
107214         * m4/ullong_max.m4: New file.
107215         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
107216         (gl_MACROS): Assume localeconv exists.
107218 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107220         Merge changes from coreutils, as described below in several
107221         changelogs dated today.
107223         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
107224         (O_DIRECTORY): Remove; not needed here, since "." must be
107225         a directory.  All uses removed.
107226         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
107227         universal on Suns, and we also need to test for IRIX.
107228         Revamp code to use 'if' rather than '#if'.
107229         Avoid unnecessary comparison of cwd->desc to 0.
107231         * lib/utimens.c (futimens): Robustify the previous patch, by checking
107232         for known valid error numbers rather than observed invalid ones.
107234 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107236         * modules/ullong_max: New file.
107238         * modules/chdir-long, modules/openat: New files.
107239         * modules/save-cwd (Depends-on): Depend on chdir-long.
107240         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
107242 2005-01-18  Jim Meyering  <jim@meyering.net>
107244         Merge from coreutils.
107245         * m4/chdir-long.m4, m4/openat.m4: New files.
107246         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
107247         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
107248         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
107249         is sane and DOES follow symlinks.  Besides, testing 20 different
107250         systems found no broken chown implementations.
107251         Prompted by a change in rsync's copy of this macro.
107252         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
107254         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
107256         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
107257         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
107258         NULL-means-set-to-current-time semantics.
107259         Remove temporary file immediately, rather than waiting
107260         for configure's at-exit trap code to do it.
107262 2005-01-18  Jim Meyering  <jim@meyering.net>
107264         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107266         * lib/utimens.c (futimens): Account for the fact that futimes
107267         can also fail with errno == ENOSYS or errno == ENOENT.
107268         Patch from Dmitry V. Levin.
107270         Change the name of the robust chdir function from chdir to chdir_long.
107271         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
107272         (restore_cwd): Use chdir_long, not chdir.
107273         * lib/chdir-long.c: Renamed from chdir.c.
107274         * lib/chdir-long.h: Renamed from chdir.h.
107275         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
107276         Hurd.
107278 2005-01-18  Bruno Haible  <bruno@clisp.org>
107280         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
107281         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
107282         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
107283         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
107284         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
107285         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
107286         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
107287         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
107288         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
107289         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
107290         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
107291         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
107292         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107293         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107294         Use an all-permissive copyright notice, recommended by RMS.
107296 2005-01-18  Bob Proulx  <bob@proulx.com>
107298         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107299         simplify offsetof() macro construct to avoid compile failure with
107300         native HP-UX 11.0 ANSI C compiler.
107302 2005-01-17  Bruno Haible  <bruno@clisp.org>
107304         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107305         redundant because stpncpy.m4 takes care of it.
107307 2005-01-17  Bruno Haible  <bruno@clisp.org>
107309         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107311 2005-01-17  Bruno Haible  <bruno@clisp.org>
107313         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107314         used.
107316 2005-01-17  Bruno Haible  <bruno@clisp.org>
107318         * lib/fwriteerror.h (fwriteerror): Change specification to include
107319         fclose.
107320         * lib/fwriteerror.c: Include <stdbool.h>.
107321         (fwriteerror): At the end, close the file stream. Record whether
107322         stdout was already closed.
107324 2005-01-17  Bruno Haible  <bruno@clisp.org>
107326         * lib/execute.c (environ): Declare if needed.
107327         * lib/pipe.c (environ): Likewise.
107328         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107330 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107332         * modules/argp: Depend on vsnprintf
107334 2005-01-10  Jim Meyering  <jim@meyering.net>
107336         * modules/closeout (Depends-on): Add atexit.
107338 2005-01-06  Bruno Haible  <bruno@clisp.org>
107340         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107342 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107344         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107345         definitions to be after all include files, to avoid collisions.
107346         Problem reported by Bob Proulx.
107348 2005-01-04  Jim Meyering  <jim@meyering.net>
107350         Changes imported from coreutils.
107351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107352         as the mkstemp template, use a temporary directory and an
107353         8.3-friendly template to avoid trouble on systems like DJGPP.
107354         Reported by Juan M. Guerrero via Stepan Kasal.
107355         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107356         close. Remove the temporary directory right away, rather than waiting
107357         for configure's at-exit trap code to do it.
107358         Suggestion from Stepan Kasal.
107360 2005-01-01  Simon Josefsson  <jas@extundo.com>
107362         * gnulib-tool: Print #include directives when --import'ing.
107364 2004-12-28  Simon Josefsson  <jas@extundo.com>
107366         * tests/test-base64.c: Include required header files.  Remove
107367         unused variables.
107369 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107371         * modules/error (Depends-on): Remove gettext.
107373 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107375         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107376         not needed.  This removes a dependency on the gettext module.
107377         [defined _LIBC]: Do not include <libintl.h>; not needed.
107379 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107381         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107382         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107384 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107386         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107387         HAVE_DECL_STRTOLD.
107389 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107391         * modules/getdate (Depends-on): Remove alloca-opt.
107393 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107395         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107397 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107399         * lib/argp-parse.c: Include <stddef.h>.
107400         (alignof, alignto): New macros.
107401         (parser_init): Don't assume that void * is aligned sufficiently
107402         for struct option.
107404         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107405         need to extend the stack.
107406         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107407         large.
107409 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107411         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107413 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107415         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107416         (2004-10-24) change.  Apparently this was a false alarm.
107418         * modules/getdate: Depend on alloca-opt, not alloca.
107420 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107422         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107423         Remove now-obsolete comment about AIX.
107424         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107425         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107426         (YYMAXDEPTH): New macro.
107428 2004-12-18  Simon Josefsson  <jas@extundo.com>
107430         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107432 2004-12-18  Bruno Haible  <bruno@clisp.org>
107434         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107436 2004-12-18  Bruno Haible  <bruno@clisp.org>
107438         * lib/fatal-signal.c (fatal_signals): Make non-const.
107439         (init_fatal_signals): New function.
107440         (uninstall_handlers, install_handlers): Ignore signals that were set to
107441         SIG_IGN.
107442         (at_fatal_signal): Call init_fatal_signals.
107443         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107444         SIG_IGN.
107445         Reported by Paul Eggert.
107447 2004-12-18  Bruno Haible  <bruno@clisp.org>
107449         * doc/alloca.texi: New file.
107450         * doc/alloca-opt.texi: New file.
107452 2004-12-17  Jim Meyering  <jim@meyering.net>
107454         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107455         Otherwise, install-sh could exit with improper exit status when
107456         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107458 2004-12-16  Simon Josefsson  <jas@extundo.com>
107460         * tests/test-base64.c: Add license.
107462 2004-12-15  Stepan Kasal  <address@hidden>
107464         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107466 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107468         * modules/getcwd (Files): Add m4/d-ino.m4.
107469         Suggested by Mark D. Baushke.
107471 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107473         * lib/getdate.y (textint): New member "negative".
107474         (time_zone_hhmm): New function.
107475         Expect 14 shift-reduce conflicts, not 13.
107476         (o_colon_minutes): New rule.
107477         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107478         (yylex): Set the "negative" member of signed numbers.
107480 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107482         * doc/getdate.texi (Time of day items, Time zone items):
107483         Describe new formats +00:00, UTC+00:00.
107485 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107487         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107488         spurious "-l"s.  Problem reported by Stepan Kasal.
107490 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107492         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107493         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107495 2004-12-04  Simon Josefsson  <jas@extundo.com>
107497         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107498         Vandoorselaere <yoann@prelude-ids.org>.
107500 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107502         Changes imported from coreutils.
107503         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107504         exist.
107505         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107507 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107509         Changes imported from coreutils.
107510         * lib/hard-locale.c: Assume <locale.h> exists.
107511         Include "strdup.h".
107512         (GLIBC_VERSION): New macro.
107513         (hard_locale): Assume setlocale exists.
107514         Rewrite to avoid #ifdef.
107515         Use strdup rather than malloc + strcpy.
107516         * lib/human.c: Assume <locale.h> exists.
107517         (human_readable): Assume localeconv exists.
107519 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107521         * modules/hard-locale (Depends-on): Add strdup.
107523 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107525         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107526         convert T2, not T.  (Imported from libc.)
107528 2004-11-30  Simon Josefsson  <jas@extundo.com>
107530         * modules/restrict (License): Change to LGPL.
107532 2004-11-30  Simon Josefsson  <jas@extundo.com>
107534         * m4/restrict.m4: Add copyright and copying conditions.
107536 2004-11-30  Simon Josefsson  <jas@extundo.com>
107538         * m4/base64.m4: New file.
107540 2004-11-30  Simon Josefsson  <jas@extundo.com>
107542         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107543         base64.
107545         * tests/test-base64.c: New file.
107547         * modules/base64: New file.
107549 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107551         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
107552         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
107554         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
107556 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107558         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
107559         (__getcwd.c): Don't restore errno; glibc doesn't.
107560         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
107561         first, falling back to our code only if its results look suspicious.
107562         Ensure that the resulting buffer is only as large as necessary.
107564         * lib/readutmp.c: Include readutmp.h first.
107565         Include <errno.h>, since readutmp.h no longer does that.
107566         * lib/readutmp.h: Don't include <errno.h>,
107567         <sys/param.h>, <time.h>; not needed to establish interface.
107568         (errno): Remove decl.
107569         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
107570         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
107571         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
107573 2004-11-28  Simon Josefsson  <jas@extundo.com>
107575         * lib/base64.h, base64.c: New file.
107577 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107579         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
107581 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107583         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
107584         (Depends-on): Remove pathmax, same.  Add mempcpy.
107585         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
107586         (Makefile.am): Append getcwd.h to lib_SOURCES.
107587         (Include): Add getcwd.h.
107588         (Maintainer): Change from Jim Meyering to "all, glibc",
107589         since getdate now uses intended-for-glibc code.
107590         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
107591         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
107593 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107595         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
107596         HP's ANSI C compiler.
107597         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
107598         Declaring int functions causes warnings on some modern systems and
107599         shouldn't be needed to compile on ancient ones.
107600         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
107601         defined.
107603         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
107604         with the following changes.
107605         (__set_errno): Parenthesize properly.
107606         Include <stdbool.h>.
107607         (MIN, MAX, MATCHING_INO): New macros.
107608         (__getcwd): Define with prototype, not K&R form.
107609         Use heuristics to allocate default buffer on stack if possible.
107610         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
107611         behavior, and to avoid the PATH_MAX limit when computing
107612         ../../../../...
107613         Use MATCHING_INO to compare inode number to file.
107614         Check for arithmetic overflow in size calculations.
107615         Fix bug in reallocation of dot array that caused getcwd to fail
107616         on directories nested deeper than 75.
107617         Be more careful about saving errno on error.
107618         Do not use realloc; use only free+malloc, as this is a bit
107619         more flexible and avoids a needless copy operation.
107620         Do not inspect st_dev and st_ino for symbolic links; POSIX
107621         doesn't specify the latter.
107622         Check for closedir errors.
107623         Avoid needless casts.
107624         Use "#ifdef weak_alias" around weak_alias, to be like other
107625         glibc code.
107626         The following changes to getcwd.c have effect only when used in
107627         gnulib; they have no effect inside glibc proper.
107628         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
107629         as alloca isn't used.
107630         (alloca, __alloca): Likewise.
107631         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
107632         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107633         unconditionally, as gnulib assumes C89 or better.
107634         Do not include <sys/param.h>.
107635         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
107636         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
107637         better.
107638         (NULL) [!defined NULL]: Remove; we assume C89 or better.
107639         Include <dirent.h> in a way that is compatible with modern Autoconf.
107640         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
107641         New macros, if not already defined.
107642         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
107643         Use "_LIBC", not "defined _LIBC", for consistency.
107644         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
107645         a mempcpy module.
107646         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
107647         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
107648         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
107649         credit only to Jim Meyering and adjust the copyright dates.
107650         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
107651         <stdlib.h>, <unistd.h>, "pathmax.h".
107652         Instead, include "xgetcwd.h" (first) and "getcwd.h".
107653         (INITIAL_BUFFER_SIZE): Remove.
107654         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
107656 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107658         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
107659         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
107660         Use the _ONCE methods, for efficiency.
107661         Check for fcntl.h.  In test program, include <errno.h>
107662         and <fcntl.h> if available.  Remove old K&R cruft from
107663         test program.  Check for common errors in GNU/Linux,
107664         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
107665         don't do AC_LIBOBJ, as that's getcwd.m4's job.
107666         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
107667         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
107668         name accordingly.
107669         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
107670         accommodate new getcwd.c.
107671         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
107672         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
107673         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
107674         that's all we need now.
107676 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107678         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
107679         argp-parse.c depends on getopt internals, that means we should
107680         always use our getopt, to be on the safe side.
107681         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
107682         order not to spoil the result of an eventual previous invocation
107683         of gl_GETOPT_SUBSTITUTE.
107685 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107687         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
107688         redefinition warnings. To avoid them, include the defines
107689         in `#if !defined __need_getopt ... #endif'. The only place
107690         where __getopt_argv_const is used is in definitions
107691         of getopt_long and getopt_long_only below, which are as well
107692         protected by `#ifndef __need_getopt'.
107693         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
107694         __need_getopt after including <stdio.h> and <unistd.h> These
107695         headers might have defined it.
107697 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107699         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
107701 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107703         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
107704         (futimens): New function, which uses futimes if available.
107705         (futimens, utimens): Support timespec==NULL, with same semantics
107706         as utime and utimens.
107707         * lib/utimens.h (futimens): New decl.
107709 2004-11-23  Jim Meyering  <jim@meyering.net>
107711         * lib/getopt_.h: Remove trailing blanks.
107713 2004-11-23  Jim Meyering  <jim@meyering.net>
107715         * lib/__fpending.c: Add comment.
107717 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
107719         * modules/canonicalize (Depends-on): Add xreadlink.
107720         Problem reported by James Youngman.
107722 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107724         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
107725         New macros.
107726         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
107727         optopt): Use them instead of invoking ## directly; otherwise, the
107728         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
107730 2004-11-19  Bruno Haible  <bruno@clisp.org>
107732         * lib/strtok_r.c: Move comments from here...
107733         * lib/strtok_r.h: ... to here.
107735 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107737         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
107738         implementations that mishandle size_t overflow.
107740 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107742         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
107743         might fail.  Problem reported by Yoann Vandoorselaere.
107744         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
107745         implementations that mishandle size_t overflow.
107747 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107749         * modules/canon-host (Depends-on): Add strdup.
107751 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107753         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
107755 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107757         * lib/canon-host.c: Include "strdup.h".
107758         (canon_host): Use getaddrinfo if available, so that IPv6 works.
107759         Use strdup instead of malloc/strcpy to duplicate strings.
107761         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
107762         (human_space_before_unit): New constant.
107763         * lib/human.c (human_readable): Support it.
107765         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
107766         (xgetcwd): Set errno correctly when failing.
107767         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
107768         the failure is actually due to a PATH_MAX problem.
107770         Further getopt changes to make it more likely that glibc will
107771         buy the changes back.
107772         * lib/getopt.c (POSIXLY_CORRECT): New constant.
107773         (getopt): Use it, so to preserve glibc semantic
107774         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
107775         when compiling for libc.
107776         * lib/getopt_.h (__getopt_argv_const): Bring it back.
107777         (getopt_long, getopt_long_only): Use it.
107779         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107780         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
107781         (getopt): Argv is now char * const *, as per standard.
107782         (_getopt_internal_r, _getopt_internal): Argv is now char **,
107783         not char *__getopt_argv_const *.
107784         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107785         _getopt_long_only_r): Likewise.
107786         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
107787         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107788         _getopt_long_r, _getopt_long_only_r): Likewise.
107789         * lib/getopt_.h (__getopt_argv_const): Remove.
107790         (getopt): Argv is now char * const *, as per standard.
107792         * lib/getdate.y (tORDINAL): New token.
107793         (day, relunit): Allow it for relative times.
107794         (relative_time_table): Use tORDINAL for ordinals.
107796 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107798         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
107799         Document that "second" isn't allowed as an ordinal number.
107801 2004-11-16  Jim Meyering  <jim@meyering.net>
107803         * modules/closeout (Depends-on): Add fpending.
107805 2004-11-15  Jim Meyering  <jim@meyering.net>
107807         * lib/closeout.c: Include "__fpending.h" once again.
107808         Include <stdbool.h>.
107809         (close_stdout): Don't fail just because stdout was closed initially,
107810         since some programs don't write to stdout in the normal course of
107811         operation (other than --version and --help), and we don't want this
107812         function to make e.g. `touch file >&-' fail.
107813         But do fail if it was closed and someone has tried to write to it.
107814         E.g., `printf foo >&-' must fail.
107816 2004-11-13  Jim Meyering  <jim@meyering.net>
107818         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
107820 2004-11-12  Simon Josefsson  <jas@extundo.com>
107822         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
107823         small doc fix is still pending.
107825 2004-11-11  Simon Josefsson  <jas@extundo.com>
107827         * modules/strtok_r: New file.
107829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107830         strtok_r.
107832 2004-11-11  Simon Josefsson  <jas@extundo.com>
107834         * m4/strtok_r.m4: New file.
107836         * m4/getopt.m4: Replace opterr.
107838 2004-11-11  Simon Josefsson  <jas@extundo.com>
107840         * lib/strtok_r.h, strtok_r.c: New file.
107842 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107844         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
107845         of replacing opterr, getopt, etc.  This should handle the
107846         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
107848 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107850         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
107851         we can stop lying to compilers about the constness of argv when we
107852         are compiled outside glibc.
107853         (getopt, getopt_long, getopt_long_only): Use it.
107854         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107855         _getopt_internal, getopt): Likewise.
107856         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107857         _getopt_long_only_r): Likewise.
107858         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107859         _getopt_long_r, _getopt_long_only_r): Likewise.
107861         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
107862         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
107863         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
107864         the other external symbols.
107865         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
107866         declaration, since the above renaming now works around collisions.
107868 2004-11-11  Jim Meyering  <jim@meyering.net>
107870         * lib/linebreak.c: Remove trailing blanks.
107871         * lib/alloca_.h: Likewise.
107872         * lib/acosl.c: Likewise.
107873         * lib/euidaccess.c: Likewise.
107874         * lib/allocsa.h: Likewise.
107876 2004-11-10  Simon Josefsson  <jas@extundo.com>
107878         * m4/getaddrinfo.m4: New file.
107880 2004-11-10  Simon Josefsson  <jas@extundo.com>
107882         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
107884 2004-11-10  Simon Josefsson  <jas@extundo.com>
107886         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107887         getaddrinfo.
107889         * modules/getaddrinfo: New file.
107891 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107893         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
107895 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107897         * lib/mktime.c (SHR): New macro, which is a portable
107898         substitute for >> that should work even on Crays.
107899         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
107900         Problem reported by Mark D. Baushke in
107901         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
107902         * lib/getdate.y (SHR): Likewise.
107903         (tm_diff): Use it.
107904         * lib/strftime.c (SHR): Likewise.
107905         (tm_diff): Use it.
107906         * lib/quotearg.c (struct quoting_options): Use unsigned int for
107907         quote_these_too, so that right shifts are well defined.  All uses
107908         changed.
107910 2004-11-10  Jim Meyering  <jim@meyering.net>
107912         Ensure that no close failure goes unreported.
107913         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
107914         return early when it seems there's nothing to flush.
107915         Don't include __fpending.h.
107917 2004-11-10  Jim Meyering  <jim@meyering.net>
107919         * modules/closeout (Depends-on): Remove fpending.
107921 2004-11-10  Jim Meyering  <jim@meyering.net>
107923         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
107925 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107927         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
107928         gl_FUNC_STRFTIME.
107929         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
107930         and AC_REQUIRE when possible, to avoid duplicate checks.
107931         Check for <wchar.h>.
107933 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107935         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
107937 2004-11-09  Bruno Haible  <bruno@clisp.org>
107939         * m4/sockpfaf.m4: New file.
107941 2004-11-05  Bruno Haible  <bruno@clisp.org>
107943         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
107944         Reported by Mark D. Baushke <mdb@cvshome.org>.
107946 2004-11-04  Bruno Haible  <bruno@clisp.org>
107948         2004-09-11  Bruno Haible  <bruno@clisp.org>
107949                 * allocsa.valgrind: New file.
107950         2004-02-06  Bruno Haible  <bruno@clisp.org>
107951                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
107952                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
107953                 Reported by Christopher Seip <chris.seip@hp.com>.
107955 2004-11-04  Bruno Haible  <bruno@clisp.org>
107957         * modules/allocsa (Files): Add lib/allocsa.valgrind.
107958         (Makefile.am): Distribute it.
107960 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107962         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
107963         with errno == ERANGE if the buffer is too small.
107964         Problem reported by Mark D. Baushke.
107966 2004-11-03  Albert Chin  <china@thewrittenword.com>
107967             Paul Eggert  <eggert@cs.ucla.edu>
107969         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
107970         equivalent, substitute $ac_type for equivalent type rather than
107971         blindly using uint32_t *always* which won't work if uint32_t is not
107972         available.  Define _UINT32_T to work around typedef of uint32_t if
107973         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
107974         2.5.1.
107976 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107978         * m4/jm-macros.m4: Sync from coreutils.
107979         (gl_MACROS): Check for mbrlen, for pathchk.
107980         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
107982 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107984         * lib/xreadlink.c (MAXSIZE): New macro.
107985         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
107986         size does not exceed MAXSIZE.  Avoid cast.
107987         As suggested by Mark D. Baushke in
107988         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
107989         if readlink fails with buffer size just under MAXSIZE, try again
107990         with MAXSIZE.
107992 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107994         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
107996 2004-11-02  Derek R. Price  <derek@ximbiot.com>
107997         and  Paul Eggert  <eggert@cs.ucla.edu>
107999         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
108000         (get_date): Overparenthesize to avoid GCC warning.
108002 2004-11-02  Bruno Haible  <bruno@clisp.org>
108004         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
108005         returns void.
108007 2004-11-02  Bruno Haible  <bruno@clisp.org>
108009         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
108010         function returns void.
108012 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108014         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
108015         fflush_unlocked, flockfile, funlockfile, funlockfile,
108016         fputs_unlocked, putc_unlocked.
108018 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108020         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108021         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
108022         already declared.
108024 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108026         * modules/getdate (Files): Add doc/getdate.texi.
108027         (Depends-on): Add setenv, xalloc.
108029 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108031         * lib/getdate.y: Add support for TZ="foo" within a date string.
108032         Fix some bugs near time_t boundaries.  Reject dates with
108033         out-of-range components, e.g., "Sept 31".
108034         Include <stdlib.h>, "setenv.h", "xalloc.h".
108035         (ISDIGIT_LOCALE): Remove; unused.
108036         Note that the TZ and time functions used here are not reentrant.
108037         (mktime_ok, get_tz): New functions.
108038         (TZBUFSIZE): New constant.
108039         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
108040         This requires that we sometimes generate our own TZ="XXX..." setting.
108042 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108044         * doc/getdate.texi: New file, from coreutils with modifications for
108045         the new TZ parsing.
108047 2004-10-27  Derek R. Price  <derek@ximbiot.com>
108049         * lib/mktime.c (not_equal_tm): Remove redundant check.
108051 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108053         * modules/regex (lib_SOURCES): Add regex.c.
108054         Reported by James Youngman in
108055         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
108057 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108059         * lib/getdate.y: Use Bison 1.875 features, and some minor
108060         code cleanups.  This change does not affect semantics.
108061         Don't include <stdlib.h>; no longer needed.
108062         Don't include unlocked-io.h; only the "#if TEST" code uses
108063         stdio, and performance isn't crucial there.
108064         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
108065         Bison 1.875 features as described below.
108066         All uses of "PC." replaced by "pc->".
108067         (YYSTYPE): Add a forward declaration.
108068         (yylex, yyerror): Use full prototypes in forward decls.
108069         Use "%pure-parser" rather than obsolescent "%pure_parser".
108070         Use %parse-param and %lex-param instead of obsolescent
108071         YYPARSE_PARAM and YYLEX_PARAM.
108072         (meridian_table, month_and_day_table, time_units_table,
108073         relative_time_table, time_zone_table, military_table,
108074         lookup_zone, lookup_word, get_date):
108075         Use NULL instead of 0 where appropriate.
108076         (to_hour): Avoid abort (), to avoid a dependency on
108077         stdlib.h.
108078         (yyerror, yylex): Now accepts parser_control * arg.
108079         (main) [TEST]: Use '\0' rather than 0 for char.
108081 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108083         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
108085 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108087         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
108088         It's now the caller's responsibility to handle the case where
108089         !HAVE_GETPAGESIZE && !defined getpagesize.
108091         * lib/mktime.c (leapyear): Arg is long int, not int.
108093 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
108095         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
108097 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108099         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
108100         missing.  Problem reported by James Youngman.
108102 2004-10-16  Simon Josefsson  <jas@extundo.com>
108104         * gnulib-tool: Fix comments.  Fix parse problem.
108105         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
108107 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
108109         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
108110         implementation of getopt_long.  Problem reported by Alexander Taler in:
108111         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
108113 2004-10-15  Bruno Haible  <bruno@clisp.org>
108115         * gnulib-tool: Untabify. Initialize supplied_libname.
108116         (func_usage): More homogenous output.
108117         (func_modules_transitive_closure, func_modules_to_filelist,
108118         func_emit_lib_Makefile_am): New functions.
108119         (func_import): New function, extracted from big case statement. Use
108120         func_get_license, func_modules_transitive_closure,
108121         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
108122         opt_lgpl. Don't use test -a, as it's not portable.
108123         (func_create_testdir): Use func_modules_transitive_closure,
108124         func_modules_to_filelist, func_emit_lib_Makefile_am.
108126 2004-10-15  Bruno Haible  <bruno@clisp.org>
108128         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
108130 2004-10-15  Bruno Haible  <bruno@clisp.org>
108132         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
108133         the portions belonging to each module.
108134         Suggested by Derek Robert Price <derek@ximbiot.com>.
108136 2004-10-12  Simon Josefsson  <jas@extundo.com>
108138         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108139         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
108140         to real functions.
108142 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108144         * modules/vsnprintf: New file.
108146 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108148         * m4/vsnprintf.m4: New file.
108150 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108152         * lib/vsnprintf.h: New file.
108153         * lib/vsnprintf.c: New file.
108155 2004-10-11  Bruno Haible  <bruno@clisp.org>
108157         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
108158         vsnprintf.
108160 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108162         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
108164 2004-10-07  Bruno Haible  <bruno@clisp.org>
108166         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
108167         fits into the provided buffer.
108169 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108171         * lib/diacrit.c, diacrit.h: Add GPL notice.
108173         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
108174         notice.
108175         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
108176         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
108177         This avoids a potential constant-folding bug.
108179 2004-10-05  Bruno Haible  <bruno@clisp.org>
108181         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
108182         for the declaration of strsep.
108184 2004-10-05  Bruno Haible  <bruno@clisp.org>
108186         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
108188 2004-10-04  Simon Josefsson  <jas@extundo.com>
108190         * modules/memmem: New file.
108191         * tests/test-memmem.c: New file.
108192         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
108194 2004-10-04  Simon Josefsson  <jas@extundo.com>
108196         * m4/memmem.m4: New file.
108198 2004-10-04  Simon Josefsson  <jas@extundo.com>
108200         * lib/memmem.h: New file.
108201         * lib/memmem.c: New file, taken from glibc.
108203 2004-10-04  Simon Josefsson  <jas@extundo.com>
108205         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
108206         '#ifdef USE_UNLOCKED_IO'.
108208 2004-10-04  Simon Josefsson  <jas@extundo.com>
108210         * config/srclist.txt: Add memmem from glibc.
108212 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108214         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
108216         * modules/argmatch, modules/argp, modules/closeout, modules/error,
108217         modules/exclude, modules/getdate, modules/getline,
108218         modules/getndelim2, modules/getpass, modules/getpass-gnu,
108219         modules/getusershell, modules/linebuffer, modules/md5,
108220         modules/mountlist, modules/posixtm, modules/readtokens,
108221         modules/readutmp, modules/regex, modules/sha1,
108222         modules/version-etc, modules/yesno:
108223         Remove dependency on unlocked-io.
108225 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108227         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
108229         * m4/unlocked-io.m4: Add copyright notice.
108230         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
108232 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108234         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
108235         * lib/xmalloc.c (xmemdup): Likewise.
108236         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
108237         XFREE): Remove these long-obsolescent macros.
108238         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
108239         * lib/xstrdup.c: Remove.
108241         * lib/regex.c (re_comp): Cast gettext return value to char *,
108242         Problem reported by Martin Neitzel via Mark D. Baushke.
108244 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108246         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
108247         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
108248         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
108249         regex.c, sha1.c, version-etc.c, yesno.c:
108250         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
108251         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
108252         the includer's responsibility.
108254         Sync from coreutils.
108256         * lib/modechange.c (mode_compile): Don't decrement a pointer that
108257         points to the start of a string, as the C Standard says the
108258         resulting behavior is undefined.
108260         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
108261         simple -> simple_backups, numbered_existing ->
108262         numbered_existing_backups, numbered -> numbered_backups
108263         to avoid shadowing problems.  All uses changed.
108264         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
108265         * lib/backupfile.c (check_extension, numbered_backup):
108266         Rename locals to avoid shadowing 'basename'.
108267         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
108268         once.
108270         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
108271         * lib/.cvsignore: Add getopt.h.
108273 2004-10-04  Bruno Haible  <bruno@clisp.org>
108275         * modules/README: New file.
108276         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
108277         not a module.
108279 2004-10-02  Jim Meyering  <jim@meyering.net>
108281         * lib/dirfd.h, getpagesize.h: Add copyright notice.
108283 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108285         * modules/strsep: New file.
108287 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108289         * m4/strsep.m4: New file.
108291 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108293         * lib/strsep.h: New file.
108294         * lib/strsep.c: New file.
108296 2004-10-01  Simon Josefsson  <jas@extundo.com>
108298         * lib/snprintf.c (snprintf): Handle size==0.
108300 2004-10-01  Simon Josefsson  <jas@extundo.com>
108301             Bruno Haible  <bruno@clisp.org>
108303         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108304         (snprintf): Declare 'args'.
108306 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108308         * lib/snprintf.c: Remove comments as to why each header is needed.
108310 2004-10-01  Bruno Haible  <bruno@clisp.org>
108312         * MODULES.html.sh: Add strsep.
108314 2004-09-30  Simon Josefsson  <jas@extundo.com>
108316         * modules/snprintf: New file.
108318 2004-09-30  Simon Josefsson  <jas@extundo.com>
108320         * m4/snprintf.m4: New file.
108322 2004-09-30  Simon Josefsson  <jas@extundo.com>
108324         * lib/snprintf.h, lib/snprintf.c: New files.
108326 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108328         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108329         (hol_entry_help): Never translate an empty string.
108330         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108331         * lib/argp.h (OPTION_NO_TRANS): New option.
108333 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108335         * modules/argp (Maintainer): Replace Simon Josefsson
108336         by Sergey Poznyakoff.
108338 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108340         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108341         changes merged back into glibc.
108343 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108345         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108347 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108349         * lib/xvasprintf.c: Include xalloc.h.
108350         (xvasprintf): Use xalloc_die, not xmalloc_die.
108352 2004-09-29  Bruno Haible  <bruno@clisp.org>
108354         * modules/alloca-opt: New file, derived from modules/alloca.
108355         * modules/allocsa: Depend on alloca-opt instead of alloca.
108356         * modules/setenv: Likewise.
108357         * modules/vasnprintf: Likewise.
108358         * MODULES.html.sh: Add alloca-opt.
108360 2004-09-28  Simon Josefsson  <jas@extundo.com>
108362         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108363         LGPL, and to replace license template from GPL to LGPL.
108365 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108367         * modules/dummy: Change license to LGPL.
108369 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108371         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108373 2004-09-24  Simon Josefsson  <jas@extundo.com>
108375         * modules/minmax (License): Change from GPL to LGPL.
108377 2004-09-23  Simon Josefsson  <jas@extundo.com>
108379         * gnulib-tool (--import): Typo.
108381 2004-09-23  Simon Josefsson  <jas@extundo.com>
108383         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108385 2004-09-22  Bruno Haible  <bruno@clisp.org>
108387         * modules/*: Add 'License' field.
108388         * gnulib-tool: Accept --extract-license option.
108389         (func_get_license): New function.
108391 2004-09-21  Bruno Haible  <bruno@clisp.org>
108393         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108394         Reported by Simon Josefsson.
108396 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108398         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108399         gl_AC_TYPE_LONG_LONG.
108401 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108403         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108405 2004-09-18  Simon Josefsson  <jas@extundo.com>
108406         and  Paul Eggert  <eggert@cs.ucla.edu>
108408         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108409         calls with autoreconf.  Define GL_LIB.
108411 2004-09-14  Karl Berry  <karl@gnu.org>
108413         * config/srclist.txt: unsync setenv.c, sigh.
108415 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108417         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108418         Problem reported by Bruno Haible in:
108419         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108421 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108423         * config/srclist.txt: Comment out argp-pvh.c.
108425 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108427         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108428         in case some system header has #define'd it.  Problem reported by
108429         Soeren D. Schulze in
108430         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108432 2004-09-09  Karl Berry  <karl@gnu.org>
108434         * regex.[ch]: delete from the root.  These were supposed to be
108435                 synced with emacs cvs, but this has not happened for about
108436                 a year, and anyway nothing else uses emacs regex.[ch].
108437                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108438                 lib/regex[.ch] is untouched.
108440 2004-09-09  Bruno Haible  <bruno@clisp.org>
108442         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108444 2004-09-09  Bruno Haible  <bruno@clisp.org>
108446         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108447         modifications.
108448         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108450 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108452         * modules/xvasprintf: New file.
108453         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108455 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108457         * lib/xvasprintf.h: New file.
108458         * lib/xvasprintf.c: New file.
108459         * lib/xasprintf.c: New file.
108461 2004-09-08  Bruno Haible  <bruno@clisp.org>
108463         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108465 2004-09-08  Bruno Haible  <bruno@clisp.org>
108467         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108468         length is > INT_MAX.
108469         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108470         more.
108472 2004-09-08  Bruno Haible  <bruno@clisp.org>
108474         * lib/stdint_.h: New file, taken from GNU clisp.
108476 2004-09-08  Bruno Haible  <bruno@clisp.org>
108477             Oskar Liljeblad  <oskar@osk.mine.nu>
108479         * modules/stdint: New file.
108480         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108482 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108484         Import from coreutils.
108485         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108486         strings on unbounded length.  alloca's performance benefits aren't
108487         that important here.
108488         (V_STRDUP): Remove.
108489         (parse_with_separator): New function, with most of the internals
108490         of the old parse_user_spec.  Allow user to omit both user and group,
108491         for compatibility with FreeBSD.
108492         Clone only the user name, not the entire spec.
108493         Do not set *uid, *gid unless entirely successful.
108494         Avoid memory leak in some failing cases.
108495         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108496         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108497         (parse_user_spec): Rewrite to use parse_with_separator.
108499 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108501         * modules/userspec: Don't depend on alloca.
108503 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108505         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108507 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108509         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108510         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108511         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108513 2004-08-16  Simon Josefsson  <jas@extundo.com>
108515         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108516         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108517         Add --dry-run for --import.
108518         Let user provided command line parameters override configure.ac
108519         settings.
108521 2004-08-12  Simon Josefsson  <jas@extundo.com>
108523         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108524         as discussed with Paul Eggert in threads rooted at
108525         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108526         and
108527         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108528         Before, the test was empty, and relied on ELIDE_CODE in source
108529         code.)
108530         (gl_PREREQ_GETOPT): New macro.
108531         (gl_GETOPT): Use them.
108533 2004-08-12  Simon Josefsson  <jas@extundo.com>
108535         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108536         * lib/getopt_.h: Renamed from getopt.h.
108538 2004-08-12  Simon Josefsson  <jas@extundo.com>
108540         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108541         Change default library name from libfoo to libgnu.
108542         Now, if you have a configure.ac that says:
108543                 gl_SOURCE_BASE(gl)
108544                 gl_M4_BASE(gl/m4)
108545                 gl_MODULES(error getopt etcetera)
108546                 gl_INIT
108547         you can import all you need by running:
108548                 ../gnulib/gnulib-tool --import
108550         * modules/getopt (Files): Rename getopt.h to getopt_.h.
108551         (Makefile.am): Rewrite, use logic from argz.
108552         (Include): Use <getopt.h> instead of "getopt.h".
108554 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108556         * modules/argp (Files): Add m4/unlocked-io.m4.
108557         (Depends-on): Add extensions.
108559 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108561         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
108562         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
108563         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
108564         Check for program_invocation_name, program_invocation_short_name,
108565         flockfile, funlockfile, features.h, _getopt_long_only_r.
108567 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108569         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
108570         its complicated substitute.
108571         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
108572         and program_invocation_name.
108573         (__argp_basename) [!_LIBC]: Remove; the only use was
108574         replaced by its body.
108575         (__argp_short_program_name): Change condition from
108576         !defined __argp_short_program_name to
108577         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
108578         to match argp-namefrob.h.
108579         (__argp_failure): Don't assume strerror_r returns char *.
108580         * lib/argp-parse.c (N_): Define unconditionally.
108581         (argp_default_options): Fill out initializers with 0 to avoid
108582         gcc warnings.
108584 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108586         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
108587         getopt1.c.
108589 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108591         Merge from coreutils.
108593         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
108595         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
108596         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
108598 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108600         Merge from coreutils.
108602         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
108603         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
108604         for Reliant Unix 5.43.
108606         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
108607         (union fooround): Use uintmax_t, not long int.
108608         The rest is a merge from libc:
108609         [defined _LIBC]: Include <shlib-compat.h>.
108610         (_obstack) [defined _LIBC]: Remove after 2.3.4.
108612         * lib/settime.c (settime): Recode to avoid warning with
108613         Sun Forte C 6U2.
108615         * lib/strverscmp.c: Convert to UTF-8.
108617 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108619         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
108620         m4/uintmax_t.m4.
108622 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108624         * modules/xalloc-die: New file.
108625         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
108627         * modules/md5 (Files): Add m4/uint32_t.m4.
108628         * modules/sha1: Renamed from modules/sha.
108629         (Files):
108630         Rename lib/sha.h to lib/sha1.h.
108631         Rename lib/sha.c to lib/sha1.c.
108632         Rename m4/sha.m4 to m4/sha1.m4.
108633         (lib_SOURCES): Likewise.
108634         (configure.ac): Rename gl_SHA to gl_SHA1.
108635         (Include): sha.h -> sha1.h.
108637 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108639         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
108640         * m4/sha1.m4: Renamed from sha.m4.
108641         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
108643 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108645         * lib/obstack.h (obstack_empty_p):
108646         Don't assume that chunk->contents is suitably aligned.
108647         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
108648         Likewise. Problem reported by Benno in
108649         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
108651         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
108652         readable.  This could be improved further but it'd take some work.
108654 2004-08-08  Simon Josefsson  <jas@extundo.com>
108656         * modules/xgethostname (Depends-on): Remove exit and error (not
108657         used).
108659         * modules/getpass-gnu: Add getpass.h.
108660         (Depends-on): Add stdbool.
108661         * modules/getpass: Add getpass.h.
108663 2004-08-08  Simon Josefsson  <jas@extundo.com>
108665         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
108666         Check getpass declaration.
108668 2004-08-08  Simon Josefsson  <jas@extundo.com>
108670         * lib/xgethostname.c: Don't include error.h (not used).
108672         * lib/getpass.h: Add.
108673         * lib/getpass.c: Include getpass.h first.
108675 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
108677         * lib/xalloc-die.c: New file.
108678         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
108679         All uses removed.
108680         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
108681         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
108682         xalloc-die.c.
108683         (_, N_, xalloc_die): Move to xalloc-die.c.
108684         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
108685         so that we needn't mess with xalloc_msg_memory_exhausted.
108687         * lib/sha1.h: Renamed from sha.h.
108688         (SHA1_H): Renamed from _SHA_H.
108689         (sha1_ctx): Renamed from sha_ctx.
108690         (sha1_init_ctx): Renamed from sha_init_ctx.
108691         (sha1_process_block): Renamed from sha_process_block.
108692         (sha1_process_bytes): Renamed from sha_process_bytes.
108693         (sha1_finish_ctx): Renamed from sha_finish_ctx.
108694         (sha1_read_ctx): Renamed from sha_read_ctx.
108695         (sha1_stream): Renamed from sha_stream.
108696         (sha1_buffer): Renamed from sha_buffer.
108697         * lib/sha1.c: Likewise; renamed from sha.c.
108698         Do not include <sys/types.h>.
108699         Include <stddef.h> rather than <stdlib.h>.
108701 2004-08-08  Bruno Haible  <bruno@clisp.org>
108703         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
108704         FILESYSTEM_PREFIX_LEN.
108705         * lib/progreloc.c: Likewise.
108706         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
108708 2004-08-06  Simon Josefsson  <jas@extundo.com>
108710         * modules/progname (Depends-on): Don't depend on stdbool.
108712 2004-08-06  Simon Josefsson  <jas@extundo.com>
108714         * modules/getsubopt: New file.
108715         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108716         getsubopt.
108718 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108720         More merge from coreutils.
108722         * m4/utimens.m4, m4/utimecmp.m4: New files.
108723         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
108724         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
108725         prereq.m4, sha.m4: Import changes from coreutils.
108727 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108729         More merge from coreutils.
108730         * modules/raise, modules/readtokens0, modules/utimens:
108731         * modules/utimecmp, module/xnanosleep: New files.
108732         * modules/strftime: Add lib/strftime.h.
108733         Change include from <time.h> to "strftime.h".
108734         * modules/yesno: Add lib/yesno.h.
108735         * modules/backupfile: Remove lib/addext.c.
108736         * modules/euidaccess: Add stat-macros.h.
108737         * modules/canonicalize, modules/euidaccess,
108738         modules/filemode, modules/lchown, modules/makepath,
108739         modules/rmdir, modules/stat: Likewise.
108741 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108743         Merge from tar.
108744         * lib/argp-help.c (make_hol, hol_append): Don't assume that
108745         SIZE_MAX is a valid preprocessor constant.
108746         (__argp_basename): Change from "#ifndef _LIBC"
108747         to "#ifndef __argp_short_program_name", so that
108748         we don't compile these functions for tar.
108750         More merges from coreutils.
108751         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
108752         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
108753         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
108754         * lib/addext.c: Remove; no longer needed.
108755         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
108756         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
108757         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
108758         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
108759         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
108760         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
108761         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
108762         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
108763         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
108764         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
108765         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
108766         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
108767         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
108768         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
108769         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
108770         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
108771         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
108772         Import changes from coreutils.
108774 2004-08-05  Simon Josefsson  <jas@extundo.com>
108776         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
108778 2004-08-05  Simon Josefsson  <jas@extundo.com>
108780         * m4/getsubopt.m4: New file.
108782 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108784         Merge from coreutils.
108786         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
108787         * m4/getcwd-path-max.m4: New files.
108789         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
108790         FILESYSTEM_PREFIX_LEN ->
108791         FILE_SYSTEM_PREFIX_LEN.
108792         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
108793         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
108794         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
108795         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
108797         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
108798         prerequisite modules now handle the DOS stuff.
108799         Don't check for unistd.h.
108801 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108803         Merge from coreutils.
108805         * lib/.gdb-history: Remove; this doesn't belong here.
108807         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
108808         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
108809         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
108810         * lib/getcwd.c: New files.
108812         * lib/dirname.h: Include <stdbool.h>.
108813         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
108814         for consistency with POSIX terminology.  All uses changed.
108815         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
108816         (strip_trailing_slashes): Use bool for booleans.
108817         * lib/stripslash.c (strip_trailing_slashes): Likewise.
108819         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
108820         sometimes returns a positive errno value even when it succeeds.
108821         (print_errno_message) [!LIBC]: Fall back on strerror if
108822         __strerror_r fails.
108824         * lib/path-concat.c (mempcpy): Don't define if a system header defines
108825         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
108826         (longest_relative_suffix): New function.
108827         (path_concat): Use it.  Assume first argument is not NULL.
108828         Port to DOS.  Omit redundant separators.
108829         Report an error instead of returning NULL.
108830         Use mempcpy instead of memcpy.
108831         (xpath_concat): Remove: not declared or used.
108833         * lib/same.h: Include <stdbool.h>
108834         (same_name): Return bool, not int.
108835         * lib/same.c (same_name): Likewise.
108836         (errno): Don't declare; we assume C89 or better now.
108838         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
108839         if not already defined.
108841         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
108842         * lib/dup-safer.c (errno): Likewise.
108844 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108846         Merge from coreutils.
108847         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
108848         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
108849         * modules/path-concat: Don't depend on strdup.
108851 2004-08-03  Simon Josefsson  <jas@extundo.com>
108853         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
108854         * lib/progname.h: Don't include stdbool.h.
108856 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108858         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
108859         * MODULES.html.sh (func_all_modules): Remove fatal.
108861 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108863         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
108865 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108867         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
108868         working.
108870 2004-08-02  Simon Josefsson  <jas@extundo.com>
108872         * lib/getsubopt.h: New file, with comments from Bruno Haible.
108873         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
108874         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
108876 2004-08-01  Simon Josefsson  <jas@extundo.com>
108878         * lib/xgetdomainname.c: Include stdlib.h, for free().
108880 2004-07-19  Bruno Haible  <bruno@clisp.org>
108882         * MODULES.html.sh (func_all_modules): Add dummy.
108884 2004-07-16  Simon Josefsson  <jas@extundo.com>
108886         * modules/dummy: New file.
108888 2004-07-16  Simon Josefsson  <jas@extundo.com>
108890         * lib/dummy.c: New file.
108892 2004-07-16  Bruno Haible  <bruno@clisp.org>
108894         * lib/backupfile.h: Add extern "C" for C++.
108895         * lib/closeout.h: Likewise.
108896         * lib/copy-file.h: Likewise.
108897         * lib/findprog.h: Likewise.
108898         * lib/full-write.h: Likewise.
108899         * lib/pathname.h: Likewise.
108900         * lib/progname.h: Likewise.
108901         * lib/stpcpy.h: Likewise.
108902         * lib/stpncpy.h: Likewise.
108903         * lib/strcase.h: Likewise.
108904         * lib/strstr.h: Likewise.
108905         * lib/xalloc.h: Likewise.
108907         * lib/mbswidth.h: Add extern "C" for C++.
108908         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
108910 2004-07-13  Robert Millan  <robertmh@gnu.org>
108912         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
108914 2004-07-09  Simon Josefsson  <jas@extundo.com>
108916         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
108917         failed without this.)
108919 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108921         * modules/chown (Files): Add lib/fchown-stub.c, since
108922         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
108924 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108926         * lib/fchown-stub.c: New file.
108928 2004-06-24  Jim Meyering  <jim@meyering.net>
108930         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
108932 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108934         * modules/argz: Omit "#include".
108936         * MODULES.html.sh (func_all_modules): Add calloc, to match
108937         2004-06-01 addition of calloc module.
108939 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108941         * m4/argz.m4: New file, which is autoupdated from libtool.
108943 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108945         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
108946         libtool.
108948 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108950         * config/srclist-update: Don't insist on "USA." before the
108951         close-comment, as libtool omits the period and puts the */ on a
108952         separate line.
108953         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
108954         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
108956 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
108958         * modules/argz: New file.
108959         * MODULES.html.sh (func_all_modules): Add argz.
108961 2004-06-12  Jim Meyering  <jim@meyering.net>
108962         and  Paul Eggert  <eggert@cs.ucla.edu>
108964         * modules/hash (Files): Add lib/xalloc.h.
108965         * modules/pipe (Depends-on): Add wait-process.
108966         * modules/stat (Depends-on): Add xalloc.
108967         * modules/userspec (Files): Add lib/userspec.h.
108968         * modules/xstrto
108970         Upgrade from gettext-0.13.
108971         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
108972         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
108973         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
108975 2004-06-10  Jim Meyering  <jim@meyering.net>
108977         * lib/calloc.c: New file.
108979 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
108981         * lib/getdate.y (yylex): Allow space between sign and number.
108982         Problem reported by Dan Jacobson.
108984 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
108986         Merge from coreutils CVS.
108988         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
108989         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
108990         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
108991         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
108992         xstrtol.m4: Fix copyright date and/or serial number.
108994         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
108995         See if we need an fchown replacement.
108996         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
108997         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
108998         and use the replacement function if we detect either defect.
109000         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
109001         gl_UTIMECMP.
109003 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109004         and  Jim Meyering  <jim@meyering.net>
109006         Merge from coreutils CVS.
109008         * lib/stat-macros.h: New file, with contents from file-type.h
109009         and coreutils' system.h.
109010         * lib/file-type.c: Include "stat-macros.h".
109011         * lib/file-type.h (file_type): Move all macro definitions to new file,
109012         stat-macros.h.
109014         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
109015         Wrap old code with this conditional.
109016         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
109017         function that does not dereference symlinks.
109018         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
109020         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
109021         dependency problems.
109022         (xreadlink): Accept new arg SIZE, for efficiency.
109023         All decls and uses changed.
109024         * lib/xreadlink.h: Include <stddef.h>, for size_t.
109026         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
109027         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
109029         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
109030         sysexits.h.
109032 2004-06-01  Jim Meyering  <jim@meyering.net>
109034         * m4/calloc.m4: New file.
109036 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
109038         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
109039         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
109040         Also, fix a typo in a diagnostic.
109042 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109044         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
109045         or AC_FUNC_REALLOC.
109047 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109049         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
109050         macros to be defined.
109051         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
109052         the allocator returns NULL because the requested size is zero.
109054 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
109056         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
109057         var.  Add comment explaining why libc still defines it.  This
109058         merges the following patch from glibc:
109059         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
109061 2004-05-20  Andreas Schwab  <schwab@suse.de>
109063         * m4/free.m4: Replace free if it not known to work, not the other
109064         way round.
109066 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
109068         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
109069         present in glibc since revision 1.1 of this file.
109070         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
109071         obstack_alignment_mask, obstack_alloc, obstack_base,
109072         obstack_blank, obstack_blank_fast, obstack_chunk_size,
109073         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
109074         obstack_grow0, obstack_init, obstack_int_grow,
109075         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
109076         obstack_next_free, obstack_object_size, obstack_ptr_grow,
109077         obstack_ptr_grow_fast, obstack_room): Remove declarations of
109078         nonexistent functions.
109080 2004-05-18  Karl Berry  <karl@gnu.org>
109082         * config/srclist.txt: break link for vasnprintf.c.
109084 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109086         Port obstack to the AS/400, where pointers are 16 bytes wide and
109087         you cannot cast an integer to a valid pointer.  This patch is
109088         currently waiting to be integrated into glibc; see
109089         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
109091         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
109092         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
109093         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
109094         (struct obstack): temp member is now a union of a pointer and
109095         an integer, instead of an integer.  All integer uses changed.
109096         This does not affect the physical layout of struct obstack,
109097         except on hosts (like the AS/400) where the size or alignment of
109098         void * is greater than that of ptrdiff_t.
109099         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
109100         __STDC__)]: Store temporary in pointer member of union, not
109101         integer member.
109102         * lib/obstack.c: Include <stddef.h>, for offsetof.
109103         (struct fooalign): Remove; it doesn't need a name.
109104         (union fooround): Change double to long double, and add void *.
109105         (DEFAULT_ALIGNMENT): Use offsetof to compute.
109106         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
109107         not a macro.  Hence the values are always int; so remove all
109108         casts-to-int in uses.
109110 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109112         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
109113         we can get this patch merged into glibc.
109115 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109116             Paul Eggert  <eggert@cs.ucla.edu>
109118         * m4/argp: Depend on alloca.
109120 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109121             Paul Eggert  <eggert@cs.ucla.edu>
109123         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
109124         freecoding.
109126 2004-05-17  Bruno Haible  <bruno@clisp.org>
109128         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
109129         precision that consists of a '.' followed by an empty digit string.
109130         Patch by Tor Lillqvist <tml@iki.fi>.
109132 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109134         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
109135         for backward compatibility with older code.  We need our own
109136         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
109137         it under some other name, and our alloca.h will define it.
109139 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109140             Derek Price  <derek@ximbiot.com>
109142         * lib/alloca.c: Include <alloca.h>, to get our interface.
109143         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
109144         include <alloca.h> first.  Use C89 prototype for alloca; this
109145         requires including <stddef.h> for size_t.  Use extern "C" if C++.
109146         Use #elif for simplicity, since we can assume C89 now.
109147         Don't try to source the system alloca.h since it will not be found
109148         and to prevent recursively including its replacement.
109149         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
109150         * lib/regex.c: Likewise.
109152 2004-05-16  Derek Price  <derek@ximbiot.com>
109153             Paul Eggert  <eggert@cs.ucla.edu>
109155         getline cleanup.  This changes the getndelim2 API: both order of
109156         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
109157         no delimiter).
109159         * lib/getline.c: Don't include stddef.h or stdio.h, since our
109160         interface does that.
109161         (getline): Always use getdelim, so that we don't have two
109162         copies of this code.
109163         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
109164         if available.
109165         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
109166         (GETNDELIM2_MAXIMUM): New macro.
109167         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
109168         instead of the old practice of delim2==0.  All callers changed.
109169         Return -1 on overflow, instead of returning junk.
109170         Do not set *linesize unless allocation succeeds.
109171         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
109172         that we include sys/types.h.
109173         * lib/getnline.h: Likewise.
109174         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
109175         (getndelim2): Reorder arguments.
109176         * lib/getnline.c (getnline, getndelim):
109177         Don't discard the NMAX argument.
109178         (getnline): Invoke getndelim, to avoid code duplication.
109179         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
109180         of (size_t) -1 by callers of the getnline family.
109182 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109184         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
109185         Check for gettimeofday.
109186         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
109187         Check for settimeofday, stime.
109189 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109191         * lib/nanosleep.c (suspended): Change its type from int to
109192         sig_atomic_t volatile.
109193         (first_call): Make it private to rpl_nanosleep, and have it
109194         be zero initially as that's a bit faster.
109195         (my_usleep): Round up fractional times instead of truncating them,
109196         as this is the usual meaning for 'sleep'.
109198         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
109199         doesn't work.
109200         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
109201         (ENOSYS): Define if not defined.
109202         (settime): Fall back on stime if it exists and settimeofday fails.
109203         But don't bother with fallbacks if a method fails with errno == EPERM.
109205 2004-05-11  Jim Meyering  <jim@meyering.net>
109207         Prior to this change, the save_cwd caller required read access to the
109208         current directory on most systems (ones with the fchdir function).
109210         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
109211         fails, try write-only, and finally, resort to using xgetcwd.
109213 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
109215         * lib/obstack.c, obstack.h: Import changes from libc.
109217 2004-04-28  Bruno Haible  <bruno@clisp.org>
109219         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
109220         also implicitly appends .exe to executables.
109221         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
109222         accepts Windows pathnames.
109223         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109224         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109225         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109226         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109227         Reported by Derek Robert Price <derek@ximbiot.com>.
109229 2004-04-21  Karl Berry  <karl@gnu.org>
109231         * config/srclist.txt (localcharset.c): break sync.
109233 2004-04-20  Paul Eggert  <eggert@twinsun.com>
109235         * m4/host-os.m4: Add a copyright notice.
109237 2004-04-20  Jim Meyering  <jim@meyering.net>
109239         Change UTILS_ to gl_ in AC_DEFINE'd names.
109240         Change utils_- and jm_-prefixed variables, too.
109241         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
109242         UTILS_FUNC_MKDIR_TRAILING_SLASH.
109243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
109245         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
109246         Don't emit trailing blanks.
109247         Also rename jm_-prefixed variables to have gl_ prefix.
109249         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
109250         Also rename jm_-prefixed variables to have gl_ prefix.
109252         * m4/jm-macros.m4: Reflect the renamings.
109253         * m4/prereq.m4: Likewise.
109255 2004-04-20  Jim Meyering  <jim@meyering.net>
109257         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
109258         memory.
109260 2004-04-20  Jim Meyering  <jim@meyering.net>
109261             Bruno Haible  <bruno@clisp.org>
109263         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
109264         memory when realloc fails.
109266 2004-04-19  Jim Meyering  <jim@meyering.net>
109268         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
109269         now that readutmp.c may call `free (0)'.
109271 2004-04-19  Bruno Haible  <bruno@clisp.org>
109273         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
109274         * m4/inttypes_h.m4: Likewise.
109275         * m4/stdint_h.m4: Likewise.
109276         * m4/intmax_t.m4: Likewise.
109277         * m4/uintmax_t.m4: Likewise.
109279 2004-04-18  Jim Meyering  <jim@meyering.net>
109281         * m4/prereq.m4: Don't forbid jm_ prefix.
109283         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
109284         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
109285         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
109286         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
109287         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
109288         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
109289         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
109290         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
109291         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
109292         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109293         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109294         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109295         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109296         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109297         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109298         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109299         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109300         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109301         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109303 2004-04-18  Jim Meyering  <jim@meyering.net>
109305         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109306         failure, don't leak memory and do call END_UTMP_ENT.
109308 2004-04-16  Jim Meyering  <jim@meyering.net>
109310         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109311         coreutils' stat program.
109312         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109314 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109316         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109317         C89.
109318         (CHAR_BIT): Remove, since we assume C89.
109319         Include <stdint.h> if available, as per current Autoconf CVS advice.
109321 2004-03-31  Jim Meyering  <jim@meyering.net>
109323         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109324         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109325         * m4/xalloc.m4: Likewise.
109327 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109329         Merge from coreutils.
109331         * m4/inttostr.m4: New file.
109332         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109333         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109334         Require gl_CLOCK_TIME.
109335         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109337 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109339         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109340         not bool, to be more consistent with Unix conventions.
109341         Suggested by Bruno Haible.
109343         Merge from coreutils.
109345         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109346         * lib/umaxtostr.c: New files.
109348         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109349         the usual <time.h> dance.
109350         (get_date): Change signature to support fractional time stamps.
109351         All callers changed.
109352         * lib/getdate.y: Include "getdate.h" first, as we can now
109353         assume C89 and don't need to worry about 'const'.
109354         Similarly, include "unlocked-io.h" near start, not in middle.
109355         Include <limits.h>.
109356         (textint.value): Use long int rather than int.
109357         (textint.digits): Use size_t rather than int.
109358         (BILLION, LOG10_BILLION): New constants.
109359         (parser_control): New member rel_ns.  Members day_ordinal,
109360         time_zone, month, day, hour, minutes, rel_year, rel_month,
109361         rel_day, rel_hour, rel_minutes, rel_seconds
109362         are now long int, not int.  Member seconds is now struct timespec,
109363         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109364         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109365         not int.
109366         (%union.intval): Now long int, not int.
109367         New member timespec.
109368         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109369         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109370         (spec): Now is a timespec or an item list.
109371         (timespec, items): New nonterminals.
109372         (time, rel, relunit, number, get_date):
109373         Add support for fractional seconds.
109374         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109375         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109376         (to_hour): First arg is now long int, not int.
109377         (to_year): Returns long int, not int.
109378         Don't treat year -70 like 70.
109379         (tm_diff): Returns long int, not int.
109380         (lookup_word): Use bool instead of int when appropriate.
109381         (yylex): Use size_t for count, not int.
109382         Detect overflow when parsing large integer constants.
109383         Add support for fractions.
109384         (get_date): Make pointers 'const' if possible.
109385         Use more-portable code to detect integer overflow.
109386         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109387         Don't use ctime; it's not reliable if the year has >4 digits.
109389         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109390         This is for compatibility with BSD.
109392         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109393         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109394         From coreutils' system.h.
109396         * lib/userspec.c: Don't include "posixver.h".
109397         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109398         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109399         compatible extension.  Simplify code by removing a boolean int
109400         that was always nonzero if a string was nonnull.
109402 2004-03-30  Jim Meyering  <jim@meyering.net>
109404         Merge from coreutils.
109406         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109407         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109408         on some systems one must include <grp.h> before it.
109409         Reported by Christian Krackowizer.
109411 2004-03-30  Jim Meyering  <jim@meyering.net>
109413         Merge from coreutils.
109415         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109417         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109418         an empty input stream.
109420         * lib/readtokens.c: Include <stdbool.h>.
109421         (readtoken): Use `size_t' rather than int/long.
109422         All callers adjusted.
109423         Use `bool' rather than `int' where appropriate.
109424         Use memset rather than an explicit loop.
109425         Use x2nrealloc rather than xrealloc.
109426         Allow the use of `\0' as a delimiter.
109427         (readtokens): Likewise.
109428         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109430 2004-03-30  Jim Meyering  <jim@meyering.net>
109432         * m4/realloc.m4: Remove file, since now it does no more than
109433         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109434         the `configure.ac' section of module/realloc.
109435         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109437 2004-03-30  Bruno Haible  <bruno@clisp.org>
109439         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109440         nonnull.
109442 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109444         Merge changes to getloadavg.c from coreutils and Emacs.
109446         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109447         Define to an expression, not to the empty string.
109448         Include cloexec.h and xalloc.h.
109449         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109450         Use set_cloexec_flag rather than rolling our own.
109451         * lib/cloexec.c, lib/cloexec.h: New files.
109453 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109455         * m4/cloexec.m4: New file.
109457 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109459         * lib/getopt.h: Sync with libc CVS.
109461 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109462             Bruno Haible  <bruno@clisp.org>
109464         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109465         mbswidth.
109467 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109468             Bruno Haible  <bruno@clisp.org>
109470         * lib/mbswidth.h: Include <wchar.h> only if
109471         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109472         <wchar.h>.
109473         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109475 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109477         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109478         Sync with libc CVS.
109479         * lib/getopt_int.h: New file, also synced from libc.
109481 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109483         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109484         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109485         Bring back getopt.c, getopt.h, getopt1.c.
109487 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109489         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109490         All uses changed.  Check for sa_sigaction member; this fixes
109491         a bug first reported by Jason Andrade in
109492         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109494 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109496         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109497         '#if' expressions.  Unlike the code it replaces, it does not
109498         depend on (defined _SC_PAGESIZE).  However, it does depend on
109499         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109500         first reported by Jason Andrade in
109501         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109503 2004-02-25  Simon Josefsson  <jas@extundo.com>
109505         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109507 2004-02-25  Simon Josefsson  <jas@extundo.com>
109509         * lib/strdup.h: New file.
109510         * lib/strdup.c: Include it.
109511         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109512         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109514 2004-02-23  Karl Berry  <karl@gnu.org>
109516         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109517         (from fencepost.gnu.org:/gd/gnuorg).
109519 2004-02-23  Karl Berry  <karl@gnu.org>
109521         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109522         * config/srclist.txt: add maintain/standards documents.
109524 2004-02-18  Bruno Haible  <bruno@clisp.org>
109526         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109527         Reported by Derek Robert Price <derek@ximbiot.com>.
109529 2004-02-16  Karl Berry  <karl@gnu.org>
109531         * config/mkinstalldirs, install-sh: update from automake.
109533 2004-02-06  Karl Berry  <karl@gnu.org>
109535         * m4/po.m4: update from gettext 0.14.1.
109537 2004-02-06  Karl Berry  <karl@gnu.org>
109539         * lib/config.charset: update from gettext 0.14.1.
109541 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109543         Add comments and code, prompted by suggestions from Bruno Haible
109544         for sh-quote.
109545         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
109546         describing the enum quoting_style values.
109547         * lib/quotearg.c (quotearg_alloc): New function.
109548         (quotearg_buffer_restyled): Treat lone { and } as special.
109549         Treat = as special.  Work around bug with older shells
109550         that "see" a '\' that is really the 2nd byte of a multibyte char.
109551         Quote empty string with shell_quoting_style.
109553 2004-02-03  Bruno Haible  <bruno@clisp.org>
109555         * m4/pipe.m4: New file, from GNU gettext.
109557 2004-02-03  Bruno Haible  <bruno@clisp.org>
109559         * lib/pipe.h: New file, from GNU gettext.
109560         * lib/pipe.c: New file, from GNU gettext.
109562 2004-01-27  Bruno Haible  <bruno@clisp.org>
109564         * m4/execute.m4: New file, from GNU gettext.
109566 2004-01-27  Bruno Haible  <bruno@clisp.org>
109568         * lib/execute.h: New file, from GNU gettext.
109569         * lib/execute.c: New file, from GNU gettext.
109570         * lib/w32spawn.h: New file, from GNU gettext.
109572 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109574         Merge from diffutils.
109576         * lib/file-type.c (file_type): Add typed memory objects.
109577         * lib/file-type.h (S_TYPEISTMO): New macro.
109579         * lib/c-stack.h (c_stack_action): Remove argv argument.
109580         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
109581         (die): Don't calculate message unless segv_action returns.
109582         (get_stack_location, min_address_from_argv, max_address_from_argv,
109583         volatile stack_base, volatile_stack_size): Remove.
109584         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
109585         that every segmentation violation is a stack overflow.  (Ouch!)
109586         See Debian bug 136249 (still outstanding) for more info about why
109587         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
109589 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109591         Exit-status fix from coreutils.
109593         Use exit_failure consistently in place of EXIT_FAILURE,
109594         so that program exit statuses are consistent on failure.
109596         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
109597         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
109598         * lib/argmatch.h: Comment fix to match the above.
109599         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
109600         Now a macro referring to exit_failure, instead of a separate
109601         variable.  Include "exitfail.h" to get it.
109602         * lib/xstrtol.h: Include "exitfail.h".
109603         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
109605         * lib/long-options.c (parse_long_options): Use prototype
109606         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
109607         for clarity.
109609 2004-01-21  Jim Meyering  <jim@meyering.net>
109611         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
109612         so as not to conflict with a different-sized __mktime_internal
109613         function in GNU libc.
109614         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
109615         Problem building statically-linked `ls' reported by Michael Brunnbauer.
109617 2004-01-20  Karl Berry  <karl@gnu.org>
109619         * config/config.guess: update from config.
109621         * config/srclistvars.sh: GNUWWWLICENSES for karl.
109623 2004-01-20  Bruno Haible  <bruno@clisp.org>
109625         Safer stack allocation.
109626         * lib/setenv.c: Include allocsa.h.
109627         (alloca): Remove fallback definition.
109628         (freea): Remove macro.
109629         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
109630         instead of freea.
109632 2004-01-20  Bruno Haible  <bruno@clisp.org>
109634         * m4/eealloc.m4: New file, from GNU gettext.
109636 2004-01-20  Bruno Haible  <bruno@clisp.org>
109638         * m4/allocsa.m4: New file, from GNU gettext.
109640 2004-01-20  Bruno Haible  <bruno@clisp.org>
109642         * lib/xallocsa.h: New file, from GNU gettext.
109643         * lib/xallocsa.c: New file, from GNU gettext.
109645 2004-01-20  Bruno Haible  <bruno@clisp.org>
109647         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
109649 2004-01-20  Bruno Haible  <bruno@clisp.org>
109651         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
109652         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
109653         specially.
109655 2004-01-20  Bruno Haible  <bruno@clisp.org>
109657         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
109658         patch.
109660 2004-01-20  Bruno Haible  <bruno@clisp.org>
109662         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
109664 2004-01-20  Bruno Haible  <bruno@clisp.org>
109666         * lib/eealloc.h: New file.
109668 2004-01-20  Bruno Haible  <bruno@clisp.org>
109670         * lib/binary-io.h: Avoid warnings on Cygwin.
109672 2004-01-20  Bruno Haible  <bruno@clisp.org>
109674         * lib/allocsa.h: New file, from GNU gettext.
109675         * lib/allocsa.c: New file, from GNU gettext.
109677 2004-01-18  Karl Berry  <karl@gnu.org>
109679         * doc/gpl.texi, doc/lgpl.texi: new files.
109681 2004-01-18  Karl Berry  <karl@gnu.org>
109683         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
109684         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
109686 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109688         Merge from coreutils.
109690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
109691         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
109692         (gl_DEFAULT_POSIX2_VERSION): Move
109693         the documentation from 'configure' into 'config.hin',
109694         so that 'configure --help' isn't burdened by it and
109695         we don't have to worry about its formatting there.
109696         Reword the documentation so that it's more succinct
109697         and can be run together into a single paragraph.
109698         * m4/same.m4 (gl_SAME): Check for pathconf.
109700 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109702         Merge from coreutils.
109704         * lib/posixver.c: Include posixver.h.
109706         * lib/same.c: Include <stdbool.h>, <limits.h>.
109707         (_POSIX_NAME_MAX): Define if not defined.
109708         (MIN): New macro.
109709         (same_name): If file names are silently truncated, report
109710         that the file names are the same if they are the same after
109711         the silent truncation.
109713         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
109714         conversion function.
109715         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
109716         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
109717         longer needed.
109719 2004-01-15  Jim Meyering  <jim@meyering.net>
109721         Merge from coreutils.
109723         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
109724         if no library is required.
109725         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
109726         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
109727         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
109728         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
109729         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
109730         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
109731         value, $ac_cv_search_crypt, if it's "none required".
109732         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
109733         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
109734         not gl_FUNC_GETLOADAVG.
109735         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
109736         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
109738 2004-01-15  Jim Meyering  <jim@meyering.net>
109740         Merge from coreutils.
109742         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
109743         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
109744         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
109746         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
109747         optional configure-time default.
109749         * lib/version-etc.c (version_etc_copyright): Update copyright date.
109751         * lib/xreadlink.c (xreadlink): Correct outdated comment.
109753 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
109755         Merge from coreutils.
109757         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
109758         value, $ac_cv_search_nanosleep, if it's "none required".
109760 2004-01-14  Paul Eggert  <eggert@twinsun.com>
109762         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
109763         with like-named macro in fnmatch.c.
109764         (EXT): Use an internal constant instead.
109766         Merge fnmatch patches from glibc.
109767         * lib/fnmatch.c (mbsinit): Remove define.
109768         Add libc_hidden_ver (__fnmatch, fnmatch).
109769         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
109770         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
109772 2004-01-14  Karl Berry  <karl@gnu.org>
109774         * config/install-sh: update from automake.
109776 2004-01-13  Karl Berry  <karl@gnu.org>
109778         * config/install-sh: update from automake.
109780 2004-01-09  Karl Berry  <karl@gnu.org>
109782         * config/install-sh: update from automake.
109784 2004-01-05  Karl Berry  <karl@gnu.org>
109786         * config/config.{sub,guess}: update from config.
109788 2003-12-31  Karl Berry  <karl@gnu.org>
109790         * config/depcomp: update from automake.
109792 2003-12-14  Karl Berry  <karl@gnu.org>
109794         * lib/config.charset: update from gettext-runtime.
109796 2003-12-03  Paul Eggert  <eggert@twinsun.com>
109798         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
109799         Bug reported by Alfred M. Szmidt.
109801 2003-12-03  Bruno Haible  <bruno@clisp.org>
109803         * m4/gettext.m4: Upgrade from gettext-0.13.
109804         * m4/po.m4: Upgrade from gettext-0.13.
109805         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
109806         * m4/intmax.m4: New file, from gettext-0.13.
109807         * m4/printf-posix.m4: New file, from gettext-0.13.
109809 2003-11-29  Karl Berry  <karl@gnu.org>
109811         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
109813 2003-11-25  Paul Eggert  <eggert@twinsun.com>
109814             Bruno Haible  <bruno@clisp.org>
109816         * lib/printf-parse.h: Don't include sys/types.h.
109817         (ARG_NONE): New macro.
109818         (char_directive): Change type of *arg_index fields to size_t.
109819         * lib/printf-parse.c: Don't include sys/types.h.
109820         (SSIZE_MAX): Remove macro.
109821         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
109822         Remove unnecessary overflow check.
109823         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
109824         fields.
109826 2003-11-25  Bruno Haible  <bruno@clisp.org>
109828         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
109830 2003-11-25  Bruno Haible  <bruno@clisp.org>
109832         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
109833         gt_TYPE_SSIZE_T.
109835 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109837         * modules/alloca: Remove dependency on xalloc.
109839 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109841         * lib/alloca.c: Remove dependency on xalloc module.
109842         (xalloc_die): Remove.
109843         (memory_full) [!defined emacs]: New macro.
109844         [!defined emacs]: Don't include xalloc.h.
109845         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
109846         address arithmetic overflows.  Change datatypes a bit to avoid
109847         unnecessary casts.
109849 2003-11-22  Jim Meyering  <jim@meyering.net>
109851         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
109852         s/size/size_t/.
109854 2003-11-21  Karl Berry  <karl@gnu.org>
109856         * config/config.{sub,guess}: update from config.
109858 2003-11-18  Karl Berry  <karl@gnu.org>
109860         * config/config.{sub,guess}: update from config.
109862         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
109864 2003-11-17  Paul Eggert  <eggert@twinsun.com>
109866         * README: Mention that S+T cannot overflow if S is the size of
109867         an existing object and T is sufficiently small.
109869 2003-11-17  Jim Meyering  <jim@meyering.net>
109871         On systems without utime and without a utimes function capable of
109872         dealing with a NULL struct utimbuf* argument, this utime replacement
109873         could -- in unusual circumstances -- leak a file descriptor.
109874         * lib/utime.c: Include <unistd.h> and <errno.h>.
109875         (utime_null): Be sure to close `fd' and to preserve errno.
109876         Reported by Geoff Collyer via Arnold Robbins.
109878 2003-11-17  Bruno Haible  <bruno@clisp.org>
109880         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
109881         (Depends-on): Add xsize.
109883 2003-11-17  Bruno Haible  <bruno@clisp.org>
109885         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
109887 2003-11-17  Bruno Haible  <bruno@clisp.org>
109889         * lib/vasnprintf.c (alloca): Remove fallback definition.
109890         (freea): Remove definition.
109891         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
109892         Reported by Paul Eggert.
109894 2003-11-16  Paul Eggert  <eggert@twinsun.com>
109895             Bruno Haible  <bruno@clisp.org>
109897         Protect against address arithmetic overflow.
109898         * lib/printf-args.h: Include stddef.h.
109899         (arguments): Change type of field 'count' to size_t.
109900         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
109901         'unsigned int' where appropriate.
109902         * lib/printf-parse.h: Include sys/types.h.
109903         (char_directive): Change type of *arg_index fields to ssize_t.
109904         (char_directives): Change type of fields 'count', max_*_length to
109905         size_t.
109906         * lib/printf-parse.c: Include sys/types.h and xsize.h.
109907         (SSIZE_MAX): Define fallback value.
109908         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
109909         instead of 'int' where appropriate. Check a_allocated, d_allocated
109910         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
109911         * lib/vasnprintf.c: Include xsize.h.
109912         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
109913         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
109914         overflow. Avoid wraparound when converting a width or precision from
109915         decimal to binary.
109917 2003-11-16  Bruno Haible  <bruno@clisp.org>
109919         Update from GNU gettext.
109920         * lib/printf-parse.c: Generalize to it can be compiled for wide
109921         strings.
109922         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
109923         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
109924         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
109925         SNPRINTF): New macros.
109926         Don't include <alloca.h> if the file is used inside libintl.
109927         (local_wcslen): New function, for Solaris 2.5.1.
109928         (VASNPRINTF): Use it instead of wcslen.
109930 2003-11-16  Bruno Haible  <bruno@clisp.org>
109932         * lib/xsize.h (xmax): New function.
109933         (xsum, xsum3, xsum4): Declare as "pure" functions.
109935 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109937         * modules/xalloc (Files): Undo latest change, since xalloc.h
109938         no longer needs SIZE_MAX or PTRDIFF_MAX.
109940 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109942         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
109943         gl_PTRDIFF_MAX.
109945 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109947         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
109948         "return", to pacify some unknown compiler.  Problem reported
109949         by Joerg Schilling.
109951 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109953         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
109954         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
109955         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
109956         heuristic is just as accurate as far as we know, and it removes a
109957         dependency on size_max.m4 and ptrdiff_max.m4.
109959 2003-11-11  Bruno Haible  <bruno@clisp.org>
109961         * modules/xsize (Files): Add m4/size_max.m4.
109962         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
109964 2003-11-11  Bruno Haible  <bruno@clisp.org>
109966         * m4/size_max.m4: New file.
109967         * m4/ptrdiff_max.m4: New file.
109968         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
109969         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
109970         (gl_XALLOC): Invoke it.
109972 2003-11-11  Bruno Haible  <bruno@clisp.org>
109974         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
109975         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
109976         defined.
109978 2003-11-10  Paul Eggert  <eggert@twinsun.com>
109980         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
109981         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
109982         rejected some allocations of exactly SIZE_MAX - 2 bytes.
109983         From Bruno Haible.
109984         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
109985         not (size_t) -1, since it's defined here.
109987 2003-11-09  Karl Berry  <karl@gnu.org>
109989         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
109991 2003-11-06  Paul Eggert  <eggert@twinsun.com>
109993         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
109994         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
109995         Reject sizes of exactly SIZE_MAX bytes.
109996         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
109997         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
109999 2003-11-05  Bruno Haible  <bruno@clisp.org>
110001         * lib/xsize.h: Include limits.h, to avoid a possible collision with
110002         SIZE_MAX defined in <limits.h> on Solaris.
110004 2003-11-04  Jim Meyering  <jim@meyering.net>
110006         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
110007         variable names, rather than @VAR@.
110008         * modules/poll: Likewise.
110010 2003-11-04  Bruno Haible  <bruno@clisp.org>
110012         * modules/xsize: New file.
110013         * modules/linebreak: Depend on xsize.
110014         * MODULES.html.sh (func_all_modules): Add xsize.
110016 2003-11-04  Bruno Haible  <bruno@clisp.org>
110018         * m4/xsize.m4: New file.
110020 2003-11-04  Bruno Haible  <bruno@clisp.org>
110022         * lib/xsize.h: New file.
110023         * lib/linebreak.c: Include xsize.h.
110024         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
110025         argument for overflow.
110026         Suggested by Paul Eggert.
110028 2003-11-03  Karl Berry  <karl@gnu.org>
110030         * config/config.{guess,sub}: update from config.
110032 2003-11-03  Jim Meyering  <jim@meyering.net>
110034         * modules/userspec (lib_SOURCES): Add userspec.h.
110035         (Include): Add "userspec.h".
110036         Improve description.
110038 2003-11-03  Jim Meyering  <jim@meyering.net>
110040         * lib/userspec.c: Include "userspec.h".
110041         * lib/userspec.h: New file.
110043 2003-11-03  Bruno Haible  <bruno@clisp.org>
110045         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
110047 2003-11-03  Bruno Haible  <bruno@clisp.org>
110049         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
110050         available, to avoid (extremely rare) race condition.
110051         Suggested by Paul Eggert.
110053 2003-11-02  Karl Berry  <karl@gnu.org>
110055         * config/srclist.txt (vasprintf.c): sync broken, sigh.
110057 2003-10-31  Paul Eggert  <eggert@twinsun.com>
110059         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
110060         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
110061         (read_filesystem_list): Set and use me_type_malloced.
110062         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
110063         whatever the type happens to be), for brevity and consistency.
110064         Check for size calculation overflow on Alphas running OSF/1.
110066 2003-10-31  Jim Meyering  <jim@meyering.net>
110068         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
110070         * lib/linebuffer.c: Include <string.h> for declaration of memset.
110072 2003-10-30  Paul Eggert  <eggert@twinsun.com>
110073             Bruno Haible  <bruno@clisp.org>
110075         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
110076         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
110078 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110080         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
110081         netbsd*-gnu*.  Suggested by Robert Millan.
110083 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110085         * modules/group-member: Depend on stdbool.
110087 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110089         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
110091 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110093         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
110094         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
110095         after the 'gnu' in these cases.  This fixes some bugs in the
110096         previous change, and is based on suggestions by Robert Millan.
110098 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110100         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
110101         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
110102         no longer needed.
110103         * lib/quotearg.c (quotearg_n_options): Use it.
110104         * lib/group-member.c: Include <stdbool.h>.
110105         (free_group_info): Arg is now const *; don't free arg.
110106         (get_group_info): Now returns bool and accepts struct group_info *,
110107         rather than returning a malloc'ed struct group_info *.
110108         All uses changed.  Check for overflow in internal size calculation.
110110         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
110111         rather than xmalloc/xrealloc.
110112         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
110113         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
110114         conformance bug: the old code used a pointer after freeing the
110115         storage that it addressed.
110116         * lib/hash.c (hash_initialize): Simplify the code by using
110117         xalloc_oversized rather than doing it by hand.
110118         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
110119         the buffer preserved.  Use free and xmalloc instead.
110120         * lib/quotearg.c (quotearg_n_options): Likewise.
110121         Use a simpler test for size overflow.  Don't use xalloc_oversized
110122         because unsigned int might be wider than size_t (!); this suggests
110123         that we should switch from unsigned int to size_t for slot numbers.
110125 2003-10-28  Paul Eggert  <eggert@twinsun.com>
110127         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
110128         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
110129         NetBSD kernels.  Requested by Richard Stallman.
110131 2003-10-27  Paul Eggert  <eggert@twinsun.com>
110133         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
110134         to allocate the returned structure.  Do not allocate a subarray,
110135         as x2nrealloc will do that.
110136         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
110137         instead of xnrealloc.
110138         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
110140 2003-10-27  Bruno Haible  <bruno@clisp.org>
110142         * lib/stdbool_.h: Better support for BeOS.
110144 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110146         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
110147         now uses inline.
110149 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110151         * lib/xalloc.h (xalloc_oversized): New static inline function, for
110152         callers that want to do their own size-overflow checking.  Include
110153         <stdbool.h>, since xalloc_oversized returns bool.
110154         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
110155         to use xalloc_oversized.
110157         Add two functions x2realloc, x2nrealloc, for programs that grow
110158         arrays dynamically by doubling their sizes.
110159         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
110160         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
110161         New functions.
110163         Port to C99 semantics for 'inline' of external functions.
110164         Bug reported by Bruno Haible.
110165         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
110166         with the old contents of xnmalloc.
110167         (xnmalloc, xmalloc): Use it.
110168         (xnrealloc_inline): New static inline function,
110169         with the old contents of xnrealloc.
110170         (xnrealloc, xrealloc): Use it.
110172         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
110173         that.
110175 2003-10-26  Karl Berry  <karl@gnu.org>
110177         * config/srclist.txt (COPYING.DOC): no longer available from
110178         /gd/gnuorg; don't know where the ultimate source is.
110180 2003-10-25  Paul Eggert  <eggert@twinsun.com>
110182         Fix several address-calculation bugs in the hash modules,
110183         plus some minor code cleanup.
110185         * lib/hash.h: Include <stdbool.h>, for bool.
110186         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
110187         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
110188         hash_get_n_entries, hash_get_max_bucket_length,
110189         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
110190         hash_rehash): Use size_t rather than unsigned.
110191         * lib/hash.c (struct hash_table, hash_get_n_buckets,
110192         hash_get_n_buckets_used, hash_get_n_entries,
110193         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
110194         hash_get_entries, hash_do_for_each, hash_string, is_prime,
110195         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
110196         Likewise.
110197         (SIZE_MAX): Define if not defined.
110198         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
110199         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
110200         hash_print):
110201         Use const * when possible.
110202         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
110203         (check_tuning): Fix bug: if tuning parameters were very close to
110204         0 or 1, rounding errors could have caused subscript violations.
110205         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
110206         (hash_initialize): Add 'fail:' label
110207         to free table and return NULL, and use it to simplify code.
110208         Use calloc rather than clearing the storage ourself.
110209         (hash_initialize, hash_rehash): Check for arithmetic overflow in
110210         buffer size calculations.
110211         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
110212         Include <stddef.h>, for size_t.
110213         * lib/hash-pjw.c (hash_pjw): Likewise.
110214         Switch to method described by Bruno Haible.
110215         Include <limits.h>, for CHAR_BIT.
110216         (SIZE_BITS): New macro.
110218 2003-10-23  Paul Eggert  <eggert@twinsun.com>
110220         * m4/getline.m4 (AM_FUNC_GETLINE):
110221         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
110222         hosts.  Problem reported by Derek Robert Price in
110223         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
110224         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
110225         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
110227 2003-10-21  Paul Eggert  <eggert@twinsun.com>
110229         * lib/getndelim2.c (getndelim2): When size calculation overflows,
110230         ceiling the allocation at NMAX bytes rather than silently
110231         discarding input bytes before NMAX is reached.  This makes
110232         a difference only if NMAX exceeds SIZE_MAX / 2.
110234         * lib/obstack.c: Merge from glibc.
110235         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
110236         Add libc_hidden_def (_obstack_newchunk).
110237         (_obstack_free) [! defined _LIBC]: Remove.
110238         [defined _LIBC]: Make a strong alias from obstack_free, rather than
110239         a clone of the function body.
110240         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
110241         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
110243         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
110244         glibc.
110245         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
110246         arg to memcpy.
110248         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
110249         (obstack_ptr_grow_fast, obstack_int_grow_fast):
110250         Don't use lvalue casts, as GCC plans to remove support for them
110251         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
110252         was also present in the non-GCC version, indicating that this
110253         code had always been buggy and had never been widely used.
110254         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
110255         Use the fast variant of each macro, rather than copying the
110256         definiens of the fast variant; that way, we'll be more likely to
110257         catch future bugs in the fast variants.
110259 2003-10-20  Bruno Haible  <bruno@clisp.org>
110261         * modules/wait-process: New file.
110262         * MODULES.html.sh (func_all_modules): Add wait-process.
110264 2003-10-20  Bruno Haible  <bruno@clisp.org>
110266         * m4/wait-process.m4: New file.
110268 2003-10-20  Bruno Haible  <bruno@clisp.org>
110270         * lib/wait-process.h: New file, from GNU gettext.
110271         * lib/wait-process.c: New file, from GNU gettext.
110273 2003-10-19  Jim Meyering  <jim@meyering.net>
110275         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
110276         HPUX 10.20.
110278 2003-10-18  Karl Berry  <karl@gnu.org>
110280         * config/config.guess: update from config.
110282 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110284         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
110285         (getgroups): First arg is int, not size_t.
110286         Don't let 'free' mangle errno.
110288 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110290         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
110292 2003-10-16  Karl Berry  <karl@gnu.org>
110294         * config/config.{guess,sub}: update from config.
110296 2003-10-16  Jim Meyering  <jim@meyering.net>
110298         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110299         memcpy.
110301 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110303         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110304         (SIZE_MAX): Remove.
110305         (new_exclude, add_exclude_file): Initial size no longer needs to
110306         be a power of 2.
110307         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110308         our own address arithmetic overflow checking.
110310         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110311         (fnmatch): Do not alloca more than 2000 wide characters;
110312         instead, use malloc for large buffers.
110313         Check for address arithmetic overflow, and return -1
110314         with errno set to ENOMEM in that case.
110315         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110316         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110317         instead, return -1.  Check for address arithmetic overflow.
110319 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110321         Handle invalid suffixes and overflow independently, so that
110322         callers can treat them independently as needed.  Fix some bugs in
110323         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110324         suffix for a human-readable blocksize.  The major caller-visible
110325         change is the addition of a new
110326         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110327         that both overflow and suffix chars were found.
110329         * lib/human.c (humblock): Don't check separately for invalid suffix
110330         char; that is xstrtoumax's job (now that its bug is fixed).
110331         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110332         INTMAX_MAX]: New macros.
110333         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110334         TYPE_MAXIMUM): New macros.
110335         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110336         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110337         if overflow occurs, as it's what __strtol does and it's more useful
110338         in practice.
110339         (__xstrtol): If __strtol reports some error other than ERANGE,
110340         reflect it to the caller as LONGINT_INVALID.  If it reports
110341         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110342         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110343         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110344         value.
110345         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110346         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110347         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110348         [defined UINTMAX_MAX]: New macros.
110350 2003-10-14  Bruno Haible  <bruno@clisp.org>
110352         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110354 2003-10-14  Bruno Haible  <bruno@clisp.org>
110356         * m4/sig_atomic_t: New file, from GNU gettext.
110357         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110359 2003-10-14  Bruno Haible  <bruno@clisp.org>
110361         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110362         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110363         Also use volatile where needed.
110365 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110367         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110368         Change maintainer from Bruno Haible to 'all'.
110370 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110372         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110374 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110376         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110377         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110378         and define in terms of the other primitives.
110379         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110380         (SIZE_MAX): Define if not already defined.
110381         (array_size_overflow): New function.
110382         (xalloc_die): Abort instead of exiting if 'error' returns.
110383         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110384         (xmalloc, xrealloc): Use them.
110385         (xcalloc): Check for address arithmetic overflow.
110386         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110387         a bit faster than strcpy.
110389 2003-10-10  Simon Josefsson  <jas@extundo.com>
110391         * modules/argp (Depends-on): Add restrict and strcase.
110393 2003-10-10  Simon Josefsson  <jas@extundo.com>
110395         * m4/argp.m4: Add AC_C_INLINE.
110397 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110399         Merge getpass from libc, plus a few fixes.
110401         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110402         Include <stdbool.h>.
110403         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110404         __fsetlocking to empty.
110405         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110406         do include <bits/libc-lock.h>.
110407         Do not include <fcntl.h>; not needed.
110408         [_LIBC]: Include <wchar.h>.
110409         (NOTCANCEL_MODE): New macro.
110410         (flockfile, funlockfile) [_LIBC]: New macros.
110411         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110412         [!_LIBC]: New macros.
110413         (call_fclose): New function.
110414         (getpass): Use it.  Save tty stream separately; this simplifies the
110415         code and makes it more reliable if stdin happens to equal stdout.
110416         Invoke __fsetlocking on tty.
110417         Handle thread cancellation if needed.
110418         Namespace cleanup (use __tcgetattr, __getline).
110419         Use bool for Booleans.
110420         [USE_IN_LIBIO]: Handle wide streams.
110421         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110422         stream might go where.
110424         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110425         doesn't have to include <stdio.h> before us.
110426         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110427         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110428         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110429         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110430         if not declared, so that we can use getpass.c code from libc without
110431         rewriting it.
110432         (flockfile, ftrylockfile, funlockfile): New macros.
110434 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110436         * modules/getpass: Depend on stdbool.
110438 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110440         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110442 2003-10-07  Karl Berry  <karl@gnu.org>
110444         * config/config.{guess,sub}: update from config.
110446 2003-10-06  Jim Meyering  <jim@meyering.net>
110447             Bruno Haible  <bruno@clisp.org>
110449         This lets translators provide better translations for the
110450         "Written by ..." part of --version output.
110451         * lib/version-etc.h: Include stdarg.h.
110452         (version_etc_copyright): Declare as readonly.
110453         (version_etc): Make this function variadic with a NULL-terminated list
110454         of author name strings.
110455         (version_etc_va): New declaration.
110456         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110457         (version_etc_copyright): Declare as readonly.
110458         (version_etc_va): New function. Provide a different translatable string
110459         for each possible number of authors < 10. Abbreviate when there are 10
110460         authors or more.
110461         (version_etc): Make this function variadic. Call version_etc_va.
110462         Suggestion from Gary V. Vaughan.
110464         * lib/long-options.h (parse_long_options): Change prototype: the
110465         authors string is moved to the end and becomes variadic.
110466         * lib/long-options.c: Include stdarg.h.
110467         (parse_long_options): Make this function variadic, too.
110468         Call version_etc_va, not version_etc.
110470 2003-10-06  Bruno Haible  <bruno@clisp.org>
110472         * modules/version-etc-2: Remove file.
110473         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110475 2003-10-06  Bruno Haible  <bruno@clisp.org>
110477         * modules/fatal-signal: New file.
110478         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110480 2003-10-06  Bruno Haible  <bruno@clisp.org>
110482         * m4/fatal-signal.m4: New file.
110483         * m4/signalblocking.m4: New file, from GNU gettext.
110485 2003-10-06  Bruno Haible  <bruno@clisp.org>
110487         * lib/version-etc-2.h: Remove file.
110488         * lib/version-etc-2.c: Remove file.
110490 2003-10-06  Bruno Haible  <bruno@clisp.org>
110492         * lib/fatal-signal.h: New file, from GNU gettext.
110493         * lib/fatal-signal.c: New file, from GNU gettext.
110495 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110497         * README: Rework advice for preventing empty .o files.
110498         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110499         not <sys/types.h>.
110501 2003-10-04  Karl Berry  <karl@gnu.org>
110503         * lib/argp*: update from libc.
110505 2003-10-04  Karl Berry  <karl@gnu.org>
110507         * config/config.{guess,sub}: update from config.
110509 2003-10-02  Bruno Haible  <bruno@clisp.org>
110511         * modules/lchown (Include): Add lchown.h.
110512         * modules/time_r (Include): Use "..." syntax.
110513         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110515 2003-10-01  Simon Josefsson  <jas@extundo.com>
110517         * MODULES.html.sh (func_all_modules): Move gethostname from section
110518         'based on' to section 'lacking' POSIX:2001.
110520 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110522         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110523         to output mode on the same stream.
110525 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110527         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110528         Fix arg typo in previous patch.
110530 2003-09-28  Jim Meyering  <jim@meyering.net>
110532         * lib/error.c: Correct cpp indentation.
110534 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110536         * modules/free: New file.
110538 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110540         * m4/free.m4: New file.
110542 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110544         * lib/minmax.h (MIN, MAX)
110545         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
110546         Omit the special code that used __typeof__, since we worry that
110547         it could be more trouble than it's worth.  See:
110548         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
110549         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
110551         * lib/free.c: New file.
110553 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
110555         Trivial fixes to Makefile.am parts of module listings.
110556         * modules/strstr: Append strstr.h to lib_SOURCES.
110557         * modules/strcase: Likewise, for strcase.h.
110559 2003-09-27  Karl Berry  <karl@gnu.org>
110561         * config/mkinstalldirs: update from automake.
110563 2003-09-26  Paul Eggert  <eggert@twinsun.com>
110565         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
110566         (error_tail): Do not loop, reallocating temporary buffer, since
110567         the output cannot contain more wide characters than the input
110568         contains bytes, the size must be big enough already.  This avoids
110569         one potential size overflow calculation.  Check for size overflow
110570         when calculating temporary buffer size.  Free temporary buffer
110571         when done, if it was allocated with malloc; this plugs a memory
110572         leak.  Remove casts from void * to pointers, that are no longer
110573         needed now that we're assuming C89 or better.
110575         Merge error changes from glibc.
110577         * lib/error.c, error.h: Update copyright notice header to match glibc.
110578         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
110579         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
110580         Disable cancellation while printing error.
110581         * lib/error.h: Prepend __ to parameter names.
110583 2003-09-26  Jim Meyering  <jim@meyering.net>
110585         * lib/error.c (error_tail): Move some declarations
110586         into inner scope where the local variables are used.
110588 2003-09-26  Bruno Haible  <bruno@clisp.org>
110590         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
110591         stpncpy().
110592         Don't define stpncpy through config.h; it's now done through stpncpy.h.
110594 2003-09-26  Bruno Haible  <bruno@clisp.org>
110596         * lib/stpncpy.h (gnu_stpncpy): New declaration.
110597         (stpncpy): Define as alias for gnu_stpncpy.
110598         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
110600 2003-09-25  Simon Josefsson  <jas@extundo.com>
110602         * lib/xgetdomainname.h: New file.
110603         * lib/xgetdomainname.c: New file.
110605 2003-09-25  Simon Josefsson  <jas@extundo.com>
110606             Bruno Haible  <bruno@clisp.org>
110608         * modules/getdomainname: New file.
110609         * modules/xgetdomainname: New file.
110610         * MODULES.html.sh (func_all_modules): Add getdomainname,
110611         xgetdomainname.
110613 2003-09-25  Simon Josefsson  <jas@extundo.com>
110614             Bruno Haible  <bruno@clisp.org>
110616         * m4/getdomainname.m4: New file.
110618 2003-09-25  Simon Josefsson  <jas@extundo.com>
110619             Bruno Haible  <bruno@clisp.org>
110621         * lib/getdomainname.h: New file.
110622         * lib/getdomainname.c: New file.
110624 2003-09-25  Karl Berry  <karl@gnu.org>
110626         * lib/argp-fmtstream.c, argp-help.c: update from libc.
110628 2003-09-25  Karl Berry  <karl@gnu.org>
110630         * config/install-sh: update from automake.
110632 2003-09-25  Bruno Haible  <bruno@clisp.org>
110634         * modules/version-etc-2: New file, from modules/version-etc with
110635         modifications.
110636         * MODULES.html.sh (func_all_modules): Add version-etc-2.
110638 2003-09-25  Bruno Haible  <bruno@clisp.org>
110640         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
110641         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
110643 2003-09-24  Simon Josefsson  <jas@extundo.com>
110645         * modules/xgethostname: Add xgethostname.h.
110647 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110649         * lib/linebuffer.c (freebuffer): Don't free the argument, just
110650         the buffer associated with the argument.  Bug reported by
110651         Simon Josefsson.
110653 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110655         * README: Document assumptions that 'int' is at least 32 bits
110656         wide, that integer arithmetic is 2's complement without overflow,
110657         that there are no holes in integer values, that adding sizes of
110658         two nonoverlapping objects can't overflow, and that all-bits-zero
110659         yields scalar zero.  Fix spelling and capitalization typos.
110661 2003-09-19  Karl Berry  <karl@gnu.org>
110663         * lib/argp.h: update from libc.
110665 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110667         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
110668         to avoid spurious warnings like "AC_RUN_IFELSE was called before
110669         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
110671 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110673         * gnulib-tool: Use "test -h", not "test -L", for portability
110674         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
110675         (tags_regexp): Remove, since \| doesn't conform to POSIX.
110676         (sed_extract_prog): Issue s commands one-by-one, rather than
110677         using \| in one s command.
110679 2003-09-16  Paul Eggert  <eggert@twinsun.com>
110681         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
110682         input error, instead of returning NULL the next time we are called
110683         (and therefore losing track of errno).
110685 2003-09-16  Bruno Haible  <bruno@clisp.org>
110687         * gnulib-tool (func_create_testdir): Warn about duplicated
110688         dependencies.
110690 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110692         * modules/argmatch, modules/fatal, modules/obstack,
110693         modules/xalloc, modules/xgethostname: Sort dependencies by
110694         importance, not alphabetically.
110696 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110698         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
110699         fails, so that the caller gets the proper errno.
110701         * lib/readutmp.c (read_utmp): Likewise.
110702         Check for fstat error.  Close stream and free storage
110703         when failing.
110705 2003-09-14  Karl Berry  <karl@gnu.org>
110707         * config/srclist.txt (strdup.c): disable for c89 changes.
110709 2003-09-14  Jim Meyering  <jim@meyering.net>
110711         * lib/getloadavg.c: Correct cpp indentation.
110712         * lib/strdup.c: Likewise.
110713         * lib/vasnprintf.c: Likewise.
110715 2003-09-14  Bruno Haible  <bruno@clisp.org>
110717         * modules/fwriteerror: New file.
110718         * MODULES.html.sh (func_all_modules): Add fwriteerror.
110720 2003-09-14  Bruno Haible  <bruno@clisp.org>
110722         * lib/fwriteerror.h: New file.
110723         * lib/fwriteerror.c: New file.
110725 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110727         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
110728         modules/xgethostname, modules/xalloc: Depend on exit.
110730 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110732         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
110734         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
110735         and AC_MINIX, too, so that their extensions are available.
110737         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
110738         This macro has been superseded by gl_BACKUPFILE.
110740         More patches to assume C89 or better.
110742         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
110744         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
110745         unconditionally.
110746         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
110747         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
110748         Include <string.h>, <stdlib.h> unconditionally.
110749         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
110750         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
110751         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
110752         headers or for string.h.
110753         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
110754         or strtoul.
110756         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
110757         headers.
110758         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
110759         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110760         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
110761         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
110762         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110763         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
110764         memcpy, memset.
110765         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
110766         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
110767         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
110768         strtol.
110769         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
110770         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
110771         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
110772         strtoul.
110774 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110776         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
110777         * lib/obstack.c [!defined _LIBC]: Likewise.
110778         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
110779         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
110780         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
110782         More changes to assume C89 or better.
110784         * lib/error.c (error_tail): Assume vprintf.
110786         * lib/argmatch.c (getenv): Remove decl.
110787         * lib/progreloc.c (get_full_program_name): Define via prototype.
110788         * lib/setenv.c (clearenv): Likewise.
110789         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
110790         needed.
110791         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
110792         (malloc, memcpy): Remove decls.
110793         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
110794         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
110795         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110796         (memcpy): Remove macro.
110797         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
110798         (__P): Remove.  All uses removed.
110799         (PTR): Remove.  All uses changed to void *.
110800         (CHAR_BIT, NULL): Remove.
110801         (spaces, zeros, memset_space, memset_zero)
110802         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
110803         Remove.
110804         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
110805         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
110806         Define with prototype.
110807         Remove now-unnecessary prototype decl.
110808         (extra_args_spec): Assume ANSI C.  All uses changed.
110809         (extra_args_spec_iso): Remove.
110810         (my_strftime, emacs_strftimeu): Define via prototype.
110811         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
110812         unconditionally.
110813         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
110814         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
110815         (strtoul, strtol): Remove decls.
110816         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
110817         LONG_MAX): Remove.
110818         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110819         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
110820         (LOCALE_PARAM_PROTO): New macro.
110821         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
110822         (INTERNAL (strtol), strtol): Define with a prototype.
110823         (PARAMS): Remove.  All uses removed.
110824         * lib/tempname.c: Include <string.h> unconditionally.
110825         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
110826         * lib/xgethostname.c (main): Define with a prototype.
110827         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
110828         Include <stdlib.h> unconditionally.
110829         (calloc, malloc, realloc, free): Remove decls.
110830         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
110831         Include <stdlib.h> unconditionally.  Sort include file names.
110832         (strtod): Remove.
110833         (xstrtod): Define with a prototype.
110834         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
110835         (strtol, strtoul): Remove decls.
110837 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110839         More patches to assume C89 or better.
110840         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
110841         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
110842         string.h, memchr, STDC_HEADERS.
110844 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110846         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
110847         Include <stdlib.h>, <string.h> unconditionally.
110848         Remove now-unnecessary cast to char *.
110849         * lib/strnlen.c: Include <string.h> unconditionally.
110850         * lib/yesno.c (yesno): Define with a prototype.
110852 2003-09-11  Bruno Haible  <bruno@clisp.org>
110854         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
110856 2003-09-10  Jim Meyering  <jim@meyering.net>
110858         * lib/error.c: Correct indentation of cpp directives.
110860 2003-09-10  Bruno Haible  <bruno@clisp.org>
110862         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
110863         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
110864         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
110865         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
110866         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
110867         <stdlib.h> and <string.h> checks.
110868         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
110869         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
110871 2003-09-10  Bruno Haible  <bruno@clisp.org>
110873         * lib/strcspn.c: Include <string.h> unconditionally.
110874         * lib/strpbrk.c: Include <string.h> unconditionally.
110875         * lib/strstr.c: Include <string.h> unconditionally.
110876         * lib/unicodeio.c: Include <string.h> unconditionally.
110877         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
110878         * lib/unsetenv.c: Likewise.
110879         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
110880         * lib/yesno.c: Include <stdlib.h> unconditionally.
110881         (rpmatch): Add prototype.
110883 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110885         More patches to assume C89 or better.
110886         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
110887         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
110888         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
110889         or for string.h.
110890         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
110891         stdlib.h.
110892         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
110893         C headers.
110894         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
110895         string.h.
110896         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
110897         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
110898         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
110899         or for string.h.
110900         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
110901         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
110902         C headers.
110903         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
110904         memcpy.
110905         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
110906         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
110907         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
110908         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
110909         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
110910         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
110911         string.h, free.
110912         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
110913         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
110914         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
110915         C headers, or for string.h.
110916         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
110917         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
110918         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
110919         headers, memory.h, stdlib.h, string.h, strings.h.
110920         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
110921         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
110922         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
110923         strchr.
110924         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
110925         headers, memory.h, string.h.
110926         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
110927         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
110928         free.
110929         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
110930         headers.
110931         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
110932         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
110933         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
110934         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
110935         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
110937 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110939         More K&R removal.
110941         * lib/acosl.c (main): Use a prototype.
110942         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
110943         tanl.c: Likewise.
110945         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
110947         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
110948         (getopt, etopt_long, getopt_long_only, _getopt_internal)
110949         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
110950         with a prototype.
110951         * lib/getopt.c (const): Remove macro.
110952         Include <string.h> unconditionally.
110953         (my_index): Remove; all uses changed to strchr.
110954         (strlen): Remove decl.
110955         (exchange): Remove forward decl; no longer needed.
110956         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
110957         Define with prototype.
110958         * lib/getopt1.c (const): Remove macro.
110959         (getopt_long, getopt_long_only, main): Define with prototype.
110961         * lib/getugroups.c: Include <string.h> unconditionally.
110963         * lib/getusershell.c: Include <stdlib.h> unconditionally.
110964         (getusershell, setusershell, endusershell, readname, main):
110965         Define with prototypes.
110967         * lib/group-member.c: Include group-member.h first.
110968         Include <stdlib.h> unconditionally.
110970         * lib/hard-locale.c: Include hard-locale.h first.
110971         Include <stdlib.h>, <string.h> unconditionally.
110973         * lib/hash.c (free, malloc): Remove decls.
110974         Include <stdlib.h> unconditionally.
110976         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
110977         (getenv): Do not declare.
110979         * lib/idcache.c: Include <string.h> unconditionally.
110981         * lib/long-options.c: Include long-options.h first, to test interface.
110982         Include <stdlib.h> unconditionally.
110984         * lib/makepath.c: Include makepath.h first, to test interface.
110985         Include <stdlib.h> and <string.h> unconditionally.
110987         * lib/linebuffer.c: Include <stdlib.h>.
110988         (free): Remove decl.
110990         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
110991         stddef.h. rpl_malloc returns void *, not char *.
110992         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
110993         prototype.
110995         * lib/md5.h: Include <limits.h> unconditionally.
110996         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
110997         (__P): Remove; all uses removed.
110998         * lib/md5.c: Include "md5.h" first.
110999         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
111000         md5_buffer, md5_process_bytes, md5_process_block):
111001         Define with prototypes.
111002         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
111003         * lib/sha.c: Include "sha.h" first.
111004         Include <stdlib.h>, <string.h> unconditionally.
111006         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
111007         * lib/memcmp.c (__ptr_t): Likewise.
111008         * lib/memrchr.c (__ptr_t): Likewise.
111009         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
111010         Include <string.h> unconditionally.
111011         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
111012         * lib/memchr.c: Include <stdlib.h> unconditionally.
111013         * lib/memchr.c (LONG_MAX): Remove.
111014         * lib/memrchr.c (LONG_MAX): Likewise.
111015         * lib/memchr.c (__memchr): Define via a prototype.
111016         * lib/memrchr.c (__memrchr): Likewise.
111017         * lib/memcmp.c (__P): Remove, and remove all uses.
111018         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
111019         Remove forward decls; no longer needed.
111020         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
111021         Use types required by C89 in prototype.
111023         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
111024         * lib/savedir.c: Likewise.
111025         * lib/mkdir.c (free): Remove decl.
111026         * lib/rmdir.c (rmdir): Define with a prototype.
111027         * lib/savedir.c: Include savedir.h first, to test interface.
111029         * lib/mktime.c (STDC_HEADERS): Remove.
111030         Include <stdlib.h>, <string.h> unconditionally.
111032         * lib/modechange.c: Include <stdlib.h> unconditionally.
111033         (malloc): Remove decl.
111035         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
111036         (free): Remove decl.
111038         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
111039         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
111040         (This type really should be intptr_t, but that's a C99ism.)
111041         (_obstack_memcpy): Remove: all uses changed to memcpy.
111042         Include <string.h> unconditionally.
111043         (struct obstack): Assume __STDC__ for types of members
111044         chunkfun, freefun, extra_arg.
111045         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
111046         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
111047         obstack_begin, obstack_specify_allocation,
111048         obstack_specify_allocation_with_arg, obstack_chunkfun,
111049         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
111050         Remove unprototyped decls and the macros that use them.
111051         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
111052         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
111053         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
111054         (defined __STDC__ && __STDC__)]:
111055         Remove nonprototyped code.
111056         Include <stdlib.h> unconditionally.
111057         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
111058         _obstack_allocated_p, _obstack_free, obstack_free,
111059         _obstack_memory_used, print_and_abort):
111060         Define using prototypes.
111061         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
111062         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
111063         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
111064         obstack_next_free, obstack_object_size, obstack_room) [0]:
111065         Remove unused, unprototyped code.
111067         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
111069         * lib/physmem.c (physmem_total, physmem_available, main): Define
111070         with prototypes.
111072         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
111073         (main): Define with a prototype.
111075         * lib/posixver.c (getenv): Remove decl.
111077         * lib/putenv.c (malloc): Returns void *, not char *.
111078         Include <string.h> unconditionally.
111079         (strchr, memcpy, NULL): Do not define.
111081         * lib/readtokens.c: Include readtokens.h first, to test interface.
111082         Include <stdlib.h>, <string.h> unconditionally.
111083         (init_tokenbuffer): Define with a prototype.
111085         * lib/regex.c (PARAMS): Remove.  All uses removed.
111086         All uses of _RE_ARGS removed, too.
111087         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
111088         unconditionally.
111089         (bzero): Assume memset exists.
111090         (memcmp, memcpy, NULL): Remove.
111091         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
111092         char, or assignments to local vars of type signed char.
111093         (init_syntax_once, PREFIX(extract_number_and_incr),
111094         PREFIX(print_partial_compiled_pattern),
111095         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
111096         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
111097         PREFIX(regex_grow_registers), PREFIX(regex_compile),
111098         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
111099         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
111100         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
111101         wcs_compile_range, byte_compile_range, truncate_wchar,
111102         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
111103         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
111104         count_mbs_length, wcs_re_match_2_internal,
111105         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
111106         PREFIX(alt_match_null_string_p),
111107         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
111108         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
111109         regfree, PREFIX(extract_number)): Define with prototype.  Remove
111110         now-unnecessary declaration, if any.
111111         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
111112         regcomp, regexec):
111113         Remove now-unnecessary casts among pointer types.
111114         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
111116         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
111117         (free): Remove decl.
111119         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
111121         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
111122         (free): Remove decl.
111124         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
111125         * lib/xgetcwd.c: Likewise.
111127         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
111128         (free): Remove decl.
111130         * lib/strchrnul.c (strchrnul): Define with a prototype.
111131         Fix bug: c_in was not converted to char before searching.
111133         The following changes are not K&R related:
111135         * lib/group-member.h: Include <sys/types.h>, so that this file is
111136         self-contained.
111137         * lib/makepath.h: Likewise.
111139         * lib/getusershell.c (readname, default_index, line_size, readname):
111140         Use size_t, not int, for sizes.
111141         (readname): If the size overflows, report an error instead of
111142         looping forever.
111144 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111146         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
111147         libc.
111149 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111151         * README: New section: portability guidelines.
111153 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111155         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
111156         C89 spec.
111158 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111160         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
111162 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111164         Assume C89 or better; remove K&R cruft.
111165         A few of these changes were first proposed by Derek Robert Price
111166         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
111168         * lib/addext.c: Include <string.h> unconditionally.
111169         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
111170         Don't declare getenv or malloc.
111172         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
111173         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
111174         (NULL): Remove.
111175         (find_stack_direction, alloca): Use prototypes.
111177         * lib/atexit.c (atexit): Define using a prototype.
111179         * lib/basename.c, dirname.c, stripslash.c:
111180         Include <string.h> unconditionally.
111182         * lib/bcopy.c: Include <stddef.h>.
111183         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
111185         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
111187         * lib/error.h (error, error_at_line, error_print_progname)
111188         [! (defined (__STDC__) && __STDC__)]: Remove decls.
111189         * lib/error.c: Include error.h first, to check interface.
111190         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111191         (VA_START): Remove; all uses changeed to va_start.
111192         (exit, strerror): Remove decls.
111193         (error_print_progname): Prototype uncondionally.
111194         Don't include <errno.h>; no longer needed.
111195         (private_strerror): Remove.
111196         (error_tail): Always define.
111197         (error, error_at_line): Assume C89 or better; always use prototypes.
111198         * lib/fatal.c: Include "fatal.h" first, to test interface.
111199         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111200         (VA_START): Remove; all uses changed to va_start.
111201         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
111202         this case.
111203         (exit): Remove decl.
111204         (fatal): Prototype unconditionally.  Assume va_start works.
111205         Abort at end, to pacify gcc.
111207         * lib/euidaccess.c (main): Define with a prototype.
111209         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
111211         * lib/exitfail.c: Include <stdlib.h> unconditionally.
111213         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
111214         prototypes.
111215         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
111216         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
111217         (getenv): Remove decl.
111218         (fnmatch): Define using a prototype.
111219         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
111220         (FCT): Define using a prototype.
111222         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
111224         * lib/gethostname.c: Include <stddef.h>.
111225         (gethostname): Define with prototype.  Length is size_t, not int.
111227 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111229         Assume C89 or better; remove K&R cruft.
111230         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
111231         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
111232         string.h, getenv, malloc.
111233         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
111234         headers.
111235         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
111236         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
111237         do not check for strerror.
111238         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
111239         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
111240         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
111241         do not check for doprnt or vprintf.
111242         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
111243         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
111245 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111247         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
111248         getversion.c should have been removed then, but was accidentally
111249         preserved.
111251         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
111252         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
111254 2003-09-08  Karl Berry  <karl@gnu.org>
111256         * config/config.sub, config.guess, srclistvars.sh: update from savannah
111257                 config, forget about prep.
111259         * config/depcomp, missing: update from automake.
111261 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111263         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
111264         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111266 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111268         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
111269         copy_tm_result.  Bug reported by Simon Josefsson in
111270         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111272 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111274         * m4/time_r.m4: New file.
111275         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
111276         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
111277         is. Check for timegm declaration.
111278         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
111279         Do not check for gmtime_r.
111280         Replace mktime if __mktime_internal does not exist and if mktime
111281         hasn't been replaced already.
111283 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111285         * lib/time_r.c, lib/time_r.h: New files.
111287         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
111288         __localtime_r.
111289         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
111290         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
111292         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111293         __gmtime_r.
111294         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111295         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111296         Include <time_r.h>.
111298         * lib/timegm.c: Switch to glibc implementation, with the following
111299         changes:
111300         [defined HAVE_CONFIG_H]: Include <config.h>.
111301         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111302         (__mktime_internal) [!defined _LIBC]: New decl.
111303         (__gmtime_r) [!defined _LIBC]: New macro and function.
111304         (timegm): Use a prototype, since gnulib assumes C89.
111305         Do not bother declaring tmp to be const, as it's not really usefu.
111306         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111307         (timegm): Declare only if HAVE_DECL_TIMEGM.
111309 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111311         * MODULES.html.sh (func_all_modules): Add time_r.
111312         * modules/time_r: New file.
111313         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111314         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111316 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111318         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111319         Bug reported by Lute Kamstra in
111320         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111322         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111323         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111324         course with correspondingly smaller numbers for tomorrow and
111325         yesterday.  From Tadayoshi Funaba.  Originally installed into
111326         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111327         coreutils merge?).
111329 2003-08-31  Simon Josefsson  <jas@extundo.com>
111331         * modules/timegm: New file.
111332         * MODULES.html.sh (func_all_modules): Add timegm.
111334 2003-08-31  Simon Josefsson  <jas@extundo.com>
111336         * m4/timegm.m4: New file.
111338 2003-08-31  Simon Josefsson  <jas@extundo.com>
111340         * lib/timegm.h: New file.
111341         * lib/timegm.c: New file.  Based on
111342         wget-1.8.2/src/http.c:mktime_from_utc.
111344 2003-08-31  Karl Berry  <karl@gnu.org>
111346         * lib/argp.h: update from libc.
111348 2003-08-28  Bruno Haible  <bruno@clisp.org>
111350         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111351         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111352         followed by '#define fnmatch fnmatch_posix' gives an error.
111354 2003-08-28  Bruno Haible  <bruno@clisp.org>
111356         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111357         warning on QNX, which defines O_BINARY to 000000.
111359 2003-08-27  Jim Meyering  <jim@meyering.net>
111361         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111362         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111363         would fail after 32.  Reported by Danny Levinson.  Details here:
111364         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111366 2003-08-24  Bruno Haible  <bruno@clisp.org>
111368         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111369         MSVC7 <stdio.h> is included later.
111371 2003-08-22  Simon Josefsson  <jas@extundo.com>
111373         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111375 2003-08-20  Karl Berry  <karl@gnu.org>
111377         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111379 2003-08-20  Bruno Haible  <bruno@clisp.org>
111381         * modules/progname: New file.
111382         * MODULES.html.sh (func_all_modules): Add progname.
111384 2003-08-20  Bruno Haible  <bruno@clisp.org>
111386         * lib/progname.h: New file, from GNU gettext.
111387         * lib/progname.c: New file, from GNU gettext.
111388         * lib/progreloc.c: New file, from GNU gettext.
111390 2003-08-19  Jim Meyering  <jim@meyering.net>
111392         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111393         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111395 2003-08-19  Bruno Haible  <bruno@clisp.org>
111397         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111398         more.
111400 2003-08-19  Bruno Haible  <bruno@clisp.org>
111402         * lib/xstrdup.c: Assume <string.h> exists.
111404 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111406         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111407         in makefile rules.
111409 2003-08-18  Jim Meyering  <jim@meyering.net>
111411         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111412         * m4/lib-ld.m4: Likewise.
111414 2003-08-18  Jim Meyering  <jim@meyering.net>
111416         * lib/setenv.h: Indent nested cpp directive.
111417         * lib/vasnprintf.c: Remove trailing blanks.
111419 2003-08-17  Simon Josefsson  <jas@extundo.com>
111421         * modules/xstrndup: New file.
111422         * MODULES.html.sh (func_all_modules): Add xstrndup.
111424 2003-08-17  Simon Josefsson  <jas@extundo.com>
111426         * modules/argp: Fix autoconf macro name. Add more dependencies.
111428 2003-08-17  Simon Josefsson  <jas@extundo.com>
111430         * m4/xstrndup.m4: New file.
111432 2003-08-17  Simon Josefsson  <jas@extundo.com>
111434         * m4/argp.m4: New file.
111436 2003-08-17  Simon Josefsson  <jas@extundo.com>
111437             Bruno Haible  <bruno@clisp.org>
111439         * lib/xstrndup.h: New file.
111440         * lib/xstrndup.c: New file.
111442 2003-08-17  Bruno Haible  <bruno@clisp.org>
111444         * modules/strndup (Files, Include): Add lib/strndup.h.
111446 2003-08-17  Bruno Haible  <bruno@clisp.org>
111448         * modules/euidaccess (Files): Add lib/euidaccess.h.
111450 2003-08-17  Bruno Haible  <bruno@clisp.org>
111452         * lib/strndup.h: New file.
111454 2003-08-17  Bruno Haible  <bruno@clisp.org>
111456         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111457         like AC_GNU_SOURCE.
111458         * modules/extensions (configure.ac): Comment out the invocation of
111459         gl_USE_SYSTEM_EXTENSIONS.
111461 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111463         Merges from coreutils, etc.
111464         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111465         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111466         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111467         fixing a typo.
111468         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111469         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111471 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111473         Document merge from coreutils.
111474         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111475         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111476         * modules/utime: Add m4/utimes-null.m4.
111478 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111480         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111481         space, undoing this 2003-08-12 change:
111482         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111484 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111486         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111487         strtoul.c from libc, undoing this 2003-08-12 change:
111488         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111490 2003-08-16  Jim Meyering  <jim@meyering.net>
111492         Merges from coreutils.
111493         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111494         prefix.  Adjust cache variables similarly.  Create 500 rather than
111495         just 300 files, to exercise bug on Darwin6.5, too.
111496         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111497         $missing_dir.
111498         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111499         AM_SYS_POSIX_TERMIOS.
111500         Reported by mkc@mathdogs.com.
111501         Also change use of $am_cv_sys_posix_termios
111502         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111503         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111504         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111505         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111506         in /proc/mounts until it finds one with matching device number.  This
111507         is unnecessary when the FILE argument *is* a mount point.  No stat call
111508         is necessary in that case.  So, disable the statvfs-testing code on
111509         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111510         as RedHat bug# 84846.
111511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111512         to 1MB, so as not to render systems with no stack size limit (e.g.,
111513         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111514         Include <unistd.h>.  On some systems,
111515         it is required for the definition of _SC_PAGESIZE.
111517 2003-08-16  Jim Meyering  <jim@meyering.net>
111519         Merge from coreutils.
111520         * lib/xstrtoimax.c: #else #if -> #elif.
111521         * lib/xstrtoumax.c: Likewise.
111523 2003-08-16  Jim Meyering  <jim@meyering.net>
111525         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111526         * m4/utimes.m4: Removed.
111527         * m4/utimes-null.m4: Renamed from utimes.m4.
111529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111530         to 1MB, so as not to render systems with no stack size limit (e.g.,
111531         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111532         Include <unistd.h>.  On some systems,
111533         it is required for the definition of _SC_PAGESIZE.
111535 2003-08-16  Jim Meyering  <jim@meyering.net>
111536         and Paul Eggert  <eggert@cs.ucla.edu>
111538         Merges from coreutils, etc.
111540         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111541         using the latest version from cvs.  This avoids problems with #line
111542         directives using a vendor (Sun) compiler.
111543         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
111544         Don't set GETGROUPS_LIB here; now it's
111545         done via getgroups.m4's wrapper function.
111546         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
111547         rather than just in sh-util/configure.in, so that the
111548         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
111549         same.
111550         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
111551         AC_FUNC_GETLOADAVG where to find getloadavg.c.
111552         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
111553         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
111554         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
111555         Remove code that is now done by the newly-required macros.
111556         Append $(EXEEXT) to DF_PROG.
111557         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
111558         Do not invoke or require the following here,
111559         since prereq.m4 or some gnulib .m4 now does this for us:
111560         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
111561         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
111562         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
111563         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
111564         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
111565         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
111566         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
111567         AC_FUNC_OBSTACK.
111568         Do not replace the following functions, as this is now the job
111569         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
111570         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
111571         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
111572         atexit getpass, strdup, getpagesize.
111573         Replace 'raise'.
111574         Do not check for the following functions, as this is now the job
111575         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
111576         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
111577         setregid.
111578         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
111579         Check for sys/sysctl.h.
111580         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
111581         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
111582         of checking for ssize_t ourselves.
111584         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
111585         Require every macro that gnulib/modules/* suggests for us.
111586         (jm_PREREQ_ADDEXT): New macro.
111587         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
111588         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
111590         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
111591         (gl_PHYSMEM): Use it.
111592         Also check for `table' function.
111593         Check for new headers and functions.
111594         Add check for sys/sysmp.h.
111595         With suggestions from Kaveh Ghazi.
111596         Ignore headers that are present but cannot be compiled.  This
111597         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
111598         C 5.4.
111600 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111602         Document merge from coreutils.
111603         * modules/userspec: Depend on posixver.
111604         * modules/strftime: Depend on tzset.
111606 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111608         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
111609         rather than tab, after '#' in shell-script copyright notices.
111610         Suggested by Bruno Haible.
111612 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111614         * config/srclist-update: Use three spaces, rather than tab, after '#'
111615         in shell-script copyright notices.  Suggested by Bruno Haible.
111616         Remove unnecessary parenthesization in regular expression.
111618 2003-08-15  Jim Meyering  <jim@meyering.net>
111620         Merge from coreutils.
111621         * lib/xgethostname.c: Include <stdlib.h>.
111622         (xghostname): Don't exit for anything other than memory-related
111623         failure; just return NULL.
111624         * lib/userspec.c: Include "posixver.h".
111625         (parse_user_spec): Accept `.' as a separator only
111626         in pre-POSIX-200112 mode.
111627         * lib/strtoimax.c: Use #elif rather than #else #if.
111628         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
111629         Remove function, now that we can rely on a working tzset function.
111630         [!_LIBC]: Ensure that the required autoconf test has been run.
111631         [!defined _NL_CURRENT && HAVE_STRFTIME]:
111632         Use underlying_strftime for %r.
111633         * lib/sha.c: Merge in some clean-up and optimization changes from
111634         glibc.
111635         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
111636         Ensure that it is a multiple of 64.
111637         Rearrange loop exit tests so as to avoid performing an
111638         additional fread after encountering an error or EOF.
111639         * lib/realloc.c: Update copyright date.
111641 2003-08-15  Jim Meyering  <jim@meyering.net>
111642         and Paul Eggert  <eggert@twinsun.com>
111644         Merge from coreutils.
111645         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
111646         member but strut utmpx does not.  Needed for AIX 4.3.3.
111647         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
111649 2003-08-15  Jim Meyering  <jim@meyering.net>
111650         and Paul Eggert  <eggert@cs.ucla.edu>
111652         Merges from coreutils, etc.
111653         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
111654         Require gl_FUNC_TZSET_CLOBBER.
111655         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
111656         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
111657         members.
111659 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111661         Help the merge from coreutils.
111662         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
111663         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
111664         * m4/tzset.m4: Use it too.
111666 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111668         * modules/tzset: New file.
111670 2003-08-14  Jim Meyering  <jim@meyering.net>
111672         Merges from coreutils.
111673         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
111674         variable names, rather than @FNMATCH_H@.
111675         * modules/alloca: Likewise for $(ALLOCA_H).
111677         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
111678         the three copies of the literal target, `fnmatch.h'.
111679         * modules/alloca (alloca.h): Likewise.
111681 2003-08-14  Jim Meyering  <jim@meyering.net>
111683         Merge from coreutils.
111684         * m4/tzset.m4: New file.
111685         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
111686         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
111687         otherwise, AIX 5.1 systems would end up using the latter.
111688         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
111689         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
111690         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
111691         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
111693 2003-08-14  Jim Meyering  <jim@meyering.net>
111695         Merge from coreutils.
111696         * lib/obstack.h: Whitespace changes.
111697         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
111698         and xcalloc return values.
111699         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
111700         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
111701         hang on OSF/1 5.1 for DIR on both local and remote file systems.
111702         Reported by (and fix confirmed by) Nelson H. F. Beebe.
111703         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111704         error from mntctl.
111705         Use mntctl's return value to drive the entry-processing loop, since
111706         we can't rely on the value of the vmt_length member in the last
111707         entry.  On some systems doing so could result in exhausting
111708         virtual memory.  Based in part on a patch from Mike Jetzer.
111710 2003-08-14  Jim Meyering  <jim@meyering.net>
111711         and Paul Eggert  <eggert@twinsun.com>
111713         Merges from coreutils, plus other fixes.
111714         * lib/physmem.c: Merge in portability changes from gcc/libiberty
111715         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
111716         for credits and details.  Thanks to Kaveh Ghazi for helping
111717         to keep these files in sync.
111718         (ARRAY_SIZE): Define it.
111719         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
111720         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
111721         (memcasecmp): Don't assume size_t fits in unsigned int.
111722         Remove casts and duplicate code.
111723         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
111724         (memcpy): Remove definition.
111725         Merge in some clean-up and optimization changes from glibc.
111726         [BLOCKSIZE]: Move definition to top of file.
111727         Ensure that it is a multiple of 64.
111728         Rearrange loop exit tests so as to avoid performing an
111729         additional fread after encountering an error or EOF.
111730         * lib/md5.h (md5_uintptr): Define.
111731         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
111732         return to the initial working directory.  Preserve errno
111733         for caller.
111734         * lib/idcache.c: Include "xalloc.h".
111735         (xmalloc, xrealloc): Remove decls.
111736         (getuser): Remove casts no longer required in C89.
111737         * lib/human.c: Include stdio.h, for sprintf.
111738         * lib/group-member.c: Include "xalloc.h".
111739         (xmalloc, xrealloc): Remove decls.
111740         (get_group_info): Remove casts no longer required in C89.
111741         * lib/getusershell.c (readname): Remove casts no longer required in
111742         C89.
111743         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
111744         * lib/getline.c: Whitespace fix, from coreutils.
111746 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111748         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
111749         Check for isascii.
111751         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111752         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111753         Undo previous (whitespace-only) change.
111755 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111757         * lib/exclude.c: Include <ctype.h>
111758         (IN_CTYPE_DOMAIN): New macro.
111759         (is_space): New fn.
111760         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
111761         and empty lines.
111763         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111764         Undo previous (whitespace-only) change.
111766 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111768         * config/srclist-update: Change update back to the old behavior,
111769         leaving whitespace alone.  Use one 'sed' command rather than a
111770         pipeline.
111771         (fixlicense): Now a variable, not a function.
111772         (remove_trailing_blanks): Remove.
111773         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
111774         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111775         Undo previous (whitespace-only) change.
111777 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111779         Merge from coreutils.
111780         * modules/euidaccess: Add lib_SOURCES, include for new
111781         file euidaccess.h
111783 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111785         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111786         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111787         Normalize leading white space and remove trailing white space.
111789         Merge from coreutils
111790         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
111792         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
111793         0.12.1.  These files are now being upgraded automatically by
111794         ../config/srclist-update.
111796 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111798         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111799         Normalize leading white space and remove trailing white space.
111800         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
111801         notice, as per ../config/srclist-update.
111803         Merge from coreutils.
111804         * lib/euidaccess.h: New file.
111805         * lib/euidaccess.c: Include it.
111806         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
111807         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
111808         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
111810 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111812         * config/srclist-update: Add copyright notice.
111813         (remove_id_lines, remove_trailing_blanks): New constants.
111814         (fixfile): Use them to normalize spacing a bit in copied files.
111815         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111816         Normalize leading white space and remove trailing white space.
111818         * config/texinfo.tex: Sync with texinfo.
111820         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
111821         strtoul.c from libc, to merge coreutils whitespace changes.
111823         * config/srclist.txt: Get the following m4 files from gettext:
111824         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
111825         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
111826         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
111827         wint_t.m4.
111829 2003-08-12  Karl Berry  <karl@gnu.org>
111831         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
111832         been made.
111834 2003-08-11  Paul Eggert  <eggert@twinsun.com>
111836         * modules/gnu-source, m4/gnu-source.m4:
111837         Remove; we're assuming Autoconf 2.54 or later now.
111838         Suggested by Bruno Haible.
111839         * MODULES.html.sh (func_all_modules): Remove gnu-source.
111841 2003-08-11  Bruno Haible  <bruno@clisp.org>
111843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
111845 2003-08-11  Bruno Haible  <bruno@clisp.org>
111847         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
111848         (vasnprintf): Use it instead of wcslen.
111850 2003-08-11  Bruno Haible  <bruno@clisp.org>
111852         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
111853         value to ensure that _Bool promotes to int. Use #define for _Bool when
111854         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
111856 2003-08-10  Karl Berry  <karl@gnu.org>
111858         * lib/regex.h: update from libc (whitespace fix).
111860 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111862         Merge some files from coreutils.  These changes were
111863         originally made by Jim Meyering.
111864         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
111865         many older Unixes require this.
111866         * lib/alloca.c (alloca): Remove cast to argument of free;
111867         no longer needed in C89.
111868         * lib/alloca_.h, regex.h: Fix white space to match
111869         what GNU indent does.
111871 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111873         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
111874         apparently Emacs's Unicode mode got confused before my 2003-08-05
111875         checkin.
111877 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111879         * m4/extensions.m4: New file.
111880         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
111881         Require gl_USE_SYSTEM_EXTENSIONS.
111882         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
111883         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
111885 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111887         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
111888         * modules/extensions, modules/gnu-source: New files.
111889         * modules/timespec, modules/unlocked-io: Depend on extensions.
111891 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111893         * modules/restrict: New file.
111894         * MODULES.html.sh (func_all_modules): Add restrict.
111895         * modules/regex: Depend on restrict.
111897 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111899         * m4/restrict.m4: New file.
111900         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
111902 2003-08-07  Bruno Haible  <bruno@clisp.org>
111904         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
111905         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
111907 2003-08-07  Bruno Haible  <bruno@clisp.org>
111909         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
111910         makes the module 'getndelim2' compatible with the module 'getline'.
111912 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111914         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
111915         byte with "\201" to avoid glitches when editing that source file
111916         with multi-gnome-terminal.
111918 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111920         * lib/bumpalloc.h: Remove.
111922 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111924         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
111925         * modules/bumpalloc: Remove.
111927 2003-08-04  Paul Eggert  <eggert@twinsun.com>
111929         * lib/getloadavg.c: Change copyright notice and spacing to conform to
111930         GNU coding style.
111932         Merge from coreutils.
111933         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
111934         1. From glibc.
111935         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
111936         from Karl Berry, implemented by Jim Meyering.
111937         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
111938         from Dmitry V. Levin.
111939         Remove anachronistic cast of xrealloc.
111940         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
111941         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
111942         type. Otherwise, it wouldn't compile with at least /bin/cc on
111943         ymp-cray-unicos9.0.2.X.
111944         Combine two mostly-identical uses of alloca into one.
111945         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
111947 2003-08-04  Dave Love  <d.love@dl.ac.uk>
111949         [From Emacs.]
111951         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
111952         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
111953         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
111954         obsolete NLIST_NAME_UNION.
111955         [__GNU__]: Undef BSD and FSCALE.
111956         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
111958 2003-08-03  Paul Eggert  <eggert@twinsun.com>
111960         * lib/stdbool_.h (_Bool): Make it signed char, instead of
111961         an enum type, so that it's guaranteed to promote to int.  See:
111962         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
111964 2003-08-03  Karl Berry  <karl@gnu.org>
111966         * config/depcomp: update from automake.
111968 2003-07-31  Paul Eggert  <eggert@twinsun.com>
111970         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
111971         (strerror): Don't assume that a printable int fits in 14 bytes.
111973 2003-07-31  Bruno Haible  <bruno@clisp.org>
111975         * modules/getpass-gnu: New file.
111976         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
111978 2003-07-31  Bruno Haible  <bruno@clisp.org>
111980         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
111982 2003-07-24  Karl Berry  <karl@gnu.org>
111984         * config/missing: update from automake.
111986 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
111987             Bruno Haible  <bruno@clisp.org>
111989         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
111990         * lib/getline.c (getline, getdelim): Likewise.
111991         Remove _GNU_SOURCE define; now it's defined in config.h through
111992         m4/getline.m4.
111994 2003-07-23  Karl Berry  <karl@gnu.org>
111996         * config/config.sub: update from prep.
111998 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112000         * modules/xalloc (Depends-on): Add exitfail.
112001         * modules/xmemcoll: Likewise.
112003 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112005         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
112006         over-parenthesization in macros.
112008         Sync with coreutils.
112010         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
112011         required by C99.
112013         Use `exit_failure' for xalloc and xmemcoll instead of their own
112014         private exit-failure variables.
112015         * lib/xalloc.h (xalloc_exit_failure): Remove.
112016         * lib/xmalloc.c: Likewise.  Include exitfail.h.
112017         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
112018         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
112019         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
112020         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
112022 2003-07-20  Jim Meyering  <jim@meyering.net>
112024         * modules/closeout (Depends-on): Add exitfail.
112025         Suggestion from Bruno Haible.
112027 2003-07-19  Karl Berry  <karl@gnu.org>
112029         * config/config.sub: update from prep.
112031 2003-07-18  Paul Eggert  <eggert@twinsun.com>
112033         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
112034         Remove.
112035         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
112036         to test that it can stand by itself.  Include "exitfail.h".
112037         Clients should set exit_failure instead.
112038         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
112040 2003-07-18  Bruno Haible  <bruno@clisp.org>
112042         * modules/getndelim2: New file.
112043         * modules/getline: Share files with module getndelim2.
112044         * modules/getnline: Depend on getndelim2 instead of sharing files with
112045         it. Add getnline.c to lib_SOURCES.
112046         * MODULES.html.sh (func_all_modules): Add getndelim2.
112048 2003-07-18  Bruno Haible  <bruno@clisp.org>
112050         * m4/getndelim2.m4: New file.
112051         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
112052         invoke gl_PREREQ_GETNDELIM2.
112053         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
112054         gl_PREREQ_GETNDELIM2.
112055         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
112056         gl_GETNDELIM2.
112058 2003-07-18  Bruno Haible  <bruno@clisp.org>
112060         * lib/getndelim2.h: New file.
112061         * lib/getndelim2.c: Make into a module of its own. Include config.h,
112062         getndelim2.h.
112063         (getndelim2): Make non-static. Change return type to ssize_t.
112064         * lib/getline.h: Change argument names.
112065         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
112066         * lib/getnline.c: Include getndelim2.h.
112068 2003-07-18  Andreas Schwab  <schwab@suse.de>
112070         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
112072 2003-07-17  Karl Berry  <karl@gnu.org>
112074         * config/config.sub: update from prep.
112076 2003-07-17  Bruno Haible  <bruno@clisp.org>
112078         * modules/getnline: New file.
112079         * modules/getline: Add lib/getndelim2.c to source file list.
112080         * MODULES.html.sh (func_all_modules): Add getnline.
112082 2003-07-17  Bruno Haible  <bruno@clisp.org>
112084         * m4/getnline.m4: New file.
112086 2003-07-17  Bruno Haible  <bruno@clisp.org>
112088         * m4/Makefile.am.in: Remove file.
112089         * m4/Makefile.am: Remove file.
112090         * m4/Makefile.in: Remove file.
112092 2003-07-17  Bruno Haible  <bruno@clisp.org>
112094         * lib/getnline.h: New file.
112095         * lib/getnline.c: New file.
112096         * lib/getndelim2.c: New file, extracted from getline.c.
112097         (getndelim2): Renamed from getdelim2, with added nmax argument.
112098         * lib/getline.c: Include getndelim2.c.
112099         (getdelim2): Moved out to getndelim2.c.
112100         (getline, getdelim): Update.
112102 2003-07-17  Bruno Haible  <bruno@clisp.org>
112104         * lib/Makefile.am: Remove file.
112105         * lib/Makefile.in: Remove file.
112107 2003-07-17  Bruno Haible  <bruno@clisp.org>
112109         * configure.in: Remove file.
112110         * Makefile.in: Remove file.
112112 2003-07-17  Bruno Haible  <bruno@clisp.org>
112114         * MODULES.html.sh: Put the </BODY> right before </HTML>.
112116 2003-07-16  Karl Berry  <karl@gnu.org>
112118         * config/srclist-update: was running fixlicense twice, which caused
112119                 texinfo.tex to be nullified for some reason.  Simplify,
112120                 $gplsrc is no longer needed as far as I can see?
112122 2003-07-16  Jim Meyering  <jim@meyering.net>
112124         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
112126 2003-07-15  Paul Eggert  <eggert@twinsun.com>
112128         * config/srclist.txt: Get the following files from gettext-runtime/intl
112129         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
112130         ref-del.sin.  From Bruno Haible.
112131         * config/srclist-update (fixfile): Change grep pattern again, since the
112132         previous fix didn't work (there was another trailing $).  Use
112133         '[$]' to escape the $s.
112135 2003-07-15  Karl Berry  <karl@gnu.org>
112137         * lib/vasnprintf.c: update from gettext.
112139 2003-07-15  Karl Berry  <karl@gnu.org>
112141         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
112142         gets expanded when surrounded by '$'.
112144 2003-07-15  Jim Meyering  <jim@meyering.net>
112146         * modules/save-cwd: Don't depend on error.  From Derek Price.
112148 2003-07-15  Jim Meyering  <jim@meyering.net>
112150         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
112152 2003-07-14  Simon Josefsson  <jas@extundo.com>
112154         * modules/mempcpy: New file.
112155         * MODULES.html.sh (func_all_modules): Add mempcpy.
112157 2003-07-14  Simon Josefsson  <jas@extundo.com>
112159         * m4/mempcpy.m4: New file.
112161 2003-07-14  Simon Josefsson  <jas@extundo.com>
112163         * lib/mempcpy.h: New file.
112164         * lib/mempcpy.c: New file.
112166 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112168         * modules/getdate, modules/posixtm: Depend on mktime.
112170 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112172         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
112173         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
112174         unicodeio.c, unicodeio.h, unlocked-io.h:
112175         Switch from LGPL to GPL.
112177 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112179         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
112180         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
112181         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
112182         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
112183         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
112184         updated automatically by ../config/srclist-update.  This changes
112185         their license from LPGL to GPL.
112187 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112189         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
112190         assumed to refer to the root of the most recent stable gettext version.
112191         * config/srclistvars.sh: Add defaults for eggert.
112192         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
112193         Match "This program" as well as "The program".  This is needed
112194         for gettext.
112196 2003-07-14  Jim Meyering  <jim@meyering.net>
112198         Don't emit diagnostics.  Let callers do that.
112199         * lib/save-cwd.c: Don't include "error.h".
112200         (save_cwd): Don't call error.  Ensure that errno is valid
112201         when returning nonzero.
112203         * lib/save-cwd.h (restore_cwd): Update prototype.
112204         * lib/save-cwd.c (restore_cwd): Remove two parameters.
112205         Simplify.  Don't call error upon failure.  Let callers do that.
112206         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
112207         when auditing is enabled.  But don't bother updating the #if.
112209 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
112211         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
112212         it breaks C++ compilation.
112213         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
112215 2003-07-10  Simon Josefsson  <jas@extundo.com>
112217         * modules/strchrnul (Makefile.am): Add strchrnul.h.
112219 2003-07-10  Jim Meyering  <jim@meyering.net>
112221         * m4/clock_time.m4: Remove trailing blank.
112222         * m4/intmax_t.m4: Likewise.
112224 2003-07-10  Jim Meyering  <jim@meyering.net>
112226         * lib/vasnprintf.c: Remove trailing blanks.
112227         Make cpp indentation consistent.
112229 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112231         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
112232         posixver.c, strftime.c, strnlen.c, strverscmp.c:
112233         Switch from LGPL to GPL.
112235 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112237         * config/srclist.txt: Sort sublists.  Add
112238         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
112239         that differ from gnulib for one reason or another; we'd like this list
112240         to be smaller but for now let's document what we have.
112242 2003-07-08  Paul Eggert  <eggert@twinsun.com>
112244         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
112245         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
112246         and sweeter "eval x=$x".
112247         * config/srclist.txt: Get lib/argp* from glibc.
112249 2003-07-07  Paul Eggert  <eggert@twinsun.com>
112251         * lib/mktime.c: Fix some boundary cases and remove need for floating
112252         point.
112254         Issue a compile-time diagnostic if time_t is floating point, or if
112255         two's complement arithmetic is not in effect, or if arithmetic
112256         right shift does not propagate the sign.  These assumptions were
112257         all in the original code but they weren't checked.
112259         (TIME_T_MIDPOINT, verify): New macros.
112260         (__isleap): Remove; it has integer overflow problems.
112261         (leapyear): New function, without those problems.
112262         (ydhms_tm_diff): Remove; splitting into two parts.
112263         (ydhms_diff): New function, containing the arithmetic part of
112264         the old ydhms_tm_diff function.  Issue a compile-time
112265         diagnostic if we are not using C99 integer division.
112266         Avoid casts when possible.
112267         (guess_time_tm): New function, containing the checking part of
112268         the old ydhms_tm_diff function.  Return the new value, rather than
112269         the difference between it and the old.  Accept a new argument T
112270         so that *T specifies the old value.  Check for overflow in the result.
112272         (__mktime_internal): Use a time_t offset, not a long int offset.
112273         This undoes the 2003-06-04 change, which is no longer needed now
112274         that we have better overflow checking.
112275         (localtime_offset): Likewise.
112277         (__mktime_internal): Avoid harmful overflow on hosts where time_t
112278         and long are 64-bit but int is only 32-bit.
112279         (ydhms_diff): Use long int to store year1 and yday1.
112280         Issue a compile-time diagnostic if long int is not wide enough.
112282         (__mktime_internal): Use long int to store adjusted year and yday.
112283         Use plain C rather than preprocessor commands, if that doesn't
112284         affect efficiency.
112285         Check for overflow (and try to repair) after each probe
112286         rather than checking only at the very end.  This avoids some bugs
112287         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
112288         does not equal GMT offset at maximum time).
112289         Use integer to check for overflow rather than floating point; this
112290         is more portable to non-IEEE hosts, and is a tad faster.
112291         When we detect that we are oscillating between two values,
112292         don't check whether tm_isdst has the requested value, since
112293         we already know the answer.  When tm_isdst has the wrong value,
112294         use a different heuristic to find the right one, based on the
112295         extreme values actually observed in practice in tz2003a,
112296         rather than the (overly optimistic) "previous 3 calendar quarters".
112298         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112299         "T const" to accommodate glibc style.
112300         (check_result): Use less-confusing report format.  "long" -> "long int.
112301         (main): Likewise.
112302         Don't loop if the iteration overflows time_t.
112303         Allow a negative step in the iteration.
112305 2003-07-06  Karl Berry  <karl@gnu.org>
112307         * config/depcomp: update from automake.
112308         * config/config.sub: update from prep.
112310 2003-07-03  Karl Berry  <karl@gnu.org>
112312         * config/config.guess: update from prep.
112314 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112316         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112317         xreadlink.c now includes it unconditionally.
112319 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112321         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112322         having it depend on HAVE_SYS_TYPES_H.
112324 2003-07-01  Bruno Haible  <bruno@clisp.org>
112326         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112327         <sys/types.h> should be sufficient.
112328         Reported by Paul Eggert.
112330 2003-06-26  Karl Berry  <karl@gnu.org>
112332         * config/depcomp: update from automake.
112334 2003-06-26  Bruno Haible  <bruno@clisp.org>
112336         * modules/human: Depend on module stdbool.
112338 2003-06-25  Bruno Haible  <bruno@clisp.org>
112340         * modules/readlink: New file.
112341         * modules/xreadlink: Depend on it.
112342         * MODULES.html.sh (func_all_modules): Add readlink.
112344 2003-06-25  Bruno Haible  <bruno@clisp.org>
112346         * m4/readlink.m4: New file.
112348 2003-06-25  Bruno Haible  <bruno@clisp.org>
112350         * lib/readlink.c: New file.
112352 2003-06-22  Karl Berry  <karl@gnu.org>
112354         * config/srclist.txt: update mkinstalldirs from automake.
112355         * config/mkinstalldirs: update.
112357 2003-06-22  Bruno Haible  <bruno@clisp.org>
112359         Portability to mingw32.
112360         * m4/ssize_t.m4: New file, from GNU gettext.
112361         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112362         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112364 2003-06-22  Bruno Haible  <bruno@clisp.org>
112366         * modules/safe-read: Add m4/ssize_t.m4.
112367         * modules/xreadlink: Add m4/ssize_t.m4.
112369 2003-06-20  Bruno Haible  <bruno@clisp.org>
112371         Assume C89, so PARAMS isn't needed.
112372         * lib/unicodeio.h (PARAMS): Remove.
112373         * lib/unicodeio.c: Don't use PARAMS.
112375 2003-06-18  Karl Berry  <karl@gnu.org>
112377         * config/config.{guess,sub}: update from prep.
112379 2003-06-18  Jim Meyering  <jim@meyering.net>
112381         Merge changes from coreutils.
112382         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112383         Remove explicit declarations of xmalloc and realloc.
112384         Include xalloc.h.
112385         (read_utmp): Remove anachronistic cast of xmalloc.
112387 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112389         Assume C89, so PARAMS isn't needed.
112390         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112391         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112392         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112393         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112394         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112395         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112396         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112397         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112398         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112399         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112400         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112401         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112402         no longer needed. Anyway, config.h should always be included before any
112403         other file.
112405 2003-06-11  Simon Josefsson  <jas@extundo.com>
112407         * modules/sysexits: New file.
112408         * MODULES.html.sh (func_all_modules): Add sysexits.
112410 2003-06-11  Simon Josefsson  <jas@extundo.com>
112412         * lib/sysexit_.h: New file.
112414 2003-06-11  Derek Price  <derek@ximbiot.com>
112416         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112417         necessary.
112419 2003-06-11  Bruno Haible  <bruno@clisp.org>
112421         * m4/sysexits.m4: New file.
112423 2003-06-10  Simon Josefsson  <jas@extundo.com>
112425         * lib/argp.h: New file, from glibc.
112426         * lib/argp-ba.c: New file, from glibc.
112427         * lib/argp-eexst.c: New file, from glibc.
112428         * lib/argp-fmtstream.c: New file, from glibc.
112429         * lib/argp-fmtstream.h: New file, from glibc.
112430         * lib/argp-fs-xinl.c: New file, from glibc.
112431         * lib/argp-help.c: New file, from glibc.
112432         * lib/argp-namefrob.h: New file, from glibc.
112433         * lib/argp-parse.c: New file, from glibc.
112434         * lib/argp-pv.c: New file, from glibc.
112435         * lib/argp-pvh.c: New file, from glibc.
112436         * lib/argp-xinl.c: New file, from glibc.
112438 2003-06-10  Simon Josefsson  <jas@extundo.com>
112440         * modules/strchrnul: New file.
112442 2003-06-10  Simon Josefsson  <jas@extundo.com>
112444         * modules/argp: New file.
112446 2003-06-10  Simon Josefsson  <jas@extundo.com>
112448         * m4/strchrnul.m4: New file.
112450 2003-06-10  Simon Josefsson  <jas@extundo.com>
112452         * lib/strchrnul.h: New file.
112453         * lib/strchrnul.c: New file.
112455 2003-06-10  Bruno Haible  <bruno@clisp.org>
112457         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112459 2003-06-07  Karl Berry  <karl@gnu.org>
112461         * config/config.{guess,sub}: update from prep.
112463 2003-06-07  Jim Meyering  <jim@meyering.net>
112465         * modules/strtod: Use $(...) notation, not @...@ for
112466         AC_REPLACE'd variables.
112467         * modules/localcharset: Likewise.
112469 2003-06-07  Jim Meyering  <jim@meyering.net>
112471         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112472         in place of my name in the copyright comment.
112473         Remove definition and uses of __P.
112475         From coreutils.
112476         * lib/stat.c: Don't declare xmalloc explicitly.
112477         Instead, include "xalloc.h".
112478         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112479         xrealloc, and xcalloc return values.
112480         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112481         Improve comment.
112482         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112484 2003-06-07  Bruno Haible  <bruno@clisp.org>
112486         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112487         avoid AC_CONFIG_LINKS.
112488         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112489         fnmatch.h, to avoid AC_CONFIG_LINKS.
112490         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112492 2003-06-07  Bruno Haible  <bruno@clisp.org>
112494         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112495         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112496         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112497         directory.
112498         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112499         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112500         directory.
112502 2003-06-06  Jim Meyering  <jim@meyering.net>
112504         Merge from coreutils.
112505         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112506         Consolidate declarations and initializations of *_base* locals.
112508         Merge from coreutils.
112509         This avoids a core dump on systems without GNU putenv,
112510         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112511         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112512         (unsetenv): New static function, from GNU libc.
112513         (rpl_putenv): Use it.
112515         * lib/modechange.c: Remove trailing blanks.
112517         Merge from coreutils.
112518         * lib/fsusage.c: Remove declaration of statfs.
112519         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112521         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112523 2003-06-06  Jim Meyering  <jim@meyering.net>
112525         * lib/stdbool_.h: Renamed from stdbool.h.in.
112527 2003-06-06  Jim Meyering  <jim@meyering.net>
112528             Bruno Haible  <bruno@clisp.org>
112530         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112531         Adjust Makefile.am snippet not to redirect directly to target.
112532         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112534 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112536         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112537         mismatch, look in future quarters as well as past.  This fixes a
112538         bug when processing fall-backwards gaps immediately after a long
112539         period of daylight-saving time.
112541         * lib/mktime.c: Assume freestanding C89 or better.
112542         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112543         (__P): Remove; not used.
112544         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
112545         (mktime, not_equal_tm, print_tm, check_result,
112546         main): Use prototypes.  Use const * where appropriate.
112547         (main): Fix typo in testing code that uncovered by above changes.
112548         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
112550 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112552         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
112553         locale.h, localeconv.  This merges changes from coreutils.
112555         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
112556         It can be removed after the next Autoconf is released.
112557         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
112558         needed.
112560 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112562         * lib/mktime.c: Fix Debian bug 177940
112563         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
112564         (localtime_offset): Now long int, not time_t, because we want it
112565         to be guaranteed to be signed.  All uses changed.
112566         (__mktime_internal): If overflow would occur when adding offset,
112567         don't add it.
112569         Merge 'human' changes from coreutils.  Rewrite to support
112570         locale-specific notations like thousands separators.
112571         * lib/human.c: Simplify authorship notice.
112572         Include human.h immediately after config.h.
112573         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
112574         <limits.h>: Do not include, since human.h does.
112575         (SIZE_MAX, UINTMAX_MAX): New macros.
112576         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
112577         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
112578         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
112579         (power_letter): Renamed from suffixes.
112580         (generate_suffix_backwards): Remove.
112581         (adjust_value): Now takes int style (because of human.h changes)
112582         and long double value (for greater precision on some platforms).
112583         (group_number): New function.
112584         (human_readable): Use it.  Use integer options, not enum.
112585         Put the options before the sizes in the arg list.
112586         Support all the new options.
112587         The old human_readable function has been removed;
112588         use inttostr.h instead.
112589         (human_readable, default_block_size, humblock):
112590         Use uintmax_t, not int, for block sizes.
112591         (human_readable_inexact, block_size_types): Remove.
112592         (block_size_opts): New constant.
112593         (human_options): Renamed from human_block_size, with new signature
112594         that allows block sizes up to UINTMAX_MAX.  All callers changed.
112595         * lib/human.h: Add copyright and authorship notice.
112596         Include <limits.h> and <stdbool.h> unconditionally.
112597         (PARAMS): Remove.  All uses removed.
112598         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
112599         (enum human_inexact_style): Remove tag; now a nameless enum.
112600         (human_floor, human_ceiling, human_round_to_even): Now have
112601         values 2, 0, 1 rather than -1, 1, 0.
112602         (human_group_digits, human_suppress_point_zero, human_autoscale,
112603         human_base_1024, human_SI, human_B): New constants.
112604         (human_readable_inexact, human_block_size): Remove.
112605         (human_readable): Size args are now uintmax_t, not int.
112606         (human_options): New decl.
112608         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
112609         unnecessary now that we assume C89 or better.  This change
112610         imported from coreutils.
112612         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112613         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
112614         in the 2003-05-30 sync from glibc.
112616         .h files should stand alone, but we shouldn't include <sys/types.h>
112617         if we can get away with just <stddef.h>.
112619         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
112620         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
112621         rather than <sys/types.h>, as we merely need size_t.
112622         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
112623         to get size_t.
112624         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
112625         Include <stdio.h>, to get FILE.
112626         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
112627         memcasecmp.h has included <stddef.h> and all we need is size_t.
112628         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
112629         our interface, instead of including <sys/types.h>
112631 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112633         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
112634         now, as glibc mktime is buggy on non-glibc systems.
112636 2003-06-03  Karl Berry  <karl@gnu.org>
112638         * config/config.sub: update from prep.
112640 2003-06-02  Paul Eggert  <eggert@twinsun.com>
112642         [from coreutils]
112643         Fix some minor time-related bugs with POSIX time arguments.
112644         Some valid time stamps were being rejected (notably -1, and
112645         time stamps before 1900 on 64-bit hosts).  And some invalid
112646         time stamps were being accepted, e.g. September 31.
112648         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
112649         that we can return (time_t) -1 successfully.
112650         * lib/posixtm.c: Likewise.
112651         [HAVE_STDBOOL_H]: Include <stdbool.h>.
112652         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
112653         (t): Remove static var.
112654         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
112655         of static var.  All uses changed.
112656         (year): Do not reject years before 1900; they can occur with
112657         64-bit time_t.
112658         (posix_time_parse): Do not check for out-of-range components;
112659         that is now the caller's responsibility, since our checks were
112660         only approximations.
112661         (posixtime): Use mktime to check for out-of-range components,
112662         since it knows them exactly.
112663         If mktime returns (time_t) -1, check whether an error actually occurred
112664         by invoking localtime on -1.
112665         (main) [TEST_POSIXTIME]: Check for input data errors, and report
112666         posixtime failures better.
112667         Improve the test data (in comments only).
112669 2003-06-02  Karl Berry  <karl@gnu.org>
112671         * config/mkinstalldirs (version): new variable.
112672         (--version): new option.
112673         (usage): improve message.
112675 2003-05-30  Karl Berry  <karl@gnu.org>
112677         * lib/mktime.c: update from libc.
112679 2003-05-30  Bruno Haible  <bruno@clisp.org>
112681         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
112682         * config/config.rpath: Upgrade to gettext-0.12.1.
112684 2003-05-30  Bruno Haible  <bruno@clisp.org>
112686         * m4/gettext.m4: Upgrade to gettext-0.12.1.
112687         * m4/nls.m4: New file, from gettext-0.12.1.
112688         * m4/po.m4: New file, from gettext-0.12.1.
112689         * m4/progtest.m4: Upgrade to gettext-0.12.1.
112691 2003-05-30  Bruno Haible  <bruno@clisp.org>
112693         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
112694         * lib/localcharset.h: Likewise.
112695         * lib/localcharset.c: Likewise.
112697 2003-05-29  Karl Berry  <karl@gnu.org>
112699         * config/config.rpath: update from gettext.
112701 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112703         Assume the headers required for C89 freestanding compilers.
112704         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
112705         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
112706         * m4/human.m4 (gl_HUMAN): Likewise.
112707         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
112708         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
112709         * m4/userspec.m4 (gl_USERSPEC): Likewise.
112710         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
112711         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112712         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
112714 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112716         Assume the headers required for C89 freestanding compilers.
112717         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
112718         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
112719         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
112720         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
112721         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
112722         define, since <limits.h> is guaranteed to do that.
112723         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
112724         * lib/exclude.c: Include <stdbool.h> unconditionally.
112725         * lib/tempname.c: Include <stddef.h> unconditionally.
112726         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
112727         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
112728         <stddef.h> does that.
112729         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
112730         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
112731         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
112732         needed.
112733         * lib/xstrtol.c: Likewise.
112734         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
112735         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
112737         * lib/addext.c (addext): Use assignment rather than cast, to avoid
112738         warnings on some platforms.
112740         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112741         arbitrarily.
112743 2003-05-26  Jim Meyering  <jim@meyering.net>
112745         Merge in a change from coreutils:
112746         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
112747         that is guaranteed to be `no'.  Use `no_such_member' to indicate
112748         that condition, rather than `-1' which is slightly misleading.
112749         Change the name of the cache variable to have the gl_ prefix.
112750         Prompted by a patch from Richard Dawe for DJGPP.
112752 2003-05-24  Karl Berry  <karl@gnu.org>
112754         * config/config.guess: update from prep.
112756 2003-05-22  Karl Berry  <karl@gnu.org>
112758         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
112760 2003-05-20  Karl Berry  <karl@gnu.org>
112762         * config/config.guess: update from prep.
112764 2003-05-18  Karl Berry  <karl@gnu.org>
112766         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
112767         might actually be set by the user.
112769         * config/depcomp, install-sh, mdate-sh: update from automake.
112771 2003-05-17  Bruno Haible  <bruno@clisp.org>
112773         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
112774         invalid expansion for AC_EGREP_CPP.
112775         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
112776         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
112777         Suggested by Akim Demaille <akim@epita.fr> in
112778         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
112780 2003-05-12  Jim Meyering  <jim@meyering.net>
112782         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
112783         the space-padded-by-default conversion specifiers, %e, %k, %l.
112785 2003-05-12  Bruno Haible  <bruno@clisp.org>
112787         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
112788         the string is longer than 4 KB.
112790 2003-05-11  Karl Berry  <karl@gnu.org>
112792         * config/config.{guess,sub}: update from prep.
112794 2003-05-09  Bruno Haible  <bruno@clisp.org>
112796         * modules/error: Add m4/strerror_r.m4 to file list.
112798 2003-05-03  Bruno Haible  <bruno@clisp.org>
112800         Upgrade to Unicode-4.0.
112801         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
112802         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
112803         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
112804         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
112805         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
112806         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
112807         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
112808         Change width of U+E0100..U+E01EF from 1 to 0.
112810 2003-04-25  Jim Meyering  <jim@meyering.net>
112812         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
112813         of type size_t, not int.
112815 2003-04-25  Bruno Haible  <bruno@clisp.org>
112817         * lib/copy-file.c: Include <stddef.h>, for size_t.
112819 2003-04-21  Paul Eggert  <eggert@twinsun.com>
112821         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
112822         code which expansion is under static control.  Patch imported from
112823         Akim Demaille's patch to Bison; see
112824         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
112826 2003-04-14  Bruno Haible  <bruno@clisp.org>
112828         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
112830 2003-04-11  Jim Meyering  <jim@meyering.net>
112832         Merge changes from Coreutils.
112834         2003-03-22  Jim Meyering  <jim@meyering.net>
112836         * lib/strftime.c (widen): Cast alloca return value to proper type.
112838         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
112840         From GNU libc.
112841         * lib/strftime.c (my_strftime): Handle very large width
112842         specifications for numeric values correctly.  Improve checks for
112843         overflow.
112845         2003-01-19  Jim Meyering  <jim@meyering.net>
112847         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
112848         definitions.
112849         (nl_get_alt_digit) [! defined my_strftime]: Define.
112850         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
112851         _nl_get_alt_digit and _nl_get_walt_digit.
112853         * lib/strftime.c (my_strftime): Merge in locale-related changes from
112854         libc. These changes have no effect outside of _LIBC.
112856 2003-04-10  Bruno Haible  <bruno@clisp.org>
112858         * modules/findprog: New file.
112859         * MODULES.html.sh (func_all_modules): Add it.
112861 2003-04-10  Bruno Haible  <bruno@clisp.org>
112863         * m4/findprog.m4: New file.
112864         * m4/eaccess.m4: New file.
112866 2003-04-10  Bruno Haible  <bruno@clisp.org>
112868         * lib/findprog.h: New file, from GNU gettext.
112869         * lib/findprog.c: New file, from GNU gettext.
112871 2003-04-05  Jim Meyering  <jim@meyering.net>
112873         Merge changes from Coreutils.
112875         * lib/exclude.h (PARAMS): Remove definition and uses.
112876         * lib/exclude.c: Remove uses of `PARAMS'.
112878         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
112879         Add test-cases for DOS filenames. Declare program_name.
112880         (main): Set up program_name.  Patch by Rich Dawe.
112882         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
112883         error from mntctl.
112884         Use mntctl's return value to drive the entry-processing loop, since
112885         we can't rely on the value of the vmt_length member in the last
112886         entry.  On some systems doing so could result in exhausting
112887         virtual memory.  Based in part on a patch from Mike Jetzer.
112889 2003-04-04  Bruno Haible  <bruno@clisp.org>
112891         * modules/linebreak: New file.
112892         * MODULES.html.sh (func_all_modules): Add it.
112894 2003-04-04  Bruno Haible  <bruno@clisp.org>
112896         * m4/linebreak.m4: New file.
112898 2003-04-04  Bruno Haible  <bruno@clisp.org>
112900         * lib/linebreak.h: New file, from GNU gettext.
112901         * lib/linebreak.c: New file, from GNU gettext with slight
112902         modifications.
112903         * lib/lbrkprop.h: New file, from GNU gettext.
112905 2003-04-03  Bruno Haible  <bruno@clisp.org>
112907         * modules/utf8-ucs4: New file.
112908         * modules/utf16-ucs4: New file.
112909         * modules/ucs4-utf8: New file.
112910         * modules/ucs4-utf16: New file.
112911         * MODULES.html.sh (func_all_modules): Add them.
112913 2003-04-03  Bruno Haible  <bruno@clisp.org>
112915         * m4/utf-ucs4.m4: New file.
112916         * m4/ucs4-utf.m4: New file.
112918 2003-04-03  Bruno Haible  <bruno@clisp.org>
112920         * lib/utf8-ucs4.h: New file, from GNU gettext.
112921         * lib/utf16-ucs4.h: New file, from GNU gettext.
112922         * lib/ucs4-utf8.h: New file, from GNU gettext.
112923         * lib/ucs4-utf16.h: New file, from GNU gettext.
112925 2003-04-02  Bruno Haible  <bruno@clisp.org>
112927         * modules/binary-io: New file.
112928         * MODULES.html.sh (func_all_modules): Add it.
112930 2003-04-02  Bruno Haible  <bruno@clisp.org>
112932         * lib/binary-io.h: New file, from GNU gettext.
112934 2003-04-01  Bruno Haible  <bruno@clisp.org>
112936         * modules/pathname: New file.
112937         * MODULES.html.sh (func_all_modules): Add it.
112939 2003-04-01  Bruno Haible  <bruno@clisp.org>
112941         * lib/pathname.h: New file, from GNU gettext.
112942         * lib/concatpath.c: New file, from GNU gettext.
112944 2003-03-30  Bruno Haible  <bruno@clisp.org>
112946         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
112948 2003-03-30  Bruno Haible  <bruno@clisp.org>
112950         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
112951         function chown() doesn't exist.
112953 2003-03-28  Bruno Haible  <bruno@clisp.org>
112955         * modules/copy-file: New file.
112956         * MODULES.html.sh (func_all_modules): Add it.
112958 2003-03-28  Bruno Haible  <bruno@clisp.org>
112960         * m4/copy-file.m4: New file.
112962 2003-03-28  Bruno Haible  <bruno@clisp.org>
112964         * lib/copy-file.h: New file, from GNU gettext.
112965         * lib/copy-file.c: New file, from GNU gettext.
112967 2003-03-18  Jim Meyering  <jim@meyering.net>
112969         * lib/quote.c (quote_n): Fix typo in comment.
112971 2003-03-18  Bruno Haible  <bruno@clisp.org>
112973         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
112974         checking.
112975         * m4/onceonly_2_57.m4: Likewise.
112977 2003-03-17  Bruno Haible  <bruno@clisp.org>
112979         * m4/onceonly.m4: Require autoconf 2.54 or newer.
112980         (m4_quote): Remove macro.
112981         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
112983 2003-03-14  Jim Meyering  <jim@meyering.net>
112985         Merge changes from Coreutils.
112986         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
112987         to be const, in order to avoid warnings.
112988         (obstack_room): Likewise.
112989         (obstack_empty_p): Likewise.
112991 2003-03-14  Bruno Haible  <bruno@clisp.org>
112993         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
112994         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
112996 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112998         Merge changes from Bison.
112999         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
113000         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
113001         when compiling Bison 1.875's `bitset bset = obstack_alloc
113002         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
113003         * lib/hash.c: Include <stdbool.h> unconditionally.
113005 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113007         * m4/onceonly.m4 (m4_quote): New macro.
113008         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
113009         Quote AC_FOREACH variable-expansions properly.
113011 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113013         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
113015 2003-03-09  Paul Eggert  <eggert@twinsun.com>
113017         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
113018         Reported by Bruce Becker; see:
113019         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
113021 2003-03-03  Paul Eggert  <eggert@twinsun.com>
113022             Bruno Haible  <bruno@clisp.org>
113024         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
113025         Reported by John Hughes, see
113026         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
113028 2003-02-20  Bruno Haible  <bruno@clisp.org>
113030         * MODULES.html.sh (func_all_modules): Add poll.
113032 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113034         * modules/poll: New file.
113036 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113038         * lib/poll_.h: New file.
113039         * lib/poll.c: New file.
113041 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113043         * m4/poll.m4: New file.
113045 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113047         * modules/mathl: New file.
113049 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113051         * lib/mathl.h: New file.
113052         * lib/acosl.c: New file.
113053         * lib/asinl.c: New file.
113054         * lib/atanl.c: New file.
113055         * lib/ceill.c: New file.
113056         * lib/cosl.c: New file.
113057         * lib/expl.c: New file.
113058         * lib/floorl.c: New file.
113059         * lib/frexpl.c: New file.
113060         * lib/ldexpl.c: New file.
113061         * lib/logl.c: New file.
113062         * lib/sincosl.c: New file.
113063         * lib/sinl.c: New file.
113064         * lib/sqrtl.c: New file.
113065         * lib/tanl.c: New file.
113066         * lib/trigl.c: New file.
113067         * lib/trigl.h: New file.
113069 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113071         * m4/mathl.m4: New file.
113073 2003-02-18  Bruno Haible  <bruno@clisp.org>
113075         * MODULES.html.sh (func_all_modules): Add mathl.
113077 2003-02-17  Bruno Haible  <bruno@clisp.org>
113079         * modules/mkdtemp: New module.
113080         * MODULES.html.sh (func_all_modules): Add it.
113082 2003-02-17  Bruno Haible  <bruno@clisp.org>
113084         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
113086 2003-02-17  Bruno Haible  <bruno@clisp.org>
113088         * lib/mkdtemp.h: New file, from GNU gettext.
113089         * lib/mkdtemp.c: New file, from GNU gettext.
113091 2003-02-02  Jim Meyering  <jim@meyering.net>
113093         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
113094         e.g. glibc-2.2.93.
113096 2003-01-31  Bruno Haible  <bruno@clisp.org>
113098         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
113099         'rpl_rename'.
113100         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
113101         'rpl_strnlen'.
113102         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
113103         'rpl_strtod'.
113104         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
113105         'rpl_utime'.
113107 2003-01-31  Bruno Haible  <bruno@clisp.org>
113109         * lib/rename.c: #undef rename before defining rpl_rename.
113110         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
113112 2003-01-30  Bruno Haible  <bruno@clisp.org>
113114         * modules/vasnprintf, modules/vasprintf: New modules.
113115         * MODULES.html.sh (func_all_modules): Add them.
113117 2003-01-30  Bruno Haible  <bruno@clisp.org>
113119         * m4/signed.m4: New file, from GNU gettext.
113120         * m4/longdouble.m4: New file, from GNU gettext.
113121         * m4/wchar_t.m4: New file, from GNU gettext.
113122         * m4/wint_t.m4: New file, from GNU gettext.
113123         * m4/vasnprintf.m4: New file.
113124         * m4/vasprintf.m4: New file.
113126 2003-01-30  Bruno Haible  <bruno@clisp.org>
113128         * lib/printf-args.h: New file, from GNU gettext.
113129         * lib/printf-args.c: New file, from GNU gettext.
113130         * lib/printf-parse.h: New file, from GNU gettext.
113131         * lib/printf-parse.c: New file, from GNU gettext.
113132         * lib/vasnprintf.h: New file, from GNU gettext.
113133         * lib/vasnprintf.c: New file, from GNU gettext.
113134         * lib/asnprintf.c: New file, from GNU gettext.
113135         * lib/vasprintf.h: New file, from GNU gettext with modifications.
113136         * lib/vasprintf.c: New file, from GNU gettext.
113137         * lib/asprintf.c: New file, from GNU gettext.
113139 2003-01-29  Bruno Haible  <bruno@clisp.org>
113141         * modules/stpncpy: New module.
113142         * MODULES.html.sh (func_all_modules): Add it.
113144 2003-01-29  Bruno Haible  <bruno@clisp.org>
113146         * m4/stpncpy.m4: New file.
113148 2003-01-29  Bruno Haible  <bruno@clisp.org>
113150         * lib/stpncpy.h: New file, from GNU gettext with modifications.
113151         * lib/stpncpy.c: New file, from GNU gettext with modifications.
113153 2003-01-28  Bruno Haible  <bruno@clisp.org>
113155         * modules/c-ctype: New module.
113156         * MODULES.html.sh (func_all_modules): Add it.
113158 2003-01-28  Bruno Haible  <bruno@clisp.org>
113160         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
113161         Paul Eggert.
113162         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
113163         Paul Eggert.
113165 2003-01-27  Bruno Haible  <bruno@clisp.org>
113167         * modules/xsetenv: New module.
113168         * MODULES.html.sh (func_all_modules): Add it.
113170 2003-01-27  Bruno Haible  <bruno@clisp.org>
113172         * lib/xsetenv.h: New file, from GNU gettext.
113173         * lib/xsetenv.c: New file, from GNU gettext.
113175 2003-01-23  Jim Meyering  <jim@meyering.net>
113177         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
113178         from working on systems without dirfd (at least Irix and OSF1/Tru64).
113180 2003-01-23  Bruno Haible  <bruno@clisp.org>
113182         * modules/minmax: New module.
113183         * MODULES.html.sh (func_all_modules): Add it.
113185 2003-01-23  Bruno Haible  <bruno@clisp.org>
113187         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
113188         Eggert.
113190 2003-01-22  Bruno Haible  <bruno@clisp.org>
113192         * modules/exit: New module.
113193         * MODULES.html.sh (func_all_modules): Add it.
113195 2003-01-22  Bruno Haible  <bruno@clisp.org>
113197         * lib/exit.h: New file, from GNU gettext.
113199 2003-01-19  Bruno Haible  <bruno@clisp.org>
113201         * gnulib-tool: Recognize option --extract-maintainer.
113202         (func_get_maintainer): New function.
113203         * modules/*: Add Maintainer entry.
113205 2003-01-16  Jim Meyering  <jim@meyering.net>
113207         * m4/regex.m4: The `regex' struct is both input and output.
113208         Initialize it before each use.  Patch by Tim Waugh.
113210 2003-01-16  Bruno Haible  <bruno@clisp.org>
113212         * MODULES.html.sh: Add a table of contents. Add the module name as
113213         leftmost column. Add hyperlinks.
113215 2003-01-15  Bruno Haible  <bruno@clisp.org>
113217         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
113219 2003-01-15  Bruno Haible  <bruno@clisp.org>
113221         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
113222         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
113223         suffix.
113225 2003-01-15  Bruno Haible  <bruno@clisp.org>
113227         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
113229 2003-01-15  Bruno Haible  <bruno@clisp.org>
113231         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
113232         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
113234 2003-01-14  Jim Meyering  <jim@meyering.net>
113236         * lib/same.c (same_name): Tweak a comment.
113238 2003-01-14  Bruno Haible  <bruno@clisp.org>
113240         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
113241         when a string comparison is sufficient.
113243 2003-01-14  Bruno Haible  <bruno@clisp.org>
113245         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
113246         'unsigned int'.
113248 2003-01-14  Bruno Haible  <bruno@clisp.org>
113250         * lib/hash-pjw.c: Add comment about low quality of this function.
113252 2003-01-13  Bruno Haible  <bruno@clisp.org>
113254         * modules/stpcpy: Distribute lib/stpcpy.h.
113255         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
113257 2003-01-13  Bruno Haible  <bruno@clisp.org>
113259         * modules/*: Add a description.
113260         * modules/strpbrk: Fix Makefile.am snippet.
113261         * modules/strtoimax: Fix dependencies.
113262         * modules/strtoumax: Likewise.
113264 2003-01-13  Bruno Haible  <bruno@clisp.org>
113266         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
113267         * modules/alloca (Makefile.am): All object files depend on alloca.h.
113268         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
113270 2003-01-13  Bruno Haible  <bruno@clisp.org>
113272         * gnulib-tool (func_create_testdir): Store config/* files in the main
113273         directory.
113274         * config.rpath: Move to ...
113275         * config/config.rpath: ... here.
113276         * modules/gettext: Contains config/config.rpath, not config.rpath.
113277         * modules/iconv: Likewise.
113279 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113281         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113282         to avoid collisions with libcurses and libreadline.
113284         * m4/getstr.m4: Remove.
113285         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
113287 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113289         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113290         to avoid collisions with libcurses and libreadline.
113292         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113293         * lib/getstr.h, getstr.c: Remove.
113294         * lib/getline.c: Include "getline.h", to check interface.
113295         Move body of old getstr.c here: this defines MIN_CHUNK and
113296         declares getdelim2, which is renamed from getstr.
113297         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113299         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113300         All uses changed.
113301         * lib/linebuffer.h: Likewise.
113302         (readline): Remove backward-compatibility macro.
113304 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113306         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113307         to avoid collisions with libcurses and libreadline.
113308         * getstr: Remove.
113309         * MODULES.html.sh: Remove getstr.
113310         * modules/getline: Depend on unlocked-io, not getstr.
113312 2003-01-12  Jim Meyering  <jim@meyering.net>
113314         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113316 2003-01-10  Bruno Haible  <bruno@clisp.org>
113318         * modules/alloca: Change Makefile.am requirements. Simplify Include
113319         requirements. Add lib/alloca_.h to file list.
113321 2003-01-10  Bruno Haible  <bruno@clisp.org>
113323         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113325 2003-01-10  Bruno Haible  <bruno@clisp.org>
113327         * lib/alloca_.h: New file.
113328         * lib/getdate.y: Unconditionally include alloca.h.
113329         * lib/makepath.c: Likewise.
113330         * lib/setenv.c: Likewise.
113331         * lib/userspec.c: Likewise.
113333 2003-01-09  Karl Berry  <karl@gnu.org>
113335         * MODULES.html.sh: include `dirname $0` in PATH, to find
113336         gnulib-tool.
113338 2003-01-09  Bruno Haible  <bruno@clisp.org>
113340         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113341         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113343 2003-01-09  Bruno Haible  <bruno@clisp.org>
113345         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113347 2003-01-09  Bruno Haible  <bruno@clisp.org>
113349         * lib/stdbool.h.in: New file.
113351 2003-01-09  Bruno Haible  <bruno@clisp.org>
113353         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113354         * MODULES.html.sh: Likewise.
113356 2003-01-08  Jim Meyering  <jim@meyering.net>
113358         * lib/full-write.c: Undefine and define-away `const' after inclusion
113359         of errno.h, not before.  Suggestion from Bruno Haible.
113361 2003-01-08  Bruno Haible  <bruno@clisp.org>
113363         * modules/full-read: Depend on full-write.
113365 2003-01-08  Bruno Haible  <bruno@clisp.org>
113367         * lib/safe-read.c: Include specification header first, to ensure its
113368         selfcontainedness.
113369         * lib/full-write.c: Likewise.
113371 2003-01-07  Jim Meyering  <jim@meyering.net>
113373         * lib/full-write.c: Rework so that it may serve to define full_read,
113374         too.
113375         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113377 2003-01-07  Bruno Haible  <bruno@clisp.org>
113379         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113380         <inttypes.h>.
113381         * lib/xstrtol.h: Likewise.
113382         * lib/xstrtoimax.c: Likewise.
113383         * lib/xstrtoumax.c: Likewise.
113384         * lib/human.h: Likewise.
113386         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113387         on systems that have <inttypes.h> but not <stdint.h>.
113389 2003-01-07  Bruno Haible  <bruno@clisp.org>
113391         * MODULES.html.sh: Add copyright notice.
113392         (missed_files): Omit CVS directory entries.
113393         (func_module): Make it work with sed-3.02.
113394         * MODULES.txt: Remove file.
113396 2003-01-06  Jim Meyering  <jim@meyering.net>
113398         * lib/version-etc.c: Update year in translatable copyright string.
113400 2003-01-03  Karl Berry  <karl@gnu.org>
113402         * config/config.{guess,sub}: update from prep.
113404 2003-01-02  Karl Berry  <karl@gnu.org>
113406         * doc/COPYING.DOC: belatedly updated to 1.2.
113408 2003-01-01  Karl Berry  <karl@gnu.org>
113410         * gnulib-tool (func_verify_module): report module name $module in
113411         error message, not $1.
113412         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113413         be created, only if it doesn't exist.
113414         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113416 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113418         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113420 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113422         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113423         memcmp if strcoll doesn't work.
113425 2002-12-31  Bruno Haible  <bruno@clisp.org>
113427         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113428         nonempty.
113430 2002-12-31  Bruno Haible  <bruno@clisp.org>
113432         * lib/memcoll.c (STRCOLL): New macro.
113433         (memcoll): Use it.
113435 2002-12-31  Bruno Haible  <bruno@clisp.org>
113437         * lib/localcharset.h: New file.
113438         * lib/localcharset.c: Include it.
113439         * lib/unicodeio.c: Likewise.
113441 2002-12-31  Bruno Haible  <bruno@clisp.org>
113443         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113444         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113446 2002-12-31  Bruno Haible  <bruno@clisp.org>
113448         * lib/getline.h: Include <stddef.h>, for size_t.
113450         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113451         * lib/unicodeio.c: Don't include <stddef.h>.
113453 2002-12-31  Bruno Haible  <bruno@clisp.org>
113455         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113456         HAVE_TM_ZONE.
113458 2002-12-24  Karl Berry  <karl@gnu.org>
113460         * config/config.guess: update from prep.
113462 2002-12-24  Bruno Haible  <bruno@clisp.org>
113464         General infrasructure.
113465         * m4/README: Rewritten.
113466         * m4/onceonly.m4: New file.
113467         * m4/onceonly_2_57.m4: New file.
113469         Module atexit.
113470         * m4/atexit.m4: New file.
113472         Module strtod.
113473         * m4/strtod.m4: New file.
113475         Module strtol.
113476         * m4/strtol.m4: New file.
113478         Module strtoul.
113479         * m4/strtoul.m4: New file.
113481         Module memchr.
113482         * m4/memchr.m4: New file.
113484         Module memcmp.
113485         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113486         (jm_FUNC_MEMCMP): Invoke it.
113488         Module memcpy.
113489         * m4/memcpy.m4: New file.
113491         Module memmove.
113492         * m4/memmove.m4: New file.
113494         Module memset.
113495         * m4/memset.m4: New file.
113497         Module strcspn.
113498         * m4/strcspn.m4: New file.
113500         Module strpbrk.
113501         * m4/strpbrk.m4: New file.
113503         Module strstr.
113504         * m4/strstr.m4: New file.
113506         Module strerror.
113507         * m4/strerror.m4: New file.
113509         Module mktime.
113510         * m4/mktime.m4: Renamed from jm-mktime.m4.
113511         (gl_PREREQ_MKTIME): New macro.
113512         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113514         Module malloc.
113515         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113516         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113517         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113519         Module realloc.
113520         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113521         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113522         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113524         Module strftime.
113525         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113526         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113527         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113528         gl_TM_GMTOFF.
113529         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113531         Module xalloc.
113532         * m4/xalloc.m4: New file.
113534         Module alloca.
113535         * m4/alloca.m4: New file.
113537         Module putenv.
113538         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113539         (jm_FUNC_PUTENV): Invoke it.
113541         Module setenv.
113542         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113543         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
113544         when invoked twice.
113545         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
113546         gt_FUNC_SETENV.
113548         Module memrchr.
113549         * m4/memrchr.m4: New file.
113551         Module stpcpy.
113552         * m4/stpcpy.m4: New file.
113554         Module strcase.
113555         * m4/strcase.m4: New file.
113557         Module strdup.
113558         * m4/strdup.m4: New file.
113560         Module strnlen.
113561         * m4/strnlen.m4: New file.
113563         Module strndup.
113564         * m4/strndup.m4: New file.
113566         Module xstrtod.
113567         * m4/xstrtod.m4: New file.
113569         Module xstrtol.
113570         * m4/xstrtol.m4: New file.
113572         Module getdate.
113573         * m4/getdate.m4: New file.
113575         Module unlocked-io.
113576         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
113577         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
113578         * m4/jm-glibc-io.m4n: Remove file.
113580         Module long-options.
113581         * m4/long-options.m4: New file.
113583         Module md5.
113584         * m4/md5.m4: New file.
113586         Module sha.
113587         * m4/sha.m4: New file.
113589         Module getstr.
113590         * m4/getstr.m4: New file.
113592         Module getline.
113593         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
113594         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
113595         <sys/types.h>, for size_t. Use the function name gnu_getline, not
113596         simply getline. Infoke gl_PREREQ_GETLINE.
113598         Module obstack.
113599         * m4/obstack.m4: New file.
113601         Module hash.
113602         * m4/hash.m4: New file.
113604         Module readtokens.
113605         * m4/readtokens.m4: New file.
113607         Module strverscmp.
113608         * m4/strverscmp.m4: New file.
113610         Module stdbool.
113611         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
113612         OSF/1.
113614         Module strtoll.
113615         * m4/strtoll.m4: New file.
113617         Module strtoull.
113618         * m4/strtoull.m4: New file.
113620         Module strtoimax.
113621         * m4/strtoimax.m4: New file.
113623         Module strtoumax.
113624         * m4/strtoumax.m4: New file.
113626         Module xstrtoimax.
113627         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
113628         jm_AC_PREREQ_XSTRTOIMAX.
113629         Moved the strtol prerequisites to strtol.m4.
113630         Moved the strtoll prerequisites to strtoll.m4.
113631         Moved the strtoimax prerequisites to strtoimax.m4.
113633         Module xstrtoumax.
113634         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
113635         jm_AC_PREREQ_XSTRTOUMAX.
113636         Moved the strtoul prerequisites to strtoul.m4.
113637         Moved the strtoull prerequisites to strtoull.m4.
113638         Moved the strtoumax prerequisites to strtoumax.m4.
113640         Module chown.
113641         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
113642         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
113644         Module dup2.
113645         * m4/dup2.m4: New file.
113647         Module ftruncate.
113648         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
113649         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
113651         Module getgroups.
113652         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
113653         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
113655         Module gettimeofday.
113656         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
113657         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
113658         gl_PREREQ_GETTIMEOFDAY.
113660         Module mkdir.
113661         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
113662         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
113664         Module mkstemp.
113665         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
113666         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
113667         jm_AC_TYPE_UINTMAX_T.
113668         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
113670         Module stat.
113671         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
113672         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
113674         Module lstat.
113675         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
113676         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
113678         Module timespec.
113679         * m4/timespec.m4 (gl_TIMESPEC): New macro.
113680         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
113681         * m4/st_mtim.m4: Indentation.
113683         Module nanosleep.
113684         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
113685         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
113686         gl_PREREQ_NANOSLEEP.
113688         Module regex.
113689         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
113690         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
113691         (gl_REGEX): New macro.
113693         Module rename.
113694         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
113695         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
113697         Module rmdir.
113698         * m4/rmdir.m4: New file.
113700         Module utime.
113701         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
113702         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
113703         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
113705         Module dirname.
113706         * m4/dirname.m4: New file.
113708         Module getopt.
113709         * m4/getopt.m4: New file.
113711         Module unistd-safer.
113712         * m4/unistd-safer.m4: New file.
113714         Module fnmatch.
113715         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
113716         declaration.
113717         (gl_PREREQ_FNMATCH_EXTRA): New macro.
113718         (gl_FUNC_FNMATCH_POSIX): New macro.
113719         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
113720         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
113721         simply fnmatch.
113723         Module exclude.
113724         * m4/exclude.m4: New file.
113726         Module human.
113727         * m4/human.m4: New file.
113729         Module acl.
113730         * m4/acl.m4: Nop.
113732         Module backupfile.
113733         * m4/backupfile.m4: New file.
113734         * m4/d-ino.m4: Indentation.
113736         Module fsusage.
113737         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
113738         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
113739         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
113741         Module dirfd.
113742         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
113743         requirements.
113745         Module euidaccess.
113746         * m4/euidaccess.m4: New file.
113748         Module file-type.
113749         * m4/file-type.m4: New file.
113751         Module fileblocks.
113752         * m4/fileblocks.m4: New file.
113754         Module filemode.
113755         * m4/filemode.m4: New file.
113757         Module isdir.
113758         * m4/isdir.m4: New file.
113760         Module lchown.
113761         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
113762         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
113764         Module makepath.
113765         * m4/makepath.m4: New file.
113767         Module modechange.
113768         * m4/modechange.m4: New file.
113770         Module mountlist.
113771         * m4/mountlist.m4: New file.
113772         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
113773         Indentation.
113775         Module path-concat.
113776         * m4/path-concat.m4: New file.
113778         Module pathmax.
113779         * m4/pathmax.m4: New file.
113781         Module same.
113782         * m4/same.m4: New file.
113784         Module save-cwd.
113785         * m4/save-cwd.m4: New file.
113787         Module savedir.
113788         * m4/savedir.m4: New file.
113790         Module xgetcwd.
113791         * m4/xgetcwd.m4: New file.
113792         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
113794         Module xreadlink.
113795         * m4/xreadlink.m4: New file.
113797         Module safe-read.
113798         * m4/safe-read.m4: New file.
113800         Module safe-write.
113801         * m4/safe-write.m4: New file.
113803         Module closeout.
113804         * m4/closeout.m4: New file.
113806         Module stdio-safer.
113807         * m4/stdio-safer.m4: New file.
113809         Module getpass.
113810         * m4/getpass.m4: New file.
113812         Module getugroups.
113813         * m4/getugroups.m4: New file.
113815         Module group-member.
113816         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
113817         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
113819         Module idcache.
113820         * m4/idcache.m4: New file.
113822         Module userspec.
113823         * m4/userspec.m4: New file.
113825         Module gettime.
113826         * m4/clock_time.m4: New file.
113827         * m4/gettime.m4: New file.
113829         Module settime.
113830         * m4/settime.m4: New file.
113832         Module posixtm.
113833         * m4/posixtm.m4: New file.
113835         Module gethostname.
113836         * m4/gethostname.m4: New file.
113838         Module canon-host.
113839         * m4/canon-host.m4: New file.
113841         Module gettext.
113842         * m4/codeset.m4: New file, from gettext-0.11.5.
113843         * m4/gettext.m4: New file, from gettext-0.11.5.
113844         * m4/glibc21.m4: New file, from gettext-0.11.5.
113845         * m4/iconv.m4: New file, from gettext-0.11.5.
113846         * m4/intdiv0.m4: New file, from gettext-0.11.5.
113847         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
113848         * m4/inttypes.m4: New file, from gettext-0.11.5.
113849         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
113850         * m4/isc-posix.m4: New file, from gettext-0.11.5.
113851         * m4/lcmessage.m4: New file, from gettext-0.11.5.
113852         * m4/lib-ld.m4: New file, from gettext-0.11.5.
113853         * m4/lib-link.m4: New file, from gettext-0.11.5.
113854         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
113855         * m4/progtest.m4: New file, from gettext-0.11.5.
113856         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
113857         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
113858         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
113860         Module localcharset.
113861         * m4/localcharset.m4: New file.
113863         Module hard-locale.
113864         * m4/hard-locale.m4: New file.
113866         Module mbswidth.
113867         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
113868         onceonly macros.
113869         * m4/mbrtowc.m4: Add comment.
113871         Module memcasecmp.
113872         * m4/memcasecmp.m4: New file.
113874         Module memcoll.
113875         * m4/memcoll.m4: New file.
113877         Module unicodeio.
113878         * m4/unicodeio.m4: New file.
113880         Module rpmatch.
113881         * m4/rpmatch.m4: New file.
113883         Module yesno.
113884         * m4/yesno.m4: New file.
113886         Module exitfail.
113887         * m4/exitfail.m4: New file.
113889         Module c-stack.
113890         * m4/c-stack.m4 (gl_C_STACK): New macro.
113891         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
113893         Module error.
113894         * m4/error.m4 (gl_ERROR): New macro.
113895         (jm_PREREQ_ERROR): Use onceonly macros.
113897         Module fatal.
113898         * m4/fatal.m4: New file.
113900         Module getloadavg.
113901         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
113902         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
113904         Module getpagesize.
113905         * m4/getpagesize.m4: New file.
113907         Module getusershell.
113908         * m4/getusershell.m4: New file.
113910         Module physmem.
113911         * m4/physmem.m4: New file.
113913         Module posixver.
113914         * m4/posixver.m4: New file.
113916         Module quotearg.
113917         * m4/quotearg.m4: New file.
113919         Module quote.
113920         * m4/quote.m4: New file.
113922         Module readutmp.
113923         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
113925         Module sig2str.
113926         * m4/sig2str.m4: New file.
113928         Other.
113929         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
113930         ulonglong.m4.
113931         * m4/intmax_t.m4: New file.
113932         * m4/d-type.m4: Indentation.
113933         * m4/jm-macros.m4: Update.
113934         * m4/prereq.m4 (jm_PREREQ): Update.
113935         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
113936         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
113937         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
113938         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
113939         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
113940         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
113941         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
113942         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
113943         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
113944         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
113945         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
113946         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
113947         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
113948         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
113949         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
113950         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
113951         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
113952         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
113953         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
113955 2002-12-24  Bruno Haible  <bruno@clisp.org>
113957         * MODULES.txt: Update according to m4/ changes.
113959         Module gettext.
113960         * config.rpath: New file, from gettext-0.11.5.
113962         * modules/*: New module descriptions.
113963         * gnulib-tool: New file.
113964         * MODULES.html.sh: New file.
113966 2002-12-21  Karl Berry  <karl@gnu.org>
113968         * doc/fdl.texi: update to version 1.2.
113970 2002-12-19  Karl Berry  <karl@gnu.org>
113972         * config/config.guess: update from prep.
113974 2002-12-18  Bruno Haible  <bruno@clisp.org>
113976         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
113977         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
113979 2002-12-17  Bruno Haible  <bruno@clisp.org>
113981         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
113982         stdlib.h, string.h.
113984 2002-12-17  Bruno Haible  <bruno@clisp.org>
113986         * lib/canon-host.c (strdup): Remove unused declaration.
113988         * lib/fsusage.c: Include full_read.h.
113989         (get_fs_usage): Use full_read instead of safe_read.
113991         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
113993 2002-12-12  Karl Berry  <karl@gnu.org>
113995         * config/config.guess: update from prep.
113997 2002-12-11  Bruno Haible  <bruno@clisp.org>
113999         * m4/setenv.m4: New file, from gettext-0.11.5.
114001 2002-12-11  Bruno Haible  <bruno@clisp.org>
114003         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
114004         not unsetenv().
114005         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
114006         modifications:
114008         2002-12-11  Bruno Haible  <bruno@clisp.org>
114010                 * setenv.c (alloca): Fall back to malloc.
114011                 (freea): New macro.
114012                 (setenv): Use freea() to free memory allocated with alloca().
114014         2002-11-13  Bruno Haible  <bruno@clisp.org>
114016                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
114017                 function declarations.
114018                 * unsetenv.c (unsetenv): Likewise.
114020         2002-03-04  Bruno Haible  <bruno@clisp.org>
114022                 Portability to AIX 4.3.3.
114023                 * unsetenv.c: New file, extracted from setenv.c.
114024                 * setenv.c: Move the unsetenv() function to unsetenv.c.
114026         2001-12-20  Bruno Haible  <bruno@clisp.org>
114028                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
114029                 use malloc instead. For SunOS 4.
114031         2001-12-11  Bruno Haible  <bruno@clisp.org>
114033                 * setenv.c: Declare alloca.
114034                 (compar_fn_t): New typedef.
114035                 (KNOWN_VALUE, STORE_VALUE): Use it.
114037         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
114038         setenv.h.
114040 2002-12-10  Paul Eggert  <eggert@twinsun.com>
114042         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
114043         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
114044         Choose values that are less likely to collide with system fnmatch
114045         options.
114046         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
114047         defined (e.g., a pure POSIX system).
114048         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
114049         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
114051 2002-12-06  Paul Eggert  <eggert@twinsun.com>
114053         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
114054         a pain in practice to deal with generated m4 files.  This change
114055         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
114057         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
114058         and jm-glibc-io.m4, as they are no longer a special case.
114059         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
114060         kludge and the auto-generation stuff.  Check only whether the
114061         functions are declared, not whether they exist, since older hosts
114062         that don't declare the functions can't use the optimization anyway.
114064 2002-12-06  Jim Meyering  <jim@meyering.net>
114066         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
114068         Merge in changes from libc's misc/error.c, in preparation
114069         for the merge of gnulib's changes back into libc.
114071         * lib/error.c (_): Define only if not already defined.
114072         Move definition to follow all #include directives.
114073         Include unlocked-io.h only if !_LIBC.
114074         [_LIBC]: Include <libio/libioP.h>.
114075         [USE_IN_LIBIO]: Include <libio/iolibio.h>
114076         (fflush): Tweak definition to use INTUSE.
114077         (putc): Define.
114079 2002-12-05  Paul Eggert  <eggert@twinsun.com>
114081         * lib/alloca.c [defined emacs]: Include "lisp.h".
114082         (xalloc_die) [defined emacs]: New macro.
114083         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
114084         [! defined emacs]: Include <xalloc.h>.
114085         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
114086         (pointer): Typedef to POINTER_TYPE *.
114087         (malloc): Remove decl; we now always use xmalloc.
114088         (alloca): Use old-style definition, since Emacs needs this.
114089         Check for arithmetic overflow when computing combined size.
114091 2002-12-04  Paul Eggert  <eggert@twinsun.com>
114093         Do not generate unlocked-io.h automatically, since it's easier to
114094         maintain it by hand.
114096         * lib/unlocked-io.h: New file, from GNU diffutils,
114097         but with proper copyright notice and attribution.
114098         * lib/gen-uio: Remove.
114099         * lib/Makefile.am: Add copyright notice.
114100         (libfetish_a_SOURCES): Add unlocked-io.h.
114101         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
114102         (DISTCLEANFILES, io_functions): Remove macros.
114103         (EXTRA_DIST): Remove gen_uio.
114104         (unlocked-io.h): Remove rule.
114106 2002-12-04  Jim Meyering  <jim@meyering.net>
114108         Reflect the fact that stat.c and lstat.c are no longer generated.
114109         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
114110         (DISTCLEANFILES): Likewise.
114111         (EXTRA_DIST): Likewise.
114112         (all_local): Don't depend on stat.c or lstat.c.
114113         (stat.c, lstat.c): Remove rules.
114114         (EXTRA_DIST): Remove xstat.in.
114116         * lib/xstat.in: Remove file.  Contents moved into stat.c.
114117         * lib/stat.c: New file.  Contents mostly from xstat.in.
114118         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
114119         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
114121         * lib/safe-read.c: Rework so that it may serve to define safe_write,
114122         too.
114123         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
114125 2002-12-03  Jim Meyering  <jim@meyering.net>
114127         * lib/safe-read.c, safe-write.c: Change variable names and comments,
114128         but not semantics, to minimize the differences between these two files.
114129         (safe_read): Change comment to mention SAFE_READ_ERROR.
114131         * lib/safe-read.c (IS_EINTR): Define.
114132         (safe_read): Use IS_EINTR in place of in-function cpp directives.
114134 2002-12-02  Jim Meyering  <jim@meyering.net>
114136         * lib/safe-read.c (EINTR): Define.
114137         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114138         (INT_MAX): Provide fallback.
114139         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
114141         * lib/safe-read.h (SAFE_READ_ERROR): Define.
114143 2002-12-02  Bruno Haible  <bruno@clisp.org>
114145         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
114146         Define, taken from safe-read.c.
114147         (INT_MAX): Provide fallback.
114148         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
114149         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
114151         * lib/safe-read.c (EINTR): Remove definition.
114152         (safe_read): Don't use EINTR if it is absent.
114154 2002-12-01  Jim Meyering  <jim@meyering.net>
114156         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
114157         zero.
114158         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
114160 2002-11-27  Paul Eggert  <eggert@twinsun.com>
114162         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
114163         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
114164         with `if (! (value < limit)) abort ();', for readability.
114166 2002-11-26  Karl Berry  <karl@gnu.org>
114168         * lib/strdup.c: copy from libc again, with jim's ok.
114169         * lib/.cppi-disable: re-add strdup.c
114171 2002-11-25  Karl Berry  <karl@gnu.org>
114173         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
114174         instead of "strtol.c".
114176 2002-11-25  Karl Berry  <karl@gnu.org>
114178         * config/install-sh: update from automake for variable quoting, $0 in
114179         error msgs, etc.
114181         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
114182         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
114183         entry.
114185 2002-11-25  Jim Meyering  <jim@meyering.net>
114187         * lib/mktime.c: Sync from libc, now that it has the latest fix.
114189 2002-11-24  Karl Berry  <karl@gnu.org>
114191         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
114192         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
114194 2002-11-24  Jim Meyering  <jim@meyering.net>
114196         Update from coreutils:
114198         * lib/mktime.c: Merge in changes from libc.
114200         Avoid a link-time failure on some Linux systems.
114201         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
114202         (otherwise).
114203         (__mon_yday): Declare with the STATIC attribute.
114204         (__mktime_internal): Likewise.
114205         Based on a report from Greg Schafer.
114207 2002-11-23  Jim Meyering  <jim@meyering.net>
114209         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
114210         Use `unsigned', not `int', as type of index.
114212         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
114214         * lib/fsusage.c: Remove unneeded parentheses around operands of
114215         `defined'.
114217 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114219         * lib/quotearg.h: Allow multiple inclusion by surrounding with
114220         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
114221         so that we can be included first.
114222         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
114223         * lib/quotearg.c: Include quotearg.h immediately after config.h.
114224         No need to include stddef.h or sys/types.h any more.
114225         Surround local include files with "", not "<>".
114226         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
114227         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
114228         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
114229         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
114230         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
114231         (ISPRINT): Remove; no longer needed now that we assume C89.
114233         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
114234         Preserve errno.
114236         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
114237         quotearg_char): Use SIZE_MAX rather than
114238         (size_t) -1 when we are talking about "infinity".
114240         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
114242 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114244         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
114245         hint that one should use `if (! x) abort ();' rather than `assert
114246         (x);', and anyway it's one less thing to worry about configuring.
114247         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
114248         hash_rehash, hash_insert): Use abort rather than assert.
114250 2002-11-22  Bruno Haible  <bruno@clisp.org>
114252         * lib/safe-read.h: Assume C89. Add comments.
114253         (safe_read): Change return type to size_t.
114254         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
114255         byte counts > SSIZE_MAX correctly.
114256         * lib/safe-write.h: New file.
114257         * lib/safe-write.c: New file.
114258         * lib/full-read.h: New file.
114259         * lib/full-read.c: New file.
114260         * lib/full-write.h: Assume C89. Add comments.
114261         * lib/full-write.c: Include safe-write.h.
114262         (full_write): Rewritten to use safe_write.
114263         Suggested by Jim Meyering and Paul Eggert.
114265 2002-11-21  Jim Meyering  <jim@meyering.net>
114267         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
114269         Merge in changes from the coreutils.
114271         2002-09-25  Paul Eggert  <eggert@twinsun.com>
114272         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
114273         <stdint.h>.
114274         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
114275         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
114276         int.  Work more efficiently if X is the same width as uintmax_t.
114277         Do not compare X to -1, to avoid bogus compiler warning.
114278         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
114279         Don't assume that f_frsize and f_bsize are the same type.
114281         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
114282         warning on FreeBSD.
114284         * lib/makepath.c (make_path): Restore umask *before* creating the final
114285         component.
114286         (make_path): Minor reformatting.
114288         * lib/xmalloc.c: Adjust to work with new autoconf macros,
114289         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
114290         HAVE_MALLOC/HAVE_REALLOC.
114292         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114293         dummy ones.  At least on GNU/Linux systems, `auto' means something
114294         else.
114295         From Michael Stone.
114297 2002-11-21  Bruno Haible  <bruno@clisp.org>
114299         Remove case insensitive option matching.
114300         * lib/argmatch.h (argcasematch): Remove declaration.
114301         (ARGCASEMATCH): Remove macro.
114302         (__xargmatch_internal): Remove case_sensitive argument.
114303         (XARGMATCH): Update.
114304         (XARGCASEMATCH): Remove macro.
114305         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114306         case_sensitive argument.
114307         (argcasematch): Remove function.
114308         (__xargmatch_internal): Remove case_sensitive argument.
114309         (main): Use XARGMATCH instead of XARGCASEMATCH.
114311         * lib/xmalloc.c: Change compile-time error message. Add comment about
114312         required autoconf version.
114314 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114316         Merge argmatch cleanups from Bison.  Assume C89.
114318         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114319         Include stdlib.h, for EXIT_FAILURE.
114320         Always include <string.h>, since we assume C89.
114321         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114322         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114323         Include <stddef.h> instead, since it's all we need for size_t.
114324         (PARAMS): Remove.  All uses removed.
114325         (ARRAY_CARDINALITY): Do not bother to #undef.
114326         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114327         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114328         Remove unnecessary parentheses.
114329         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114330         Insert necessary parentheses.
114331         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114332         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114334 2002-11-19  Bruno Haible  <bruno@clisp.org>
114336         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114337         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114339         * lib/mbswidth.h (PARAMS): Remove macro.
114340         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114341         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114343         * lib/gcd.h (PARAMS): Remove macro.
114344         (gcd): Use ANSI C function declarations.
114345         * lib/gcd.c (gcd): Likewise.
114347 2002-11-15  Bruno Haible  <bruno@clisp.org>
114349         * lib/strcspn.c: Include <stddef.h>.
114350         (strcspn): Use ANSI C function declaration. Change return type to
114351         size_t. Use NULL.
114352         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114353         (strpbrk): Use NULL.
114354         * lib/strpbrk.h (PARAMS): Remove macro.
114355         (strpbrk): Use ANSI C function declaration.
114356         * lib/strstr.c: Don't include <sys/types.h>.
114357         * lib/strstr.h (PARAMS): Remove macro.
114358         (strstr): Use ANSI C function declarations.
114360 2002-11-14  Karl Berry  <karl@gnu.org>
114362         * config/mkinstalldirs: `do' on separate line, instead of
114363         `for var; do'.
114365 2002-11-06  Bruno Haible  <bruno@clisp.org>
114367         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114368         * lib/gcd.c (gcd): Likewise.
114370 2002-11-05  Bruno Haible  <bruno@clisp.org>
114372         * lib/gcd.h: New file, from gettext-0.11.5.
114373         * lib/gcd.c: New file, from gettext-0.11.5.
114375 2002-11-05  Bruno Haible  <bruno@clisp.org>
114377         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114378         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114379         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114380         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114382         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114383         <libintl.h>.
114384         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114385         <libintl.h>.
114387         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114388         * lib/human.c: Include gettext.h instead of <libintl.h>.
114389         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114390         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114391         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114392         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114393         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114394         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114395         (textdomain): Remove definition.
114396         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114398         * lib/long-options.c: Remove include of <libintl.h> and definition of
114399         _.
114400         * lib/same.c: Remove include of <libintl.h> and definition of _.
114402 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114404         * lib/config.charset: A few additions for Solaris.
114406 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114408         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114409         * lib/localcharset.c (locale_charset): Declare as extern "C".
114411 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114413         * lib/config.charset: msdos in uk_UA uses CP1125.
114415 2002-11-04  Bruno Haible  <bruno@clisp.org>
114417         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114418         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114419         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114420         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114421         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114423 2002-11-04  Bruno Haible  <bruno@clisp.org>
114425         * lib/localcharset.c (locale_charset): Don't return an empty string.
114427 2002-11-04  Bruno Haible  <bruno@clisp.org>
114429         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114430         aliases.
114432 2002-11-04  Bruno Haible  <bruno@clisp.org>
114434         * lib/config.charset: Update for newest glibc. Add canonical names
114435         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114437 2002-11-04  Bruno Haible  <bruno@clisp.org>
114439         * lib/config.charset: Add support for NetBSD.
114441 2002-11-04  Bruno Haible  <bruno@clisp.org>
114443         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114445 2002-11-01  Bruno Haible  <bruno@clisp.org>
114447         * configure.in: Add AC_CONFIG_AUX_DIR call.
114448         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114449         test/Makefile.
114450         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114452 2002-09-28  Karl Berry  <karl@gnu.org>
114454         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114455         installed automake until the next release, since changes have been
114456         made.
114458 2002-09-25  Karl Berry  <karl@gnu.org>
114460         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114461         * lib/getopt*: copy from libc/posix.
114462         * lib/gettext.h: copy from gettext.
114463         * lib/.cppi-disable: add strdup.c, gettext.h.
114465 2002-09-25  Karl Berry  <karl@gnu.org>
114467         * config/srclist.txt: enable gettext.h check.
114468         * config/config.{guess,sub}: update from prep.
114469         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114470                 from automake 1.6.3.
114471         See srclist*.
114473 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114475         * regex.c (PATFETCH): Remove the translating fetch.
114476         (PATFETCH_RAW): Rename to PATFETCH.
114477         (set_image_of_range): New fun.
114478         (SET_RANGE_TABLE_WORK_AREA): Use it.
114479         (regex_compile): Don't translate the pattern chars so eagerly.
114480         Only do it when inserting an `exactn' bytecode or when handling
114481         a char-range.
114482         (mutually_exclusive_p): Avoid empty statement.
114484 2002-07-06  Jim Meyering  <meyering@lucent.com>
114486         * m4/README: Don't mention Makefile.am.in.
114487         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114489 2002-07-01  Jim Meyering  <meyering@lucent.com>
114491         * lib/c-stack.c: Include sys/time.h.
114492         From Volker Borchert.
114494 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114496         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114498 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114500         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114501         New macro.  Use it uniformly instead of
114502         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114503         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114504         reported by Vin Shelton.
114506 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114508         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114509         Do not assume SA_SIGINFO behavior.
114510         Bug reported by Jim Meyering on NetBSD 1.5.2.
114512 2002-06-22  Jim Meyering  <meyering@lucent.com>
114514         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114515         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114518         now that configure.ac uses AC_GNU_SOURCE.
114519         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114520         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114522         Update to latest tools.  Suggestions from Paul Eggert.
114523         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114524         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114525         * m4/fnmatch.m4: Likewise.
114526         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114527         to AC_HEADER_STDBOOL
114529 2002-06-22  Jim Meyering  <meyering@lucent.com>
114531         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114532         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114534 2002-06-22  Jim Meyering  <meyering@lucent.com>
114536         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114538         * lib/exitfail.c, exitfail.h: Likewise.
114539         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114541         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114542         of fnmatch.h.
114543         (EXTRA_DIST): Add fnmatch_loop.c.
114544         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
114546         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
114547         * lib/fnmatch.c: Update from diffutils-2.8.2.
114548         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
114549         * lib/fnmatch.h: Remove file.
114551 2002-06-21  Jim Meyering  <meyering@lucent.com>
114553         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
114554         * m4/mbrtowc.m4: Likewise.
114556         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
114557         * m4/mbswidth.m4: Reflect name change:
114558         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
114559         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114561         * m4/lib-link.m4: Update from gettext-0.11.2.
114562         * m4/gettext.m4: Likewise.
114564         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
114565         From Alfred M. Szmidt.
114567 2002-06-18  Paul Eggert  <eggert@twinsun.com>
114569         * lib/file-type.h: Report an error if neither S_ISREG nor
114570         S_IFREG is defined, instead of using a test specific to glibc
114571         2.2.  This should be safe, since POSIX requires S_ISREG and
114572         Unix Version 7 had S_IFREG.  We don't need to check for
114573         <sys/types.h> since we don't use any symbols that it defines.
114575 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
114577         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
114578         $@-t, so that each temporary file name is unique and valid in the first
114579         8 characters, for operation under DOS.
114581 2002-06-15  Paul Eggert  <eggert@twinsun.com>
114583         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
114585 2002-06-15  Jim Meyering  <meyering@lucent.com>
114587         Work even with DJGPP 2.03, which lacks support for symlinks.
114588         From Richard Dawe.
114589         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
114590         is defined.
114591         * lib/lchown.c (S_ISLNK): Likewise.
114593 2002-06-15  Jim Meyering  <meyering@lucent.com>
114595         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
114596         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
114597         have been included before this file.
114599 2002-06-14  Jim Meyering  <meyering@lucent.com>
114601         * lib/file-type.h: Use the version from diffutils-2.8.2.
114602         * lib/file-type.c: Likewise.
114604 2002-06-07  Jim Meyering  <meyering@lucent.com>
114606         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
114607         They're needed at least for NetBSD 1.5.2.
114608         ($statxfs_includes): Include those same headers.
114609         ($statxfs_includes): Include sys/vfs.h if available.
114610         ($statxfs_includes): Likewise for sys/statvfs.h.
114611         Check for the following members in both structs statfs and statvfs:
114612         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
114614 2002-06-01  Jim Meyering  <meyering@lucent.com>
114616         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
114617         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
114619 2002-05-28  Jim Meyering  <meyering@lucent.com>
114621         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
114622         Reported by Volker Borchert.
114624 2002-05-27  Jim Meyering  <meyering@lucent.com>
114626         Fix a problem seen only on nonconforming systems whereby ls.c's
114627         use of localtime, and then of gettimeofday would cause trouble:
114628         the localtime call used to initialize rpl_gettimeofday's save
114629         mechanism would clobber ls's current local time information so
114630         that in any long listing the first file would always be listed
114631         with date 1970-01-01.  Analysis by Volker Borchert.
114633         * lib/gettimeofday.c (localtime): Undefine.
114634         (rpl_localtime): New function.
114636 2002-05-27  Jim Meyering  <meyering@lucent.com>
114638         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
114639         localtime.
114641         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
114642         use the replacement function; it wouldn't resolve at link time.
114643         Reported by Volker Borchert.
114645 2002-05-22  Jim Meyering  <meyering@lucent.com>
114647         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
114648         file-type.h.
114649         * lib/file-type.h: New file.
114650         * lib/file-type.c (file_type): New file/function.  Extracted from
114651         diffutils.
114653 2002-04-30  Jim Meyering  <meyering@lucent.com>
114655         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
114657 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114659         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
114661 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114663         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
114664         Do not check for alloca.h (no longer used) or stdbool.h (was never
114665         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
114667 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114669         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
114671 2002-04-29  Jim Meyering  <meyering@lucent.com>
114673         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
114674         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
114675         Use AC_FUNC_STRNLEN here instead.
114677         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
114678         With autoconf-2.53a, it's part of AC_PROG_CC.
114680 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114682         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
114683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
114685 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114687         * lib/sig2str.h, lib/sig2str.c: New files.
114688         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
114690 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114692         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
114693         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
114694         of 127, since 64 is the largest conceivable number for ancient
114695         nonstandard hosts.
114696         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
114698 2002-04-28  Jim Meyering  <meyering@lucent.com>
114700         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
114702 2002-04-24  Jim Meyering  <meyering@lucent.com>
114704         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
114705         (jm_PREREQ): Use it.
114707         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
114708         mach/mach.h fcntl.h.
114709         Check for this function: setlocale.
114711 2002-04-24  Jim Meyering  <meyering@lucent.com>
114713         * lib/gettext.h: New file, from Gettext.
114714         * lib/Makefile.am (INCLUDES): Remove -I../intl.
114715         (libfetish_a_SOURCES): Add gettext.h.
114717 2002-04-16  Jim Meyering  <meyering@lucent.com>
114719         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
114720         ut_pid, ut_id, ut_exit.
114722 2002-04-16  Jim Meyering  <meyering@lucent.com>
114724         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
114725         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
114726         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
114728 2002-04-12  Jim Meyering  <meyering@lucent.com>
114730         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
114731         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
114732         existence of the getmntinfo function.  Needed for Darwin 5.3.
114734         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
114735         This is necessary at least on Darwin 5.3.
114737         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
114738         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
114739         strnlen.o in the library, and that makes some versions of ranlib
114740         object.
114742 2002-04-12  Jim Meyering  <meyering@lucent.com>
114744         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
114746 2002-04-09  Jim Meyering  <meyering@lucent.com>
114748         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
114749         to be more precise.  Rather than saying we're checking whether the
114750         function `works', say what we're testing.
114751         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
114752         Reported by Bruno Haible.
114754 2002-03-10  Jim Meyering  <meyering@lucent.com>
114756         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
114757         Suggestion from Santiago Vila.
114759 2002-03-08  Jim Meyering  <meyering@lucent.com>
114761         * lib/rename.c: Mention that this wrapper is needed also on
114762         mips-dec-ultrix4.4 systems.
114764 2002-03-02  Jim Meyering  <meyering@lucent.com>
114766         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
114767         not HAVE_CLOCK_SETTIME.
114769 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114771         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
114772         Check for clock_settime.
114774 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114776         * lib/nanosleep.h: Rename to....
114777         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
114779         * lib/gettime.c: New file.
114780         * lib/settime.c: New file.
114781         * lib/stime.c: Remove.
114783         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
114784         timespec.h.  Remove nanosleep.h.
114786 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114788         * m4/acl.m4: New file.
114789         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
114790         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
114792 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114794         * lib/acl.c, lib/acl.h: New files.
114795         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
114797 2002-02-24  Jim Meyering  <meyering@lucent.com>
114799         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
114800         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
114801         cause trouble.  Reported by Nelson Beebe.
114803 2002-02-23  Paul Eggert  <eggert@twinsun.com>
114805         * lib/path-concat.c (xpath_concat): Reorder code to pacify
114806         compilers that don't know that xalloc_die never returns.
114808 2002-02-20  Jim Meyering  <meyering@lucent.com>
114810         * lib/getdate.c: Regenerate using bison-1.33.
114812 2002-02-17  Jim Meyering  <meyering@lucent.com>
114814         * config/config.guess (main): Don't use `head -1'; it's no longer
114815         portable. Use `sed 1q' instead.
114817 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
114819         * m4/codeset.m4: Upgrade to gettext-0.11.
114820         * m4/gettext.m4: Upgrade to gettext-0.11.
114821         * m4/glibc21.m4: Upgrade to gettext-0.11.
114822         * m4/iconv.m4: Upgrade to gettext-0.11.
114823         * m4/isc-posix.m4: Upgrade to gettext-0.11.
114824         * m4/lcmessage.m4: Upgrade to gettext-0.11.
114825         * m4/lib-ld.m4: New file, from gettext-0.11.
114826         * m4/lib-link.m4: New file, from gettext-0.11.
114827         * m4/lib-prefix.m4: New file, from gettext-0.11.
114828         * m4/progtest.m4: Upgrade to gettext-0.11.
114830 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114832         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
114833         (jm_PREREQ): Use it.
114835 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114837         * lib/posixver.c, lib/posixver.h: New files.
114838         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114840 2002-02-02  Paul Eggert  <eggert@twinsun.com>
114841             Bruno Haible  <bruno@clisp.org>
114843         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
114844         (fwrite_success_callback): New declaration.
114845         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
114846         print_unicode_char. Call failure callback instead of error.
114847         (fwrite_success_callback): New function.
114848         (exit_failure_callback): New function.
114849         (fallback_failure_callback): New function.
114850         (print_unicode_char): Call unicode_to_mb.
114852 2002-01-26  Jim Meyering  <meyering@lucent.com>
114854         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
114855         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
114857 2002-01-26  Jim Meyering  <meyering@lucent.com>
114859         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
114861 2002-01-22  Paul Eggert  <eggert@twinsun.com>
114863         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
114865 2002-01-22  Jim Meyering  <meyering@lucent.com>
114867         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
114868         Otherwise, some versions of automake would omit the rule that makes
114869         Makefile from Makefile.in.
114871 2002-01-21  Paul Eggert  <eggert@twinsun.com>
114873         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
114874         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114875         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
114876         (memcoll): Set errno to zero if there is no error.
114878         * lib/quotearg.c (quotearg_buffer_restyled):
114879         Fix bug with quoting buffers containing NUL when backslashing escapes.
114880         This bug was exposed by the other changes in this patch.
114881         (quotearg_n_options): New arg ARGSIZE.
114882         All callers changed.
114883         (quoting_options_from_style): New function.
114884         (quotearg_n_style): Use it.
114885         (quotearg_n_style_mem): New function.
114887         * lib/quotearg.h (quotearg_n_style_mem): New function.
114889 2002-01-19  Jim Meyering  <meyering@lucent.com>
114891         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
114892         Remove useless quotes: DF_PROG="df".
114893         * m4/strnlen.m4: New file.
114895 2002-01-16  Paul Eggert  <eggert@twinsun.com>
114897         * lib/backupfile.c (ISDIGIT): Comment fix.
114898         * lib/getdate.y (ISDIGIT): Likewise.
114899         * lib/posixtm.c (ISDIGIT, year): Likewise.
114900         * lib/strverscmp.c (ISDIGIT): Likewise.
114901         * lib/userspec.c (ISDIGIT): Likewise.
114903 2002-01-16  Jim Meyering  <meyering@lucent.com>
114905         * lib/getdate.y: Add three semicolons, each just before a closing
114906         brace. Bison (as of version 1.31) no longer papers over that mistake.
114908 2002-01-05  Jim Meyering  <meyering@lucent.com>
114910         * lib/version-etc.c (version_etc_copyright): Update copyright year.
114912 2001-12-19  Paul Eggert  <eggert@twinsun.com>
114914         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
114915         not silently exit merely because the output buffer happens to
114916         have nothing pending.
114918 2001-12-18  Paul Eggert  <eggert@twinsun.com>
114920         See the big note in ../ChangeLog.
114921         * lib/human.c (suffixes): Prefer K to k for 1024.
114922         (generate_suffix_backwards): New function.
114923         (human_readable_inexact): Use it.
114924         * lib/xstrtol.c (__xstrtol): If there is no number but there
114925         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
114926         Accept 'K' as well as 'k'.
114928 2001-12-15  Jim Meyering  <meyering@lucent.com>
114930         * lib/regex.h (__restrict_arr): Update from libc.
114932         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
114933         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
114934         (STREQ): Define.
114936 2001-12-14  Jim Meyering  <meyering@lucent.com>
114938         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
114939         Suggestion from Bruno Haible.
114941 2001-12-10  Jim Meyering  <meyering@lucent.com>
114943         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
114944         xrealloc, Instead, include "xalloc.h".
114945         (initbuffer): Don't cast xmalloc return value to char*.
114946         (readline): Reword comment.
114947         Don't cast xrealloc return value to char*
114948         Return NULL, not 0.
114950 2001-12-09  Jim Meyering  <meyering@lucent.com>
114952         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
114953         about `signed and unsigned type in conditional expression'.
114954         * lib/posixtm.c (posix_time_parse): Likewise.
114956         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
114958         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
114959         to avoid a pedantic warning.
114961         * lib/getstr.c: Don't include assert.h.
114962         (getstr): Remove warning-evoking assertions.
114963         Return -1 if offset parameter is out of bounds.
114964         Change the type of a local from int to size_t.
114966         * lib/strftime.c (my_strftime_localtime_r): Include this function
114967         definition in the `#if ! HAVE_TM_GMTOFF' block.
114969         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
114970         Include xalloc.h instead.
114972 2001-12-02  Jim Meyering  <meyering@lucent.com>
114974         * lib/tempname.c: Don't declare getenv, thus reverting the change of
114975         2001-11-18.  It's no longer necessary, now that stdlib.h is always
114976         included.
114978         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
114979         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
114981 2001-11-30  Akim Demaille  <akim@epita.fr>
114983         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
114984         before being defined.
114986 2001-11-27  Paul Eggert  <eggert@twinsun.com>
114988         * lib/quotearg.h (quotearg_n, quotearg_n_style):
114989         First arg is int, not unsigned.
114990         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
114991         (SIZE_MAX, UINT_MAX): New macros.
114992         (quotearg_n_options): Abort if N is negative.
114993         Avoid overflow check on hosts where size_t is 64 bits and int
114994         is 32 bits, as overflow is impossible there.
114995         Fix off-by-one typo that caused unnecessary reallocation.
114997 2001-11-27  Jim Meyering  <meyering@lucent.com>
114999         * lib/tempname.c: Merge with version from libc.
115000         * lib/regex.c: Likewise.
115002         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
115003         systems for which STDC_HEADERS is 0, it was not included, resulting in
115004         a warning about an integer-to-pointer conversion problem with getenv.
115005         Reported by Volker Borchert.
115007 2001-11-26  Jim Meyering  <meyering@lucent.com>
115009         * lib/gtod.h: Remove file.
115010         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
115011         * lib/gettimeofday.c: Don't include gtod.h.
115012         (GTOD_init): Remove function.
115013         (rpl_gettimeofday): Do its job here instead, rather than aborting.
115014         Suggestion from Volker Borchert.
115016 2001-11-23  Jim Meyering  <meyering@lucent.com>
115018         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
115019         it.
115020         * lib/hash.c (struct hash_table): Define it here instead.
115022 2001-11-22  Jim Meyering  <meyering@lucent.com>
115024         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
115026 2001-11-20  Jim Meyering  <meyering@lucent.com>
115028         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
115029         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
115031 2001-11-19  Jim Meyering  <meyering@lucent.com>
115033         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
115034         directory.  Use "conftestXXXXXX" as the template.
115035         Suggestion from Paul Eggert.
115037         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
115038         immediately, so the test doesn't mistakenly hit the max-open-files
115039         limit.
115041 2001-11-18  Paul Eggert  <eggert@twinsun.com>
115043         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
115044         (TEMPORARIES): New macro.
115045         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
115046         removes an artificial limitation (e.g. HP-UX 10.20, where
115047         TMP_MAX is 17576).
115049 2001-11-18  Jim Meyering  <meyering@lucent.com>
115051         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
115053 2001-11-18  Jim Meyering  <meyering@lucent.com>
115055         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
115056         on SunOS 4.
115058         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
115059         files will be created before anything else.
115061 2001-11-17  Paul Eggert  <eggert@twinsun.com>
115063         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
115064         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
115066 2001-11-17  Jim Meyering  <meyering@lucent.com>
115068         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
115069         Prompted by a report from Bob Proulx.
115071         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
115072         Instead, require UTILS_FUNC_MKSTEMP.
115074 2001-11-17  Jim Meyering  <meyering@lucent.com>
115076         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
115077         Now, that's done as part of AC_FUNC_STRTOD.
115079 2001-11-17  Jim Meyering  <meyering@lucent.com>
115081         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
115082         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
115083         rather than group writable.  Patch by Juan F. Codagnone.
115085         * lib/readtokens.c: Remove explicit declarations of xmalloc and
115086         xrealloc, Instead, include "xalloc.h".
115088         * lib/mountlist.c: Include unlocked-io.h after all system headers.
115089         Remove explicit declarations of xmalloc, xrealloc,
115090         and xstrdup.  Instead, include "xalloc.h".
115092         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
115093         unlocked-io.h.
115094         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
115095         Likewise.
115096         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
115098         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
115099         Reported by Padraig Brady.
115101         * lib/mkstemp.c: #undef mkstemp.
115102         Include config.h.
115103         (rpl_mkstemp): Rename from mkstemp.
115104         Protoize.
115106 2001-11-16  Jim Meyering  <meyering@lucent.com>
115108         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
115109         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
115110         determine the amount of total physical memory, use pstat_getstatic.
115111         HPUX-11 doesn't define _SC_PHYS_PAGES.
115112         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
115113         If sysconf couldn't be used to determine the amount of available
115114         physical memory, use both pstat_getstatic and pstat_getdynamic.
115115         Based on a patch from Bob Proulx.
115117 2001-11-10  Jim Meyering  <meyering@lucent.com>
115119         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
115120         (jm_PREREQ): Use it.
115122 2001-11-09  Jim Meyering  <meyering@lucent.com>
115124         * m4/jm-macros.m4: Require autoconf-2.52f.
115125         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
115126         Use these AC_-prefixed names, not the AM_-prefixed ones.
115128         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
115130 2001-11-05  Jim Meyering  <meyering@lucent.com>
115132         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
115134 2001-11-04  Jim Meyering  <meyering@lucent.com>
115136         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
115137         $DEFS.
115139 2001-11-03  Jim Meyering  <meyering@lucent.com>
115141         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
115142         of AC_DEFUN.
115144         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
115145         know the name of the variable in the macro definition.
115147 2001-11-03  Jim Meyering  <meyering@lucent.com>
115149         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
115150         in argmatch_to_argument call.
115152         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
115153         argument.
115155         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
115156         e.g., a fault due to an attempt to free a NULL pointer.
115158 2001-11-01  Jim Meyering  <meyering@lucent.com>
115160         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
115161         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
115163 2001-11-01  Jim Meyering  <meyering@lucent.com>
115165         * lib/dirfd.c, lib/dirfd.h: New files.
115166         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
115168         * lib/hash.c (hash_print) [TESTING]: Clean up.
115170 2001-10-22  Paul Eggert  <eggert@twinsun.com>
115172         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
115173         to avoid a warning if -Wall.
115175 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
115177         * README: New file
115178         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
115179         (per RMS's instructions, this is now the canonical source)
115180         * lgpl/, gpl/: New directories.
115182 2001-10-21  Paul Eggert  <eggert@twinsun.com>
115184         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
115186 2001-10-21  Jim Meyering  <meyering@lucent.com>
115188         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
115189         this code would end up calling gettext even in packages built
115190         with --disable-nls.
115191         * lib/getopt.c (_): Likewise.
115192         * lib/regex.c (_): Likewise.
115194 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115196         * m4/error.m4 (jm_PREREQ_ERROR):
115197         Do not invoke AC_CHECK_FUNCS with strerror_r, as
115198         AC_FUNC_STRERROR_R does that.
115199         Check for strerror declaration.
115201         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
115202         are supposed to have them these days.
115203         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
115204         Merge changes from latest Autoconf CVS.
115205         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
115206         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
115207         POSIX decided to standardize on the int flavor of strerror_r.
115209 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115211         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
115212         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
115213         Use strerror_r that is only a macro, even if it is not a function.
115214         (strerror): Check for HAVE_DECL_STRERROR before declaring.
115215         (private_strerror): Use prototypes, not old-style function definition.
115216         (print_errno_message): New function.
115217         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
115218         char*-flavored one.
115219         (error_tail, error, error_at_line): Use it.
115221 2001-10-11  Jim Meyering  <meyering@lucent.com>
115223         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
115224         and quote_n (1, ... to avoid clobbering a buffer.
115226 2001-10-05  Jim Meyering  <meyering@lucent.com>
115228         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
115229         hash-pjw.h.
115230         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
115231         * lib/hash-pjw.h: New file.
115233 2001-09-30  Jim Meyering  <meyering@lucent.com>
115235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
115236         `struct fsstat' has the `f_fstypename' member.
115237         Use that to define FS_TYPE, which is now used to make
115238         the getfsstat link test tighter.
115240 2001-09-30  Jim Meyering  <meyering@lucent.com>
115242         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
115243         Include <sys/ucred.h>, for Apple Darwin.
115244         Include sys/mount.h and sys/fs_types.h only if available.
115245         (FS_TYPE): Define.
115246         (read_filesystem_list): Use FS_TYPE.
115248 2001-09-29  Paul Eggert  <eggert@twinsun.com>
115250         * lib/exclude.c (excluded_filename): 0 -> false, since it's
115251         a boolean context.
115253 2001-09-29  Jim Meyering  <meyering@lucent.com>
115255         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115256         [one-argument getmntent function]): Include stdio.h before mntent.h.
115257         SunOS 4.1.x needs it for the declaration of `FILE'.
115258         Patch by Volker Borchert.
115260         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115261         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
115262         sys/fs_types.h, and make the link-test for getfsstat guard #include
115263         directives with appropriate #if HAVE_*_H tests so that we can
115264         detect getfsstat on Apple Darwin1.3.7 systems.
115265         Reported by Nelson Beebe.
115266         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
115268 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115270         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115271         #defines strtoimax.  Also treat the other strto* functions
115272         like strtoimax.
115274         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115275         Check for strtoul and strtoumax,
115276         as those declarations are made even in the signed case.
115277         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
115278         Likewise, for strtol and strtoimax.
115280 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115282         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115283         #defines strtoimax.  Also treat the other strto* functions
115284         like strtoimax.
115286         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
115287         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
115288         (strtoimax, strtoumax): Do not declare if already defined as a macro.
115290 2001-09-26  Jim Meyering  <meyering@lucent.com>
115292         Most macros in unlocked-io.h had the wrong number of arguments.
115293         * lib/gen-uio: New script.
115294         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115295         * lib/unlocked-io.hin: Remove file.
115296         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115297         rather than trying to embed it here.
115298         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115299         Reported by Padraig Brady.
115301 2001-09-25  Volker Borchert  <bt@teknon.de>
115303         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115304         `result'.
115306 2001-09-24  Jim Meyering  <meyering@lucent.com>
115308         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115310 2001-09-23  Jim Meyering  <meyering@lucent.com>
115312         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115313         instead of the mere test for existence of mntent.h.  The latter
115314         would get a false-positive on AIX 3.4 systems.
115315         In the outer getmntent if-block, don't die if neither of the getmntent
115316         tests succeeds.  Instead, just fall through and continue with the
115317         remaining tests.
115319 2001-09-23  Jim Meyering  <meyering@lucent.com>
115321         * lib/mountlist.c: Remove useless parentheses in #if directives.
115322         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115323         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115325 2001-09-22  Jim Meyering  <meyering@lucent.com>
115327         * m4/gettext.m4: New file.  From gettext.
115328         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115329         * m4/progtest.m4: Likewise
115330         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115331         * m4/glibc21.m4: Likewise.
115333         * m4/libintl.m4: Remove.  No longer used.
115335 2001-09-22  Jim Meyering  <meyering@lucent.com>
115337         * lib/localcharset.c: Update from latest gettext.
115338         * lib/config.charset: Likewise.
115340 2001-09-20  Jim Meyering  <meyering@lucent.com>
115342         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115343         strtoimax.
115344         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115345         strtoumax.
115347 2001-09-20  Jim Meyering  <meyering@lucent.com>
115349         * lib/xstrtol.c (strtoimax): Guard declaration with
115350         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115351         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115352         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115353         (strtoumax): Likewise, for completeness (it wasn't necessary).
115355 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115357         * lib/strtoimax.c (HAVE_LONG_LONG):
115358         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115359         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115360         to work around bug in IBM C compiler.
115362 2001-09-17  Jim Meyering  <meyering@lucent.com>
115364         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115365         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115366         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115367         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115368         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115369         whenever the right hand side need not be expanded by the shell.
115371 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115373         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115374         library.  It's not correct, as some older glibcs are buggy.
115375         fnmatch wasn't fixed until glibc 2.2.
115377         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115378         special shell magic here.
115380 2001-09-16  Jim Meyering  <meyering@lucent.com>
115382         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115383         * m4/jm-macros.m4: Require it.
115385 2001-09-16  Jim Meyering  <meyering@lucent.com>
115387         * lib/mkdir.c: New file.
115389 2001-09-15  Jim Meyering  <meyering@lucent.com>
115391         * m4/jm-macros.m4: Check for help2man.
115393 2001-09-11  Jim Meyering  <meyering@lucent.com>
115395         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115396         The body, by Paul Eggert, was moved here from configure.in.
115397         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115399 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115401         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115402         (jm_PREREQ): Use it.
115404 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115406         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115407         Use ssize_t, not int, to store result of readlink.
115408         Check for ssize_t overflow as well as size_t overflow,
115409         as POSIX says the result of readlink is implementation-defined
115410         when ssize_t overflows.
115411         Remove unnecessary cast to char*.
115412         Use free+malloc instead of realloc, as the storage doesn't need
115413         to be preserved and it's clearer and can be more efficient that way.
115414         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115415         * lib/xreadlink.h (xreadlink): Update prototype.
115417 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115419         * lib/xgetcwd.c: Revert some of the previous change; intead,
115420         fix the HAVE_GETCWD_NULL code to behave more like the
115421         !HAVE_GETCWD_NULL code used to.
115423         Include "xalloc.h".
115424         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115425         invoke xalloc_die.
115427 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115429         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115430         sys/param.h, as pathmax.h includes them.
115432 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115434         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115435         (jm_PREREQ_XGETCWD): New macro.
115437         * m4/getcwd.m4: New file.
115439 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115441         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115442         like the HAVE_GETCWD_NULL code.
115443         Include pathmax.h if not HAVE_GETCWD.
115444         Do not include xalloc.h.
115445         (INITIAL_BUFFER_SIZE): New symbol.
115446         Do not use xmalloc / xrealloc, since the caller is responsible for
115447         handling errors.  Preserve errno around `free' during failure.
115448         Do not overrun buffer when using getwd.
115450 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115452         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115453         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115454         getcwd (NULL, 0).
115456 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115458         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115459         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115460         spotted by Jim Meyering.
115462 2001-09-03  Jim Meyering  <meyering@lucent.com>
115464         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115465         failure.
115467 2001-09-02  Jim Meyering  <meyering@lucent.com>
115469         * lib/error.c: Update from GNU libc.
115471 2001-09-01  Jim Meyering  <meyering@lucent.com>
115473         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115474         Used by df.
115476 2001-09-01  Jim Meyering  <meyering@lucent.com>
115478         * lib/xreadlink.c: New file.
115479         * lib/xreadlink.h: New file.
115480         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115481         xreadlink.h.
115483         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115484         doesn't conflict with sparc Solaris 7's definition in
115485         /usr/include/sys/int_types.h.
115487         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115488         files.
115489         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115490         and strncasecmp as r-values.  Unixware didn't have declarations.
115492 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115494         * lib/xstrtol.h: Add copyright notice.
115495         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115496         LONGINT_INVALID_SUFFIX_CHAR.
115498 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115500         * lib/xstrtol.c (strtoimax): New decl.
115502 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115504         * lib/xgetcwd.c: Don't include pathmax.h.
115505         Include stdlib.h and unistd.h if available.
115506         Include xalloc.h.
115507         (xmalloc, xstrdup, free): Remove decls.
115508         (xgetcwd): Don't assume sizes fit in unsigned.
115509         Check for overflow when computing sizes.
115510         Simplify reallocation code.
115512 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115514         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115515         a directory's st_size can have an arbitrary value, so the old
115516         usage could waste an arbitrary amount of memory.  All uses
115517         changed.
115518         * lib/savedir.h: Update prototype.
115520 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115522         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115524         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115525         old strtoimax.c.
115527         Also, make the following further changes to make this file's
115528         configuration more similar to that of strtol.c:
115529         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115530         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115531         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115532         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115533         changed to signed values.
115535         And make the following changes as well:
115536         Fix copyright notice, as 1999 was missing.
115537         (verify): New macro.
115538         (strtoimax): Check sizes at compile-time, not run-time.
115539         Prefer strtol to strtoll if both work.
115540         (main): Remove; it was not that useful and was a pain to maintain.
115542         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
115544 2001-08-31  Jim Meyering  <meyering@lucent.com>
115546         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
115547         Use an initial, malloc'd, buffer of length 128 rather than
115548         a statically allocated one of length 1024.
115550 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115552         Simplify code, partly by assuming autoconf 2.52 semantics.
115554         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
115556         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
115557         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
115558         All uses removed.
115559         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
115560         Move AC_REQUIRE to next-to-top level, to avoid confusion.
115561         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
115562         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
115563         jm_AC_HEADER_INTTYPES_H.
115564         * m4/jm-macros.m4 (jm_MACROS): Likewise.
115566         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
115568         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115569         Quote first arg of AC_DEFUN.
115570         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
115571         since they are needed to parse the include file even if we need
115572         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
115573         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
115574         but with opposite signedness.
115576 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115578         Merge 'exclude' changes from tar 1.13.22.
115579         This fixes one or two unlikely storage allocation overflow bugs,
115580         but doesn't change user-visible behavior otherwise.
115582 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115584         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
115585         (jm_PREREQ_EXCLUDE): New macro.
115587 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115589         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
115590         tm to be declared.
115592 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115594         * lib/hash.c: Remove '2001' from copyright notice.
115596 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115598         * lib/full-write.h: New file.
115599         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
115600         * lib/full-write.c: Correct credits, as cccp.c no longer
115601         exists and anyway it was so heavily changed from the old cccp
115602         code as to be unrecognizable.  Include full-write.h.
115603         (full_write): Return size_t, with short writes meaning failure.
115604         All callers changed.  This fixes a bug with large buffers
115605         on 64-bit hosts.
115606         * lib/utime.c: Include full-write.h.
115608 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115610         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
115611         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
115612         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
115613         Include if available.
115614         (<xalloc.h>): Include
115615         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
115616         (verify): New macro.  Use it to verify that EXCLUDE macros do not
115617         collide with FNM macros.
115618         (struct patopts): New struct.
115619         (struct exclude): Use it, as exclude patterns now come with options.
115620         (new_exclude): Support above changes.
115621         (new_exclude, add_exclude_file):
115622         Initial size must now be a power of two to simplify overflow checking.
115623         (free_exclude, fnmatch_no_wildcards): New function.
115624         (excluded_filename): No longer requires options arg, as the options
115625         are determined by add_exclude.  Now returns bool, not int.
115626         (excluded_filename, add_exclude):
115627         Add support for the fancy new exclusion options.
115628         (add_exclude, add_exclude_file): Now takes int options arg.
115629         Check for arithmetic overflow when computing sizes.
115630         (add_exclude_file): xrealloc might modify errno, so don't
115631         realloc until after errno might be used.
115633         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
115634         New macros.
115635         (free_exclude): New decl.
115636         (add_exclude, add_exclude_file): Now takes int options arg.
115637         (excluded_filename): No longer requires options arg, as the options
115638         are determined by add_exclude.  Now returns bool, not int.
115640 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115642         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
115644 2001-08-27  Jim Meyering  <meyering@lucent.com>
115646         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
115648         * lib/version-etc.c (N_): Remove definition.
115649         Revert most of last change.
115650         Instead, simply don't mark the `Copyright...' string for translation.
115651         Based on advice from Paul Eggert.
115653         * lib/strtoxmax.c: Tweak comment.
115655 2001-08-26  Jim Meyering  <meyering@lucent.com>
115657         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
115659         * m4/xstrtoimax.m4: New file.
115660         * m4/xstrtoumax.m4: Add comments explaining why we
115661         AC_REPLACE_FUNCS(strtol).
115663 2001-08-26  Jim Meyering  <meyering@lucent.com>
115665         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
115666         of copyright with `%s' so translators don't get an untranslated
115667         message in 2002.
115668         (COPYRIGHT_YEAR): Define.
115669         (version_etc): Use fprintf rather than fputs.
115670         Suggestion from Ulrich Drepper.
115672         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
115674         * lib/strtoll.c: New file, from GNU libc.
115675         * lib/xstrtoimax.c: New file.
115677         * lib/xstrtol.h: Add xstrtoimax.
115678         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
115679         * lib/strtoimax.c: New file.  Likewise, but first define
115680         STRTOUXMAX_SIGNED.
115682         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
115683         ...
115684         * lib/strtoxmax.c: ... then renamed to this.
115686 2001-08-18  Paul Eggert  <eggert@twinsun.com>
115688         * m4/inttypes.m4: Add AC_PREREQ(2.13).
115689         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
115690         (jm_AC_TYPE_INTMAX_T): New macro.
115691         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
115693         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
115695         * m4/longlong.m4: Renamed from ulonglong.m4.
115696         * m4/inttypes.m4: Renamed from inttypes_h.m4.
115697         * m4/uintmax_t.m4: Removed.
115699 2001-08-13  Paul Eggert  <eggert@twinsun.com>
115701         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
115702         Port to Solaris 8, where 'sed' requires a space after the 'r'
115703         command, and where sh dislikes "$/".  Clean up the spacing a bit.
115704         Redirect output to $tmp just once.
115706 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
115708         * lib/addext.c (<errno.h>): Include.
115709         (errno): Declare if not defined.
115710         (addext): Work correctly when pathconf returns -1 and leaves
115711         errno alone because there is no limit.  Also, work even if
115712         pathconf returns a value greater than SIZE_MAX.
115714 2001-08-12  Jim Meyering  <meyering@lucent.com>
115716         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
115717         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
115718         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
115719         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
115720         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
115721         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
115722         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
115723         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
115724         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
115725         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
115726         utime.m4, utimes.m4, xstrtoumax.m4:
115727         Quote the first argument in each use of AC_DEFUN.
115729 2001-08-12  Jim Meyering  <meyering@lucent.com>
115731         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
115732         Simply `return getcwd (NULL, 0);'.
115733         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
115734         Use 1300 as initial value for length, not PATH_MAX.
115736         * lib/pathmax.h: Clean up cpp syntax.
115738 2001-08-12  Jim Meyering  <meyering@lucent.com>
115740         * lib/gettimeofday.c: New file.
115741         * lib/gtod.h: New file.
115742         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
115744 2001-08-05  Jim Meyering  <meyering@lucent.com>
115746         * m4/jm-macros.m4: Require autoconf-2.52.
115748 2001-08-04  Jim Meyering  <meyering@lucent.com>
115750         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
115751         stmt, to get in sync with glibc.
115753 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115755         The following changes are from gettext 0.10.39 as maintained by
115756         Bruno Haible.
115758         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
115759         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
115760         with inverted sense.  All uses changed.
115762         * lib/mbswidth.c: Don't include <limits.h>.
115763         Include <stdlib.h> and <string.h> unconditionally.
115764         (iswcntrl, mbsinit, ISCNTRL): New macros.
115765         (mbsnwidth): Use K&R style function declarations.
115766         Don't bother checking for MB_LEN_MAX == 1, since the compiler
115767         can optimize it when MB_CUR_MAX == 1.
115768         The width of control characters is zero, not 1.
115770 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115772         The following changes are from gettext 0.10.39 as maintained by
115773         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
115775         * m4/codeset.m4: Upgrade to serial AM1.
115776         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
115777         all uses changed.  Quote first arg of AC_DEFUN.
115778         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
115780         * m4/iconv.m4: Upgrade to serial AM2.
115781         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
115782         Add --with-libconv-prefix.
115783         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
115784         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
115785         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
115786         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
115787         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
115789         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
115790         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
115791         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
115792         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
115793         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
115794         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
115795         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
115796         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
115797         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115799         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
115800         string.h any more.
115802         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
115803         not the default value.
115805         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
115806         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
115807         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
115808         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
115809         Also check for iswcntrl, used for wcwidth fallback.
115810         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
115811         to Autoconf 2.13.
115813 2001-08-03  Jim Meyering  <meyering@lucent.com>
115815         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
115816         as it was in the original.  Reported by Paul Eggert.
115818 2001-07-16  Jim Meyering  <meyering@lucent.com>
115820         * m4/gettimeofday.m4: New file.
115821         Prompted by a report from Bernhard Baehr.
115823 2001-07-15  Jim Meyering  <meyering@lucent.com>
115825         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
115826         stuff. Now it's in ../Makefile.cfg.
115828 2001-07-15  Jim Meyering  <meyering@lucent.com>
115830         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
115831         (BUILT_SOURCES): Add unlocked-io.h.
115832         (io_functions): Define.
115833         (unlocked-io.h): New rule.
115834         (DISTCLEANFILES): Add unlocked-io.h.
115835         (all-local): Depend on unlocked-io.h, to ensure it is created.
115837         * lib/unlocked-io.hin: New file
115839         * lib/regex.c: Update from glibc.
115841 2001-07-05  Jim Meyering  <meyering@lucent.com>
115843         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
115844         recommendation.
115845         (libfetish_a_SOURCES): Put all .h files here instead.
115846         Remove a thus-exposed (better checks in automake) duplicate and
115847         two unnecessary .h files.
115849 2001-07-04  Jim Meyering  <meyering@lucent.com>
115851         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
115852         that generates jm-glibc-io.m4 so that it doesn't trigger any make
115853         distcheck failure.
115855 2001-07-02  Jim Meyering  <meyering@lucent.com>
115857         The following changes were prompted by suggestions from Bruno Haible.
115859         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
115860         is now generated.
115861         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
115862         definition of EXTRA_DIST.
115863         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
115864         ensure that the generated file is created/updated whenever the list
115865         of $(unlocked_functions) is changed.
115866         (jm-glibc-io.m4): New rule.
115867         (unlocked-io.h): New rule -- currently unused.
115869 2001-06-24  Jim Meyering  <meyering@lucent.com>
115871         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
115872         unmatched right bracket, rather than kludging it with an extra,
115873         falsely-matching quote in a comment.  Patch by Akim Demaille.
115875 2001-06-11  Jim Meyering  <meyering@lucent.com>
115877         * lib/regex.c: Update from GNU libc.
115879 2001-05-27  Jim Meyering  <meyering@lucent.com>
115881         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
115882         Check for ut_type in struct utmp.
115884 2001-05-27  Jim Meyering  <meyering@lucent.com>
115886         * lib/readutmp.h (UT_TYPE): Define.
115888 2001-05-24  Jim Meyering  <meyering@lucent.com>
115890         * lib/argmatch.c: Include "quote.h".
115891         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
115892         quote function.  Reported by Göran Uddeborg.
115894 2001-05-22  Jim Meyering  <meyering@lucent.com>
115896         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
115897         now that we use the package-supplied version unconditionally.
115898         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
115900 2001-05-21  Jim Meyering  <meyering@lucent.com>
115902         * m4/regex.m4: Change a couple backticks to single quotes to avoid
115903         shell syntax errors.
115905 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
115907         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
115909 2001-05-20  Paul Eggert  <eggert@twinsun.com>
115911         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
115912         Don't bother to check library strftime, since
115913         we'll be using our own my_strftime function anyway.
115914         Define my_strftime instead of strftime.
115916 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
115918         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
115919         which is not yet declared.
115921 2001-05-15  Jim Meyering  <meyering@lucent.com>
115923         * m4/regex.m4: Use proper quoting so brackets appear in the test
115924         program.
115925         Reported by, and with help from, Bruno Haible.
115927 2001-05-13  Jim Meyering  <meyering@lucent.com>
115929         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
115930         undefined.
115932 2001-05-11  Paul Eggert  <eggert@twinsun.com>
115934         dirname code cleanup.  base_name now behaves more compatibly
115935         with POSIX basename when given file names that have trailing
115936         slashes, and similarly for dir_name.  Add new primitives
115937         base_len and dir_len.  Put the directory-name-related decls
115938         into dirname.h.
115940         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
115941         * lib/backupfile.c (base_name): Likewise.
115942         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
115943         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
115944         * lib/makepath.c (strip_trailing_slashes): Likewise.
115945         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
115946         ISSLASH): Likewise.
115947         * lib/rename.c (strip_trailing_slashes): Likewise.
115948         * lib/same.c (base_name): Likewise.
115949         * lib/stripslash.c (ISSLASH): Likewise.
115951         * lib/addext.c: Include <dirname.h> after size_t is defined.
115952         * lib/backupfile.c: Likewise.
115954         * lib/addext.c (addext): Use base_len to trim redundant
115955         trailing slashes instead of doing it ourselves.
115956         But do not trim the last slash if it is not redundant.
115958         * lib/backupfile.c (find_backup_file_name,
115959         max_backup_version): Use base_len instead of rolling it ourselves.
115960         Handle the case of "" and (on DOS) "C:" correctly.
115962         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
115963         needed. Include <string.h>, <dirname.h>.
115964         (base_name): Allow file names ending in slashes, other than names
115965         that are all slashes.  In this case, return the basename followed
115966         by the slashes.  This is more general, and can be used in places
115967         where the original base_name purposely had an assertion failure.
115968         (base_len): New function.
115970         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
115971         Do not include <assert.h>; no longer needed.
115972         Include xalloc.h.
115973         (memrchr): Remove decl.
115974         (dir_name_r): Remove.
115975         (dir_len): Renamed from dirlen.  All callers changed.
115976         Rewrite in terms of base_name, for simplicity and consistency.
115977         (dir_name): Never return NULL.  All callers changed.
115978         Do not include <stdlib.h> in test program; no longer needed.
115979         return 0; is fine for test program.
115981         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
115982         New macros.
115983         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
115985         * lib/path-concat.c (path_concat): Use base_len to compute
115986         base length, not strlen; this means we cannot rely on memcpy
115987         to null-terminate.
115989         * lib/same.c (STREQ): Remove.
115990         (same_name): Handle the case where the basename ends in trailing '/'.
115992         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
115993         a slash was stripped.  Do not strip the last slash after a
115994         file system prefix.
115996 2001-05-11  Paul Eggert  <eggert@twinsun.com>
115998         * lib/Makefile.am (libfetish_a_SOURCES):
115999         Add strftime.c, since we now compile it on all hosts.
116001         * lib/strftime.c (my_strftime):
116002         Define to nstrftime if emacs, but only if my_strftime is not defined.
116003         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
116004         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
116005         Add one more extra argument: a nanoseconds value.
116006         All uses changed.
116007         (ns): New macro.
116008         (my_strftime function): Add %N format.
116009         (emacs_strftimeu): Renamed from emacs_strftime,
116010         with extra ut argument.
116012 2001-05-09  Paul Eggert  <eggert@twinsun.com>
116014         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
116016 2001-04-21  Jim Meyering  <meyering@lucent.com>
116018         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
116019         doesn't interfere.
116021 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116023         * m4/ftruncate.m4: Check for chsize.
116024         Link with ftruncate.o unconditionally if ftruncate is missing.
116025         This was required when cross-compiling to i586-mingw32msvc.
116027 2001-04-08  Jim Meyering  <meyering@lucent.com>
116029         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
116030         recomputed; that's necessary when the offset spans a DST transition.
116031         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
116033 2001-04-02  Jim Meyering  <meyering@lucent.com>
116035         * lib/regex.h, regex.c: Update from GNU libc.
116037 2001-03-24  Jim Meyering  <meyering@lucent.com>
116039         * m4/jm-macros.m4: Require autoconf-2.49d.
116041 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
116043         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
116045 2001-03-19  Paul Eggert  <eggert@twinsun.com>
116047         * lib/version-etc.c (version_etc_copyright): Update to 2001.
116049 2001-03-17  Jim Meyering  <meyering@lucent.com>
116051         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
116052         now that the version in autoconf is equivalent.
116053         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
116055         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
116056         Suggestion from Akim Demaille.
116058         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
116059         (jm_PREREQ_TEMPNAME): New function.
116061 2001-03-16  Paul Eggert  <eggert@twinsun.com>
116063         * lib/tempname.c (uint64_t): Define to uintmax_t if
116064         not defined, and if UINT64_MAX is not defined.
116065         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
116066         Reported by John David Anglin.
116068 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
116070         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
116071         resolve alias if codeset is empty.
116072         * lib/config.charset (BeOS): Use wildcard syntax.
116074 2001-03-13  Jim Meyering  <meyering@lucent.com>
116076         * lib/path-concat.c (path_concat)
116077         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
116078         concatenating e.g., `C:' and `foo'.
116079         From Bruno Haible.
116081 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116083         * lib/localcharset.c (locale_charset): Don't use
116084         setlocale(LC_CTYPE,NULL). Don't return NULL.
116085         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
116087 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116089         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
116090         support for DOS/DJGPP.
116092 2001-03-01  Paul Eggert  <eggert@twinsun.com>
116094         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
116095         lacks mkstemp.  Compile our own tempname.c if we compile our own
116096         mkstemp.c, as mkstemp relies on tempname.
116098 2001-03-01  Jim Meyering  <meyering@lucent.com>
116100         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
116101         AH_VERBATIM really does output its argument verbatim.
116103 2001-02-28  Paul Eggert  <eggert@twinsun.com>
116105         * lib/Makefile.am (libfetish_a_SOURCES):
116106         Add dup-safer.c, fopen-safer.c.
116107         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
116109         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
116110         * lib/unistd-safer.h: New files.
116112 2001-02-25  Paul Eggert  <eggert@twinsun.com>
116114         The mkstemp replacement is taken from glibc 2.2.2, with some
116115         portability fixes for use outside glibc, as follows:
116117         * lib/tempname.c (struct_stat64): New macro.
116118         (direxists, __gen_tempname): Use it.
116119         This avoids a portability problem with Solaris 8.
116121         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
116122         (<stddef.h>, <stdint.h>, <string.h>):
116123         Include only if STDC_HEADERS || _LIBC.
116124         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
116125         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
116126         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
116127         (__set_errno): Define this macro if <errno.h> doesn't.
116128         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
116129         Define these macros if <stdio.h> doesn't.
116130         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
116131         Define these macros if <sys/stat.h>
116132         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
116133         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
116134         __xstat64): Define if not _LIBC.
116135         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
116136         (__gen_tempname): Invoke gettimeofday only if
116137         HAVE_GETTIMEOFDAY || _LIBC;
116138         otherwise, fall back on plain "time".
116139         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
116141         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
116143         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
116145 2001-02-18  Paul Eggert  <eggert@twinsun.com>
116147         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
116149 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116151         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
116152         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
116153         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
116154         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
116156 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116158         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
116159         Remove workaround macros for hosts that have mbrtowc but not
116160         mbstate_t, as we now insist on proper declarations for both
116161         before using mbrtowc.
116163 2001-02-17  Jim Meyering  <meyering@lucent.com>
116165         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
116166         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
116167         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
116168         UnixWare 7.1.1.
116170         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
116171         rather than AC_CACHE_VAL.
116173 2001-02-17  Jim Meyering  <meyering@lucent.com>
116175         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
116176         around included file name.
116178         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
116180         * lib/strftime.c: Update from GNU libc (the only changes were to
116181         comments).
116183 2001-02-17  Jim Meyering  <meyering@lucent.com>
116185         * lib/regex.c: Update from libc.
116187 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
116189         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
116190         clash.
116192 2001-02-16  Paul Eggert  <eggert@twinsun.com>
116194         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
116195         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
116196         Reported by Mark Hounschell via Paul Eggert.
116198 2001-02-07  Jim Meyering  <meyering@lucent.com>
116200         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
116202 2001-02-05  Jim Meyering  <meyering@lucent.com>
116204         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
116205         it includes the patch required for `large file' support with at least
116206         HP-UX's 10.20 /bin/cc.
116208 2001-02-03  Jim Meyering  <meyering@lucent.com>
116210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
116211         AS_IF, now that it works once again (mysteriously).
116212         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116214 2001-01-30  Jim Meyering  <meyering@lucent.com>
116216         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
116217         * m4/chown.m4: Rename conftestchown to conftest.chown.
116218         * m4/rename.m4: s/conftestdir/conftest.d1/ and
116219         s/conftestdir2/conftest.d2/.
116220         * m4/utimes.m4: s/conftestdata/conftest.data/
116221         Inspired by Pavel Roskin's change in autoconf.
116223 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
116225         * lib/config.charset: Update for FreeBSD 4.2.
116227 2001-01-27  Jim Meyering  <meyering@lucent.com>
116229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
116230         a use of AS_IF.
116231         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116233 2001-01-26  Jim Meyering  <meyering@lucent.com>
116235         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
116236         quotearg.c includes it.
116238 2001-01-26  Jim Meyering  <meyering@lucent.com>
116240         * lib/quotearg.c: Include stddef.h.
116241         * lib/quote.c: Include stddef.h.
116242         Reported by Axel Kittenberger.
116244         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
116245         line in double quotes so that it evokes a better diagnostic.
116246         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
116247         Reported by Axel Kittenberger.
116249 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
116251         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
116252         as if it was a `charset'.
116254 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116256         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
116257         has const.
116259 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116261         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
116262         to avoid a warning.  Add back 'const' to inptr.
116264 2001-01-20  Jim Meyering  <meyering@lucent.com>
116266         Be sure that headers are checked before used in code compiled
116267         for the type checks.
116268         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
116269         In place of that, invoke jm_CHECK_ALL_TYPES.
116270         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
116271         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
116272         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
116273         The check for ssize_t was mistakenly run before the test for unistd.h.
116275         The configure-time check for stdbool.h was missing.
116276         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
116277         (jm_PREREQ_HASH): New function.
116279 2001-01-17  Jim Meyering  <meyering@lucent.com>
116281         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
116282         for autoconf-2.49c.
116283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
116285 2001-01-16  Jim Meyering  <meyering@lucent.com>
116287         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
116288         From Bruno Haible.
116290 2001-01-14  Jim Meyering  <meyering@lucent.com>
116292         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116293         foo and bar.  Create conftestdir/ in the script, not in the C code.
116294         Remove directories in the script, not in the C code.
116295         Remove conftestdir{,2} before trying to create the directory.
116296         Make the entire configure script fail if the mkdir fails.
116298 2001-01-14  Jim Meyering  <meyering@lucent.com>
116300         * lib/rename.c: New file.  From Volker Borchert.
116301         Include stdlib.h, string.h or strings.h, and xalloc.h.
116302         Use strip_trailing_slashes rather than open-coding it.
116304 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116306         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116308 2001-01-03  Jim Meyering  <meyering@lucent.com>
116310         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116311         of local `inptr' to avoid warning with some system declarations of
116312         iconv.
116314 2001-01-02  Volker Borchert  <bt@teknon.de>
116316         * m4/rename.m4: New file.
116317         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116319 2001-01-01  Jim Meyering  <meyering@lucent.com>
116321         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116322         even on systems with utmpx.h.  It's necessary for the declaration of
116323         utmp's ut_user member.  Reported by Andreas Jaeger.
116325         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116326         available. They are required for the declarations of getgrgid and
116327         getpwuid resp.
116328         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116329         Reported by Andreas Jaeger.
116331 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116333         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116334         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116335         so `make install' also works in VPATH builds.
116337 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116339         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116340         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116341         can be used in subdirectories.
116343 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116345         * lib/modechange.c: Do not assume that mode_t uses the
116346         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116347         the other-execute bit of FOO even if S_IXOTH != 1.
116349         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116350         WOTH, XOTH, ALLM): New macros.
116351         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116352          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116353         Use them.
116354         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116355         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116356         (mode_compile):
116357         No need to use uintmax_t; unsigned long is long enough.
116358         Don't bother to get suffix since we don't use it.
116360 2000-12-26  Jim Meyering  <meyering@lucent.com>
116362         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116363         better with autoheader.
116365 2000-12-24  Jim Meyering  <meyering@lucent.com>
116367         * lib/hash.c (is_prime): Return explicit boolean values.
116368         (hash_get_first): Return NULL to appease Irix5.6's 89.
116369         Reported by Nelson Beebe.
116371 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116373         * lib/localcharset.c (locale_charset): Add support for Win32.
116375 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116377         * lib/physmem.h, lib/physmem.c: New files.
116379         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116380         (noinst_HEADERS): Add physmem.h.
116382         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116383         't' for compatibility with Solaris 8 sort.
116385 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116387         * lib/config.charset: Add support for BeOS.
116389 2000-12-17  Jim Meyering  <meyering@lucent.com>
116391         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116392         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116394 2000-12-16  Jim Meyering  <meyering@lucent.com>
116396         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116397         N and M) would have treated it like `chown N:N FILE'.
116399         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116401 2000-12-16  Jim Meyering  <meyering@lucent.com>
116403         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116404         SHELLS_FILE to a file name that's useful on djgpp systems.
116405         Include stdlib.h.
116406         (ADDITIONAL_DEFAULT_SHELLS): Define.
116407         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116408         Based mostly on a patch from Prashant TR.
116410 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116412         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116413         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116414         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116416 2000-12-08  Andreas Schwab  <schwab@suse.de>
116418         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116419         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116421 2000-12-07  Jim Meyering  <meyering@lucent.com>
116423         * lib/stripslash.c (ISSLASH): Define.
116424         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116425         `/'.
116426         From Prashant TR.
116428         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116429         (dir_name_r): Declare this function as static.
116430         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116431         manifest itself on a name containing a mix of slashes and
116432         backslashes.
116433         Make this function work with names starting with a DOS-style
116434         drive letter and colon prefix.
116435         (dir_name): Append `.' if necessary.
116436         Based mostly on patches from Prashant TR and Eli Zaretskii.
116438         * lib/dirname.h (dir_name_r): Remove prototype.
116440 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116442         * m4/off_t-format.m4: Remove this file.
116443         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116445 2000-12-06  Jim Meyering  <meyering@lucent.com>
116447         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116448         replacement strtoull, we may well need the replacement strtoul, too.
116449         Check for declarations of strtoul and strtoull.
116450         Check for strtol.  Mainly as a cue to cause automake to include
116451         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116452         Check for limits.h -- strtol.c needs it.
116454 2000-12-05  Jim Meyering  <meyering@lucent.com>
116456         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116458 2000-12-04  Jim Meyering  <meyering@lucent.com>
116460         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116461         Also include memory.h, stdlib.h, unistd.h if appropriate.
116462         Reported by Andreas Jaeger (conflicting declaration of malloc).
116464 2000-12-02  Jim Meyering  <meyering@lucent.com>
116466         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116467         * m4/jm-macros.m4 (jm_MACROS): require it.
116469 2000-12-02  Jim Meyering  <meyering@lucent.com>
116471         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116473 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116475         * lib/memrchr.c: Include <config.h> before any system include file.
116477 2000-11-30  Jim Meyering  <meyering@lucent.com>
116479         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116481 2000-11-30  Jim Meyering  <meyering@lucent.com>
116483         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116485 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116487         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116489 2000-11-26  Jim Meyering  <meyering@lucent.com>
116491         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116493 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116495         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116496         size of (size_t) -1; it's not portable.
116498 2000-11-17  Jim Meyering  <meyering@lucent.com>
116500         * lib/strstr.c: Update from GNU libc.
116502 2000-11-17  Akim Demaille  <akim@epita.fr>
116504         * lib/obstack.h: Formatting changes.
116505         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116506         prevent type checking.
116507         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116508         cast the value to (void *): assigning a `foo *' to a `void *'
116509         variable is valid.
116510         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116512 2000-11-16  Jim Meyering  <meyering@lucent.com>
116514         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116516 2000-11-11  Jim Meyering  <meyering@lucent.com>
116518         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116520 2000-11-10  Jim Meyering  <meyering@lucent.com>
116522         * lib/obstack.h: Update from GNU libc.
116523         * lib/obstack.c: Likewise.
116525 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116527         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116529 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116531         * lib/getusershell.c (setusershell): Use rewind rather than
116532         fseek/fseeko, to avoid configuration hassles with fseeko.
116533         Don't bother opening SHELLS_FILE if shellstream is NULL;
116534         it's not necessary.
116536 2000-11-05  Jim Meyering  <meyering@lucent.com>
116538         * lib/makepath.h (make_dir): Declare.
116539         * lib/makepath.c (make_dir): Remove `static' attribute.
116540         Tweak a comment.
116542 2000-11-04  Jim Meyering  <meyering@lucent.com>
116544         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
116546 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
116548         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
116549         last one in a bucket, advance to the next bucket.
116551 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
116553         * lib/fnmatch.c: Do not comment out all the code if we are using
116554         the GNU C library, because in some cases we are replacing buggy
116555         code in the GNU C library itself.
116557 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116559         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
116560         (regex_compile): Catch bogus \(\1\).
116562 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116564         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
116565         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
116566         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
116568 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116570         * lib/error.h, getline.h, modechange.h:
116571         Remove "2000" from Copyright line, as the file hasn't been
116572         changed this year other than in the copyright notice.
116574         * lib/xalloc.h: Add "2000" to Copyright line, as this file
116575         was changed this year.
116577 2000-10-29  Jim Meyering  <meyering@lucent.com>
116579         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
116580         renaming.
116581         * m4/ls-mntd-fs.m4: Likewise
116583 2000-10-29  Jim Meyering  <meyering@lucent.com>
116585         * lib/xstat.in: Fix grammar in comment.
116587 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
116589         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
116590         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
116591         doesn't define __restrict_arr.
116593 2000-10-28  Jim Meyering  <meyering@lucent.com>
116595         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
116596         (jm_PREREQ_MEMCHR): New function.
116598 2000-10-28  Jim Meyering  <meyering@lucent.com>
116600         * lib/memchr.c: Update from libc.
116601         Adjust for portability:
116602         [HAVE_STDLIB_H]: Include stdlib.h.
116603         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
116604         Undef __memchr, too.
116605         [!weak_alias]: Define __memchr to memchr.
116607         * lib/regex.c: Update from libc.
116608         * lib/regex.h: Likewise.
116609         * lib/getopt1.c: Likewise.
116610         * lib/memcmp.c: Likewise.
116612         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
116613         Avoid using fseek, when possible -- it's broken by design.
116614         Patch by Ulrich Drepper.
116616 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
116618         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
116619         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
116620         Giving in to popular pressure to shut up the compiler with casts.
116622 2000-10-26  Jim Meyering  <meyering@lucent.com>
116624         * lib/strftime.c: Update from libc.
116626 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
116628         * regex.c: More `unsigned char' -> `re_char' changes.
116629         Also change several `int' into `re_wchar_t'.
116630         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
116631         (PUSH_FAILURE_POINTER): Don't cast any more.
116632         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
116633         We want GCC to complain, since this piece of code makes
116634         re_match non-reentrant, which *should* be fixed.
116635         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
116636         (EXTEND_BUFFER): Use RETALLOC.
116637         (SET_LIST_BIT): Don't cast.
116638         (re_wchar_t): New type.
116639         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
116640         that those two functions will always properly return.
116641         (IMMEDIATE_QUIT_CHECK): Cast to void.
116642         (analyse_first): Use recursion rather than an explicit stack.
116643         (re_compile_fastmap): Can't fail anymore.
116644         (re_search_2): Don't check re_compile_fastmap for failure.
116645         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
116646         Now also sets the new value (passed in a new argument).
116647         (re_match_2_internal): Use it.
116648         Also, use a new var `reg' of type size_t when looping through regs
116649         rather than reuse the inappropriate `mcnt'.
116651 2000-10-25  Jim Meyering  <meyering@lucent.com>
116653         * lib/obstack.c: Update from libc.
116655 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
116657         * regex.c (regex_compile): Change the way of handling a range from
116658         a char less than 256 to a char not less than 256.
116660 2000-10-24  Andrew Innes  <andrewi@gnu.org>
116662         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
116663         NT-Emacs only.
116664         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
116665         so that re_search functions only quit when callers expect them to.
116667 2000-10-23  Jim Meyering  <meyering@lucent.com>
116669         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
116670         wrong.  That set_locale call must not have any side effects.
116671         From Paul Eggert.
116673 2000-10-22  Jim Meyering  <meyering@lucent.com>
116675         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
116676         [CYCLIC]: Remove now-unused definition.
116678         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
116679         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
116680         Suggestion from Ulrich Drepper.
116682 2000-10-21  Jim Meyering  <meyering@lucent.com>
116684         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
116685         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
116686         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
116688 2000-10-21  Jim Meyering  <meyering@lucent.com>
116690         * lib/dirname.c (memrchr): Declare if necessary.
116691         (dir_name): Remove the restriction that there be no
116692         trailing slashes.  Now, this code skips past them, effectively
116693         ignoring them.
116694         [TEST_DIRNAME] (main): New unit tests.
116696         * lib/memrchr.c: New file from GNU libc.
116697         Undef __memrchr, too.
116698         [!weak_alias]: Define __memrchr to memrchr.
116699         Guard weak_alias use with `#ifdef weak_alias'.
116701 2000-10-21  Jim Meyering  <meyering@lucent.com>
116703         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
116704         (dir_name): Use dir_name_r.
116705         * lib/dirname.h (dir_name_r): Declare it.
116707 2000-10-17  Jim Meyering  <meyering@lucent.com>
116709         * lib/quote.h (PARAMS): Define and use.
116710         Reported by Akim Demaille.
116712         * lib/getopt.c: Update from libc.
116714 2000-10-16  Jim Meyering  <meyering@lucent.com>
116716         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
116717         setlocale.
116718         From Jan Fedak.
116720 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
116722         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
116724 2000-09-25  Jim Meyering  <meyering@lucent.com>
116726         * lib/md5.h (rol): Define (from GnuPG).
116728         * lib/sha.c: Give credit (GnuPG) where due.
116729         (M): Use rol rather than open-coding it.
116730         Add a FIXME comment.
116732 2000-09-21  Jim Meyering  <meyering@lucent.com>
116734         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
116735         Reported by Michael Stone.
116737 2000-09-20  Jim Meyering  <meyering@lucent.com>
116739         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
116740         (noinst_HEADERS): Add sha.h.
116741         Based on code from Scott G. Miller and from GnuPG.
116743 2000-09-18  Jim Meyering  <meyering@lucent.com>
116745         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
116746         LIBS. Otherwise, everyone ends up linking with -lelf for some
116747         configurations.
116748         Reported by Mike Stone.
116750 2000-09-15  Jim Meyering  <meyering@lucent.com>
116752         * lib/regex.c: Update from libc.
116754 2000-09-10  Jim Meyering  <meyering@lucent.com>
116756         * lib/getopt.c (_getopt_internal): Update from glibc.
116758 2000-09-09  Jim Meyering  <meyering@lucent.com>
116760         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
116761         think it should be used as a general replacement for isascii.
116762         * lib/fnmatch.c: Likewise.
116763         * lib/mbswidth.c: Likewise
116764         * lib/regex.c: Likewise.
116766         Don't use atoi.
116767         * lib/userspec.c: Include sys/param.h and limits.h.
116768         Include xstrtol.h.
116769         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
116770         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
116771         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
116772         UID, GID.  Check range.
116774 2000-09-06  Jim Meyering  <meyering@lucent.com>
116776         * lib/getopt.c (_getopt_internal): Update from glibc.
116778 2000-08-30  Jim Meyering  <meyering@lucent.com>
116780         * lib/strftime.c: Merge in changes from GNU libc.
116782 2000-08-26  Jim Meyering  <meyering@lucent.com>
116784         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
116785         * m4/fpending.m4: New file.
116787 2000-08-26  Jim Meyering  <meyering@lucent.com>
116789         * lib/closeout.c: Include "__fpending.h".
116790         (close_stdout_status): Return right away if there's nothing to flush.
116792         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
116793         * lib/__fpending.c: New file.
116794         * lib/__fpending.h: New file.
116796 2000-08-20  Jim Meyering  <meyering@lucent.com>
116798         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
116799         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
116800         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
116802 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
116804         Improve fileutils installation on systems where running
116805         programs (like install) can't be unlinked.
116806         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
116807         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
116809 2000-08-07  Paul Eggert  <eggert@twinsun.com>
116811         Standardize on "memory exhausted" instead of "Memory exhausted"
116812         or "virtual memory exhausted".
116813         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
116814         "virtual memory exhausted".
116815         * lib/same.c (same_name): Invoke xalloc_die instead of printing
116816         our own message.
116817         * lib/userspec.c (parse_user_spec): Likewise.
116818         * lib/bumpalloc.h: comment fix
116819         * lib/same.c, userspec.c: Include xalloc.h.
116821         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
116822         not char *const and pointing to a constant array.
116823         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
116824         (xrealloc): Comment fix.
116826         * lib/userspec.c (parse_user_spec):
116827         Don't translate a message until just before returning,
116828         to avoid unnecessary translation.
116830 2000-08-07  Jim Meyering  <meyering@lucent.com>
116832         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
116833         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
116834         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
116835         getgroups.c, gethostname.c, getopt.h, group-member.c,
116836         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
116837         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
116838         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
116839         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
116840         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
116841         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
116842         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
116843         yesno.c: Back out Copyright date changes for each file with no change
116844         this year.  This eases coordination with other programs using the same
116845         source code modules.  From Paul Eggert.
116847 2000-08-06  Paul Eggert  <eggert@twinsun.com>
116849         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
116850         not char, for compatibility with glibc 2.1.3 strftime.c.
116852 2000-08-03  Greg McGary  <greg@mcgary.org>
116854         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
116855         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
116856         (EXTEND_BUFFER): Use them.
116858 2000-08-01  Jim Meyering  <meyering@lucent.com>
116860         * lib/dirname.c (ISSLASH): Define.
116861         (BACKSLASH_IS_PATH_SEPARATOR): Define.
116862         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
116863         both `\' and `/' may be use as path separators.
116864         Based on a patch from Prashant TR.
116866 2000-07-31  Paul Eggert  <eggert@twinsun.com>
116868         * lib/quotearg.c (quotearg_n_options): Don't make the initial
116869         slot vector a constant, since it might get modified.
116871 2000-07-31  Jim Meyering  <meyering@lucent.com>
116873         * lib/xmalloc.c: Use `virtual memory exhausted', not
116874         `Memory exhausted'.
116875         * lib/obstack.c (print_and_abort): Likewise.
116877 2000-07-30  Paul Eggert  <eggert@twinsun.com>
116879         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
116880         buffer, so that the caller can always quote one small
116881         component of a "memory exhausted" message in slot 0.
116882         From a suggestion by Jim Meyering.
116884 2000-07-30  Jim Meyering  <meyering@lucent.com>
116886         * lib/makepath.c (make_path): Quote the other instance, too.
116888         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
116889         (STATIC_BUF_SIZE): Define.
116890         (quotearg_n_options): Use only statically allocated storage when
116891         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
116892         than STATIC_BUF_SIZE.
116894 2000-07-29  Jim Meyering  <meyering@lucent.com>
116896         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
116897         * lib/dirname.c (dir_name): Likewise.
116899         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
116900         `/'.
116902         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
116903         (dir_name): Assert that there are no trailing slashes.
116905 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
116907         * lib/mbswidth.h (mbswidth): Add a flags argument.
116908         (mbswidth): New declaration.
116909         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
116910         * lib/mbswidth.c (mbswidth): Add a flags argument.
116911         (mbsnwidth): New function.
116913 2000-07-24  Jim Meyering  <meyering@lucent.com>
116915         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
116917 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116919         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
116921 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116923         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
116924         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
116925         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
116926         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
116927         invoke multibyte primitives.
116929 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116931         * lib/quotearg.c:
116932         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
116933         so that mbstate_t is always defined.
116935         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
116936         be 1 in at least one GCC installation, and this configuration
116937         error is likely to be common.  Ignoring MB_LEN_MAX hurts
116938         performance on hosts that have mbrtowc but have only unibyte
116939         locales, but I assume these hosts are rare.
116941 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116943         * lib/mbswidth.c (_XOPEN_SOURCE):
116944         Don't define; this causes problems on Solaris 7.
116945         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
116947 2000-07-23  Jim Meyering  <meyering@lucent.com>
116949         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
116950         too: getgrgid, getpwuid, getuid.
116952 2000-07-23  Jim Meyering  <meyering@lucent.com>
116954         * lib/basename.c (base_name): Add an assertion.
116956 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
116958         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
116959         shadow its mbsinit function.
116961 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116963         * lib/mbswidth.h: New file.
116964         * lib/mbswidth.c: New file.
116965         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
116966         (noinst_HEADERS): Add mbswidth.h.
116968 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116970         * lib/config.charset: Add support for FreeBSD. Improve support for
116971         HP-UX and IRIX 6.
116973 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
116975         * m4/mbswidth.m4: New file.
116976         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
116978 2000-07-15  Jim Meyering  <meyering@lucent.com>
116980         * lib/makepath.c: Include quote.h.
116981         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
116982         corresponding argument in a `quote (...)' call.
116983         Give better diagnostics.
116985         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
116986         (noinst_HEADERS): Add quote.h.
116988         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
116989         from tar's src/misc.c.
116990         * lib/quote.h: New file.  Prototypes for same.
116992 2000-07-14  Paul Eggert  <eggert@twinsun.com>
116994         From a suggestion by Bruno Haible.
116995         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
116996         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
116997         to decide whether to define the BeOS workaround macro;
116998         this adjusts to the change to AC_MBSTATE_T.
117000 2000-07-14  Jim Meyering  <meyering@lucent.com>
117002         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
117003         jm_AC_TYPE_UINTMAX_T.
117005 2000-07-13  Paul Eggert  <eggert@twinsun.com>
117007         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
117009         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
117010         quotearg_buffer_restyled): Add support for
117011         clocale_quoting_style.  Undo previous change to
117012         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
117013         and "{RIGHT QUOTATION MARK}" msgids.
117015 2000-07-10  Paul Eggert  <eggert@twinsun.com>
117017         From a suggestion by Bruno Haible.
117018         * m4/mbstate_t.m4 (AC_MBSTATE_T):
117019         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
117020         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
117021         and mbstate_t, to a single-part test that simply defines mbstate_t.
117022         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
117023         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
117025 2000-07-10  Jim Meyering  <meyering@lucent.com>
117027         * m4/strerror_r.m4: Mirror the correction made in autoconf.
117029         * m4/gnu-source.m4: Output to confdefs.h directly.
117030         Suggestion from Akim Demaille.
117032 2000-07-09  Paul Eggert  <eggert@twinsun.com>
117034         The old behavior of quoting `like this' doesn't look good with
117035         newer, ISO-style fonts.  See:
117036         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
117038         Instead, quote "like this" by default.  Let the translator
117039         tailor the locale-specific quoting behavior by providing
117040         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
117042         * lib/quotearg.c (N_): New macro.
117043         (gettext_default): New function.
117044         (quotearg_buffer_restyled): Use
117045         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
117046         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
117048 2000-07-09  Jim Meyering  <meyering@lucent.com>
117050         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
117051         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
117053         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
117054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
117056 2000-07-09  Jim Meyering  <meyering@lucent.com>
117058         * lib/Most files: Update copyright dates to include 2000.
117060 2000-07-08  Jim Meyering  <meyering@lucent.com>
117062         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
117063         if not defined.
117064         (xgethostname): Remove now-unnecessary #ifdef.
117065         Move declaration of `err' into loop where it's used.
117067 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117068         and Bruno Haible  <haible@clisp.cons.org>
117070         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
117071         only if the test for an object-type mbstate_t fails.  This
117072         prevents us from mistakenly reporting that mbstate_t is a
117073         system object type after we "#define mbstate_t int" to work
117074         around its lack.
117076 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117077         and Bruno Haible  <haible@clisp.cons.org>
117079         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
117081 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117083         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
117084         to strerror_r.
117085         Include <ctype.h> for use of isalpha.
117087 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117089         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
117090         by allocating a larger buffer. Test the gethostname return value for
117091         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
117092         returns an error and ENAMETOOLONG isn't defined.
117094 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117096         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
117097         dimension.
117099 2000-07-04  Jim Meyering  <meyering@lucent.com>
117101         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
117102         of the deprecated AC_CHECKING.
117104 2000-07-04  Jim Meyering  <meyering@lucent.com>
117106         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
117107         Reported by Bruno Haible.
117109 2000-07-04  Jim Meyering  <meyering@lucent.com>
117111         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
117112         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
117113         lacks mbrtowc.
117115 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117117         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
117118         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
117120 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117121         and Bruno Haible  <haible@clisp.cons.org>
117123         * lib/quotearg.c (mbrtowc):
117124         Assign to *pwc, and return 1 only if result is nonzero.
117125         (iswprint): Use ISPRINT when substituting our own mbrtowc.
117127 2000-07-03  Jim Meyering  <meyering@lucent.com>
117129         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
117131 2000-07-03  Jim Meyering  <meyering@lucent.com>
117133         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
117134         This is necessary to get a definition of e.g., UTMP_FILE on
117135         HP-UX 10.20.
117136         From Bob Proulx.
117138 2000-07-02  Jim Meyering  <meyering@lucent.com>
117140         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
117142         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
117143         AC_LIBOBJ(function_name).
117144         * m4/chown.m4: Likewise.
117145         * m4/fnmatch.m4: Likewise.
117146         * m4/ftruncate.m4: Likewise.
117147         * m4/getgroups.m4: Likewise.
117148         * m4/getline.m4: Likewise.
117149         * m4/group-member.m4: Likewise.
117150         * m4/jm-macros.m4: Likewise.
117151         * m4/lstat.m4: Likewise.
117152         * m4/malloc.m4: Likewise.
117153         * m4/memcmp.m4: Likewise.
117154         * m4/nanosleep.m4: Likewise.
117155         * m4/putenv.m4: Likewise.
117156         * m4/realloc.m4: Likewise.
117157         * m4/regex.m4: Likewise.
117158         * m4/stat.m4: Likewise.
117159         * m4/strftime.m4: Likewise.
117161 2000-07-02  Jim Meyering  <meyering@lucent.com>
117163         * lib/quotearg.c (mbstate_t): Don't define here.
117165 2000-07-02  Jim Meyering  <meyering@lucent.com>
117167         * lib/nanosleep.c (SIGCONT): Define if not already defined.
117169 2000-07-01  Jim Meyering  <meyering@lucent.com>
117171         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
117173 2000-07-01  Jim Meyering  <meyering@lucent.com>
117175         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
117176         problem.
117178 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117180         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
117181         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
117183 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117185         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
117186         per change in ../m4/ls-mntd-fs.m4.
117187         (read_filesystem_list): Ignore symbolic links.
117189 2000-06-29  Jim Meyering  <meyering@lucent.com>
117191         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
117192         for declaration of strcmp.
117194         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
117196         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
117197         Avoid warning by casting result to `char *' to remove `const'.
117199 2000-06-28  Jim Meyering  <meyering@lucent.com>
117201         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
117202         included by quotearg.c, for which we perform this test.  From
117203         Bruno Haible.
117205 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117207         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
117208         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
117209         <utmpx.h> exists, put readutmp.o into LIBOBJS.
117211 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117213         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
117215 2000-06-26  Paul Eggert  <eggert@twinsun.com>
117217         savedir now sets errno on failure and invokes xmalloc to get memory.
117218         Fix a couple of other minor bugs while we're at it.
117220         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
117221         (NAMLEN): Remove macro.
117222         (malloc, realloc): Remove decls.
117223         (stpcpy): Likewise.
117224         ("xalloc.h"): Include.
117225         (NAME_SIZE_DEFAULT): New macro.
117226         (savedir): Use xmalloc / xrealloc to allocate memory.
117227         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
117228         Skip "" directory entries.
117229         Use strlen to calculate directory entry length, since the old method
117230         is rarely used these days and isn't worth supporting.
117231         Don't use a pointer after freeing it.
117232         Check for integer overflow when calculating allocation size.
117233         Use memcpy to copy entries, instead of stpcpy.
117234         Set errno properly when returning NULL.
117235         Check for readdir error.
117237 2000-06-26  Jim Meyering  <meyering@lucent.com>
117239         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
117241 2000-06-25  Jim Meyering  <meyering@lucent.com>
117243         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
117244         Linux header bug when _XOPEN_SOURCE is defined to 500.
117246 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117248         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
117249         deficiency.
117251 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117253         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
117254         Include xalloc.h.
117255         Don't include <stdlib.h>.  Don't declare malloc, realloc.
117257 2000-06-24  Jim Meyering  <meyering@lucent.com>
117259         * m4/strerror_r.m4: Revive this file -- to try out an experimental
117260         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
117261         for which strerror does return char*, but which lacks a conveniently
117262         accessible declaration of the function.  If the compile-test says
117263         strerror_r doesn't work, then resort to a `run'-test that works on
117264         BeOS and segfaults on DEC Unix.
117266 2000-06-24  Jim Meyering  <meyering@lucent.com>
117268         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
117270 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117272         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
117273         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
117275 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117277         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
117278         (mbrtowc, mbstate_t): Define substitutes if
117279         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
117280         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
117281         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
117283 2000-06-23  Jim Meyering  <meyering@lucent.com>
117285         * m4/afs.m4: Add missing AC_MSG_RESULT.
117286         Reported by Bruno Haible.
117288         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
117289         Suggestion from Bruno Haible.
117291 2000-06-23  Jim Meyering  <meyering@lucent.com>
117293         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117295 2000-06-21  Jim Meyering  <meyering@lucent.com>
117297         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117299 2000-06-21  Jim Meyering  <meyering@lucent.com>
117301         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117302         (noinst_HEADERS): Add getstr.h.
117304         * lib/getline.c (getstr): Move into a separate file.
117305         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117306         the following changes: new parameter, delim2; both delim[12]
117307         parameters have type `int', not `char'.  The latter would lose
117308         with 8-bit delimiters.
117309         * lib/getstr.h: New file.
117311 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117313         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117314         than 1024, return a memory chunk of least possible size, instead
117315         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117316         Use free/xmalloc instead of xrealloc to avoid copying for very long
117317         paths.
117319 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117321         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117322         the empty string.
117324 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117326         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117327         address, not strdup.  Include <stdlib.h> and don't declare free().
117329 2000-06-19  Jim Meyering  <meyering@lucent.com>
117331         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117333 2000-06-18  Jim Meyering  <meyering@lucent.com>
117335         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117337         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117338         `checking whether...' message to be consistent with that of the
117339         lstat test.
117341 2000-06-18  Jim Meyering  <meyering@lucent.com>
117343         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117344         Besides, these days every porting target provides a mkdir function.
117346         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117347         needed. (this snippet comes from src/system.h).
117349 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117351         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117353 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117355         * lib/human.c (adjust_value): New function.
117356         (human_readable_inexact): Apply rounding style even when
117357         printing approximate values.
117359 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117361         * lib/human.c (human_readable_inexact): Allow an input block
117362         size that is not a multiple of the output block size, and vice versa.
117363         Reported by Piergiorgio Sartor.
117365 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117367         * lib/getdate.y (get_date): Apply relative times after time
117368         zone indicator, not before.  Reported by Todd A. Jacobs.
117370 2000-06-13  Jim Meyering  <meyering@lucent.com>
117372         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117374         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117376 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117378         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117380 2000-06-12  Jim Meyering  <meyering@lucent.com>
117382         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117383         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117384         optional argument.
117385         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117386         the optional argument, `lib'.
117388 2000-06-08  Jim Meyering  <meyering@lucent.com>
117390         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117392 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117394         Rewrite largefile configuration so that we don't need to run
117395         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117396         AC_CANONICAL_HOST in configure.in -- jmm]
117398         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117399         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117400         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117401         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117402         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117403         All uses changed.
117404         Instead of inspecting the output of getconf, try to compile the
117405         test program without and with the macro definition.
117406         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117407         for getconf.  Instead, check for the needed flags by compiling
117408         test programs.
117410 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117412         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117414 2000-06-04  Jim Meyering  <meyering@lucent.com>
117416         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117417         SunOS 4.1.4 for which gid_t is an unsigned type.
117419 2000-06-03  Jim Meyering  <meyering@lucent.com>
117421         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117422         now that autoconf requires that.
117424         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117425         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117426         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117428 2000-06-03  Jim Meyering  <meyering@lucent.com>
117430         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117432 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117434         * m4/glibc21.m4: New file.
117435         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117437 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117439         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117440         newer, don't install charset.alias.
117441         * lib/config.charset: Change the Linux/glibc rules so they become empty
117442         on glibc-2.1 or newer.
117444 2000-06-02  Jim Meyering  <meyering@lucent.com>
117446         * lib/mountlist.c: Back out last change.  Instead, do this...
117447         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117448         me_dummy member using the same `ignore'-testing code.
117449         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117450         fs_type strings.
117451         From Mark D. Roth.
117453 2000-05-29  Jim Meyering  <meyering@lucent.com>
117455         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117456         mounts with the `ignore' attribute.  Based on a patch from
117457         Mark D. Roth.
117459 2000-05-28  Jim Meyering  <meyering@lucent.com>
117461         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117462         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117463         * m4/stat.m4: Likewise.
117464         * m4/lstat.m4: Likewise.
117465         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117467         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117468         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117470 2000-05-26  Jim Meyering  <meyering@lucent.com>
117472         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117474 2000-05-24  Jim Meyering  <meyering@lucent.com>
117476         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117477         autoconf requires that.
117478         * m4/lib-check.m4: Likewise.
117479         * m4/jm-macros.m4: Likewise.
117480         * m4/strftime.m4: Likewise.
117482         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117483         AC_CHECK_DECLS, now that autoconf requires that.
117485 2000-05-22  Jim Meyering  <meyering@lucent.com>
117487         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117488         * m4/lstat.m4: Likewise.
117490 2000-05-22  Jim Meyering  <meyering@lucent.com>
117492         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117494 2000-05-20  Jim Meyering  <meyering@lucent.com>
117496         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117497         (jm_PREREQ): Use it.
117499 2000-05-18  Jim Meyering  <meyering@lucent.com>
117501         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117502         back, too, since it may have been modified by allocate_entry.
117503         (hash_delete): Rewrite to use neither the assignment operator
117504         nor the comma operator in an if-expression.
117506 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117508         * lib/closeout.c:
117509         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117510         Remove; no longer needed.
117511         "quotearg.h": Add include.
117512         (file_name): Do not bother to explicitly initialize to NULL; it's less
117513         efficient on some hosts.
117514         (close_stdout_status): Remove test as to whether stdout was already
117515         closed; it breaks for the case "echo x | sort >&-".
117516         Quote file name colons.
117517         Do not assume that _("write error") lacks format strings.
117519 2000-05-15  Jim Meyering  <meyering@lucent.com>
117521         * lib/version-etc.c (version_etc_copyright): Update the copyright
117522         string used in all --version output.
117524 2000-05-14  Jim Meyering  <meyering@lucent.com>
117526         * lib/closeout.c (close_stdout_set_file_name): New function.
117527         (close_stdout_status): Use new file-scoped global.
117528         Return right away if fstat says the stdout file descriptor is invalid.
117529         * lib/closeout.h (close_stdout_set_file_name): Declare.
117531 2000-05-10  Jim Meyering  <meyering@lucent.com>
117533         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117534         (close_stdout_set_status): New function.
117535         * lib/closeout.h (close_stdout_set_status): Declare.
117537 2000-05-09  Jim Meyering  <meyering@lucent.com>
117539         * m4/gettext.m4: Rename this...
117540         * m4/libintl.m4: ...to this.
117542 2000-05-08  Jim Meyering  <meyering@lucent.com>
117544         * lib/long-options.c: Don't include closeout.h.
117545         (parse_long_options): Don't call close_stdout for --version.
117547 2000-05-06  Paul Eggert  <eggert@twinsun.com>
117549         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
117550         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
117551         2.1.3 bug.  This avoids a clash when files like regex.c define
117552         _GNU_SOURCE.
117554 2000-05-06  Jim Meyering  <meyering@lucent.com>
117556         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
117557         (AC_REPLACE_FUNCS): Add strnlen.
117559         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
117560         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
117562         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
117563         AC_SEARCH_LIBS call for nanosleep.
117564         (LIB_NANOSLEEP): Set and AC_SUBST.
117566 2000-05-06  Jim Meyering  <meyering@lucent.com>
117568         * lib/strnlen.c: Undefine __strnlen and strnlen.
117569         [!weak_alias]: Define __strnlen to strnlen.
117571         * lib/atexit.c: New file, from libiberty.
117573 2000-05-06  Jim Meyering  <meyering@lucent.com>
117575         * lib/closeout.c (close_stdout_status): Also check for errors on the
117576         stderr stream.
117578 2000-05-05  Jim Meyering  <meyering@lucent.com>
117580         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
117581         AC_SEARCH_LIBS call for clock_gettime.
117582         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
117584         * m4/search-libs.m4: Update from autoconf.
117586         su doesn't work on Solaris 2.6.
117587         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
117588         <shadow.h>.  Reported by Dragos Harabor.
117590 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
117592         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
117593         memcpy instead of xmalloc, xrealloc, path_concat.
117594         (locale_charset): Treat empty environment variables as absent.
117595         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
117597 2000-05-04  Jim Meyering  <meyering@lucent.com>
117599         * lib/getopt.c: Update from glibc.
117600         * lib/obstack.c: Likewise.
117601         * lib/obstack.h: Likewise.
117602         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
117603         file
117605         * lib/regex.h: Likewise.
117606         * lib/strndup.c: Likewise.
117607         * lib/strnlen.c: New file, from glibc.
117609 2000-05-03  Jim Meyering  <meyering@lucent.com>
117611         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
117613 2000-05-02  Paul Eggert  <eggert@twinsun.com>
117615         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
117616         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
117617         compile-time test, rather than inspecting host and OS, to
117618         decide whether to define _LARGEFILE_SOURCE.
117620 2000-05-01  Jim Meyering  <meyering@lucent.com>
117622         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
117624         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
117625         Based on a patch from Bruno Haible.
117627 2000-05-01  Jim Meyering  <meyering@lucent.com>
117629         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
117631 2000-04-29  Jim Meyering  <meyering@lucent.com>
117633         * lib/path-concat.c: Declare strdup only if it's not defined.
117634         * lib/canon-host.c: Likewise.
117636 2000-04-28  Jim Meyering  <meyering@lucent.com>
117638         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
117639         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
117640         is included first, then limits.h is included by locale.h by libintl.h.
117641         From John David Anglin.
117643 2000-04-25  Jim Meyering  <meyering@lucent.com>
117645         * lib/makepath.c (S_IRWXUGO): Define.
117646         (make_path): Always perform explicit chmod if MODE specifies any
117647         of the `special' permission bits.  Prompted by a bug report against
117648         install from Mate Wierdl and Joost van Baal.
117650 2000-04-18  Jim Meyering  <meyering@lucent.com>
117652         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
117653         (jm_PREREQ): Use it.
117655 2000-04-18  Jim Meyering  <meyering@lucent.com>
117657         * lib/README: New file.
117659         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
117660         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
117662 2000-04-17  Jim Meyering  <meyering@lucent.com>
117664         Get it right :-)
117665         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
117666         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
117667         Suggestion from Akim Demaille.
117669 2000-04-17  Jim Meyering  <meyering@lucent.com>
117671         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
117672         the definition of it to rpl_strftime also defined-away the system's
117673         declaration.
117675 2000-04-15  Jim Meyering  <meyering@lucent.com>
117677         Use `C' to denote so-called `contiguous' files, the same way
117678         that tar does.
117679         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
117680         (ftypelet): Use S_ISCTG.
117681         From Michael Deutschmann.
117683 2000-04-14  Jim Meyering  <meyering@lucent.com>
117685         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
117686         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
117687         clobbered.
117689 2000-04-14  Jim Meyering  <meyering@lucent.com>
117691         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
117693 2000-04-13  Jim Meyering  <meyering@lucent.com>
117695         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
117696         AH_VERBATIM to insert required #ifndef into config.h.in.
117697         Suggestion from Akim Demaille.
117699 2000-04-12  Jim Meyering  <meyering@lucent.com>
117701         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
117702         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
117703         Christian Krackowizer.
117705         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
117706         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
117707         (AC_SYS_LARGEFILE): Require.
117708         (AM_C_PROTOTYPES): Require.
117710 2000-04-08  Jim Meyering  <meyering@lucent.com>
117712         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
117713         names don't conflict.  Reported by Eli Zaretskii.
117715 2000-04-07  Jim Meyering  <meyering@lucent.com>
117717         * lib/putenv.c: Move inclusion of errno.h so it follows that of
117718         sys/types.h, to work around system header problems on AIX 3.2.5.
117719         From Bruno Haible.
117721 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
117723         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
117724         bug.  Deal with the different error behavior of Irix iconv.
117726 2000-04-05  Paul Eggert  <eggert@twinsun.com>
117728         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
117729         IRIX if the installer said otherwise.
117731 2000-04-05  Jim Meyering  <meyering@lucent.com>
117733         Portability tweaks required for ultrix4.3.
117734         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
117735         (jm_CHECK_DECLS): Add getutent to the list of functions.
117736         (_jm_DECL_HEADERS): Add utmpx.h.
117737         From John David Anglin.
117739         * m4/strftime.m4: Back out the 2000-04-02 change.
117740         Instead of that change, simply undefine putenv in the test program.
117742 2000-04-05  Jim Meyering  <meyering@lucent.com>
117744         Portability tweaks required for ultrix4.3.
117745         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
117746         getutent.
117747         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
117748         * lib/canon-host.c: Declare strdup.
117749         * lib/path-concat.c: Likewise.
117750         From John David Anglin.
117752 2000-04-04  Jim Meyering  <meyering@lucent.com>
117754         Be more DOS 8.3-friendly.
117755         * lib/ref-add.sin: Renamed from ref-add.sed.in.
117756         * lib/ref-del.sin: Renamed from ref-del.sed.in.
117757         * lib/Makefile.am: Reflect renaming.
117758         Reported by Eli Zaretskii.
117760         Use a temporary file name that won't clash with `charset.alias'
117761         in the DOS 8.3 name space.
117762         * lib/Makefile.am (charset_tmp): Define.
117763         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
117764         (uninstall-local): Likewise.
117765         Reported by Eli Zaretskii.
117767 2000-04-03  Jim Meyering  <meyering@lucent.com>
117769         * m4/gettext.m4: Fix typo in comment.
117771         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
117772         textutils/configure.in).  Suggestion from Paul Eggert.
117773         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
117775 2000-04-02  Paul Eggert  <eggert@twinsun.com>
117777         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
117778         variable in the shell rather than using putenv, which isn't
117779         portable.  This avoids the configure-time inter-test dependency
117780         on the potentially-renamed putenv function.
117782 2000-03-30  Paul Eggert  <eggert@twinsun.com>
117784         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
117785         before checking struct stat.st_blksize, so that
117786         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
117788 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117790         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
117791         since strftime.c uses HAVE_STRFTIME to decide whether to use
117792         the underlying strftime.
117794 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117796         * lib/time/strftime.c (my_strftime): Make sure we call the system
117797         strftime, not ourselves, when invoking the underlying strftime.
117799 2000-03-24  Jim Meyering  <meyering@lucent.com>
117801         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
117802         (charset_alias): Define.
117803         (install-exec-local): Factor out common code.
117804         (uninstall-local): Split lines longer than 80.
117805         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
117806         (SUFFIXES): Define.
117807         (.sed.in.sed): New rule.  Don't redirect directly to $@.
117808         (CLEANFILES): Add ref-add.sed and ref-del.sed.
117810 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
117812         * lib/config.charset: Output a line containing "Packages using this
117813         file".
117814         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
117815         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
117816         ref-del.sed): New rules.
117818 2000-03-17  Jim Meyering  <meyering@lucent.com>
117820         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
117821         Otherwise, include <strings.h>
117823 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
117825         * lib/unicodeio.c (utf8_wctomb): New function.
117826         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
117827         format instead of in UCS-4 with platform dependent endianness.
117829 2000-03-10  Jim Meyering  <meyering@lucent.com>
117831         * m4/lib-check.m4: Look for getspnam in -lgen, too.
117832         From Marco Franzen.
117834 2000-03-07  Paul Eggert  <eggert@twinsun.com>
117836         * lib/savedir.c (savedir): Work even if directory size is
117837         negative; this can happen with some screwy NFS configurations.
117839 2000-03-06  Jim Meyering  <meyering@lucent.com>
117841         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
117842         if it's NULL (because we ran out of memory).  From Bruno Haible.
117844 2000-03-05  Jim Meyering  <meyering@lucent.com>
117846         * lib/localcharset.c ("path-concat.h"): Include.
117847         (get_charset_aliases): Use path_concat instead of ANSI string
117848         concatenation.
117850         * lib/unicodeio.h (PARAMS): Define.
117851         Use it to guard prototype.
117853 2000-03-04  Jim Meyering  <meyering@lucent.com>
117855         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
117856         for lib/localcharset.c.
117858 2000-03-04  Jim Meyering  <meyering@lucent.com>
117860         * lib/Makefile.am (install-exec-local): Create $(libdir) before
117861         installing into it.
117862         (uninstall-local): Uncomment this rule so `make distcheck' works
117863         once again.
117865         * lib/unicodeio.c (<errno.h>): Include it.
117866         (errno): Declare if not defined.
117868         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
117870         * lib/config.charset: New version, incorporating remarks from a linux
117871         i18n mailing list.  From Bruno Haible.
117873 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
117875         * m4/codeset.m4: New file.
117876         * m4/iconv.m4: New file.
117877         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
117879 2000-03-03  Jim Meyering  <meyering@lucent.com>
117881         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
117883 2000-03-02  Jim Meyering  <meyering@lucent.com>
117885         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
117886         the messages come out on separate lines.
117888         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
117889         rather than jm_CHECK_DECLARATIONS.
117890         * m4/decl.m4: Remove now-unused file.
117892         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
117893         geteuid.
117895 2000-03-02  Jim Meyering  <meyering@lucent.com>
117897         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
117899 2000-03-01  Jim Meyering  <meyering@lucent.com>
117901         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
117902         * lib/unicodeio.c: Likewise.
117904 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
117906         * lib/config.charset: New file.
117907         * lib/localcharset.c: New file.
117908         * lib/unicodeio.h, lib/unicodeio.c: New files.
117909         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
117910         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
117911         (noinst_HEADERS): Add unicodeio.h.
117912         (all-local, install-exec-local, charset.alias): New targets.
117914 2000-02-28  Paul Eggert  <eggert@twinsun.com>
117916         * lib/quotearg.c (ALERT_CHAR): New macro.
117917         (quotearg_buffer_restyled): Use it.
117919 2000-02-27  Jim Meyering  <meyering@lucent.com>
117921         * m4/check-decl.m4: Add getenv to the list.
117923 2000-02-27  Jim Meyering  <meyering@lucent.com>
117925         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
117926         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
117928         * lib/backupfile.c: Guard inclusion of stdlib.h with
117929         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
117930         Declare malloc if needed.
117932         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
117933         `#ifndef HAVE_DECL..'
117934         now that autoconf always defines the HAVE_DECL_ symbols.
117935         * lib/human.c: Likewise.
117936         * lib/same.c: Likewise.
117937         * lib/strtoumax.c: Likewise.
117939         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
117940         declaration check was not run.
117941         * lib/hash.c: Likewise.
117942         * lib/human.c: Likewise.
117943         * lib/same.c: Likewise.
117944         * lib/strtoumax.c: Likewise.
117946         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
117947         `.', then first look up the entire `.'-containing string as a login
117948         name.
117950 2000-02-23  Jim Meyering  <meyering@lucent.com>
117952         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
117953         in place of my hack.
117955 2000-02-18  Paul Eggert  <eggert@twinsun.com>
117957         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
117958         (textint): New typedef.
117959         (parser_control): Member year changed from int to textint.
117960         All uses changed.
117961         (YYSTYPE): Removed; replaced by %union with int and textint members.
117962         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
117963         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
117964         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
117965         (tSNUMBER, tUNUMBER): Now of type <textintval>.
117966         (date, number, to_year): Use width of number in digits, not its value,
117967         to determine whether it's a 2-digit year, or a 2-digit time.
117968         (yylex): Store number of digits of numeric tokens.
117969         Reported by John Kendall.
117971         (parser_control): Changed from struct parser_control to typedef (for
117972         consistency).  All uses changed.
117974         (tID): Removed; not used.
117975         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
117977 2000-02-14  Paul Eggert  <eggert@twinsun.com>
117979         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
117980         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
117982 2000-02-12  Jim Meyering  <meyering@lucent.com>
117984         * lib/userspec.c (ISDIGIT): Define it.
117985         (isdigit): Remove definition.
117986         (is_number): Use ISDIGIT, not isdigit.
117987         <libintl.h>: Include.
117988         (_ and N_): Define.
117989         (parse_user_spec): Mark translatable strings.
117991 2000-02-10  Jim Meyering  <meyering@lucent.com>
117993         With these changes, nanosleep.[ch] are finally enough like the other
117994         lib/* replacement files to compile on a few more losing systems.
117996         * lib/nanosleep.h: Don't include config.h.
117997         Remove prototype from declaration of nanosleep.
117998         (PARAMS): Remove now-unneeded definition.
117999         * lib/nanosleep.c: #undef nanosleep.
118000         (rpl_nanosleep): Rename from nanosleep.
118002 2000-02-10  Jim Meyering  <meyering@lucent.com>
118004         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
118005         gnu_nanosleep to rpl_nanosleep.
118007 2000-02-09  Jim Meyering  <meyering@lucent.com>
118009         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
118010         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
118012 2000-02-08  Akim Demaille  <akim@epita.fr>
118014         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
118015         `[' and `]' and remove uses of `changequote'.
118016         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
118017         (AC_SYS_LARGEFILE): Likewise.
118018         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
118019         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
118020         of changequote.
118021         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
118022         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
118023         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
118024         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
118026 2000-02-05  Jim Meyering  <meyering@lucent.com>
118028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
118029         Remove explicit use of AC_HEADER_TIME.  It is required by
118030         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
118031         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
118032         in autoconf whereby the expansion of the latter ended up preceding
118033         the expansion of its prerequisite, AC_HEADER_TIME.
118034         Reported by Volker Borchert.
118036 2000-02-03  Jim Meyering  <meyering@lucent.com>
118038         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
118040 2000-02-03  Jim Meyering  <meyering@lucent.com>
118042         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
118043         rather than with `#if HAVE_UTMPNAME'.
118045 2000-02-02  Jim Meyering  <meyering@lucent.com>
118047         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
118048         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
118049         Reported by Eli Zaretskii.
118051 2000-02-01  Jim Meyering  <meyering@lucent.com>
118053         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
118055 2000-01-31  Jim Meyering  <meyering@lucent.com>
118057         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
118058         functions.  Add the time.h and sys/time.h headers along with the
118059         AC_REQUIRE'ment of AC_HEADER_TIME.
118061 2000-01-31  Jim Meyering  <meyering@lucent.com>
118063         * lib/nanosleep.h (nanosleep): Guard declaration with
118064         `#if ! HAVE_DECL_NANOSLEEP'.
118065         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
118066         the declaration in that vendor's sys/timers.h.
118067         Reported by Christian Krackowizer.
118069         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
118070         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
118071         (ISPRINT): Likewise.
118072         Reported by Tom Tromey.
118074 2000-01-30  Jim Meyering  <meyering@lucent.com>
118076         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
118078         * m4/prereq.m4 (utmp_includes): Define.
118079         Check for ut_user and ut_name members in both struct utmpx
118080         and struct utmp.
118082 2000-01-30  Jim Meyering  <meyering@lucent.com>
118084         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
118085         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
118086         header files where only utmpx.ut_user is declared.
118088         * lib/readutmp.h (UT_USER): Define.
118090 2000-01-29  Jim Meyering  <meyering@lucent.com>
118092         * m4/lib-check.m4: New file containing library-related checks from
118093         fileutils and sh-utils (textutils had none).
118095 2000-01-28  Jim Meyering  <meyering@lucent.com>
118097         * m4/perl.m4: Change format of warning message to look more like that
118098         from the missing script.  Suggestion from François Pinard.
118100 2000-01-25  Jim Meyering  <meyering@lucent.com>
118102         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
118103         well as time.h in the compile check.
118104         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
118105         Fix typo in cross-compiling case: s/yes/no/.
118107 2000-01-23  Jim Meyering  <meyering@lucent.com>
118109         * m4/jm-macros.m4: Move df-related tests here from
118110         fileutils/configure.in
118112         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
118113         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
118115         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
118116         s/space/ac_fsusage_space/.
118117         (jm_FILE_SYSTEM_USAGE): Take two parameters.
118119         * m4/ftruncate.m4: New file (derived from part of
118120         fileutils/configure.in).
118121         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
118122         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
118124         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
118125         AC_SUBST these here, rather than just in sh-util/configure.in, so
118126         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
118127         all the same.
118128         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
118129         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
118130         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
118131         (AC_SUBST(POW_LIBM)): Likewise.
118132         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
118134 2000-01-23  Jim Meyering  <meyering@lucent.com>
118136         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
118137         obstack.c.
118139 2000-01-22  Jim Meyering  <meyering@lucent.com>
118141         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
118143         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
118145         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
118146         configure.in
118147         (AC_CHECK_HEADERS): Likewise for sh-utils.
118148         (AC_CHECK_HEADERS): Likewise for textutils.
118149         Merge the three lists of headers.
118151         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
118152         from fileutils' configure.in.
118154         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
118155         code. Moved tests into their own function (_jm_DECL_HEADERS) in
118156         check-decl.m4.
118158         * m4/check-decl.m4: Use #if rather than #ifdef.
118159         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
118160         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
118161         (_jm_DECL_HEADERS): Define new function.
118162         (jm_CHECK_DECLARATIONS): Require it.
118164 2000-01-22  Jim Meyering  <meyering@lucent.com>
118166         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
118167         [! HAVE_DECL_STRTOULL]: Declare strtoull.
118168         Required for some AIX systems.  Reported by Christian Krackowizer.
118169         [TESTING] (main): New function.
118171         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
118172         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
118173         letters.
118175         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
118176         iswprint.
118178         * lib/strverscmp.c (ISDIGIT): Define.
118179         (strverscmp): Use ISDIGIT, not isdigit.
118181 2000-01-19  Jim Meyering  <meyering@lucent.com>
118183         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
118184         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
118185         defines `struct timespec' in <sys/time.h>
118187         * m4/c-bs-a.m4: Remove uses of changequote altogether.
118188         Thanks to Akim for explaining.
118190 2000-01-17  Paul Eggert  <eggert@twinsun.com>
118192         * lib/nanosleep.c (nanosleep):
118193         Don't use SA_INTERRUPT to decide whether to call sigaction, as
118194         POSIX.1 doesn't require SA_INTERRUPT and some systems
118195         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
118196         it's been part of POSIX.1 since day 1 (in 1988).
118198 2000-01-17  Jim Meyering  <meyering@lucent.com>
118200         * lib/interlock: Remove unused file.  Reported by François Pinard.
118202 2000-01-16  Paul Eggert  <eggert@twinsun.com>
118204         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
118205         alert, backslash, formfeed, and vertical tab unnecessarily in
118206         shell quoting style.
118208 2000-01-16  Jim Meyering  <meyering@lucent.com>
118210         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
118211         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
118212         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
118213         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
118215 2000-01-16  Jim Meyering  <meyering@lucent.com>
118217         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
118218         because the latter didn't work.
118220 2000-01-15  Jim Meyering  <meyering@lucent.com>
118222         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
118223         (AC_REPLACE_FUNCS): Add memcpy and memset.
118224         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
118225         Add strpbrk.
118226         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
118228 2000-01-12  Jim Meyering  <meyering@lucent.com>
118230         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
118231         (jm_PREREQ): Use it.
118232         (jm_PREREQ_READUTMP): New macro.
118233         (jm_PREREQ): Use it.
118235 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118237         Quote multibyte characters correctly.
118238         * m4/c-bs-a.m4: New file.
118239         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
118240         (jm_PREREQ): Use it.
118242 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118244         * m4/uintmax_t.m4: Port to autoconf 2.13.
118246 2000-01-08  Jim Meyering  <meyering@ascend.com>
118248         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
118249         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
118251 2000-01-04  Jim Meyering  <meyering@ascend.com>
118253         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
118254         jm_STRUCT_DIRENT_D_TYPE.
118255         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
118256         jm_STRUCT_DIRENT_D_INO.
118257         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
118258         jm_STRUCT_UTIMBUF.
118259         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
118260         renamings.
118261         * m4/utime.m4: Likewise.
118263         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
118264         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
118266 2000-01-03  Paul Eggert  <eggert@twinsun.com>
118268         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
118269         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
118271 2000-01-02  Jim Meyering  <meyering@ascend.com>
118273         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
118274         remember if this is necessary.
118276 1999-12-26  Jim Meyering  <meyering@ascend.com>
118278         * m4/jm-macros.m4: Use it here.
118279         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
118281 1999-12-23  Jim Meyering  <meyering@ascend.com>
118283         * m4/jm-macros.m4: Check for clock_gettime (moved from
118284         fileutils/configure.in)
118285         Check for gettimeofday.
118287 1999-12-20  Jim Meyering  <meyering@ascend.com>
118289         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
118290         autoconf-2.14a-1999-12-20.
118292 1999-12-19  Jim Meyering  <meyering@ascend.com>
118294         * m4/lstat-slash.m4: New file.
118295         * m4/jm-macros.m4: Use the new macro:
118296         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118298 1999-12-07  Jim Meyering  <meyering@ascend.com>
118300         * m4/perl.m4: Require that File::Compare be available, too.
118301         Too many systems seem to lack it.
118303         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118304         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118306 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118308         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118309         problem with the QNX 4.25 shell, which doesn't propagate exit
118310         status of failed commands inside shell assignments.
118312 1999-11-17  Jim Meyering  <meyering@ascend.com>
118314         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118316 1999-11-07  Jim Meyering  <meyering@ascend.com>
118318         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118320 1999-11-06  Jim Meyering  <meyering@ascend.com>
118322         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118323         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118325 1999-11-05  Jim Meyering  <meyering@ascend.com>
118327         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118328         configure.in of textutils, fileutils, and sh-utils into this one
118329         (shared between those packages) file.
118330         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118331         AC_STRUCT_ST_BLKSIZE.
118333 1999-11-03  Jim Meyering  <meyering@ascend.com>
118335         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118336         of AC_CHECK_TYPE checks includes unistd.h.
118337         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118338         Suggestion from Akim Demaille.
118340 1999-10-30  Jim Meyering  <meyering@ascend.com>
118342         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118343         m4-quoted string.
118344         * m4/ls-mntd-fs.m4: Likewise.
118345         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118346         * m4/jm-winsz1.m4: Likewise.
118348         * m4/const.m4: Remove file, since the fix made it into the experimental
118349         version of autoconf.
118350         * m4/mktime.m4: Likewise.
118352         * m4/check-type.m4: Remove file, now that the latest version of
118353         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118355         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118356         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118357         AC_CHECK_TYPE.
118359 1999-10-04  Jim Meyering  <meyering@ascend.com>
118361         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118363 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118365         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118366         2.95.1 bug with HP-UX 10.20.
118368 1999-09-17  Jim Meyering  <meyering@ascend.com>
118370         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118371         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118372         due to missing strdup (against sh-utils-2.0).
118374 1999-08-29  Jim Meyering  <meyering@ascend.com>
118376         * m4/jm-macros.m4: Require jm_BISON.
118377         * m4/bison.m4: New file.
118379 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118381         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118382         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118384 1999-08-05  Jim Meyering  <meyering@ascend.com>
118386         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118387         to avoid conflicts with `conftest' on 8+3 filesystems.
118388         Suggestion from Eli Zaretskii.
118390 1999-08-04  Jim Meyering  <meyering@ascend.com>
118392         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118393         fileutils and sh-utils (textutils's getline test was inadequate).
118394         (AM_FUNC_GETLINE): Run this test.
118395         (AC_CHECK_FUNCS): Check for getdelim.
118396         Reported by Bob Proulx.
118398 1999-08-02  Jim Meyering  <meyering@ascend.com>
118400         * m4/jm-macros.m4: Add a comment.
118402 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118404         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118405         <inttypes.h> defines strtoumax as a macro (and not as a
118406         function).
118408 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118410         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118411         that we can shift, multiply and divide unsigned long long
118412         values; Ultrix cc can't do it.
118414 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118416         * m4/mktime.m4: New file, which is a preview of what should appear
118417         in the next public autoconf release.
118419 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118421         * m4/lfs.m4: Remove this file.
118422         * m4/largefile.m4: New file.  It contains the old contents of
118423         lfs.m4, except that all names with prefix AC_LFS have been
118424         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118425         compatible with future autoconf versions.  Also, some minor m4
118426         quoting problems have been fixed.
118428 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118430         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118431         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118432         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118433         and simplify the shell code.
118435 1999-08-01  Jim Meyering  <meyering@ascend.com>
118437         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118438         m4.
118440 1999-07-20  Jim Meyering  <meyering@ascend.com>
118442         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118444 1999-07-15  Jim Meyering  <meyering@ascend.com>
118446         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118448 1999-05-22  Jim Meyering  <meyering@ascend.com>
118450         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118452 1999-05-20  Jim Meyering  <meyering@ascend.com>
118454         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118455         Add a colon after each `then' in case $4 is empty.
118457 1999-05-16  Jim Meyering  <meyering@ascend.com>
118459         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118461 1999-05-10  Jim Meyering  <meyering@ascend.com>
118463         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118465         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118466         AC_FUNC_MKTIME.
118468 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118470         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118472 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118474         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118475         not CPPFLAGS, so that linking works correctly in IRIX.
118477 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118479         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118481 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118483         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118484         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118485         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118486         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118487         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118489         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118491 1999-04-20  Jim Meyering  <meyering@ascend.com>
118493         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118494         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118495         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118497 1999-04-18  Jim Meyering  <meyering@ascend.com>
118499         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118500         * m4/jm-macros.m4: Use it.
118502 1999-04-06  Jim Meyering  <meyering@ascend.com>
118504         * m4/strftime.m4: Remove test for %f.
118506 1999-03-29  Jim Meyering  <meyering@ascend.com>
118508         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118509         superset of the AC_TYPE_* checks in the textutils, fileutils,
118510         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118511         AC_TYPE_PID_T.
118513 1999-03-28  Jim Meyering  <meyering@ascend.com>
118515         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118516         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118517         replaced e.g., in the *.sh files of the sh-utils.
118519 1999-03-20  Jim Meyering  <meyering@ascend.com>
118521         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118522         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118523         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118525 1999-03-19  Jim Meyering  <meyering@ascend.com>
118527         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118529 1999-03-12  Jim Meyering  <meyering@ascend.com>
118531         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118533 1999-03-07  Jim Meyering  <meyering@ascend.com>
118535         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118536         declared.
118538 1999-02-17  Jim Meyering  <meyering@ascend.com>
118540         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118541         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118543 1999-02-07  Jim Meyering  <meyering@ascend.com>
118545         * m4/group-member.m4: New file -- extracted from sh-utils'
118546         configure.in.
118548         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
118549         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
118551 1999-02-06  Jim Meyering  <meyering@ascend.com>
118553         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
118554         * m4/fnmatch.m4: Likewise.
118555         * m4/getgroups.m4: Likewise.
118556         * m4/lstat.m4: Likewise.
118557         * m4/malloc.m4: Likewise.
118558         * m4/putenv.m4: Likewise.
118559         * m4/realloc.m4: Likewise.
118560         * m4/regex.m4: Likewise.
118561         * m4/stat.m4: Likewise.
118562         * m4/strftime.m4: Likewise.
118563         Suggestion from Alain Magloire.
118565         * m4/chown.m4: Use `.$ac_objext', not `.o'.
118566         * m4/fnmatch.m4: Likewise.
118567         * m4/getgroups.m4: Likewise.
118568         * m4/getline.m4: Likewise.
118569         * m4/lstat.m4: Likewise.
118570         * m4/malloc.m4: Likewise.
118571         * m4/memcmp.m4: Likewise.
118572         * m4/putenv.m4: Likewise.
118573         * m4/realloc.m4: Likewise.
118574         * m4/regex.m4: Likewise.
118575         * m4/stat.m4: Likewise.
118576         * m4/strftime.m4: Likewise.
118577         Suggestion from Alain Magloire.
118579         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
118580         an argument.
118582         * m4/regex.m4: Add a run-time Test for proper operation of
118583         re_compile_pattern.
118585 1999-01-31  Jim Meyering  <meyering@ascend.com>
118587         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
118589 1999-01-30  Jim Meyering  <meyering@ascend.com>
118591         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
118593         * m4/jm-mktime.m4: Make this a wrapper around the official
118594         AM_FUNC_MKTIME rather than my private copy, now that the official one
118595         is up to date.
118596         * m4/mktime.m4: Remove file.
118598         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
118599         * m4/uptime.m4: Likewise.
118600         * m4/uintmax_t.m4: Likewise.
118602 1999-01-28  Jim Meyering  <meyering@ascend.com>
118604         * m4/jm-macros.m4: Use jm_AFS.
118605         * m4/afs.m4: New file (from fileutils' configure.in).
118607         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
118608         * m4/chown.m4: Likewise.
118609         * m4/d-ino.m4: Likewise.
118610         * m4/d-type.m4: Likewise.
118611         * m4/fnmatch.m4: Likewise.
118612         * m4/getgroups.m4: Likewise.
118613         * m4/gettext.m4: Likewise.
118614         * m4/jm-mktime.m4: Likewise.
118615         * m4/jm-winsz2.m4: Likewise.
118616         * m4/lcmessage.m4: Likewise.
118617         * m4/ls-mntd-fs.m4: Likewise.
118618         * m4/malloc.m4: Likewise.
118619         * m4/memcmp.m4: Likewise.
118620         * m4/putenv.m4: Likewise.
118621         * m4/realloc.m4: Likewise.
118622         * m4/st_mtim.m4: Likewise.
118623         * m4/strftime.m4: Likewise.
118625 1999-01-16  Jim Meyering  <meyering@ascend.com>
118627         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
118628         (ARGMATCH_DIE_DECL): Define.
118630 1999-01-12  Jim Meyering  <meyering@ascend.com>
118632         * m4/Makefile.am.in: Rewrite to avoid using fmt.
118633         Reported by Lars Hecking.
118635 1999-01-10  Jim Meyering  <meyering@ascend.com>
118637         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
118638         gross kludge.
118639         * m4/inttypes_h.m4: Likewise.
118640         * m4/lstat.m4: Likewise.
118641         * m4/malloc.m4: Likewise.
118642         * m4/readdir.m4: Likewise.
118643         * m4/realloc.m4: Likewise.
118644         * m4/st_dm_mode.m4: Likewise.
118645         * m4/stat.m4: Likewise.
118646         * m4/utimbuf.m4: Likewise.
118647         * m4/utimes.m4: Likewise.
118649         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
118650         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
118651         comments in config.h.in are meaningful.
118653         * m4/jm-macros.m4: Require autoconf-2.13 here.
118655         * m4/regex.m4: By default, don't use the included regex.c on systems
118656         with glibc 2.  Suggestion from Uli Drepper.
118658 1999-01-02  Jim Meyering  <meyering@ascend.com>
118660         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
118662 1998-12-18  Jim Meyering  <meyering@ascend.com>
118664         * m4/Makefile.am.in (Makefile.am): Simplify rule.
118665         Based on a suggestion from Lars Hecking.
118667 1998-11-16  Paul Eggert  <eggert@twinsun.com>
118669         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
118671 1998-11-16  Jim Meyering  <meyering@ascend.com>
118673         * m4/lfs.m4: Double-quote the `uname...` expression.
118675 1998-11-14  Jim Meyering  <meyering@ascend.com>
118677         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
118678         * m4/stat.m4: Likewise.
118680 1998-11-03  Jim Meyering  <meyering@ascend.com>
118682         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
118683         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
118685 1998-10-18  Jim Meyering  <meyering@ascend.com>
118687         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
118689 1998-10-17  Jim Meyering  <meyering@ascend.com>
118691         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
118692         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
118693         calls for those previously hard-coded headers.  Instead, take a new
118694         parameter.
118695         (jm_CHECK_DECLARATIONS): Reflect interface change.
118696         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
118697         (jm_CHECK_DECL_LOCALTIME_R): New macro.
118699         * m4/mktime.m4: Test for spring-forward gap before long-running test.
118701 1998-10-14  Jim Meyering  <meyering@ascend.com>
118703         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
118704         instead of "TZ=America/Vancouver".  From Paul Eggert.
118706 1998-10-11  Jim Meyering  <meyering@ascend.com>
118708         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
118709         This adds a test for a recently added compatibility fix for mktime.c.
118710         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
118712 1998-09-27  Jim Meyering  <meyering@ascend.com>
118714         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
118716         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
118717         ../configure.in, including a change from Gordon Matzigkeit to allow
118718         cross-compiling for the Hurd.
118720         * m4/glibc.m4: New file/macro to test for the GNU C Library
118721         versions 1 and 2.  From Gordon Matzigkeit.
118722         Indent.
118724 1998-09-21  Jim Meyering  <meyering@ascend.com>
118726         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
118728 1998-08-18  Paul Eggert  <eggert@twinsun.com>
118730         Port nanosecond-resolution times to UnixWare 2.1.2 and
118731         pedantic Solaris 2.6.
118733         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
118734         AC_STRUCT_ST_MTIM.
118735         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
118736         Generate name of ns member, instead of just 1 or undef.
118737         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
118739 1998-08-15  Jim Meyering  <meyering@ascend.com>
118741         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
118742         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
118743         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
118744         instead of jm_TYPE_SSIZE_T.
118746 1998-08-12  Jim Meyering  <meyering@ascend.com>
118748         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
118750 1998-08-02  Jim Meyering  <meyering@ascend.com>
118752         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
118753         in acconfig.h manually.
118755 1998-07-31  Paul Eggert  <eggert@twinsun.com>
118757         * m4/st_mtim.m4: New file.
118759 1998-07-28  Jim Meyering  <meyering@ascend.com>
118761         * m4/utimes.m4: Undef stat.
118763 1998-07-25  Jim Meyering  <meyering@ascend.com>
118765         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
118766         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
118768 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
118770         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
118771         uid and gid actually remain unchanged.
118773 1998-07-07  Jim Meyering  <meyering@ascend.com>
118775         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
118777 1998-07-04  Jim Meyering  <meyering@ascend.com>
118779         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
118780         to prove that this macro can be used in packages without regex.c.
118782 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
118784         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
118785         is to be used.
118787 1998-07-03  Jim Meyering  <meyering@ascend.com>
118789         * m4/gettext.m4: Add -lintl if it's found to be necessary.
118791         * m4/gettext.m4: New file -- from gettext-0.10.35.
118792         * m4/lcmessage.m4: Likewise.
118793         * m4/progtest.m4: Likewise.
118795         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
118796         * m4/jm-macros.m4: Require the new macro.
118798 1998-06-29  Jim Meyering  <meyering@ascend.com>
118800         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
118801         for the definition of NGROUPS (used in a system header included
118802         by sys/mount.h).
118804 1998-06-28  Jim Meyering  <meyering@ascend.com>
118806         * m4/ls-mntd-fs.m4: New file.
118807         * m4/fstypename.m4: New file.
118809         * m4/jm-macros.m4: Require the new macro.
118810         * m4/jm-glibc-io.m4: New file.
118812 1998-05-19  Jim Meyering  <meyering@ascend.com>
118814         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
118815         * m4/lchown.m4: New file.
118817         * m4/Makefile.am.in: New file.
118818         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
118820 1998-05-14  Jim Meyering  <meyering@ascend.com>
118822         * m4/Makefile.am (EXTRA_DIST): Add them.
118823         * m4/jm-macros.m4: New file.
118824         * m4/utimbuf.m4: New file.
118826 1998-05-12  Jim Meyering  <meyering@ascend.com>
118828         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
118830 1998-05-11  Jim Meyering  <meyering@ascend.com>
118832         * m4/isc-posix.m4: New file.
118834 1998-05-10  Jim Meyering  <meyering@ascend.com>
118836         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
118838 1998-05-09  Jim Meyering  <meyering@ascend.com>
118840         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
118841         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
118842         with automake.
118844         * m4/ssize_t.m4: New file.
118845         * m4/mktime.m4: Remove file -- the new automake has this now.
118847 1998-04-26  Jim Meyering  <meyering@ascend.com>
118849         * m4/assert.m4: New file.
118850         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
118852 1998-04-05  Jim Meyering  <meyering@ascend.com>
118854         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
118855         (jm_PREREQ): Use it here.
118857 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
118859         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
118860         in acconfig.h.
118862 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
118864         * m4/prereq.m4: New file.
118865         * m4/error.m4: New file.
118866         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
118868 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
118870         * m4/getline.m4: Don't set am_cv_func_working_getline before the
118871         cache-check for the same variable -- that defeated the purpose of
118872         the test; the test program was never run.  This was a problem only
118873         on systems with losing getline functions -- HP-UX 10.20 is one.
118874         Reported by Bjorn Helgaas.
118876 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
118878         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
118880 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
118882         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
118884         * m4/const.m4: New file.  Use an initializer in this declaration
118885         typedef int charset[2]; const charset x;
118886         Reported by Bob Glickstein.
118888 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
118890         * m4/chown.m4: Fix reversed types on -1 args to chown.
118891         From Kaveh Ghazi.
118893 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
118895         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
118896         Add lseek and memchr.
118898         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
118899         T.E.Dickey <dickey@clark.net> said that some older preprocessors
118900         have a 20-character limit on names.
118902 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
118904         * m4/inttypes_h.m4: New file.
118905         * m4/uintmax_t.m4: New file.
118906         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
118909         -----
118911         Local Variables:
118912         coding: utf-8
118913         End:
118915         Copyright (C) 1997-2019 Free Software Foundation, Inc.
118917         Copying and distribution of this file, with or without
118918         modification, are permitted provided the copyright notice
118919         and this notice are preserved.